Results 1 to 7 of 7

Thread: dockwindows in qt 4

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2007
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    4

    Default Re: dockwindows in qt 4

    sorry for typing wrong . I am using show() fucntion actually it is a member of QWidget. But what I am doing is displaying dockwindows in small screen and when the screen is full I am trying to hide these windows. Even using show( ) still did not work.


    QList<QDockWidget*>dw = qFindChildren<QDockWidget*>(mainWindow, QString());

    for (int i = 0; i < dw.size(); ++i)

    {
    dw.at(i)->show();
    }

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 541 Times in 521 Posts

    Default Re: dockwindows in qt 4

    Maybe your dock widgets are outside the screen area...
    Try this:

    for (int i = 0; i < dw.size(); ++i)
    {
    dw.at(i)->show();
    QRect geom = dw[i]->geometry();
    }

    and examine the geom QRect. See where the widget is positioned.
    If they are outside the viewable area, then maybe you should use move() to bring them back.

    Marcel

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.