Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-28076

Cannot use QGuiApplication to create GUI app: Cannot create a QWidget when no GUI is being used

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.0.0 Beta 1, 5.0.0 Beta 2
    • Fix Version/s: 5.0.0 RC 1
    • Labels:
      None
    • Commits:
      027168168cb94ed4521816dc98ffcae4268d555a

      Description

      running the following test case gives error message: "QWidget: Cannot create a QWidget when no GUI is being used
      Aborted (core dumped)
      "
      But don't see the reason from the doc.

      #include <QGuiApplication>
      #include <QWidget>
      int main( int argc, char* argv[])
      {
      QGuiApplication a(argc,argv);
      QWidget w;
      w.show();
      return a.exec();
      }

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-28076
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              jing Jing Bai
              Reporter:
              jing Jing Bai
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes