Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT3->QT4->QT5, 30 Day Eval QT4 uic3.exe output "QWidget: Cannot create a QWidget when no GUI is being used"
Forum Updated to NodeBB v4.3 + New Features

QT3->QT4->QT5, 30 Day Eval QT4 uic3.exe output "QWidget: Cannot create a QWidget when no GUI is being used"

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 920 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vladi1964
    wrote on last edited by
    #1

    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.

    JKSHJ 1 Reply Last reply
    0
    • V Vladi1964

      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.

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      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/

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • V Offline
        V Offline
        Vladi1964
        wrote on last edited by
        #3

        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".

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved