How can I create tab "+" like in firefox ?
plusff.png

I write something like this, but it looks different than in firefox

.cpp
Qt Code:
  1. TabManager::TabManager(QWidget *parent) : QTabWidget(parent)
  2. {
  3. tab = tabBar();
  4. ...
  5. this->addTab(new QWidget(), QIcon("plus.png"), "");
  6. ...
  7. }
To copy to clipboard, switch view to plain text mode 

.h
Qt Code:
  1. class TabManager : public QTabWidget
  2. {
  3. Q_OBJECT
  4. public:
  5. TabManager(QWidget *);
  6.  
  7. private:
  8. QTabBar *tab;
To copy to clipboard, switch view to plain text mode 

result is:

plus.png

so question is - do I need to change paint event for QTabWidget or QTabBar ?
or maybe there is another way to do that ?