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

stylesheet QSlider with QPushButtons

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 491 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.
  • D Offline
    D Offline
    Daniil S.
    wrote on last edited by Daniil S.
    #1

    Hi all. Сan someone tell me, it is possible to make a QSlider with QPushButtons like on pic?
    c35cb4ae-464d-49d9-a34b-95cb6c2c7bc1-image.png

    I know how to make the handle round, the question is about min/max values, i need the handle to overlap the buttons at min/max values like in the first slider in the image

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      From the looks of it, you should rather handle the painting and click related events in a subclass directly.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        From the looks of it, you should rather handle the painting and click related events in a subclass directly.

        D Offline
        D Offline
        Daniil S.
        wrote on last edited by
        #3

        @SGaist
        ok thanks, its bad) don't want write subclass

        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