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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.5.0 Alpha
    • 5.3.2
    • Quick: Controls 1
    • None
    • 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

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

        Activity

          People

            carochao Caroline Chao (Inactive)
            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