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.

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
  • 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.
  • R Offline
    R Offline
    Ratzz
    wrote on 24 Oct 2015, 05:19 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 24 Oct 2015, 21:38 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

      R 1 Reply Last reply 26 Oct 2015, 09:41
      0
      • S SGaist
        24 Oct 2015, 21:38

        Hi,

        How are you building your sub window ?

        R Offline
        R Offline
        Ratzz
        wrote on 26 Oct 2015, 09:41 last edited by
        #3

        @SGaist
        Through the designer.

        --Alles ist gut.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 26 Oct 2015, 20:54 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

          R 1 Reply Last reply 27 Oct 2015, 04:54
          0
          • S SGaist
            26 Oct 2015, 20:54

            Did you put all the widgets in layouts ?

            R Offline
            R Offline
            Ratzz
            wrote on 27 Oct 2015, 04:54 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.

            R 1 Reply Last reply 4 Dec 2015, 07:47
            0
            • R Ratzz
              27 Oct 2015, 04:54

              @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 .

              R Offline
              R Offline
              Ratzz
              wrote on 4 Dec 2015, 07:47 last edited by
              #6

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

              --Alles ist gut.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 4 Dec 2015, 22:09 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

                R 1 Reply Last reply 5 Dec 2015, 05:03
                0
                • S SGaist
                  4 Dec 2015, 22:09

                  When are you doing it ?

                  R Offline
                  R Offline
                  Ratzz
                  wrote on 5 Dec 2015, 05:03 last edited by
                  #8

                  @SGaist
                  while opening the subwindow.

                  --Alles ist gut.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 5 Dec 2015, 21:04 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