March 29, 2011

meego_man meego_man
Lab Rat
6 posts

C++ delegate in QML ListView, possible?

 

Greetings all,

I’m writing app that uses Qt Quick. Currently I’m experiencing performance issues with QML ListView element (the items are drawn with artifacts during scrolling, same happens in OpenGL apps when double buffering is turned off). It looks that this problem occurs due to complicated delegate, so I have a question: is it possible somehow to expose the C++ delegate to QML ListView? Thank you in advance
 Signature 

I&N MobiSoft http://inmobisoft.com

2 replies

March 29, 2011

Andre Andre
Robot Herder
6295 posts

Well, since you can use any QML element as a delegate, and since you can code QML elements in C++, I think the answer would be: “sure you can”. It would just not be a delegate in the sense of a QAbstractItemDelegate, but a subclass of QDeclarativeItem like any other QML element.

 Signature 

Looking for Qt developers to join our team @ i-Optics: https://qt-project.org/forums/viewthread/25393/

March 29, 2011

meego_man meego_man
Lab Rat
6 posts

Thank you very much, I’ll try to explore this idea

 Signature 

I&N MobiSoft http://inmobisoft.com

 
  ‹‹ QML Testing with QTestLib [Edited title]      Drop Queued keyboard and mouse events ››

You must log in to post a reply. Not a member yet? Register here!