Results 1 to 2 of 2

Thread: QTworkspace a la MDI

  1. #1
    Join Date
    Feb 2006
    Posts
    51
    Thanks
    7

    Default QTworkspace a la MDI

    Hi all
    I have a problem with QWorkspece child windows(MDI windows)
    I have a workspace and i have two child windows(m_myclassView1, m_myclassView2)
    When i maximize one window and then close the window, the two child windows will be closed but i see still
    the caption of one of the window(the window which was not maximized) at the title bar.

    Can someone help me what am i doing wrong?

    Qt Code:
    1. void MyClass::closeEvent( QCloseEvent *e )
    2. {
    3.  
    4. if ( m_myclassView1.View() )
    5. m_myclassView1.View()->close();
    6.  
    7. if ( m_myclassView2.View() )
    8. m_myclassView2.View()->close();
    9. }
    10.  
    11. QWidget::closeEvent(e);
    12. }
    To copy to clipboard, switch view to plain text mode 
    Love::Peace

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QTworkspace a la MDI

    What is MyClass? The MDI child or the workspace itself?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.