Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. C++ delegate in QML ListView, possible?
QtWS25 Last Chance

C++ delegate in QML ListView, possible?

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 3.7k Views
  • 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.
  • M Offline
    M Offline
    meego_man
    wrote on last edited by
    #1

    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

    I&N MobiSoft http://inmobisoft.com

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        meego_man
        wrote on last edited by
        #3

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

        I&N MobiSoft http://inmobisoft.com

        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