This is essentially my main code (example from system tray)
#include <QtGui>
#include "window.h"
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(systray);
QObject::tr("I couldn't detect any system tray " "on this system."));
return 1;
}
Window window;
window.show();
return app.exec();
}
#include <QtGui>
#include "window.h"
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(systray);
QApplication app(argc, argv);
if (!QSystemTrayIcon::isSystemTrayAvailable()) {
QMessageBox::critical(0, QObject::tr("Systray"),
QObject::tr("I couldn't detect any system tray "
"on this system."));
return 1;
}
QApplication::setQuitOnLastWindowClosed(false);
Window window;
window.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
My QT 3.3 code simply should open the QT 4.7 application with the double click of a button. I don't know what to do there but currently I am calling a windows' show window function.
HWND hwnd;
ShowWindow(hwnd, SW_SHOW);
HWND hwnd;
ShowWindow(hwnd, SW_SHOW);
To copy to clipboard, switch view to plain text mode
The problem is QT is currently hiding the GUI and windows is showing it when it's not there.
Bookmarks