-
Notifications
You must be signed in to change notification settings - Fork 347
[Qt5] Application Layout still LTR even if it's language is RTL #1557
Comments
You should place |
I think that this thing should be done automatically. I don't see |
We don't need to do this, because layout direction is set by Qt after loading
It's not part of QupZilla source code, but it's there in Windows installer, I'm not sure about Linux packages. Also always you can find it in Qt SDK or by googling. |
I've copied it and nothing changed. |
Are you sure it was loaded successfully? For example does
Yes |
This menu item is not available for Linux yet, It's a Qt5 problem.
I tried the Qt4 version and it got flipped. Maybe it's a problem with Qt5? |
Oh... you are right it's a Qt5 issue.
BTW, the following workaround works correctly: diff --git a/src/main/main.cpp b/src/main/main.cpp
index 070d42e..9939dbf 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -187,6 +187,7 @@ int main(int argc, char* argv[])
if (app.isClosing())
return 0;
+ app.setLayoutDirection(QApplication::tr("QT_LAYOUT_DIRECTION") == QLatin1String("RTL") ? Qt::RightToLeft : Qt::LeftToRight);
app.setProxyStyle(new ProxyStyle);
return app.exec();
|
@srazi Here's the screenshot: Qt-5.4. Without the patch Qz looks like the OP's screenshot. |
@pejakm Thanks for the test. |
UPDATE: BTW, Why don't you set the "document-start" and "document-end" translatable? Also, Why don't QupZilla loads this file? ftp://ftp.qt-project.org/qt/l10n/index.html |
If you mean
Please open another issue for this one. |
I mean in the settings dialog, Here:
The values are got from an another cpp file. |
That file is part of |
As in the screenshot, The UI doesn't reverse. I tried the -reverse option and it worked great.
The text was updated successfully, but these errors were encountered: