View Full Version : I dont see any linewidth on a splitter ...
tonnot
31st March 2011, 17:59
I'd want to see a wider selector on the splitter.
It can be possible?
Thanks
JohannesMunk
31st March 2011, 18:12
Have you tried setHandleWidth() ?
http://doc.trolltech.com/latest/qsplitter.html#handleWidth-prop
Joh
tonnot
31st March 2011, 19:22
I keep on without view something, and I have played with all properties but without success.
Any idea ?
JohannesMunk
31st March 2011, 21:06
Well that's the default style on your operating system. But you can override that for the splitter with setStyle().
#include <QtCore>
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QMainWindow mw;
QSplitter* s = new QSplitter();
s->setStyle(new QPlastiqueStyle());
s->addWidget(new QTextEdit());
s->addWidget(new QTextEdit());
mw.setCentralWidget(s);
mw.show();
return a.exec();
}
Joh
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.