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 QSlider
Qt 6.11 is out! See what's new in the release blog

Custom QSlider

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 1.2k 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.
  • ivanicyI Offline
    ivanicyI Offline
    ivanicy
    wrote on last edited by
    #1

    Hello!!

    I want to use an on/off QSlider in my application. I am looking for examples but it's difficult to find it. Have you got any example of this?

    I want something like this...

    0_1515423548750_12ede114-e1b2-4544-a7a8-fdac37c199b1-imagen.png

    Thank you very much!!

    1 Reply Last reply
    0
    • Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @ivanicy what about this? it's based on QPushButton

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      ivanicyI 1 Reply Last reply
      0
      • Pablo J. RoginaP Pablo J. Rogina

        @ivanicy what about this? it's based on QPushButton

        ivanicyI Offline
        ivanicyI Offline
        ivanicy
        wrote on last edited by
        #3

        @Pablo-J.-Rogina It's based on a QSlider

        1 Reply Last reply
        0
        • ivanicyI Offline
          ivanicyI Offline
          ivanicy
          wrote on last edited by
          #4

          Finally, I found this one:

          https://stackoverflow.com/questions/14780517/toggle-switch-in-qt

          But, I accept others designs if you have!!

          1 Reply Last reply
          0
          • Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on last edited by
            #5

            @ivanicy maybe QSlider is not the best approach...

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            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