Unsolved QWidget / QApplication
-
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.
-
@aha_1980 how can i fix it ?
-
@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. -
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 ?
-
@mrjj i have another files but not include in this statistique class
-
do you have solution please !!!
-
@krichen30
Nope. If you dont have any global QWidgets/QObject before main is run, i
have no idea. -
Perhaps a QSqlDatabase? If there's a static instance, it will also cause this error.
-
@hskoglund
Very good guess since he as SQL classes. -
@hskoglund what is the relation between QSqlDatabase and QWidget ?
-
@krichen30
But do you have a static QSqlDatabase ?