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. sub window shrinks on Linux when opened through main window.
Forum Updated to NodeBB v4.3 + New Features

sub window shrinks on Linux when opened through main window.

Scheduled Pinned Locked Moved Solved General and Desktop
linuxclick
9 Posts 2 Posters 2.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.
  • RatzzR Offline
    RatzzR Offline
    Ratzz
    wrote on last edited by Ratzz
    #1

    I have a main window. I open sub window through the main window(menu->new window) .The sub-window is a vertical layout which consists of stacked widget, sidebar-frame . In windows , if i open sub-window through main window it opens properly (with all items at proper position). In Linux ,if I open sub-window through main window it does not open as it opens in windows. In Linux all the items,push-button, label shrinks when new sub window is opened . If i click the sub-window once using mouse it appears properly without shrink. How to make a sub-window click while opening it ?
    Or is there any other way to do so ?
    Before clicking . After click it looks like these.

    --Alles ist gut.

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

      Hi,

      How are you building your sub window ?

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

      RatzzR 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        How are you building your sub window ?

        RatzzR Offline
        RatzzR Offline
        Ratzz
        wrote on last edited by
        #3

        @SGaist
        Through the designer.

        --Alles ist gut.

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

          Did you put all the widgets in layouts ?

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

          RatzzR 1 Reply Last reply
          0
          • SGaistS SGaist

            Did you put all the widgets in layouts ?

            RatzzR Offline
            RatzzR Offline
            Ratzz
            wrote on last edited by
            #5

            @SGaist
            The led you see in the image is the Qled . which is the promoted toolbutton .
            Yes i have toolbutton,labels, lineedit etc in my QVBoxLayout .

            --Alles ist gut.

            RatzzR 1 Reply Last reply
            0
            • RatzzR Ratzz

              @SGaist
              The led you see in the image is the Qled . which is the promoted toolbutton .
              Yes i have toolbutton,labels, lineedit etc in my QVBoxLayout .

              RatzzR Offline
              RatzzR Offline
              Ratzz
              wrote on last edited by
              #6

              I did use resize()to re-size my sub-window .

              --Alles ist gut.

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

                When are you doing it ?

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

                RatzzR 1 Reply Last reply
                0
                • SGaistS SGaist

                  When are you doing it ?

                  RatzzR Offline
                  RatzzR Offline
                  Ratzz
                  wrote on last edited by
                  #8

                  @SGaist
                  while opening the subwindow.

                  --Alles ist gut.

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

                    In the constructor or in the showEvent ?

                    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
                    0

                    • Login

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