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. How to add tick marks in QML Slider
Forum Updated to NodeBB v4.3 + New Features

How to add tick marks in QML Slider

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 1.3k 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.
  • P Offline
    P Offline
    Prasoon P
    wrote on 20 Mar 2023, 07:07 last edited by
    #1

    In Qt 5, there was an option to add tick marks for QML slider (tickmarksEnabled). Also , SliderStyle option to customize the tick mark.

    In Qt 6, both the options is not available. How to achieve tick mark and custom labeling to to tick mark in qt 6?

    1 Reply Last reply
    0
    • H Offline
      H Offline
      HaroldBarrel
      wrote on 17 Apr 2023, 09:24 last edited by
      #2

      I have the same problem!

      @Prasoon-P said in How to add tick marks in QML Slider:

      In Qt 5, there was an option to add tick marks for QML slider (tickmarksEnabled). Also , SliderStyle option to customize the tick mark.

      In Qt 6, both the options is not available. How to achieve tick mark and custom labeling to to tick mark in qt 6?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Markkyboy
        wrote on 17 Apr 2023, 09:40 last edited by
        #3

        Maybe this helps......https://stackoverflow.com/questions/75830710/create-slider-tickmarks-in-qt6

        Don't just sit there standing around, pick up a shovel and sweep up!

        I live by the sea, not in it.

        1 Reply Last reply
        0
        • H Offline
          H Offline
          HaroldBarrel
          wrote on 17 Apr 2023, 11:22 last edited by
          #4

          Setting the ticks as part of the background feels a bit like a dirty trick... This is definitively a step backwards compared to what we had in Qt 5.15.

          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