Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Sub Headers in a Table

    General and Desktop
    3
    5
    1145
    Loading More Posts
    • 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
      cperezabo last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • C
          cperezabo last edited by

          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 Reply Quote 0
          • JKSH
            JKSH Moderators last edited by

            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 Reply Quote 0
            • C
              cperezabo last edited by

              [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 Reply Quote 0
              • First post
                Last post