Paladin12
4th February 2009, 17:24
Hi,
I want to have window separators in my application to have a thickness of 1px, like in Qt-Creator. I'm trying to use stylesheets rather than make my own style just for this one feature. I'm trying the following:
QMainWindow::separator
{
border-color: rgb(0, 0, 0);
color: rgb(0, 0, 0);
width: 1px;
border-width: 1px;
border-style: solid;
}
Which gives the separator a solid, 1px thick border but the separator itself is still much greater than 1px thick.
I found this bug report:
http://www.qtsoftware.com/developer/task-tracker/index_html?method=entry&id=227071
Which suggests it's not really a priority. Is the only way to do this by making my own style? I hope not...
Cheers, J
I want to have window separators in my application to have a thickness of 1px, like in Qt-Creator. I'm trying to use stylesheets rather than make my own style just for this one feature. I'm trying the following:
QMainWindow::separator
{
border-color: rgb(0, 0, 0);
color: rgb(0, 0, 0);
width: 1px;
border-width: 1px;
border-style: solid;
}
Which gives the separator a solid, 1px thick border but the separator itself is still much greater than 1px thick.
I found this bug report:
http://www.qtsoftware.com/developer/task-tracker/index_html?method=entry&id=227071
Which suggests it's not really a priority. Is the only way to do this by making my own style? I hope not...
Cheers, J