[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Simple qml app hanging with PyQt5.7 x86_64 wheel on linux
From: Russell Warren <russ () perspexis ! com>
Date: 2016-07-27 2:33:44
Message-ID: CAD91c16ry3wvwS3ZM+mcrMzV2RE1kxAJobpdabBk2NsMQPXPyg () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
>
> 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!"
}
}
}
[Attachment #5 (text/html)]
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5"><span \
style="color:rgb(34,34,34)">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.</span></div></div></blockquote><div><br></div><div>You are \
right. The problem was entirely mine. It was that using QQmlApplicationEngine needs \
a visible root Window in the qml.</div><div><br></div><div>fwiw, this works fine with \
that launcher:</div><div><br></div><div><div><font face="monospace, monospace" \
color="#0000ff">import QtQuick 2.3</font></div><div><font face="monospace, monospace" \
color="#0000ff">import QtQuick.Window 2.2</font></div><div><font face="monospace, \
monospace" color="#0000ff"><br></font></div><div><font face="monospace, monospace" \
color="#0000ff">Window {</font></div><div><font face="monospace, monospace" \
color="#0000ff"> visible: true</font></div><div><font face="monospace, \
monospace" color="#0000ff"> Rectangle {</font></div><div><font face="monospace, \
monospace" color="#0000ff"> width: 200</font></div><div><font \
face="monospace, monospace" color="#0000ff"> height: \
100</font></div><div><font face="monospace, monospace" color="#0000ff"> \
color: "red"</font></div><div><font face="monospace, monospace" \
color="#0000ff"> Text {</font></div><div><font face="monospace, monospace" \
color="#0000ff"> anchors.centerIn: parent</font></div><div><font \
face="monospace, monospace" color="#0000ff"> text: "Hello, \
World!"</font></div><div><font face="monospace, monospace" color="#0000ff"> \
}</font></div><div><font face="monospace, monospace" color="#0000ff"> \
}</font></div><div><font face="monospace, monospace" \
color="#0000ff">}</font></div></div><div><br></div><div><br></div></div> </div></div>
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic