View Full Version : Help needed re: clipboard detection
sdfisher
26th July 2007, 04:57
I'd like to have my application inspect the clipboard whenever a particular widget's window is brought forward when that widget is visible, whether through switching within my application or switching from another application. Is there any signal (or several signals) I can connect to in order to get this type of event?
wysota
9th August 2007, 00:45
The easiest way to implement would be to have a timer that would query QApplication::activeWindow() or similar every second or so and act if the widget changes.
Another thing worth trying is to intercept change events of the application (have a look at the QEvent::Type enum), maybe one of the events is what you seek...
Or you could dive into platform API and do it properly...
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.