[Qt-interest] How to make rectangles dynamically in the empty spaceof a frame "like in FSView" ?
Usman Ajmal
uzmanajmal at gmail.com
Thu Apr 2 09:04:46 CEST 2009
Rather more appropriate will be to ask as to which class(es) of Qt does
FSView use to draw rectangles. It does seem to be using QGraphicsScene as
this class was i think not avalaible before Qt 4.
Thanks a lot.
On Thu, Apr 2, 2009 at 12:02 PM, Usman Ajmal <uzmanajmal at gmail.com> wrote:
> Hi all,
>
> Does any one know how the 'rectangles' are drawn in FSView program of KDE,
> available in OpenSuSE that is used to see the file system in graphical
> format as to which file or directory (represented by rectangles having sizes
> proportional to the sizes of repectives files or folders) has taken how much
> space?
>
> O my goodness that was a long question i ever asked, i guess. :)
>
> Thanks
>
> On Mon, Mar 30, 2009 at 1:29 PM, Usman Ajmal <uzmanajmal at gmail.com> wrote:
>
>> Thank Tony for the reply. I going to look at QGraphicsScene.
>>
>> 2009/3/30 Tony Rietwyk <tony.rietwyk at rightsoft.com.au>
>>
>>> Hi Usman,
>>>
>>> If you just want to draw rectangles from your own data structures then
>>> have a look at QPainter. If you need more interaction with the user, or
>>> animation, then have a look at the graphics view module, in particular
>>> QGraphicsScene, in QtAssistant.
>>>
>>> Tony.
>>>
>>>
>>> -----Original Message-----
>>> *From:* qt-interest-bounces at trolltech.com [mailto:
>>> qt-interest-bounces at trolltech.com] *On Behalf Of *Usman Ajmal
>>> *Sent:* Monday, 30 March 2009 16:44
>>> *To:* qt-interest at trolltech.com
>>> *Subject:* [Qt-interest] How to make rectangles dynamically in the empty
>>> spaceof a frame?
>>>
>>> Hi...
>>> Can someone plz give me some leads to help me out for my following
>>> problem?
>>>
>>> Problem:
>>> I need to develop an application which will have a window type frame in
>>> which rectangles of different colors can be generated whose sizes will be
>>> generated dynamically in the empty space of the frame.
>>>
>>> As i did not use Qt before so i started by learning Qt from its
>>> documentation given with QtDesigner software in opensuse linux but it seems
>>> like its a tutorial for only creating GUI whereas my problem is not related
>>> to GUI.
>>>
>>> Any suggestions may help me a lot.
>>>
>>> Thanks a lot.
>>>
>>> Usman Ajmal
>>> National University of Science and Technology, Pakistan
>>>
>>>
>>> _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at trolltech.com
>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090402/e4440253/attachment.html
More information about the Qt-interest-old
mailing list