I'm trying to do something similar to what I demonstrate below...however the size hint is not correctly being shown:
Create a CenterTab class which will be used as the TopLeftCorner widget:
	
	{
QOBJECT
public:
 CenterTab(int width, int height);
protected:
private:
 int width;
 int height;
}
 
CenterTab::CenterTab(int width, int height)
{
  width = width;
  height = height;
}
 
QSize CenterTab
::sizeHint () const {
  return QSize(width, height
);
 }
        class CenterTab : public QWidget
{
QOBJECT
public:
 CenterTab(int width, int height);
protected:
 QSize sizeHint() const;
private:
 int width;
 int height;
}
CenterTab::CenterTab(int width, int height)
{
  width = width;
  height = height;
}
QSize CenterTab::sizeHint () const
{
  return QSize(width, height);
}
To copy to clipboard, switch view to plain text mode 
  
Then within your QTabWidget constructor:
	
	centerTab = new CenterTab(100, 25); // You can use any width and height you like
this->setCornerWidget(centerTab, Qt::TopLeftCorner);
        centerTab = new CenterTab(100, 25); // You can use any width and height you like
this->setCornerWidget(centerTab, Qt::TopLeftCorner);
To copy to clipboard, switch view to plain text mode 
  
Thanks for the help guys...
				
			
Bookmarks