What about more or less something like this:
class NativeWindow
: public QWidget{
public:
NativeWindow(WId wid) {
QWidget::create(wid,
false,
false);
// window, initializeWindow, destroyOldWindow }
~NativeWindow() {
QWidget::destroy(false,
false);
// destroyWindow, destroySubWindows }
};
class NativeWindow : public QWidget
{
public:
NativeWindow(WId wid) {
QWidget::create(wid, false, false); // window, initializeWindow, destroyOldWindow
}
~NativeWindow() {
QWidget::destroy(false, false); // destroyWindow, destroySubWindows
}
};
To copy to clipboard, switch view to plain text mode
NativeWindow window(GetForegroundWindow());
labelTitle->setText(window.windowTitle());
NativeWindow window(GetForegroundWindow());
labelTitle->setText(window.windowTitle());
To copy to clipboard, switch view to plain text mode
Bookmarks