hi,
i had taken to classes
QMianwindow and Qwidget..
Qmainwindow is mainApplication and Qwidget is another class....
Qwidget is framesless widget ...showing top on main application....
m_pCameraWidget = new CameraWidget(this); // was declared in main application constructuor // Qwidget class name as m_pCameraWidget i has given.....
// in camera Qwidget i has given
void CameraWidget::mouseDoubleClickEvent(QMouseEvent *event)
{
if(!isMaximized())
{
showMaximized();
}
else
{
showNormal();
}
}
m_pCameraWidget = new CameraWidget(this); // when i declare in mainwindow constructor it is not working
m_pCameraWidget = new CameraWidget(); // when i declare in mainwindow constructor it is working
why can anybody give solution with code ....
Bookmarks