hi all,
I want to set image on a tab of a tabbar .I want to create tab as the same size of image.
But size of tab i m creating is bigger than that of image........
I used the following code
tabbar->addTab(icon," ");
QSize size
(image.
width(),image.
height());
tabbar->setIconSize(size);
QTabBar *tabbar=new QTabWidget(this);
QPixmap image(":/images/abc.png");
QIcon icon(image);
tabbar->addTab(icon," ");
QSize size(image.width(),image.height());
tabbar->setIconSize(size);
To copy to clipboard, switch view to plain text mode
How to do????
Bookmarks