Qtabbar style doesn't load
-
hi i have a problem has a tabwidget on it
in my mainwindow i load a stylesheet from examples and demos named pcoffe.qss
it works fine but my Qtabbar of Qtabwidget doesn't have this style, how can i add qtabbar on my pcoffe.qss theme?i write it close to qpushbutton but it does'nt have any differences
i mean this
@QPushButton,QTabBar {
....
}@
and i wrote this program on macintosh
the tabbar showed on a center of qtabwidget i want to be in right position like windows
how can i set this? -
-
i use this code on my stylesheet and it works fine for me, but i have a bit problem i will showing you
@QTabWidget::tab-bar {
alignment : right;
background-color: beige;
}QTabWidget::pane {
border-width: 0px;
border-color: darkkhaki;
border-style: solid;
border-radius: 5;
padding: 3px;
min-width: 9ex;
min-height: 2.5ex;
}QTabBar::tab {
background: beige;
border: none;
padding: 0;
}QTabBar::pane {
border-width: 0px;
border-color: darkkhaki;
border-style: solid;
border-radius: 5;
padding: 3px;
min-width: 9ex;
min-height: 2.5ex;
}
@
!http://kitten2.persiangig.com/white-space.png(white space)!
see this picture it has a white space near my tabs i want to be a beige color , what should i write on my stylesheet file?
and you see my radio buttons on top of my tabs , i want to both of them to be on one row, can i do that?
because i think the qtabbar will fill all of the space in front of it?is it true?Edit: for some reason, images need an ALT text to show on this forum. Please fill it in next time; Andre
-
and i want to use this toturial for managing hover events, it does'nt work good for me
and whenever my mouse move to left of my tab (white space) it do my hover event ,
what should i do?
"this link":http://developer.qt.nokia.com/faq/answer/how_can_i_detect_hover_events_on_the_tabs_of_a_qtabwidget