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.
void Maxi_tab
::mouseDoubleClickEvent(QMouseEvent *Event
) {
tabWidget->showFullScreen();
}
void Maxi_tab::mouseDoubleClickEvent(QMouseEvent *Event)
{
tabWidget->showFullScreen();
}
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.
void Maxi_tab
::mouseDoubleClickEvent(QMouseEvent *Event
) {
if childAt(Eventpos->pos() == frame)
this->showFullScreen();
tabWidget->resize(1200,950);
}
void Maxi_tab::mouseDoubleClickEvent(QMouseEvent *Event)
{
if childAt(Eventpos->pos() == frame)
this->showFullScreen();
tabWidget->resize(1200,950);
}
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
Bookmarks