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 24 Oct 2018, 21:25 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 24 Oct 2018, 21:34 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 25 Oct 2018, 02:16 last edited by
        #3

        how to solve this problem

        J 1 Reply Last reply 25 Oct 2018, 05:09
        0
        • Q Qt Enthusiast
          25 Oct 2018, 02:16

          how to solve this problem

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 25 Oct 2018, 05:09 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

          K 1 Reply Last reply 25 Oct 2018, 19:31
          0
          • J jsulm
            25 Oct 2018, 05:09

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

            K Offline
            K Offline
            kshegunov
            Moderators
            wrote on 25 Oct 2018, 19:31 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 26 Oct 2018, 07:05 last edited by
              #6

              is it related to Parent Child relation

              J 1 Reply Last reply 26 Oct 2018, 08:25
              0
              • Q Qt Enthusiast
                26 Oct 2018, 07:05

                is it related to Parent Child relation

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 26 Oct 2018, 08:25 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

                4/7

                25 Oct 2018, 05:09

                • Login

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