When using AGuiApplication instead of QApplication, you just need to connect signal to slot, that's simple But...
Normally simple, created by QtCreator applications starts with main function like
int main(int argc, char *argv[])
{
MainWindow w;
w.show();
return a.exec();
}
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
I can not simply change QApplication to QGuiApplication because
QWidget: Cannot create a QWidget without QApplication
To copy to clipboard, switch view to plain text mode
So I need to have a QApplication object to run my application, and while I'm using it, I can't create a QGuiApplication object... So it can not by solved using simple signal to slot connection.
Bookmarks