is there any way to set the width and color of each separator in QToolBar?
toolBar -> setStyleSheet("QToolBar::separator { background-color: red; width: 30; height: 30px; }");
toolBar -> setStyleSheet("QToolBar::separator { background-color: red; width: 30; height: 30px; }");
To copy to clipboard, switch view to plain text mode
e.g the code above can only set general seperator property.
Ive read some posts with possibly assigning an object name but failed.
QAction* separator1
= toolBar
->addSeparator
();
separator1->setObjectName("separator1");
toolBar -> setStyleSheet("QToolBar::separator#separator1 { background-color: red; width: 30; height: 30px; }");
QAction* separator1 = toolBar->addSeparator();
separator1->setObjectName("separator1");
toolBar -> setStyleSheet("QToolBar::separator#separator1 { background-color: red; width: 30; height: 30px; }");
To copy to clipboard, switch view to plain text mode
it has no effect though...
Bookmarks