Question

Screep-shot link: http://qt-apps.org/CONTENT/content-pre1/119860-1.png

I would like to customize the look of scrollbar handle and QSplitter handle like the screen shot link above. I know it can be done from stylesheet. However I have no idea how to achieve this. Holp someone can share a small example. Thanks!

Was it helpful?

Solution

That's not a style sheet, that's a QPlastiqueStyle.

setStyle(new QPlastiqueStyle);

OTHER TIPS

If you just want to customize the splitters instead of changing the whole style:

qApp->setStyleSheet(
    "QSplitter::handle:vertical   {height: 6px; image: url(images/vsplitter.png);}"
    "QSplitter::handle:horizontal {width:  6px; image: url(images/hsplitter.png);}"
    );
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top