Results 1 to 10 of 10

Thread: Removing min/max etc buttons from titlebar of an MDI child ( QWorkspaceChild ) object

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2006
    Posts
    58
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Removing min/max etc buttons from titlebar of an MDI child ( QWorkspaceChild ) ob

    Quote Originally Posted by munna
    did u try Qt::WindowTitleHint ?
    I tried:

    pParent->setWindowFlags( pParent->windowFlags() & Qt::WindowTitleHint );

    Tried:

    pParent->setWindowFlags( pParent->windowFlags() ^ Qt::WindowTitleHint );

    Tried:

    pParent->setWindowFlags( pParent->windowFlags() | Qt::WindowTitleHint );


    None of it had any effect at all.

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Removing min/max etc buttons from titlebar of an MDI child ( QWorkspaceChild ) object

    try

    pParent->setWindowFlags( Qt::WindowTitleHint )

  3. #3
    Join Date
    May 2006
    Posts
    58
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Removing min/max etc buttons from titlebar of an MDI child ( QWorkspaceChild ) ob

    Quote Originally Posted by munna
    try

    pParent->setWindowFlags( Qt::WindowTitleHint )
    Still nothing.

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Removing min/max etc buttons from titlebar of an MDI child ( QWorkspaceChild ) ob

    You can at least get rid if min/max buttons by passing Qt::Tool as window flags:
    Qt Code:
    1. workspace->addWindow(widget, Qt::Tool);
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

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.