[Qt-creator] Adjusting styles of QtCreator

Michael Jackson mike.jackson at bluequartz.net
Tue Jan 22 16:16:36 CET 2019


It has been a long time since I rummaged through the QtCreator code, code I get an assist and point be to where the Styles/Themes are either loaded or applied? Or the name of the subclass that scroll handles/widgets are? I just have a hard time believing that I have to completely change linux distributions or window managers just to get a different color scroll handles. We change the colors on our own application and those changes are reflected  in the application. QtCreator does it because when you change themes, you get different scroll handle colors. I just trying to track down which setting in the theme file actually effects those colors. Thank you to anyone that could help my old eyes out.

 

--

Mike Jackson 

 

From: Cristian Adam <cristian.adam at gmail.com>
Date: Monday, January 14, 2019 at 3:51 PM
To: Michael Jackson <mike.jackson at bluequartz.net>
Cc: qt-creator <qt-creator at qt-project.org>
Subject: Re: [Qt-creator] Adjusting styles of QtCreator

 

On Mon, Jan 14, 2019 at 9:08 PM Michael Jackson <mike.jackson at bluequartz.net> wrote:

Interesting that the only solutions that I have heard is basically to “change your entire desktop”. Clearly the scroll handles are being styled through the .theme file because changing themes will restyle the scroll handles/background. I was hoping for an easier answer such as “.. adjust the following key:value in the theme file”. I guess I have to load up an entirely new desktop environment. Seems a bit over-kill but since Linux is not my full time desktop I guess this is the norm?

 

 

You will need to have a build of Qt Creator against your distribution's Qt installation.

 

Ubuntu 16.04 LTS comes with Qt Creator 3.5.1 though, which is a bit dated. Building the latest Qt Creator on Ubuntu 16.04 doesn't help either, since it comes with Qt 5.5.1, which is too old.

 

If I think about it, the "easiest" way would be to compile a QStyle for the same version of Qt that Qt Creator uses, then using the "-style" command line parameter to enable it.

 

Cheers,

Cristian.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20190122/f4d97251/attachment.html>


More information about the Qt-creator mailing list