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. Complex table design
QtWS25 Last Chance

Complex table design

Scheduled Pinned Locked Moved Solved General and Desktop
qtableviewwidget
2 Posts 2 Posters 374 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.
  • M Offline
    M Offline
    mk33
    wrote on 25 Nov 2023, 08:06 last edited by
    #1

    Hello, i try make complex table for day plan.

    table.png

    My first (naive) solution:

    • left table with units (emulate frozen columns; 2 columns table with header)
    • center table with 96 columns (day by quarter hours, table with header)
    • top table with hours (96 columns and row span; hiden table header)
    • synchronize scrollbars
    • own paintEvents for tables and headers for better looks

    Is it good way or top and center table merge? One table without header. TableModel with table header data. In model row types as HeaderHours, HeaderMinutes, Data.

    int TableModel::rowCount() const { return HEADER_ROWS_COUNT + data_.size(); }

    Thank you for your advices

    S 1 Reply Last reply 25 Nov 2023, 08:50
    0
    • M mk33
      25 Nov 2023, 08:06

      Hello, i try make complex table for day plan.

      table.png

      My first (naive) solution:

      • left table with units (emulate frozen columns; 2 columns table with header)
      • center table with 96 columns (day by quarter hours, table with header)
      • top table with hours (96 columns and row span; hiden table header)
      • synchronize scrollbars
      • own paintEvents for tables and headers for better looks

      Is it good way or top and center table merge? One table without header. TableModel with table header data. In model row types as HeaderHours, HeaderMinutes, Data.

      int TableModel::rowCount() const { return HEADER_ROWS_COUNT + data_.size(); }

      Thank you for your advices

      S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 25 Nov 2023, 08:50 last edited by
      #2

      Hi,

      You could check KDE's Kontact application. If I remember correctly they have a journal part that might be of interest.

      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
      • M mk33 has marked this topic as solved on 28 Nov 2023, 11:27

      1/2

      25 Nov 2023, 08:06

      • Login

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