[Qt-interest] highlight graphicsview widget

Manuel Klemenz m.klemenz at gmx.at
Tue Jun 1 21:45:54 CEST 2010


On Tuesday 01 June 2010 20:35:56 you wrote:
> I just need the green (or any color) highlight box when a mouse is pressed
> or moved over a widget (see attachment).
> I was hoping hoping there would be an easier way to do this?
> 
> Thanks,
> Caius
> 
> On Tue, Jun 1, 2010 at 11:17 AM, Manuel Klemenz <m.klemenz at gmx.at> wrote:
> > On Tuesday 01 June 2010 19:35:23 caius ligarius wrote:
> > > Hi,
> > > 
> > > I have multiple QGraphicsView widget and  want to highlight one of them
> > > when the user clicks on the widget to show that it's the current active
> > > widget. I am able to capture the mouse click on the widget but how do I
> > > show that it is "selected" ? Is there a way I can highlight this widget
> > 
> > to
> > 
> > > show that it is selected?
> > > 
> > > Thanks,
> > > Caius
> > 
> > I'd give the composition modes a try.
> > E.g. darken all the others slightly - have a look at the demos:
> > http://doc.qt.nokia.com/4.6/demos-composition.html
> > 
> > --
> > best regards,
> > Manuel Klemenz
> > 
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-interest

oh, that way... seems as a custom style/stylesheet could be the thing you're 
searching for :) 
have a look at:
http://doc.qt.nokia.com/4.6/qstyle.html

-- 
best regards,
Manuel Klemenz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100601/d90eabe3/attachment.bin 


More information about the Qt-interest-old mailing list