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. Warning when closing an undocked qwidget
Forum Updated to NodeBB v4.3 + New Features

Warning when closing an undocked qwidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
18 Posts 4 Posters 1.9k 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.
  • M Offline
    M Offline
    Mwoua_Leddar
    wrote on last edited by
    #9

    Just run basic tests with version 5.11.3 and 5.12.0.
    Looks like I dont have the issue with any of them

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #10

      Can you check latest 5.12.x?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mwoua_Leddar
        wrote on last edited by
        #11

        I have managed to reproduce it with a really basic example:

        #include <QApplication>
        #include <QMainWindow>
        #include <QLabel>
        #include <QDockWidget>
        
        
        int main(int argc, char* argv[])
        {
            QApplication lApp(argc, argv);
        
            QMainWindow a;
            a.setCentralWidget(new QLabel("Main"));
            a.show();
        
            auto lWindow = new QDockWidget(&a);
            lWindow->setFloating(true);
            lWindow->show();
        
            return lApp.exec();
        }
        

        and the cmake file im using:

        cmake_minimum_required(VERSION 3.16.0)
        set(CMAKE_VERBOSE_MAKEFILE ON CACHE BOOL "ON" FORCE)
        
        project(test)
        
        #Qt libs and macro
        SET(CMAKE_PREFIX_PATH "C:/Qt/5.15.1/msvc2019_64")
        
        set(CMAKE_AUTOMOC ON)
        set(CMAKE_AUTORCC ON)
        set(CMAKE_AUTOUIC ON)
        
        find_package(Qt5 COMPONENTS Widgets Gui REQUIRED)
        
        set(Src
            ${CMAKE_CURRENT_LIST_DIR}/main.cpp
        )
        
        add_executable(Test ${Src})
        target_link_libraries(Test PRIVATE Qt5::Widgets Qt5::Gui)
        
        1 Reply Last reply
        1
        • M Offline
          M Offline
          Mwoua_Leddar
          wrote on last edited by Mwoua_Leddar
          #12

          Ran more test with this simple example, the issue is actually there with qt 5.11.3 ,5.12.0 and 5.12.9.

          Edit:
          I confirm the issue is not here with 5.7.1

          Should I test with more versions?
          Raise a bug?

          Do you know if there is a workaround?

          jsulmJ 1 Reply Last reply
          1
          • Christian EhrlicherC Online
            Christian EhrlicherC Online
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #13

            So you can also reproduce it with 5.11? Then it's not the change I thought.
            It would be nice when you find some time to investigate with which version the issue came in.

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            1 Reply Last reply
            0
            • M Mwoua_Leddar

              Ran more test with this simple example, the issue is actually there with qt 5.11.3 ,5.12.0 and 5.12.9.

              Edit:
              I confirm the issue is not here with 5.7.1

              Should I test with more versions?
              Raise a bug?

              Do you know if there is a workaround?

              jsulmJ Online
              jsulmJ Online
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #14
              This post is deleted!
              1 Reply Last reply
              0
              • M Offline
                M Offline
                Mwoua_Leddar
                wrote on last edited by
                #15

                The issue is there in 5.9.

                Cant test between 5.7.1 and 5.9, versions are not available for download

                1 Reply Last reply
                0
                • Christian EhrlicherC Online
                  Christian EhrlicherC Online
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on last edited by
                  #16

                  Thx for the information. I would suggest you to create a bug reports with all your findings. Sadly I can't compile such an old version on my system anymore so I can't hep figuring out which exact commit creates this issue.

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Mwoua_Leddar
                    wrote on last edited by
                    #17

                    Bug report created: https://bugreports.qt.io/browse/QTBUG-88157
                    (Cant figure out how to properly format the code in the report)

                    1 Reply Last reply
                    0
                    • Christian EhrlicherC Online
                      Christian EhrlicherC Online
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on last edited by
                      #18

                      Thx, I reformatted the code, the CMakeLists.txt is not needed.

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      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