Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. QTABLEWIDGET WITH STYEL

QTABLEWIDGET WITH STYEL

Scheduled Pinned Locked Moved Unsolved Qt 6
8 Posts 2 Posters 566 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.
  • Y Offline
    Y Offline
    yangyanhui4
    wrote on last edited by
    #1

    QQ图片12345.png I want to make such a widget using QTABLEVIEW.How to do it?Or I need to use other tools?
    thx

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you mean the custom widgets between the headers and the cells ?

      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
      • Y Offline
        Y Offline
        yangyanhui4
        wrote on last edited by
        #3

        yes,should I use QTREEVIEW?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          No, you should use a technique similar to the Frozen column example but applied on row and using your custom widget.

          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
          1
          • Y Offline
            Y Offline
            yangyanhui4
            wrote on last edited by
            #5

            but the data of the tableview can expand or shrink.I have no idea how to realize it. I find QTREEVIEW can do it but the top level of the tree data is still a node and cannot fill the whole line

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Then can you please explain exactly what the UI does ?

              Because from the looks of it you have some custom widget between the header and the table data however from what you wrote it seems to be indeed closer to a tree view with the top level items having some custom design or maybe just some custom view that is supposed to show a table for each of its elements.

              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
              • Y Offline
                Y Offline
                yangyanhui4
                wrote on last edited by
                #7

                I think it is more closer to a treeview with the top level fill the whole row

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Then I would say my suggestion still applies.

                  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

                  • Login

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