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. Animation of QItemDelegates
Forum Updated to NodeBB v4.3 + New Features

Animation of QItemDelegates

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtreeviewanimationqitemdelegate
4 Posts 3 Posters 884 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.
  • H Offline
    H Offline
    H. Krishnan
    wrote on last edited by
    #1

    I want to briefly highlight rows that have been programmatically inserted in a QTreeView -- something like briefly flashing those rows to draw attention to them. How can I do this?

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      When you've a custom model just return an appropriate color for Qt::Background role.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      H 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        When you've a custom model just return an appropriate color for Qt::Background role.

        H Offline
        H Offline
        H. Krishnan
        wrote on last edited by
        #3

        @Christian-Ehrlicher Thanks for your reply. I was hoping there is a solution entirely on the view side without having to touch the model, maybe with QAbstractAnimation.

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

          Hi,

          One alternative could be to use QRubberBand and draw it on top of the lines/cells you are interested in.

          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
          1

          • Login

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