[Qt-interest] how to create custom signal and slot?
Murphy, Sean M.
sean.murphy at gd-ais.com
Wed Sep 23 17:06:52 CEST 2009
>> I need to have an application with multiple Rectangle objects on the
>> screen that the user can click,drag and drop...
>>
>> I'm doing things in the wrong way?
> Not wrong necessarily but I would take a look at QGraphicsView and
> QGraphicsRectItem.
I'd second the other Sean's recommendation, and it was why I asked why
you were using a Rectangle class and a RenderArea class, because as soon
as I saw the RenderArea class, I thought GraphicsView/Scene.
Take a look at http://doc.trolltech.com/4.5/examples.html#graphics-view
(or in your local examples folder, under graphicsview) and see if any of
those examples are a good starting point for what you need to do with
your rectangles...
Sean
More information about the Qt-interest-old
mailing list