[Interest] Questions about QGraphicsWidget
Bo Thorsen
bo at fioniasoftware.dk
Thu Aug 9 10:51:10 CEST 2012
Den 08-08-2012 15:54, BRM skrev:
>> From: Bo Thorsen <bo at fioniasoftware.dk>
>
>> Subject: Re: [Interest] Questions about QGraphicsWidget
>> Den 07-08-2012 18:59, Bill Crocker skrev:
>>> On 08/07/2012 12:36 PM, BRM wrote:
>>>> I'm working on a QGraphicsWidget version of something I already
>>>> have a QWidget version of; namely because I need to add some features where I
>>>> need to overlay items, lines, and text in a way that QWidget does not support
>>> You can also overlay your existing widget with another widget
>>> on which you draw arbitrary text and lines.
>>> Set the overlay widget as transparent to mouse events.
>> This was exactly what I was about to answer. Going to QGW is the wrong
>> approach for this problem. Unless of course there are other reasons for
>> doing it. But it sounds like the OP is only converting to QGW to do this
>> one thing.
>
> Besides picking up the additional performance? Updating to the new APIs?
> Being able to eventually move to integrating with QML (if and when QML becomes an option)?
>
> Yes there are other reasons for doing the conversion. This is just
> the only aspect that I've had trouble with.
As I said, if there are other reason, then go ahead with the conversion.
My point was that you shouldn't do it just to achieve the overlay.
I've never been fond of the widgets on QGW. Maybe that's a reason I'm
showing the way to avoid it.
Bo Thorsen,
Fionia Software.
--
Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk
More information about the Interest
mailing list