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. Layout and size problem
Qt 6.11 is out! See what's new in the release blog

Layout and size problem

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 742 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.
  • G Offline
    G Offline
    GunkutA
    wrote on last edited by
    #1

    Hello I am trying to plot a graph by using QCustomPlot. I can plot the graph but half of it looks deleted as this:
    1.png

    In the layout my widget is in the window layout:

    2.png

    What might be the problem and how can I solve it? Thank you beforehand.

    jsulmJ 1 Reply Last reply
    0
    • G GunkutA

      @jsulm Once I have set a layout, I cannot adjust the sizes of other widgets and labels etc. though.

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #6

      @GunkutA Well, if you want to use layouts then you should not set sizes manually.
      But you can influence the sizes indirectly using https://doc.qt.io/qt-5/qboxlayout.html#setStretch

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

      1 Reply Last reply
      2
      • G GunkutA

        Hello I am trying to plot a graph by using QCustomPlot. I can plot the graph but half of it looks deleted as this:
        1.png

        In the layout my widget is in the window layout:

        2.png

        What might be the problem and how can I solve it? Thank you beforehand.

        jsulmJ Online
        jsulmJ Online
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @GunkutA Your parent widget does NOT have a layout...

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

        G 1 Reply Last reply
        1
        • jsulmJ jsulm

          @GunkutA Your parent widget does NOT have a layout...

          G Offline
          G Offline
          GunkutA
          wrote on last edited by
          #3

          @jsulm All the layout options break the current view. Can I have a layout without touching the current view?

          jsulmJ 1 Reply Last reply
          0
          • G GunkutA

            @jsulm All the layout options break the current view. Can I have a layout without touching the current view?

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

            @GunkutA said in Layout and size problem:

            Can I have a layout without touching the current view?

            Yes, you need to layout all these UI parts (which are now not lay out in the window) properly.

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

            G 1 Reply Last reply
            0
            • jsulmJ jsulm

              @GunkutA said in Layout and size problem:

              Can I have a layout without touching the current view?

              Yes, you need to layout all these UI parts (which are now not lay out in the window) properly.

              G Offline
              G Offline
              GunkutA
              wrote on last edited by
              #5

              @jsulm Once I have set a layout, I cannot adjust the sizes of other widgets and labels etc. though.

              jsulmJ 1 Reply Last reply
              0
              • G GunkutA

                @jsulm Once I have set a layout, I cannot adjust the sizes of other widgets and labels etc. though.

                jsulmJ Online
                jsulmJ Online
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #6

                @GunkutA Well, if you want to use layouts then you should not set sizes manually.
                But you can influence the sizes indirectly using https://doc.qt.io/qt-5/qboxlayout.html#setStretch

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

                1 Reply Last reply
                2

                • Login

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