Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
5.1.0 Beta 1, 5.4.1, 5.12
-
Ubuntu 12.04 64-bit
OS X 10.9.5
Description
When setting Qt::RightToLeft on a QComboBox, the items are displayed left to right when dropped down.
#include <QApplication> #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) #include <QtWidgets> #else #include <QtGui> #endif int main(int argc, char *argv[]) { QApplication app(argc, argv); QMainWindow mainWindow; QComboBox comboBox(&mainWindow); comboBox.setLayoutDirection(Qt::RightToLeft); comboBox.addItem("Test1"); comboBox.addItem("Test2"); comboBox.addItem("Test3"); comboBox.addItem("Test4"); mainWindow.show(); return app.exec(); }
This worked in Qt 4.8 as shown in the attached screenshots. Works fine on Windows 7.
Attachments
Issue Links
- replaces
-
QTBUG-22389 ComboBox doesn't show complete persian words (probably all Right To Left languages)
-
- Closed
-