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. Poor rendering of QML PathView component with OpenGL paint engine
QtWS25 Last Chance

Poor rendering of QML PathView component with OpenGL paint engine

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 3.4k 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.
  • L Offline
    L Offline
    Luc4
    wrote on last edited by
    #1

    Hi! I recently tried to use a simple test code using the QML component PathView on my platform, which is a Linux Embedded with Qt/E with OpenGL implementation.

    The rendering performance of QML in OpenGL was quite good for what I already tried (very little). The rendering of this PathView instead is bad (it is the most difficult to render of course). The interesting thing is that I have two other applications, one written in pure OpenGL in a QGLWidget and one written using C++ Qt classes in a QGraphicsView rendering with the same exact OpenGL engine showing more or less the same on the screen. Performance of pure OpenGL is quite good, Qt C++ is even better! QML PathView is instead the worst by far. I see something like tearing, image is distorted when the animation flows. Frame rate seems to be approx 60 fps. vsync should be on.

    Is this supposed to happen? Are QML components supposed to be this inefficient? From DevDays 2010 I understood QML elements were implemented in C++: I wouldn't expect PathView to render that worst than Qt C++ API (a bad test code written in a day).

    Any more information about this is welcome! Thanks!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbrasser
      wrote on last edited by
      #2

      Hi,

      Can you paste the code you are using for your PathView delegate? Do you see the same issue if you use that delegate in a ListView or GridView instead?

      Regards,
      Michael

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Luc4
        wrote on last edited by
        #3

        I used a test code taking it directly from the "documentation":http://doc.qt.nokia.com/4.7-snapshot/qml-pathview.html, only adjusting the size:

        @Component {
        id: delegate
        Column {
        id: wrapper
        Image {
        anchors.horizontalCenter: nameText.horizontalCenter
        width: 150; height: 150
        source: icon
        }
        Text {
        id: nameText
        text: name
        font.pointSize: 16
        color: wrapper.PathView.isCurrentItem ? "red" : "black"
        }
        }
        }@

        This is really quite strange.
        I used some ListView on the same platform but I should try to create something horizontal. Otherwise it is not possible to compare.

        1 Reply Last reply
        0
        • H Offline
          H Offline
          Hornsj2
          wrote on last edited by
          #4

          We stopped using OpenGL with our embedded QML application because of artifacts. Sorry I don't have more detail because we made this decision months ago but there was definitely an issue with rendering text on a pathview (text was not ever cleared from the old position as it rotated, instead it was being painted on as it spun and eventually just formed a band).

          1 Reply Last reply
          0
          • L Offline
            L Offline
            Luc4
            wrote on last edited by
            #5

            Here text seems good so far. Both in ListViews and in PathViews. What is horrible is images in PathView. The rest seems to be quite good so far. I would really like to know why this problem. The same rendering result (very simple test code) of the PathView manually implemented in a day in Qt C++ with the OpenGL paint engine is great instead! This is quite puzzling... That's a pity because the PathView seems very useful!

            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