[Interest] QML Listview delegate in C++

Sean Harmer sean.harmer at kdab.com
Sat Jun 6 14:42:57 CEST 2015


On Friday 05 June 2015 23:04:43 Simone wrote:
> Dear All,
> I'm facing a problem in my QML application. The target is an Arrm processor
> (freescale iMX53) with not so much capabilities. My problem is that I have
> a quite complex listview delegate item, and I observe a cpu usage very high
> when scrolling my list with lot of items, penalyzing the smoothness of the
> scrolling. I was wondering if I can develop the delegate in C++ (with
> widgets) instead of pure QML since the creation of QML objects is (of
> course) slower.
> 
> Is there such possibility?
> Can I reasonably increase scroll performances?

In addition to what Bo has said about reducing your object count in your 
delegates, take a look at the ListView.cacheBuffer property to reduce the churn 
on your delegate instances:

http://doc.qt.io/qt-5/qml-qtquick-listview.html#cacheBuffer-prop

Cheers,

Sean
--
Dr Sean Harmer | sean.harmer at kdab.com | Managing Director UK
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions



More information about the Interest mailing list