https://bugs.kde.org/show_bug.cgi?id=528552

            Bug ID: 528552
           Summary: RTL: Horizontal scrollbar in scroll area does not
                    track actual position
    Classification: Frameworks and Libraries
           Product: Union
      Version First unspecified
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: QtWidgets Output
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 198243
  --> https://bugs.kde.org/attachment.cgi?id=198243&action=edit
Reproducer

DESCRIPTION
When using Union's Widgets Style with a subclass of `QAbstractScrollArea` 
(e.g. a QTextEdit or any of the item views) that has RightToLeft layout
direction: the rendered scroll bar position is inverted from the actual logical
and visual scroll position. Additional when dragging the scrollbar right, the
position indicator actually moves left and vice versa; however the actual
scrolled content moves as expected.

This somehow does not seem to apply to free-standing QScrollBar widgets, only
those managed by a scroll area.

STEPS TO REPRODUCE
1. Use the attached reproducer program.
2. Use the --reverse command line argument or the "Toggle Direction" button to
place the program in RTL alignment.
3. Expand some items and resize columns until a horizontal scroll bar appears.
4. Scroll...

OBSERVED RESULT
As described. Note that initially the scroll bar indicator will appear all the
way to the left, even though the right edge of the tree view is showing.

EXPECTED RESULT
Should work as expected...

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.8.2
KDE Frameworks Version: Union from recent master (8194ce1)
Qt Version: 6.12.0

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to