Theming

The Qt theme (known as Style in Qt terminology) can be adjusted similarly to GTK apps in the previous chapter. Before Qt 5, the current theme could be configured using a standard setup application but in Qt 5, the aim was to fit in with the current desktoptherefore, the application style will adapt to blend in. It's possible to override these settings on a per-application basis. As our application passes the command-line parameters in our QApplication constructor (widgets.NewQApplication(len(os.Args), os.Args)), we inherit some helpful options, such as -style=OtherStyle.

Another default parameter that can be very powerful for applications is -reverse. This option will tell all layouts to work in a right-to-left orientation instead of the default left to right:

GoMail with reversed layout
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.120.57