Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Custom "Slider"
Qt 6.11 is out! See what's new in the release blog

Custom "Slider"

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 335 Views 1 Watching
  • 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.
  • Q Offline
    Q Offline
    qt.1234
    wrote on last edited by
    #1

    Hello all, I am trying to implement a slider that is similar to the iphone turn off button shown in this link.

    Following the QT tutorial (draggable icons), I added two labels to a QWidget. One label is for the circle off button while the other label is for the text. I am also able to drag the circle off button across the widget but i am unable to fix the Y axis. Hence the button looks like it is floating. Is there a way to fix the y axis so that the drag or drop event doesnt alter the y axis position?

    C 1 Reply Last reply
    0
    • Q qt.1234

      Hello all, I am trying to implement a slider that is similar to the iphone turn off button shown in this link.

      Following the QT tutorial (draggable icons), I added two labels to a QWidget. One label is for the circle off button while the other label is for the text. I am also able to drag the circle off button across the widget but i am unable to fix the Y axis. Hence the button looks like it is floating. Is there a way to fix the y axis so that the drag or drop event doesnt alter the y axis position?

      C Offline
      C Offline
      CPPUIX
      wrote on last edited by
      #2

      @qt-1234 Could you share the code you're using to drag the "Off button" label and any code related to it?

      And show us exactly how it goes off your desired Y-Axis, take a screenshot or a GIF if possible.

      1 Reply Last reply
      0

      • Login

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