redraw problem with qt quick 5.10 under Mojave (OSX 10.14)
-
I just did an update to 10.14, and after doing it, it seems that Qt Quick Controls 2 objects aren't redrawing when expected.
Changing the visibility of an object, for instance, doesn't make it appear and disappear. Interestingly, if I hide my application window behind another window and then bring it to the fore, the object will redraw correctly.
Any ideas why this would be happening?
I'm attaching a sample project that demonstrates the issue.
import QtQuick 2.10 import QtQuick.Window 2.2 import QtQuick.Controls 2.3 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") Button{ id:clickmeButton anchors.centerIn: parent text: "click me" onClicked:{ if (changingText.visible){ changingText.visible = false; } else{ changingText.visible = true; } } } Label{ id:changingText anchors{ horizontalCenter: parent.horizontalCenter top: clickmeButton.bottom topMargin: 25 } font.pixelSize: 48 text:"label" onVisibleChanged:{ console.log("visibility=",visible) } } }
-
Hi,
Can you test with a more recent version of Qt ? Qt 5.11 is the current release with 5.12 around the corner.
-
It appears to be fixed under 5.11
I haven't updated to 5.11 because that version drop support for a 32-bit web view, but now it looks as if my hand will be forced...
Thanks for the suggestion!
-
Do you mean you were building Qt yourself in 32bit mode ?
Because it's been years that 32bit support has been dropped by Apple.
-
@SGaist
I'm working on a cross-platform project, but doing development on a mac.On Mac, everything is happy, but on Windows, I wasn't able to move to 5.11 because the 32 bit version of WebView disappeared from Qt. I had other dependencies that kept me from switching to a 64 bit Windows build.
-
Which module are you using for your web view ?
-
Except that WebView can come from different modules: QtWebView and QtWebEngine, hence my question.
-
Ok, then IIRC, on platforms that don't provide a native web view, QtWebEngine is used, hence the inherited limitations on these platforms.