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 to align multiple QCharts in a layout
Forum Updated to NodeBB v4.3 + New Features

How to align multiple QCharts in a layout

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 267 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.
  • richferraraR Offline
    richferraraR Offline
    richferrara
    wrote on last edited by
    #1

    Untitled.jpg

    I have a vertical layout that contains five QChartView objects, each displaying a QChart with a legend.

    How do I get all the charts to be the same width so that their vertical grid lines are all aligned?

    JonBJ gfxxG 2 Replies Last reply
    0
    • richferraraR richferrara

      Untitled.jpg

      I have a vertical layout that contains five QChartView objects, each displaying a QChart with a legend.

      How do I get all the charts to be the same width so that their vertical grid lines are all aligned?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @richferrara
      I have no idea whether QtCharts allows access to it, but as you can see you are going to need the "legend"(?) at the left to be the same width in every one. Presumably the width allowing for the widest. The vertical layout the charts are in is not the issue.

      1 Reply Last reply
      0
      • richferraraR richferrara

        Untitled.jpg

        I have a vertical layout that contains five QChartView objects, each displaying a QChart with a legend.

        How do I get all the charts to be the same width so that their vertical grid lines are all aligned?

        gfxxG Offline
        gfxxG Offline
        gfxx
        wrote on last edited by
        #3

        @richferrara you can only use "legend" adding more or less spaces ....for more control you can find other project library for qt on github .... not mine and never use .... but see allow different nice customization ... use github search for find ... not remember the name.

        bkt

        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