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 can I create a nice table to show data in qt with css?
Forum Updated to NodeBB v4.3 + New Features

How can I create a nice table to show data in qt with css?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 1.1k 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.
  • M Offline
    M Offline
    MhM93
    wrote on 23 Nov 2016, 08:25 last edited by
    #1

    I want to create a table like this image in qt:alt text
    How to do that?

    H.Ghassami

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 23 Nov 2016, 08:37 last edited by mrjj
      #2

      Hi
      Same way as this poster.
      https://forum.qt.io/topic/73605/custom-list-view

      What solution is the best, also depends on how many row you must handle.
      The cleanest and most solid is using Delegates but its also the most complicated.

      I do not think its possible to make such list using css for widgets :)

      1 Reply Last reply
      1
      • M Offline
        M Offline
        MhM93
        wrote on 23 Nov 2016, 10:38 last edited by
        #3

        I do not think its possible to make such list using css for widgets :)

        really?? :o
        :(

        H.Ghassami

        M U 2 Replies Last reply 23 Nov 2016, 11:21
        0
        • M MhM93
          23 Nov 2016, 10:38

          I do not think its possible to make such list using css for widgets :)

          really?? :o
          :(

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 23 Nov 2016, 11:21 last edited by
          #4

          @MhM93
          Well Delegates are designed for that. while you most likely can get it too look like
          that with css
          editing and clicking might not be what you want.

          If you dont need to have many, u can cheat as discussed in
          https://forum.qt.io/topic/73605/custom-list-view

          1 Reply Last reply
          0
          • M MhM93
            23 Nov 2016, 10:38

            I do not think its possible to make such list using css for widgets :)

            really?? :o
            :(

            U Offline
            U Offline
            uralbash
            wrote on 23 Nov 2016, 11:32 last edited by
            #5

            @MhM93 as far as I know CSS was invented as an additional technology that fix HTML, because HTML have not ideal architecture. QML initially made without these drawbacks, due to the inheritance styles of parent components and reactive components architecture. Therefore you shouldn't use CSS in QML.

            1 Reply Last reply
            0

            1/5

            23 Nov 2016, 08:25

            • Login

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