According to: http://doc.qt.nokia.com/4.6/stylesheet-reference.html
Warning:
To change the position of the
QTabBar within a
QTabWidget, use the tab
-bar subcontrol
(and set subcontrol
-position
).
See Customizing
QTabBar for an example.
Warning:
To change the position of the QTabBar within a QTabWidget, use the tab-bar subcontrol (and set subcontrol-position).
See Customizing QTabBar for an example.
To copy to clipboard, switch view to plain text mode
subcontrol-position*
The alignment of the subcontrol within the origin rectangle specified by subcontrol-origin.
If this property is not specified, it defaults to a value that depends on the subcontrol.
Example:
image: url(:/images/spindown.png);
subcontrol-origin: padding;
subcontrol-position: right bottom;
}
subcontrol-position*
The alignment of the subcontrol within the origin rectangle specified by subcontrol-origin.
If this property is not specified, it defaults to a value that depends on the subcontrol.
Example:
QSpinBox::down-button {
image: url(:/images/spindown.png);
subcontrol-origin: padding;
subcontrol-position: right bottom;
}
To copy to clipboard, switch view to plain text mode
Maybe this is a bug?
subcontrol-origin*
The origin rectangle of the subcontrol within the parent element.
If this property is not specified, the default is padding.
Example:
image: url(:/images/spinup.png);
subcontrol-origin: content;
subcontrol-position: right top;
}
subcontrol-origin*
The origin rectangle of the subcontrol within the parent element.
If this property is not specified, the default is padding.
Example:
QSpinBox::up-button {
image: url(:/images/spinup.png);
subcontrol-origin: content;
subcontrol-position: right top;
}
To copy to clipboard, switch view to plain text mode
Bookmarks