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

Layout and size problem

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 604 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 24 Aug 2020, 06:10 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.

    J 1 Reply Last reply 24 Aug 2020, 06:11
    0
    • G GunkutA
      24 Aug 2020, 06:21

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

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 24 Aug 2020, 06:25 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
        24 Aug 2020, 06:10

        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.

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 24 Aug 2020, 06:11 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 24 Aug 2020, 06:15
        1
        • J jsulm
          24 Aug 2020, 06:11

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

          G Offline
          G Offline
          GunkutA
          wrote on 24 Aug 2020, 06:15 last edited by
          #3

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

          J 1 Reply Last reply 24 Aug 2020, 06:17
          0
          • G GunkutA
            24 Aug 2020, 06:15

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

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 24 Aug 2020, 06:17 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 24 Aug 2020, 06:21
            0
            • J jsulm
              24 Aug 2020, 06:17

              @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 24 Aug 2020, 06:21 last edited by
              #5

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

              J 1 Reply Last reply 24 Aug 2020, 06:25
              0
              • G GunkutA
                24 Aug 2020, 06:21

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

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 24 Aug 2020, 06:25 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

                1/6

                24 Aug 2020, 06:10

                • Login

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