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. External WM_DESTROY received... PROBLEM
Forum Updated to NodeBB v4.3 + New Features

External WM_DESTROY received... PROBLEM

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 845 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.
  • OlivierDuguayO Offline
    OlivierDuguayO Offline
    OlivierDuguay
    wrote on last edited by OlivierDuguay
    #1

    Hi, I have a problem with some QDockWidget...

    Long story short, I have a QDockWidget with multiple QDockWidget "inside" of it. If I undock the "main" QDockWidget and then, undock more than one QDockWidget that were "inside" of it, when I dock back the main QDockWidget, only the first undocked secondary QDockWidget keep is position. All the others secondary widgets get destroy with this message :

    External WM_DESTROY received for QWidgetWindow(0x1b77143f790, name="dw_savingOptionsWindow") , parent: QWindow(0x0) , transient parent: QWidgetWindow(0x1b771440190, name="dw_settingsWindow")

    I guess this is because the parent isn't set... But I don't even know what is a QWidgetWindow...

    **dw_settings is the main QDockWidget
    **dw_savingOptions is one of the secondary QDockWidget

    Did someone had this problem and find any solution...
    I could just send a signal to dock back all the secondary QDockWidget when the main QDockWidget is docked but that's an ugly fix.

    Thanks for any help!
    Olivier

    Here is the part of the code where I set the QDockWidget :

        mMainWindowSetting = new QMainWindow(this);
        mMainWindowSetting->setDockOptions(QMainWindow::AnimatedDocks);
        mMainWindowSetting->addDockWidget(Qt::TopDockWidgetArea,ui->dw_acqOptions);
        mMainWindowSetting->splitDockWidget(ui->dw_acqOptions,ui->dw_savingOptions,Qt::Vertical);
        mMainWindowSetting->addDockWidget(Qt::BottomDockWidgetArea,ui->dw_graphics);
        mMainWindowSetting->splitDockWidget(ui->dw_graphics,ui->dw_note,Qt::Vertical);
    
        ui->sa_settings->setWidget(mMainWindowSetting);
    

    sa_setting is a QScrollArea inside the main QDockWidget (dw_setting)

    *** EDIT
    I'm using Desktop Qt 5.7 MSVC2015_64bit on Windows 10.

    Olivier Duguay

    1 Reply Last reply
    0

    • Login

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