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

    • 027168168cb94ed4521816dc98ffcae4268d555a

      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();
      }

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes