Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Remove handle on Dial?
Forum Updated to NodeBB v4.3 + New Features

Remove handle on Dial?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 684 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • deleted71D Offline
    deleted71D Offline
    deleted71
    wrote on last edited by
    #1

    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. :D

    Did anyone succeed in removing the handle?

    Regards

    1 Reply Last reply
    0
    • deleted71D Offline
      deleted71D Offline
      deleted71
      wrote on last edited by
      #2

      Apparently this is a bug in Qt 5.7 which will be fixed for 5.7.1.
      https://codereview.qt-project.org/#/c/170457/

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved