That is: QWidget: before constructing a QApplication qpaintdevice
Solution: add the corresponding program in the main function, as follows
#include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); ... return a.exec(); }
Similar Posts:
- [Solved] pyqt5 ‘QWidget’ object has no attribute ‘setCentralWidget’
- Solving the problem of QT connecting MySQL database in Windows system: qmmysql driver not loaded
- QT use of undeclared identifier ‘cout’
- Qt undefined reference to `vtable for * * * ‘
- How to Solve Const variable assignment Error
- How to Solve Error: buuctf re [MRCTF2020]Xor
- C write and read file via FILE and open method in a+ or r mode
- Using SQLite to show undefined reference to ` SQLite3_ open’…
- qt *undefined reference to `vtable for xxx solution programme
- The whole program exits when [QT] qmessagebox is closed