Unsolved QT3->QT4->QT5, 30 Day Eval QT4 uic3.exe output "QWidget: Cannot create a QWidget when no GUI is being used"
-
QT4.8.7: Uic3.exe deliver the message "QWidget: Cannot create a QWidget when no GUI is being used" independent of
parameter and without parameter too.I have a 30 day evaluation enterprise version. I need urgent a solution, to give a reason for using of QT5.
I tryed to debugg Uic3.exe, parhaps I have problem with 30 Day Evaluation? I habe 28 Days yet.
It is me suspect why te debugger spring under #ifdef QT_EVAL in the qt_gui_eval_init member of QApplication and crashes there with this error message.
For my uic3.exe is the console application (QApplication::Tty), this "#ifdef QT_EVAL qt_gui_eval_init" in QApplicationPrivate::construct is me suspect.
If I set the next statement under the define block, the application crashes with memory access violation.I have installed
and evaluate QT3, QT4.8.7 for VS2008 and QT5 for VS2013, VS2008 and VS2013 parallel to check the transfer
of the QT3 Project to QT5/VS2013. The QTDIR and PATH point to QT4 directories.
After the installation of QT5 and VS2013 (with the integration) I have this problem.
Before this installation uic3 worked correctly. I could convert my UI forms to QT4 format.
Now I have trouble to reverse the situation.
I need uic3 working.I checked
in dependency walker: uic3.exe depends of msvcp90.dll and msvcr90.dll. I placed
this too Dlls in the path. Perhaps there is some problem. -
Hi @Vladi1964, and welcome to the Qt Dev Net!
"QWidget: Cannot create a QWidget when no GUI is being used"
This means you forgot to create a
QApplication
object. You can only create QWidgets after you create a QApplication.I tryed to debugg Uic3.exe, parhaps I have problem with 30 Day Evaluation? I habe 28 Days yet.
I'm not familiar with the enterprise evaluation version. You can use the open-source version of Qt 4.8.7 so that you don't have to worry about the time limit: http://download.qt.io/official_releases/qt/4.8/4.8.7/
Similarly, you can get an open-source version of Qt 5: http://www.qt.io/download-open-source/
-
Hi
I get support by QT.
The patched Uic3.exe works correct after replacing of QApplication app(argc, argv, false) with QApplication app(argc, argv) in main.cpp.
Should by the same (false means no GUI), but:
In my configuration (Evaluation) uic3 tried to "create a QWidget when no GUI is being used".