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

    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jing Jing Bai
              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