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 minimize the child window
Forum Updated to NodeBB v4.3 + New Features

how to minimize the child window

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 4 Posters 1.3k Views 3 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    I have a QMainwindow and QDialog that comes on the top of Maninwindow
    When I minimize the QMainwindow , my QDialog does not get minimized , COuld you please let me know the reason why

    ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Just an educated guess: because they are two independent widgets and it would not make sense that if you minimise any of your widgets all them are.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • Q Offline
        Q Offline
        Qt Enthusiast
        wrote on last edited by
        #3

        how to solve this problem

        jsulmJ 1 Reply Last reply
        0
        • Q Qt Enthusiast

          how to solve this problem

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Qt-Enthusiast you could read documentation: http://doc.qt.io/qt-5/qwidget.html#hide

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          kshegunovK 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Qt-Enthusiast you could read documentation: http://doc.qt.io/qt-5/qwidget.html#hide

            kshegunovK Offline
            kshegunovK Offline
            kshegunov
            Moderators
            wrote on last edited by
            #5

            @jsulm said in how to minimize the child window:

            you could read documentation

            nah, this couldn't be it, could it?

            Read and abide by the Qt Code of Conduct

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              Qt Enthusiast
              wrote on last edited by
              #6

              is it related to Parent Child relation

              jsulmJ 1 Reply Last reply
              0
              • Q Qt Enthusiast

                is it related to Parent Child relation

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Qt-Enthusiast said in how to minimize the child window:

                is it related to Parent Child relation

                No it isn't - why should it? @SGaist already pointed out that hiding one window should not automatically hide another one. You can use this hide() method to hide the dialog if you want.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                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