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. Vertical Sliders have incorrect tick marks
Forum Updated to NodeBB v4.3 + New Features

Vertical Sliders have incorrect tick marks

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 757 Views 2 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.
  • X Offline
    X Offline
    xargs1
    wrote on last edited by
    #1

    Vertical sliders don't appear to render their tick marks correctly. The below code has 11 ticks for the horizontal slider and six for the vertical.

    import QtQuick 2.4
    import QtQuick.Controls 1.3
    
    ApplicationWindow {
        width: 640
        height: 480
        visible: true
    
        Slider {
            x:100; y: 100
            height: 30
            width: 200
            stepSize: 10
            minimumValue: 0
            maximumValue: 100
            tickmarksEnabled: true
            orientation: Qt.Horizontal
        }
    
        Slider {
            x:100; y: 200
            height: 200
            width: 30
            stepSize: 10
            minimumValue: 0
            maximumValue: 100
            tickmarksEnabled: true
            orientation: Qt.Vertical
        }
    }
    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by andreyc
      #2

      Looks like you have found a bug in the Slider implementation.
      If you change a width for the vertical slider to 50 or more then you will see all 10 ticks.
      I would suggest to open a bug on https://bugreports.qt.io/

      If you will open bug then please post a link from bugreports here.

      1 Reply Last reply
      0
      • X Offline
        X Offline
        xargs1
        wrote on last edited by
        #3

        Bug report: https://bugreports.qt.io/browse/QTBUG-45007

        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