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?

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.0k 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.
  • MhM93M Offline
    MhM93M Offline
    MhM93
    wrote on 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
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on 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
      • MhM93M Offline
        MhM93M Offline
        MhM93
        wrote on last edited by
        #3

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

        really?? :o
        :(

        H.Ghassami

        mrjjM uralbashU 2 Replies Last reply
        0
        • MhM93M MhM93

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

          really?? :o
          :(

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on 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
          • MhM93M MhM93

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

            really?? :o
            :(

            uralbashU Offline
            uralbashU Offline
            uralbash
            wrote on 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

            • Login

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