You can't add your own style selectors to widgets. You can try to address QDialog:hover or MyDialog:hover but make sure first the widget receives hover events at all. But if the :hover state is not handled by QDialog, there is nothing you can do.
You can't add your own style selectors to widgets. You can try to address QDialog:hover or MyDialog:hover but make sure first the widget receives hover events at all. But if the :hover state is not handled by QDialog, there is nothing you can do.
Probably I can't. But I've already added ability to be stylable with
"border-image" and "border-width" qss properties, which are not allowed for QDialogs according to the docummentation. All I need to do was:
Qt Code:
{ QStyleOptionFrame opt; opt.init(this); }To copy to clipboard, switch view to plain text mode
So, I'll try to continue experiments just in case if solution is not harder than code above. Probably deep investigation of QDockWidget internals will help.
It's your time, not mine. If you want to waste it - go ahead. The above works because you ask the style to draw the primitive for you. If you'd like :title to work, you'd have to again ask the style to draw the respective primitive for you and so your title would look like QDockWidget's which is probably not what you want, especially that the title is not drawn by some widget styles at all.
Bookmarks