[Qt-interest] highlight graphicsview widget

Jason H scorp1us at yahoo.com
Tue Jun 1 21:40:18 CEST 2010


There should be something that is called the "focus rect".  When you get focus, then you need to set the background for the widget via role or pallete. See:
void QApplication::focusChanged ( QWidget * old, QWidget * now )   [signal]





________________________________
From: caius ligarius <caius9090 at gmail.com>
To: Qt Interest <qt-interest at trolltech.com>
Sent: Tue, June 1, 2010 1:35:23 PM
Subject: [Qt-interest] highlight graphicsview widget

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


      




More information about the Qt-interest-old mailing list