I am not seeing any options within the Qt Designer to make a vertical bar appear so that it is clear that it can be resized. How does one go about doing that?
Sam
I am not seeing any options within the Qt Designer to make a vertical bar appear so that it is clear that it can be resized. How does one go about doing that?
Sam
This depends on your style. Each style paints the handler in a different way. If you want to customize, then you have to subclass your style and use QStyle::CE_Splitter in QStyle::drawControl().
Lykurg,
Well, I don't rightfully know which style I am using. I am simply using the default and I am on Windows 7. Is there another style I could use that does indicate some how there is a splitter present? If so, how do I go about using it?
You can set a style via QApplication::setStyle(). Right now I also remember that you can do it easier with style sheets. See "Customizing QSplitter" in the docs. It is you can use.
Or You can also Use QStyle, without subclassing, and use something like this:
Qt Code:
width: 1px; } height: 10px; } image: url(:/resources/myQSpliterVImg.png); }To copy to clipboard, switch view to plain text mode
Edit. posted to late ...
Bookmarks