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. Loading animation in tree view collapse icon

Loading animation in tree view collapse icon

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

    Is it possible to put a loading animation in the tree view collapse icon when the user clicks on the collapse icon?

    Like this:

    I want to create a tree view that when the user clicks on the collapse icon it will add a few more items as child to that item. How to do something like that?

    JonBJ 1 Reply Last reply
    0
    • M Mr Gisa

      Is it possible to put a loading animation in the tree view collapse icon when the user clicks on the collapse icon?

      Like this:

      I want to create a tree view that when the user clicks on the collapse icon it will add a few more items as child to that item. How to do something like that?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Mr-Gisa
      Are you saying you are already using http://doc.qt.io/qt-5/qtreeview.html#animated-prop ?

      I don't know whether http://doc.qt.io/qt-5/qtreeview.html#expanded is emitted before or after the expansion is shown. Or whether you can use http://doc.qt.io/qt-5/qtreeview.html#expand slot to do your work.

      1 Reply Last reply
      1

      • Login

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