Hi friends i have a small problem i have a couple of tab widgets on a QDialog. I am trying to use mouseDoubleClickEvent to maximize the Tab Widget i have clicked on. But it does't work.
Qt Code:
  1. void Maxi_tab::mouseDoubleClickEvent(QMouseEvent *Event)
  2. {
  3. tabWidget->showFullScreen();
  4. }
To copy to clipboard, switch view to plain text mode 

I then came over a solution but i think there is a better way to do it. I am resizing the tab widget which i have double clicked on the QDialog.
Qt Code:
  1. void Maxi_tab::mouseDoubleClickEvent(QMouseEvent *Event)
  2. {
  3. if childAt(Eventpos->pos() == frame)
  4. this->showFullScreen();
  5. tabWidget->resize(1200,950);
  6. }
To copy to clipboard, switch view to plain text mode 

This is what i tried to maximize the Tab Widget i wanted to miximize on a double click on the QDialog form. Can any one pls tell me a better way.


Thank You