Qt styling of line width does not work on a Windows Server 2016 machine

Discussion about recent product features & solutions!
7 posts • Page 1 of 1
fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Qt styling of line width does not work on a Windows Server 2016 machine

Post by fmulder »

We're using a Qt stylesheet because our customer wants to have a tab with a line width of 2 pixels.
This works perfectly fine on our Windows 7 laptops but unfortunately, the line width stays 1 pixels on a Windows Server 2016 machine ?

Code: Select all

QTabWidget[type = "RWSKADER"]::pane {
    border: 2px solid black;
    background-color: #dcdcdc;
    margin-top: -2px;
}
Does anyone know why our styling would not work on a Windows Server 2016 ??
I always thought that Qt was doing all the drawing by itself but apparently the OS somehow still has some influence

Hope that someone can help

share the fun
Frenk Mulder

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Qt styling of line width does not work on a Windows Server 2016 machine

Post by mkoller »

I assume it depends on the widget style the UI uses by default.
Try to run the UI explicitely with -style fusion or -style windows and see if it changes

fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Re: Qt styling of line width does not work on a Windows Server 2016 machine

Post by fmulder »

Martin,

I tried both the style '-style windows' and '-style fusion'. I see the Gedi changing slightly, but see no differences in the line width of my tabs.

any more ideas.

share the fun
Frenk Mulder

Andorhal
Posts:127
Joined: Wed Nov 12, 2014 8:04 am

Re: Qt styling of line width does not work on a Windows Server 2016 machine

Post by Andorhal »

Hi Frenk.

Just guessing:
Have you activated the desktop experience or used the respective install option?
See here for some hints

Best regards,
Robert

fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Re: Qt styling of line width does not work on a Windows Server 2016 machine

Post by fmulder »

Please note. This is server 2016 (and not 2008).
Your link shows how to add graphics to a Server 2008.
We have nice graphics and we have and can select themes (like Windows 7)

Graphics look ok, but tab wont use the stylesheet line width

share the fun
Frenk Mulder

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Qt styling of line width does not work on a Windows Server 2016 machine

Post by mkoller »

Try setting "documentMode = true" for the tab widget via script.

fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Re: Qt styling of line width does not work on a Windows Server 2016 machine

Post by fmulder »

That gave us a tabcontrol without any(!) lines

Frenk

7 posts • Page 1 of 1