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. Fadein effect in QListView adding items , how do i implement the example?

Fadein effect in QListView adding items , how do i implement the example?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.2k 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.
  • U Offline
    U Offline
    umen242
    wrote on last edited by
    #1

    Hello
    im trying to implement fade in effect when i add items to QListView .
    im using the standard setup of model in the QListView. and adding item in balk with beginInsertRows and endInsertRows(); like this :
    @beginInsertRows(QModelIndex(),StreamItemList.size(),StreamItemList.size());
    StreamItems.append(StreamItemList);
    endInsertRows();

    where StreamItemList is QList<StreamItem*>@

    and calling this method from outside class. that collects the items in to QList.
    now im looking into this "example ":http://labs.qt.nokia.com/2007/08/21/fade-effects-a-blast-from-the-past/
    and can't figure out how to implement the faderwidget to start on each item added to the like via beginInsertRows

    1 Reply Last reply
    0
    • J Offline
      J Offline
      joonhwan
      wrote on last edited by
      #2

      Though I have not try it, it seems to me that you shou create your own QAbstractItemDelegte derive class and reimplement paint() where items color property is being changed by any mechanism.'

      joonhwan at gmail dot com

      1 Reply Last reply
      0
      • U Offline
        U Offline
        umen242
        wrote on last edited by
        #3

        i have item delegate im using as my items

        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