Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. Some advice for a table application

Some advice for a table application

Scheduled Pinned Locked Moved Unsolved Brainstorm
4 Posts 2 Posters 570 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.
  • H Offline
    H Offline
    Hannibal
    wrote on 11 Jun 2023, 13:10 last edited by
    #1

    I'm very new on Qt, I've done some c++ some years ago, but the most I used .net for my hobby projects.
    Now since I would an application that run on things like RPI, I'm considering to jump into Qt world.
    My app will display a table like the one attached, to show championship result in real time, taking data from a postgresql DB.
    Numbers of P(points) is not fixed : I mean in a competition can be 5 in another can be 10 etc.
    Number of match(the lines of P) is also not fixed.
    attached 2 picture of what I mean.
    Could be done?
    Since I found that Qt world is very huge, and things can be done in different ways, anyone have any advice?
    2.png 1.png

    M 1 Reply Last reply 11 Jun 2023, 13:20
    0
    • H Hannibal
      11 Jun 2023, 13:10

      I'm very new on Qt, I've done some c++ some years ago, but the most I used .net for my hobby projects.
      Now since I would an application that run on things like RPI, I'm considering to jump into Qt world.
      My app will display a table like the one attached, to show championship result in real time, taking data from a postgresql DB.
      Numbers of P(points) is not fixed : I mean in a competition can be 5 in another can be 10 etc.
      Number of match(the lines of P) is also not fixed.
      attached 2 picture of what I mean.
      Could be done?
      Since I found that Qt world is very huge, and things can be done in different ways, anyone have any advice?
      2.png 1.png

      M Offline
      M Offline
      mpergand
      wrote on 11 Jun 2023, 13:20 last edited by
      #2

      @Hannibal
      Hi,
      Have a look at:
      QTableView
      Model/View Tutorial
      and
      SQL Programming

      H 1 Reply Last reply 12 Jun 2023, 08:31
      1
      • M mpergand
        11 Jun 2023, 13:20

        @Hannibal
        Hi,
        Have a look at:
        QTableView
        Model/View Tutorial
        and
        SQL Programming

        H Offline
        H Offline
        Hannibal
        wrote on 12 Jun 2023, 08:31 last edited by
        #3

        @mpergand
        Thanks.
        What about the first and last columns, should I merge the cell for have the same look as pics?

        M 1 Reply Last reply 12 Jun 2023, 09:34
        0
        • H Hannibal
          12 Jun 2023, 08:31

          @mpergand
          Thanks.
          What about the first and last columns, should I merge the cell for have the same look as pics?

          M Offline
          M Offline
          mpergand
          wrote on 12 Jun 2023, 09:34 last edited by
          #4

          @Hannibal said in Some advice for a table application:

          What about the first and last columns, should I merge the cell for have the same look as pics?

          https://forum.qt.io/topic/123343/qtableview-qtablewidget-cell-span-range

          Search the web and this forum, there's numerus topics on this.

          1 Reply Last reply
          0

          4/4

          12 Jun 2023, 09:34

          • Login

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