Author Topic: [Wiki] How-to make Qt (5) app's use your GTK+ theme & font settings:  (Read 1251 times)

0 Members and 1 Guest are viewing this topic.

Offline handy

  • Global Moderator
  • *****
  • Posts: 5738
  • Desktop: Openbox 3.6.1-3 & Worker :)
  • GPU Card: intel...
  • GPU driver: open-source
  • Kernel: OpenBSD
  • Skill: Intermediate
Here's a wiki page that shows how to sort out the question of how to make Qt (5), app's use your GTK+ DE/WM's settings.

Please post any problems re. this topic here in this thread?
___________________________________________


I thought I'd take a look at pkgbrowser, which looks to be a Qt 5, based app'. The first problem that I strike is that the fonts are minuscule on my 1080p monitor.

I have LXappearance, QTconfig-qt4 & of course Openbox Configuration Manager, on my machine. What do I need to be able to modify the look (particularly the font size) of Qt 5, based packages?

Does such a tool exist yet (at least for those running on GTK+ based GUI's)?

Thanks.

The wiki shows you how to create a one line of code text file in the right place. :) (thanks for the info' Rob)
« Last Edit: 12. December 2015, 22:39:09 by handy »
The ultimate tyranny in a society is not control
by martial law. It is control by the psychological
manipulation of consciousness, through which reality
is defined so that those who exist within do not even
realize that they are in prison.
  —  Barbara Marciniak

Offline Rob

  • Core Team
  • *****
  • Posts: 5390
  • Alias: Korrode
  • Branch: Unstable
  • Desktop: Xfce+Compiz
  • GPU Card: nVidia GTX560Ti
  • GPU driver: non-free
  • Kernel: linux314 x64
  • Skill: Advanced
Re: Modify the size of qt5 fonts when using GTK+ (openbox) WM/DEs?
« Reply #1 on: 12. December 2015, 00:54:16 »
I don't know of a direct LXappearance equivalent for Qt5, but try exporting environment variable:

QT_STYLE_OVERRIDE=GTK+

Should make Qt5 use GTK's style.

Offline handy

  • Global Moderator
  • *****
  • Posts: 5738
  • Desktop: Openbox 3.6.1-3 & Worker :)
  • GPU Card: intel...
  • GPU driver: open-source
  • Kernel: OpenBSD
  • Skill: Intermediate
Re: Modify the size of qt5 fonts when using GTK+ (openbox) WM/DEs?
« Reply #2 on: 12. December 2015, 01:36:28 »
I tried that command prior to calling pkgbrowser from the terminal. It had no effect.

Where do I put that line so that it is always in use on my system (so I can test it)?

I'm on openrc for all that may matter.

[edit:] Obviously I sorted out how you use it. :)
« Last Edit: 12. December 2015, 12:37:01 by handy »
The ultimate tyranny in a society is not control
by martial law. It is control by the psychological
manipulation of consciousness, through which reality
is defined so that those who exist within do not even
realize that they are in prison.
  —  Barbara Marciniak

Offline handy

  • Global Moderator
  • *****
  • Posts: 5738
  • Desktop: Openbox 3.6.1-3 & Worker :)
  • GPU Card: intel...
  • GPU driver: open-source
  • Kernel: OpenBSD
  • Skill: Intermediate
Re: Modify the size of qt5 fonts when using GTK+ (openbox) WM/DEs?
« Reply #3 on: 12. December 2015, 01:39:41 »
Rob, disregard my previous post, I tested again & it DID work. :)

I should add an extremely brief tutorial to the Tutorials section on this, as I expect that there are many people who would benefit from it. :D

Thanks.

[edit:] Wiki link in OP.
« Last Edit: 12. December 2015, 12:39:14 by handy »
The ultimate tyranny in a society is not control
by martial law. It is control by the psychological
manipulation of consciousness, through which reality
is defined so that those who exist within do not even
realize that they are in prison.
  —  Barbara Marciniak

Offline handy

  • Global Moderator
  • *****
  • Posts: 5738
  • Desktop: Openbox 3.6.1-3 & Worker :)
  • GPU Card: intel...
  • GPU driver: open-source
  • Kernel: OpenBSD
  • Skill: Intermediate
Re: [Wiki] How-to make Qt (5) app's use your GTK+ theme & font settings:
« Reply #4 on: 12. December 2015, 12:41:09 »
Cleaned up the little wiki page, found/fixed a typo in the file name too!  :-[
The ultimate tyranny in a society is not control
by martial law. It is control by the psychological
manipulation of consciousness, through which reality
is defined so that those who exist within do not even
realize that they are in prison.
  —  Barbara Marciniak