简体   繁体   中英

Right to left programming in PyQt5

I am going to create RTL window using PyQt5 but can't do it. How do I create right to left window using PyQt5?

Use the layout direction property of QWidget with setLayoutDirection and set it to QtCore.Qt.RightToLeft .

You can do so for the whole GUI application too using setLayoutDirection of the QGuiApplication .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM