Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to apply WindowFlags to MdiSubWindow correctly?
Forum Updated to NodeBB v4.3 + New Features

How to apply WindowFlags to MdiSubWindow correctly?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tyapkov
    wrote on 28 Dec 2011, 15:48 last edited by
    #1

    Hello to everebody!
    I have faced the problem while passing the SubWindow to the MdiArea's addSubWindowMethod. In this case the flags are not working correctly. If to specify the Qt::WindowMinimizeButtonHint flag then also close button and window icon are shown. Can anybody explain why does it happen? Thanks!

    Declaration of the SubWindow class:

    @
    SubWindow::SubWindow(QWidget* parent): QMdiSubWindow(parent)
    {

    setShown(true);
    

    }
    @

    The usage of the SubWindow class:

    @
    Qt::WindowFlags flags = Qt::SubWindow | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowMinimizeButtonHint;
    log_subWindow = new SubWindow(this);
    log_subWindow->setWidget(logWindow);

    mdiArea->addSubWindow(log_subWindow, flags);
    @

    [EDIT: code formatting, please wrap in @-tags, Volker]

    1 Reply Last reply
    0

    1/1

    28 Dec 2011, 15:48

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved