Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. useOpenGL for QML Rectangle component
Forum Update on Monday, May 27th 2025

useOpenGL for QML Rectangle component

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 4 Posters 991 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.
  • T Offline
    T Offline
    Tirupathi Korla
    wrote on 14 Dec 2016, 11:22 last edited by
    #1

    Hi
    We are working on Desktop gui application with qt qml 5.7. Can we render the qml components like Rectangle, Label etc using CPU not GPU. Can we switch between CPU and GPU to render the GUI by using properties like useOpenGL?

    -Tirupathi

    R 1 Reply Last reply 14 Dec 2016, 15:39
    0
    • M Offline
      M Offline
      m.sue
      wrote on 14 Dec 2016, 15:35 last edited by
      #2

      Hi,
      as I understand it QML always tries to draw with OpenGL, using QWindow. The CPU only comes into play when you incorporate the QML-QWindow into a QWidget for desktop display.
      -Michael.

      1 Reply Last reply
      0
      • T Tirupathi Korla
        14 Dec 2016, 11:22

        Hi
        We are working on Desktop gui application with qt qml 5.7. Can we render the qml components like Rectangle, Label etc using CPU not GPU. Can we switch between CPU and GPU to render the GUI by using properties like useOpenGL?

        -Tirupathi

        R Offline
        R Offline
        raven-worx
        Moderators
        wrote on 14 Dec 2016, 15:39 last edited by
        #3

        @Tirupathi-Korla
        Qt 5.8 comes with a software renderer (previously known as the Qt Quick 2D Renderer)
        But i don't know if you can switch the renderer during runtime though

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        M 1 Reply Last reply 14 Dec 2016, 15:47
        1
        • R raven-worx
          14 Dec 2016, 15:39

          @Tirupathi-Korla
          Qt 5.8 comes with a software renderer (previously known as the Qt Quick 2D Renderer)
          But i don't know if you can switch the renderer during runtime though

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 14 Dec 2016, 15:47 last edited by
          #4

          @raven-worx said in useOpenGL for QML Rectangle component:

          Qt 5.8 comes with a software renderer

          http://blog.qt.io/blog/2016/08/15/the-qt-quick-graphics-stack-in-qt-5-8/

          " the Qt Quick backend can be changed on a per-process basis during application startup. Once the first QQuickWindow, QQuickView, or QQuickWidget is constructed it will not be possible to change it anymore."

          So Im guessing no runtime switching more than once during startup.

          1 Reply Last reply
          0

          1/4

          14 Dec 2016, 11:22

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved