I want to do statusbar with any visual separator such as frame or horizontal line, but I don't know how to do this..
I try this:
QHBoxLayout *mainLayout = new QHBoxLayout;
mainLayout->addWidget(label1);
mainLayout->addWidget(label2);
bar = statusbar()->setLayout(mainLayout);

but this don't work