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

The basic Qt Quick Controls example doesn't open the application window

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.3.2
    • Fix Version/s: 5.5.0 Alpha
    • Component/s: Quick: Controls 1
    • Labels:
      None
    • Environment:
      Debian testing, Qt 5.3.2 installed from Debian's package repository

      Description

      I tried the simple example at http://doc-snapshot.qt-project.org/qt5-5.3/qtquickcontrols-overview.html with no success. The example builds and runs without errors, but I expect the program to create a window, which doesn't happen. The program just sits there doing nothing (gdb shows that all threads are waiting in poll(), I'll attach the backtrace).

      My code is in three files: test.qml, test.cc and test.pro. Here's test.qml:

      import QtQuick.Controls 1.2
      
      ApplicationWindow {
              title: "My Application"
      
              Button {
                      text: "Push Me"
                      anchors.centerIn: parent
              }
      }
      

      test.cc:

      #include <QApplication>
      #include <QQmlApplicationEngine>
      
      int main(int argc, char *argv[]) {
              QApplication app(argc, argv);
              QQmlApplicationEngine engine("test.qml");
              return app.exec();
      }
      

      test.pro:

      CONFIG += \
              debug \
      
      QT += \
              qml \
              widgets \
      
      SOURCES += \
              test.cc \
      

        Attachments

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

          Activity

            People

            Assignee:
            carochao Caroline Chao (Inactive)
            Reporter:
            tanuk Tanu Kaskinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes