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
Qt Code:
  1. QTabBar *tabbar=new QTabWidget(this);
  2. QPixmap image(":/images/abc.png");
  3. QIcon icon(image);
  4. tabbar->addTab(icon," ");
  5. QSize size(image.width(),image.height());
  6. tabbar->setIconSize(size);
To copy to clipboard, switch view to plain text mode 


How to do????