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 can i add a scroll bar for QCharts Legend
QtWS25 Last Chance

How can i add a scroll bar for QCharts Legend

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt5chartslegend
4 Posts 2 Posters 1.1k 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.
  • D Offline
    D Offline
    deleted286
    wrote on 30 Mar 2021, 11:24 last edited by
    #1

    Screenshot from 2021-03-30 14-22-04.png

    Can i add a scroll bar to it?
    There are more than 5 legends and i cant see all.
    How can i solve this problem

    P 1 Reply Last reply 30 Mar 2021, 11:35
    0
    • D deleted286
      30 Mar 2021, 11:24

      Screenshot from 2021-03-30 14-22-04.png

      Can i add a scroll bar to it?
      There are more than 5 legends and i cant see all.
      How can i solve this problem

      P Offline
      P Offline
      Pl45m4
      wrote on 30 Mar 2021, 11:35 last edited by
      #2

      @suslucoder

      Does your widget have a proper layout?


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      D 1 Reply Last reply 30 Mar 2021, 11:40
      0
      • P Pl45m4
        30 Mar 2021, 11:35

        @suslucoder

        Does your widget have a proper layout?

        D Offline
        D Offline
        deleted286
        wrote on 30 Mar 2021, 11:40 last edited by
        #3

        @Pl45m4 i couldnt understand what you mean. But yes, my chart is in grid layout. I just share the needed part of my chart

        P 1 Reply Last reply 30 Mar 2021, 11:56
        0
        • D deleted286
          30 Mar 2021, 11:40

          @Pl45m4 i couldnt understand what you mean. But yes, my chart is in grid layout. I just share the needed part of my chart

          P Offline
          P Offline
          Pl45m4
          wrote on 30 Mar 2021, 11:56 last edited by
          #4

          @suslucoder

          There is no scrollBar by default but you can increase the space for your QLegend

          • https://doc.qt.io/qt-5/qtcharts-legend-example.html#detaching-and-attaching-legends

          Or you put a custom legend in a QScrollArea


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          1 Reply Last reply
          3

          3/4

          30 Mar 2021, 11:40

          • Login

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