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

Russell Warren russ at perspexis.com
Tue Jul 26 17:54:14 BST 2016

Thanks for the recent 5.7 wheel release, especially the inclusion of
QtQuick stuff.

However, I'm trying a simple hello world application on linux x86_4 (debian
8) and it is hanging.

Python launcher is a minimal one:

#!/usr/bin/env python
import sys
from PyQt5 import QtGui, QtQml

app = QtGui.QGuiApplication(sys.argv)

engine = QtQml.QQmlApplicationEngine()


QML is the stock HelloWorld.qml:

import QtQuick 2.0

Rectangle {
    id: page
    width: 320; height: 480
    color: "lightgray"

    Text {
        id: helloText
        text: "Hello world!"
        y: 30
        anchors.horizontalCenter: page.horizontalCenter
        font.pointSize: 24; font.bold: true

When executed it just hangs in the Qt event loop (app.exec_()) without
displaying anything.

Here's an strace of it:

That strace was clipped since the polling just goes on forever.

Any ideas what is preventing display?  OpenGL is working elsewhere (eg:
glxgears runs fine).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160726/8040f26b/attachment.html>

More information about the PyQt mailing list