Unsolved Changing color of window qt caption
-
Hi,
Is it possible to change the color of window qt caption??
I mean the blue color at the top of the GUI..
I use qt 5.5 , windows 7.Regards
vidisha -
@vidisha Do you mean the title bar of the window? I don't think you can do it using Qt.
-
@vidisha How the title bar is managed/painted comes directly from the OS-you're using. SO there is no predefined Qt-Way to change that.
But, I blieve you can simply set the
Qt::FramelessWindowHint
flag and substitute the predefined 'topbar' with a custom widget.
Or look into your OS-documentation and search for the way to change the native event via external (cpp) event :) -
@jsulm
i marked with red color arrow about what i'm asking..
In the screen shot the first Gui is an example one & behind it is mine Gui,
& i want to change the color of title bar where minimize & close options are there.Thanks
Vidisha -
@vidisha Sorry, but image sharing is usually not working in this forum - I cannot see any screen-shots. You can upload the screen-shots to an image sharing service and paste the link here.
-
use https://postimg.cc/
http://imgur.com/upload to upload the image and provide the link to the users.Thanks,
-
@jsulm Hi,
I don't know what it is eaxctly called.. but where the options like minimize is there, i mean that.. -
http://imgur.com/a/AV5LD
Please find the attached image. -
-
@vidisha What you want to do is not covered by Qt - you will need to use native API.