Results 1 to 2 of 2

Thread: QWorkSpace parent type optional?

  1. #1
    Join Date
    Feb 2006
    Location
    US
    Posts
    173
    Thanks
    16
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default QWorkSpace parent type optional?

    Hello,

    Maybe this an odd question ...

    Does QWorkSpace have to be the child of a QMainWindow? Or, does it make since for it to be the child of another widget, say a QGridLayout that would be the child of a QMainWindow?

    I'm trying to build a main window that has an always-present tree-view to the left with a workspace to the right ... and the customary main window menus, toolbars, and status bar.

    Thanks,
    Ben

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QWorkSpace parent type optional?

    Qt docs say:
    The workspace itself is an ordinary Qt widget. It has a standard constructor that takes a parent widget. Workspaces can be placed in any layout, but are typically given as the central widget in a QMainWindow

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.