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. Qt Table - is it possible to contain graphic objects/widgets in it?

Qt Table - is it possible to contain graphic objects/widgets in it?

Scheduled Pinned Locked Moved General and Desktop
qtableviewqtablewidgettable
2 Posts 2 Posters 1.0k 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.
  • T Offline
    T Offline
    theCember
    wrote on 9 Jul 2015, 11:31 last edited by
    #1

    Hello, I'm going to create an interactive table which will contain graphic objects/widgets - simple circles, that represents values from 2d array, by colour of circles. Most of the cells from table will have single circle - but my question is, is it possible to keep graphic objects in tables from qt like table view or table widget? Beacause in every tutorial bout tables there are only simple data like names/age/salary etc.
    If it is possible, tell me please which is more proper to this project: tablewidget or tableview , or please give me an advice how to represent my ideas not in table but in other stuff.
    Thanks in advance :)

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 9 Jul 2015, 21:38 last edited by
      #2

      Hi and welcome to devnet,

      You should take a look at the QStyledItemDelegate. It will allow you to present your data the way you want.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      9 Jul 2015, 11:31

      • 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