Hi All!
How to set the BORDER COLOR of QDialog.
When I use palette property of this it changes only the background; but I want to change the BORDER COLOR also .
What I do for this!
Hi All!
How to set the BORDER COLOR of QDialog.
When I use palette property of this it changes only the background; but I want to change the BORDER COLOR also .
What I do for this!
Anurag Shukla
A man who never makes mistake is the man who never does anything! Theodre Rosvelt!
If by border colour you mean the window decoration frame, they you can't do that in a simple way - it is not part of the application, but a part of the window manager (like KDE or GNOME).
You can get rid of the frame by using QWidget::setMask() or by removing all the decorations by setting the FramelessWindowHint before showing the window. Either way this will remove the frame, not change its colour.
That's what I said in the beginning![]()
You can't influence the frame colour using any toolkit. This is not Qt specific. The only way to fake it is to make your window frameless, then draw the titlebar and frame manually. Some windows apps tend to do this. That's usually a bad idea though, since users won't like your non-standard app, and you have to reimplement things like window movement and minimize/maximize/close buttons yourself. Lots of work for a minor cosmetic issue.
Bookmarks