Results 1 to 5 of 5

Thread: MDI - Child -- Restore Down

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Question MDI - Child -- Restore Down

    I am messing with MDI windows and, well, my child can be maximized and restored down, but the restore-down button is invisible. It does work, it is clickable, I just can't see it. Did I mess something up, is my QT install bad, or is this a bug?
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: MDI - Child -- Restore Down

    How should we tell, if you don't show us your actual code. A minimal, compilable example, reproducing the problem would be best.

  3. #3

    Default Re: MDI - Child -- Restore Down

    Well, I was hoping perhaps it was a common issue where someone would know the problem. Here is a very minimal example that reproduces the behavior:


    Qt Code:
    1. #include <QtGui>
    2.  
    3.  
    4. class MainWin : public QMainWindow
    5. {
    6. private:
    7. public:
    8. MainWin()
    9. {
    10. QWorkspace* mArea = new QWorkspace();
    11. setCentralWidget(mArea);
    12. QWidget* nWidget = new QWidget();
    13. mArea->addWindow(nWidget);
    14. }
    15. ~MainWin()
    16. {
    17.  
    18. }
    19. };
    20.  
    21. int main(int argC, char** argV)
    22. {
    23. QApplication myApp(argC,argV);
    24. MainWin A;
    25. A.show();
    26. return myApp.exec();
    27. }
    To copy to clipboard, switch view to plain text mode 

    The maximize button always appears, but the restore-down button while usable is invisible.

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: MDI - Child -- Restore Down

    QWorkspace is deprecated. Use QMdiArea with QMidiArea::addSubWindow() instead. There you shouldn't face the problems.

  5. #5

    Default Re: MDI - Child -- Restore Down

    Thank you, looks like I've got reading to do here.

Similar Threads

  1. save and restore TreeWidgetItem
    By raj_iv in forum Newbie
    Replies: 3
    Last Post: 26th August 2011, 08:12
  2. Restore QTreeView expanding
    By zack in forum Qt Programming
    Replies: 1
    Last Post: 25th November 2009, 17:54
  3. QPainter save() and restore()
    By babu198649 in forum Newbie
    Replies: 4
    Last Post: 28th July 2008, 09:22
  4. How to restore the position of the textCursor?
    By Dark_Tower in forum Qt Programming
    Replies: 1
    Last Post: 25th April 2006, 19:41
  5. My dialog can't restore after minimizing?
    By gtthang in forum Qt Programming
    Replies: 1
    Last Post: 11th January 2006, 15:18

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
  •  
Qt is a trademark of The Qt Company.