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. Multiple column under a single column

Multiple column under a single column

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 478 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.
  • A Offline
    A Offline
    AlexandruToma
    wrote on last edited by
    #1

    Hello,
    How can I create multiple column under a single column? Like under "May" in photo.

    3825305e18f7a4147d4055950a2199e9.jpg

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      See QTableView::setSpan()

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      4
      • A Offline
        A Offline
        AlexandruToma
        wrote on last edited by
        #3

        And if I want to span horizontal headers ?

        1 Reply Last reply
        0
        • Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Headers can't be spanned

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          3
          • A Offline
            A Offline
            AlexandruToma
            wrote on last edited by
            #5

            Then do you have any idea how can I build a table like in this example: unnamed.png
            It's a timetable for university.

            JonBJ 1 Reply Last reply
            0
            • A AlexandruToma

              Then do you have any idea how can I build a table like in this example: unnamed.png
              It's a timetable for university.

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by
              #6

              @AlexandruToma
              I would say you're going to have to make a lot of compromises to achieve like this!

              My first thought would be to make your vertical headers have a separate row each for the first number (e.g. 8) and the second number (e.g. 10). So most rows (all the "big" ones) will be at least a 2-row-span. Only this way will you get our rows even vaguely accurate.

              1 Reply Last reply
              1

              • Login

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