QWidget / QApplication
-
wrote on 10 Dec 2017, 16:24 last edited by
-
Hi
It means you have a global Qwidget outside main / as global variable.
Or you do not have a main that creates a QApplication object.show some code that says this :)
-
Hi
It means you have a global Qwidget outside main / as global variable.
Or you do not have a main that creates a QApplication object.show some code that says this :)
-
there is a something weird !! when i run with release mode it works but not with debug mode
@krichen30 You may also get this error if you're mixing debug and release libraries on Windows.
-
@krichen30 You may also get this error if you're mixing debug and release libraries on Windows.
-
@krichen30 At first I would try a clean rebuild.
-
Hi
it doesn't look like you have any global widgets just a normal mainwindow.
So yeah, try as @aha_1980 suggest and completely wipe the
build folder. -
wrote on 10 Dec 2017, 17:20 last edited by
i delete the folder debug and i redebug it but nothing change same error ...
-
@krichen30
Hi
You only have the Satistique class ?
and no other files?Does it say this when running from creator ?
-
@krichen30
Hi
You only have the Satistique class ?
and no other files?Does it say this when running from creator ?
-
wrote on 10 Dec 2017, 20:50 last edited by
do you have solution please !!!
-
@krichen30
Nope. If you dont have any global QWidgets/QObject before main is run, i
have no idea. -
wrote on 10 Dec 2017, 20:58 last edited by
Perhaps a QSqlDatabase? If there's a static instance, it will also cause this error.
-
@hskoglund
Very good guess since he as SQL classes. -
wrote on 10 Dec 2017, 21:10 last edited by
@hskoglund what is the relation between QSqlDatabase and QWidget ?
-
@hskoglund what is the relation between QSqlDatabase and QWidget ?
Lifetime Qt Championwrote on 10 Dec 2017, 21:17 last edited by mrjj 12 Oct 2017, 21:38@krichen30
But do you have a static QSqlDatabase ?
1/16