I want to put tab-bar at the bottom of the qtabwidget, and I'm trying to do it with this code:

Qt Code:
  1. QTabWidget::tab-bar {
  2. position: absolute;
  3. subcontrol-origin: margin;
  4. subcontrol-position: center bottom;
  5. }
To copy to clipboard, switch view to plain text mode 

but it won't work.
Where is the error?

P.S: I know that this is possible to be done with .setTabPosition, but I want to do it with qss