How do I realize mouse penetration of part of QuickWidget in QML?
-
Hi
WA_TransparentForMouseEvents is for whole widget.If you added more details to your question, then maybe you could get a solution using
MouseArea or similar. -
Hi
WA_TransparentForMouseEvents is for whole widget.If you added more details to your question, then maybe you could get a solution using
MouseArea or similar.@mrjj
Hi~that's another question...How do I read the width property of BorderImage in QML using QuickWidget form C++?
Rectangle { BorderImage { id:bI1 x:150; source: "3.png"; width: 200; height: 200; border.left: 35; border.top: 35; border.right: 35; border.bottom: 35; } BorderImage { id:bI2 x:400; source: "3.png"; width: 200; height: 200; border.left: 45; border.top: 45; border.right: 45; border.bottom: 45; } } -
@mrjj
Hi~that's another question...How do I read the width property of BorderImage in QML using QuickWidget form C++?
Rectangle { BorderImage { id:bI1 x:150; source: "3.png"; width: 200; height: 200; border.left: 35; border.top: 35; border.right: 35; border.bottom: 35; } BorderImage { id:bI2 x:400; source: "3.png"; width: 200; height: 200; border.left: 45; border.top: 45; border.right: 45; border.bottom: 45; } }@mirro
Hi
You can try to use
"Accessing Loaded QML Objects by Object Name"
https://doc.qt.io/qt-5/qtqml-cppintegration-interactqmlfromcpp.html -
@mirro
Hi
You can try to use
"Accessing Loaded QML Objects by Object Name"
https://doc.qt.io/qt-5/qtqml-cppintegration-interactqmlfromcpp.html