[Qt-interest] How to implement my own animation for the ListView element.

Bo Thorsen bo at fioniasoftware.dk
Sun Jul 17 18:39:46 CEST 2011


Den 17-07-2011 15:41, danny skrev:
> Hi,
> Thank you very much! I ever thought it but did not read the source code
> of ListView.
> Then could I create a subclass of ListView and try to implement the effect?

It's worth a try, but I don't know if it's enough.

> I will try it and hope to get your response.
> --
> Best Regards,
>
>
>
> At  2011-07-15  15:24:48£¬"Bo  Thorsen"  <bo at fioniasoftware.dk>  wrote:
>
>>Den  15-07-2011  03:00,  danny  skrev:
>>>  Hi  all,
>>>
>>>  For  the  ListView  element,  could  I  implement  my  own  animation  to  control
>>>  when  it  moving?
>>>
>>>  Such  as,  implement  a  special  efficiency  that  make  every  element  in  the
>>>  ListView  rotate  when  the  list  is  moving,  and  return  normal  when  it  stop
>>>  moving.
>>>
>>>  Is  there  any  way  to  implement  it?
>>
>>The  short  answer  is  no.
>>
>>If  I  really  had  to  do  this,  I  would  investigate  the  ListView  sources  and
>>figure  out  where  the  current  animation  is.  Maybe  there  is  some
>>complicated  hack  you  can  pull  off  to  modify  it.  Something  like  searching
>>for  a  specific  QObject  in  the  object  tree  and  modifying  it's  properties.
>>
>>Or  maybe  you  have  to  modify  the  Qt  sources  which  would  suck  for
>>maintainability.  In  this  case,  the  best  approach  is  to  modify  the
>>sources  to  allow  hooks  that  you  need  but  that  others  could  use  as  well,
>>and  send  the  sources  as  a  merge  request  to  the  Qt  git  tree.  Then  at
>>least  you  have  an  opportunity  to  get  rid  of  your  local  Qt  patch  later.
>>
>>Bo  Thorsen,
>>Fionia  Software.
>>
>>--
>>
>>Expert  Qt  and  C++  developer  for  hire
>>Contact  me  if  you  need  expert  Qt  help
>>http://www.fioniasoftware.dk
>
>
>


Bo Thorsen,
Fionia Software.

-- 

Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk



More information about the Qt-interest-old mailing list