Scroll Bar diretion for RTL languarges
-
Hallo,
i am using Qt Widgets. They have scrollbars and it works fine as long as the languarge is right to left.
Now i got a report from an arabic user. The whole interface is set to Left to Right of course.
But he complains, that the scroll bars work incorrect.
His exact report is:
"the buttons of the horizontal scroll bar are reversed, when you click on the right direction button the content scrolls to the left, and vice versa. here is a link to a scren recordhttps://drive.google.com/file/d/1HSC5Lv1QVv2GpLoToqEMUzxFe5uHD0d2/view?usp=drivesdk
"Anyone here with an idea how i can fix that? Or is it a Qt bug?
Thank you very much for your help.
-
Hallo,
i am using Qt Widgets. They have scrollbars and it works fine as long as the languarge is right to left.
Now i got a report from an arabic user. The whole interface is set to Left to Right of course.
But he complains, that the scroll bars work incorrect.
His exact report is:
"the buttons of the horizontal scroll bar are reversed, when you click on the right direction button the content scrolls to the left, and vice versa. here is a link to a scren recordhttps://drive.google.com/file/d/1HSC5Lv1QVv2GpLoToqEMUzxFe5uHD0d2/view?usp=drivesdk
"Anyone here with an idea how i can fix that? Or is it a Qt bug?
Thank you very much for your help.
@Volker-D said in Scroll Bar diretion for RTL languarges:
Anyone here with an idea how i can fix that? Or is it a Qt bug?
First you should start with a minimal, compilable example and then what exact Qt version you're using. Then you can also search the bug reports for such a problem.
-
Thank you. It happen with every QTableWidget.
I didn't have done special stuff. Only adding items and setting the QApllication to RTL.
I didn't modify the scoll bars. It is all default. I am using Qt 6.5. In fact the problem looks like the icons of the scrool bar are swaped, but i didn't swaped them. Looks like they are swapped by QApllication RTL, but of course that is needed, since all other stuff must be changed from LTR to RTL, but of course not the icons of the Qt Scrool bars.
hmm... -
Thank you. It happen with every QTableWidget.
I didn't have done special stuff. Only adding items and setting the QApllication to RTL.
I didn't modify the scoll bars. It is all default. I am using Qt 6.5. In fact the problem looks like the icons of the scrool bar are swaped, but i didn't swaped them. Looks like they are swapped by QApllication RTL, but of course that is needed, since all other stuff must be changed from LTR to RTL, but of course not the icons of the Qt Scrool bars.
hmm...This looks like a problem with the windowsvista style. Works fine for fusion or windows. Need to take a look into it.
Can't test it with latest Qt5 though to see if it's a regression. -
This looks like a problem with the windowsvista style. Works fine for fusion or windows. Need to take a look into it.
Can't test it with latest Qt5 though to see if it's a regression.Can you test it with Qt6.4 somehow? I'm pretty sure it's working correctly there.
-
ahh... Yes. You are right. This bug happen only with default windowsvista style. Fusion style and windows style are fine.
I also checked Qt 5.15.10. It is fine there always!So it is a Qt bug. I will check Qt 6.4 later. I must do other stuff now.
So i should write a bug report, didn't I?
-
ahh... Yes. You are right. This bug happen only with default windowsvista style. Fusion style and windows style are fine.
I also checked Qt 5.15.10. It is fine there always!So it is a Qt bug. I will check Qt 6.4 later. I must do other stuff now.
So i should write a bug report, didn't I?
@Volker-D said in Scroll Bar diretion for RTL languarges:
So i should write a bug report, didn't I?
No need for it: https://bugreports.qt.io/browse/QTBUG-116224
If you compile Qt by yourself you can also try my fix shortly.
-
You are right. The bug isn't present in Qt 6.4.3.
You are awesome! I saw you already added a patch. Fixing a bug in a few minutes on a Saturday. You are genius.
Thank you!
I won't compile Qt myself. So i will wait for the next Qt release. Not critical, since i told the arabic user the swap to fusion or windows mode (we luckly added that feature already some time ago.)hmm... Are you so genius and can you also fix an other problem that the arabic users complains about?
It is this old bug (I reported it alread +10 years ago). Sadly still available in Qt 6.5.2:
https://bugreports.qt.io/browse/QTBUG-25186 -
You are right. The bug isn't present in Qt 6.4.3.
You are awesome! I saw you already added a patch. Fixing a bug in a few minutes on a Saturday. You are genius.
Thank you!
I won't compile Qt myself. So i will wait for the next Qt release. Not critical, since i told the arabic user the swap to fusion or windows mode (we luckly added that feature already some time ago.)hmm... Are you so genius and can you also fix an other problem that the arabic users complains about?
It is this old bug (I reported it alread +10 years ago). Sadly still available in Qt 6.5.2:
https://bugreports.qt.io/browse/QTBUG-25186@Volker-D said in Scroll Bar diretion for RTL languarges:
Thank you!
It was pure luck this time - the reason was easy to find :)
I'll take a look into the other one if I find some time.
-