I meant a GUI app, not a GUI so this is a perfectly good GUI app:
Qt Code:
#include <QtGui> int main(int argc, char **argv){ return app.exec(); }To copy to clipboard, switch view to plain text mode
But even if we talk about an app that has a GUI this is still possible - you can have an application that only has a system tray icon, I doubt that's considered a "top-level widget".
Besides, I think the OP wants to be able to check the availability of the GUI at an arbitrary moment so it might happen that he does it when no windows are present in the application (visible or not).
Bookmarks