[Qt-interest] Smaller Geometry

Ankit Agarwal ankit17.ag at gmail.com
Thu Feb 19 10:39:00 CET 2009


Hi,
I am not very sure. But my guess is that you are setting the size of the
Graphics Scene is (10,10) and all the graphicsItem has to be there in the
graphics Scene.
Thus the solution shall be....make the graphics scene size larger.


On Thu, Feb 19, 2009 at 3:02 PM, Sujan Dasmahapatra <sdh at lmglasfiber.com>wrote:

>  Just the QGraphicsItem…………The enire view geometry is having some
> size….That I have done by
>
> View->setGeometry(250,70,1020,646)  This is the size of the view…
>
> I have a scene which is set to the view like this
>
> scene = new QGraphicsScene;
>
> scene->setSceneRect(-10,-10,10,10);
>
> view = new QGraphicsView(scene);
>
>  view->setGeometry(250,70,1020,646)
>
> view->show();
>
>
>
> Now when I load the geometry which is a QGraphicsItem..
>
> Geometry * geometry = new Geometry;
>
> Scene->addItem(geometry)..
>
> Now the geometry is displayed but  very small on the screen…..Please tell
> me what should I do to make it bigger ????
>
>
>
> Kind regards,
> Sujan Dasmahapatra
>
>
> *From:* Ankit Agarwal [mailto:ankit17.ag at gmail.com]
> *Sent:* Thursday, February 19, 2009 2:52 PM
> *To:* Sujan Dasmahapatra
> *Cc:* qt-interest at trolltech.com
> *Subject:* Re: [Qt-interest] Smaller Geometry
>
>
>
> Hi,
> It shall be great is you can give some more information....
> Do u mean that the entire widget is showing small or just the
> QGraphicsItem?
>
> On Thu, Feb 19, 2009 at 2:45 PM, Sujan Dasmahapatra <sdh at lmglasfiber.com>
> wrote:
>
> Dear friends I am coding an application software……There I am loading  the
> geometry and after loading  it's not being shown bigger but very small…How
> could I implement to display it bigger…My geometry is a QGrphicsItem
> *geometry……how could I make it bigger for visualization plsss someone help
> me…!!!!!
>
>
>
> Kind regards,
> LM Glasfiber R&D (India) Pvt. Ltd.
>
> Sujan Dasmahapatra
> Project Engineer - CFD
>
> Telephone: +91 80 66470248
> Mobile:
> E-mail: sdh at lmglasfiber.com
>
>
>
>
>
>
>
>
>
> --------------------------------------------------------------
>
> This e-mail and any attachments are confidential. If you are not the named
> or intended recipient, please notify the sender immediately and do not
> disclose the contents to any other person, use it for any purpose or store
> or copy the information in any medium. Any unauthorized disclosure, use or
> storage is prohibited and might be unlawful.
>   ------------------------------
>
> -------------------------------------------------
>
> This E-mail and any attachments are confidential. If you are not the named
> or intended receipient, please notify the sender immediately and do not
> disclose the contents to any other person, use it for any purpose or store
> or copy the information in any medium. Any unauthorized disclosure, use or
> storage is prohibited and might be unlawful.
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>
>
> --
> Regards,
> Ankit Agarwal
> SW Engineer
> Vegayan Systems
> email : ankit_agarwal at vegayan.com
> Blog : http://ankit17.wordpress.com
>
> ------------------------------
> -------------------------------------------------
>
> This E-mail and any attachments are confidential. If you are not the named
> or intended receipient, please notify the sender immediately and do not
> disclose the contents to any other person, use it for any purpose or store
> or copy the information in any medium. Any unauthorized disclosure, use or
> storage is prohibited and might be unlawful.
>



-- 
Regards,
Ankit Agarwal
SW Engineer
Vegayan Systems
email : ankit_agarwal at vegayan.com
Blog : http://ankit17.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090219/830d3a69/attachment.html 


More information about the Qt-interest-old mailing list