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. Sub Headers in a Table
QtWS25 Last Chance

Sub Headers in a Table

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.5k 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.
  • C Offline
    C Offline
    cperezabo
    wrote on last edited by
    #1

    Hi folks, I would like to create a table like this.
    !http://i57.tinypic.com/2s0fzn5.png()!
    I tried building a QTreeView, but I wasn't able to make the rows look like subheaders like in the picture!

    Any help?

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

      Hi,

      Do you mean something like QToolBox ?

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

        Does that look like a QToolBox for you? QToolBox can only have 1 open tab at the same time far as I know :S
        And the QToolBox even scrolls I guess

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          Hi,

          That widget box is part of Qt Designer. It is implemented as a subclass of QTreeWidget: http://code.woboq.org/qt5/qttools/src/designer/src/components/widgetbox/widgetboxtreewidget.h.html

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • C Offline
            C Offline
            cperezabo
            wrote on last edited by
            #5

            [quote author="JKSH" date="1407162275"]Hi,

            That widget box is part of Qt Designer. It is implemented as a subclass of QTreeWidget: http://code.woboq.org/qt5/qttools/src/designer/src/components/widgetbox/widgetboxtreewidget.h.html[/quote]

            Thanks, that's the answer I was waiting for! :)

            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