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. Custom tree list
QtWS25 Last Chance

Custom tree list

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 959 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
    Mr Gisa
    wrote on last edited by Mr Gisa
    #1

    I was wondering if it's possible to create a kind of tree list that when it's empty it appears like we see in HTML/CSS tables over the internet, specially on dashboards, that appears a kind of text or other thing (a placeholder with links and images), and when you add a new entry it disappears. Like this:

    https://www.drupal.org/files/issues/empty-product-table.png

    Note that the headers appears and the text is within the table.

    This one is a more advanced one, it appears when it's empty and there are more links and a kind of descriptions and so on.

    https://help.k2.com/onlinehelp/k2five/userguide/5.0/Content/Create/Views/072.png

    Note that I said: tree list and not table, it's because I'm going to be using tree and not table. (idk if this information will make any difference).

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      One possibility is to use two different widgets. Use a QStackedWidget to show your "placeholder" widget and when someone does what you want on it, switch to your tree view.

      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
      2
      • M Offline
        M Offline
        Mr Gisa
        wrote on last edited by
        #3

        That is one good alternative, what about the first one where it has a label inside a table?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You can use an index widget.

          Or have a custom widget manually placed there just below the horizontal header view.

          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
          2
          • M Offline
            M Offline
            Mr Gisa
            wrote on last edited by
            #5

            You rock @SGaist , thank you very much, I think that with this information I'll be able to do what I want to.

            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