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 place table into table header
Qt 6.11 is out! See what's new in the release blog

How to place table into table header

Scheduled Pinned Locked Moved General and Desktop
qtableviewmagic
6 Posts 2 Posters 1.5k Views 2 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.
  • R Offline
    R Offline
    RiseOfDeath
    wrote on last edited by
    #1

    Hi all. I've table (child of QAbstractTableModel), there i need to make somthing like table in vertical/horizontal header. Is it possible?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      Hi,

      Could you post a sketch of what you want achieve?

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      R 1 Reply Last reply
      0
      • M mcosta

        Hi,

        Could you post a sketch of what you want achieve?

        R Offline
        R Offline
        RiseOfDeath
        wrote on last edited by RiseOfDeath
        #3

        @mcosta im-painting-like-asshole

        I want make cells in header like H1, H1.1, H2, H2.1 and etc.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mcosta
          wrote on last edited by
          #4

          Hi,

          I think is possbile but you have to create your QHeader subclass.
          There is also this solution but is commercial

          Once your problem is solved don't forget to:

          • Mark the thread as SOLVED using the Topic Tool menu
          • Vote up the answer(s) that helped you to solve the issue

          You can embed images using (http://imgur.com/) or (http://postimage.org/)

          R 2 Replies Last reply
          0
          • M mcosta

            Hi,

            I think is possbile but you have to create your QHeader subclass.
            There is also this solution but is commercial

            R Offline
            R Offline
            RiseOfDeath
            wrote on last edited by
            #5

            @mcosta Can i use QHeader in QTableView? As i seen i can use it only with QTableWidget

            1 Reply Last reply
            0
            • M mcosta

              Hi,

              I think is possbile but you have to create your QHeader subclass.
              There is also this solution but is commercial

              R Offline
              R Offline
              RiseOfDeath
              wrote on last edited by RiseOfDeath
              #6

              @mcosta Probably i can make another variant, like make "fake" header in regular cells. Is it possible to make some cell's borders thin? (for separete normal cells from fake header)

              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