Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-62980

Slider in RTL locale environment acts wrongly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.9.1
    • Quick: Controls 1
    • None
    • ArchLinux 64bit
      Qt 5.9.1
      Plasma KDE 5.10.5
      Arabic (Bahrain) enviroment

    Description

      The Slider widget acts very strangely in a RTL environment.
      Wrong color filling, dragging to left takes it to right, wrong handle positioning, wrong direction.
      I recorded the different issues in the attached video.
      Even in LTR enviroment, with mirroring applied, the slider direction is wrong.

      import QtQuick 2.7
      import QtQuick.Controls 1.2
      import QtQuick.Layouts 1.3
      ApplicationWindow {
          minimumWidth: 400
          minimumHeight: 100
          //LayoutMirroring.enabled: true
          LayoutMirroring.childrenInherit: true
          RowLayout {
              anchors.fill: parent
              Label {text: "Min."}
              Slider {
                  Layout.fillWidth: true
                  value: 0.3
                  onValueChanged: console.log(value)
              }
              Label {text: "Max."}
          }
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            safa alfulaij Safa Alfulaij
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes