[Qt-interest] No activation on click

Martin Guillon MGuillon at movea.com
Tue Feb 9 14:51:59 CET 2010


No, what I mean is that if I create a widget (which would be  a QMainWindow with no parent  in my case) then if I want it to be clickable and to receive enter and leave events (to do state appearance) then I have to do raise();

But doing raise() activate the window which is bad for a notification window. I mean it s like a systemtray tooltip. It would be bad if it lost the focus on what you are doing  everytime there is a notification.

I managed to do that on Windows with Qt::SubWindow and Qt::WA_ShowWithoutActivating but I cant find a way to do that on OSX. My application is an agent app so I don't have entry in the dock or the menu bar which is already good.  But everytime a notification appears my current application looses the focus....

If you can help ...

-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Frank Lutz
Sent: Friday, February 05, 2010 1:32 PM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] No activation on click

Do you Mean ?

	QWidget *wid_a = new QWidget();
	wid_a->close();

	QWidget *wid_b = new QWidget();
	wid_b->close();
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list