I am using a QWidget in which I would like to put some separator lines. As separator lines I am using this
QFrame *seperatorLine = new QFrame(_toolBar);
seperatorLine->setFrameStyle(QFrame::Sunken | QFrame::VLine);
I need several separator lines and I was curious whether I need to create a new QFrame
every time or whether there is a way to reuse one (or use a copy-constructor).
At the moment the line is only at the last position I added it to the QWidget
.