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

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

    Pl45m4P 1 Reply Last reply
    0
    • D deleted286

      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

      Pl45m4P Online
      Pl45m4P Online
      Pl45m4
      wrote on 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
      0
      • Pl45m4P Pl45m4

        @suslucoder

        Does your widget have a proper layout?

        D Offline
        D Offline
        deleted286
        wrote on 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

        Pl45m4P 1 Reply Last reply
        0
        • D deleted286

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

          Pl45m4P Online
          Pl45m4P Online
          Pl45m4
          wrote on 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

          • Login

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