[PyQt] Simple qml app hanging with PyQt5.7 x86_64 wheel on linux

Russell Warren russ at perspexis.com
Wed Jul 27 03:33:44 BST 2016


>
> I don't think it has anything to with the wheels. It works fine if you use
> QQuickView. It would be interesting to see what a C++ version of the
> launcher would do.
>

You are right.  The problem was entirely mine. It was that using
QQmlApplicationEngine needs a visible root Window in the qml.

fwiw, this works fine with that launcher:

import QtQuick 2.3
import QtQuick.Window 2.2

Window {
    visible: true
    Rectangle {
        width: 200
        height: 100
        color: "red"
        Text {
            anchors.centerIn: parent
            text: "Hello, World!"
        }
    }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160726/a82563ed/attachment-0001.html>


More information about the PyQt mailing list