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

How to create a table in ui file

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 489 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.
  • F Offline
    F Offline
    frnklu20
    wrote on 8 Jul 2019, 17:21 last edited by
    #1

    Hi,
    i want to create a dialog like this one bellow, but i'm having problems with the table

    0_1562605999719_d20e5d47-c127-4254-b002-540572700c03-image.png

    that's how my dialog is so far:

    0_1562605919079_27c3a868-0349-46d7-8157-1df2bfc3088d-image.png

    how can do that? remembering that the column "valor" on the dialog is editable but the others are not

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 8 Jul 2019, 18:07 last edited by
      #2

      Hi,

      Where are the data that you will show in your table coming from ?

      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
      • F Offline
        F Offline
        frnklu20
        wrote on 9 Jul 2019, 14:02 last edited by
        #3

        hi,

        the data are stored in QGraphicsPixmapItem::data(int i) and when i click a information button when the item is selected, it opens a dialog(this is for one specific object) and it shows the data

        but how can i create a table like this, with the editable spaces?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 9 Jul 2019, 19:43 last edited by
          #4

          You can use a QTableWidget and disable editing on the items you want read-only.

          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
          2

          1/4

          8 Jul 2019, 17:21

          • Login

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