How can I create tab "+" like in firefox ?
plusff.png
I write something like this, but it looks different than in firefox
.cpp
{
tab = tabBar();
...
...
}
TabManager::TabManager(QWidget *parent) : QTabWidget(parent)
{
tab = tabBar();
...
this->addTab(new QWidget(), QIcon("plus.png"), "");
...
}
To copy to clipboard, switch view to plain text mode
.h
{
Q_OBJECT
public:
private:
class TabManager : public QTabWidget
{
Q_OBJECT
public:
TabManager(QWidget *);
private:
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 ?
Bookmarks