Remove handle on Dial?
Solved
QML and Qt Quick
-
Hi,
I am using a background image on a Dial from Controls 2 and now want to remove the Dial's handle.
Dial { id: dial width: 100 height: 100 background: Image { anchors.centerIn: parent width: parent.width height: parent.height source: "qrc:/dial.png" rotation: dial.angle fillMode: Image.PreserveAspectFit } handle: Rectangle { visible: false } }
However, the handle does not disappear. Does anyone know how I can get rid of the handle?
Even the example on https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#customizing-dial seems to only hide the default handle, which I realised only because it displaces the new handle due to errors in the code. :DDid anyone succeed in removing the handle?
Regards
-
Apparently this is a bug in Qt 5.7 which will be fixed for 5.7.1.
https://codereview.qt-project.org/#/c/170457/