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

How to layout CChartViews in a table

Scheduled Pinned Locked Moved Unsolved General and Desktop
qchartviewqtablewidgetqchart
2 Posts 2 Posters 422 Views 1 Watching
  • 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.
  • C Offline
    C Offline
    clayton_tx
    wrote on 21 May 2020, 20:04 last edited by
    #1

    I'm looking for suggestions on best way to layout a group of chart views on a screen. I'm thinking of using QtableWidget. The user would want to resize the rows and columns, and then have the charts fit and adjust to each cell. Is this a good way to do it ? The would want to be able to add and delete charts from the table.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 21 May 2020, 21:38 last edited by
      #2

      Hi
      Well it could work but you will have the issue that a row can only be one height so
      if one big and the rest small, it will look odd.

      alt text

      But if all chart will be ca same size yes it should work ok.

      Alternatively, you could tweak this
      https://doc.qt.io/qt-5/qtwidgets-layouts-flowlayout-example.html
      and put it into a QScrollArea.
      Add this to it
      https://wiki.qt.io/Widget-moveable-and-resizeable
      Tweak it a bit and it should allow for a group of chars in various sizes and
      scrollable.

      1 Reply Last reply
      0

      1/2

      21 May 2020, 20:04

      • Login

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