Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QPaintEngine - OpenGL and DirectX
Forum Updated to NodeBB v4.3 + New Features

QPaintEngine - OpenGL and DirectX

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 553 Views 1 Watching
  • 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.
  • V Offline
    V Offline
    vmetodiev
    wrote on last edited by
    #1

    Dear Qt Community,

    I have been struggling to take control of the QPaintEngine type. More specifically, I woud like to know whether I am using DirectX or OpenGL for rendering, or the CPU?

    And is it possible to manually ask the engine to use a specific GPU back-end, considering the fact that one may have both OpenGL and DirectX installed on Windows.

    Thank you for your help!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #4

      QPainter uses the raster engine, you can make use of an OpenGL viewport for QGraphicsView when using the Graphics View framework.

      Vulkan support came in a later version of Qt.

      Are you locked to 5.9 ?

      I think you will be interested in Qt's RHI but that requires at least 5.15.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi and welcome to devnet,

        What is your use case ?
        Widgets ?
        QtQuick ?
        Which version of Qt ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vmetodiev
          wrote on last edited by
          #3

          Hi @SGaist ,

          Thanks for the kind welcoming words and sorry for the huge delay. I somehow didn't receive any email notification that someone has reacted on the topic.

          Well, my use case is drawing simpe 2D primitives for an automation system. It will run on x86, x86-64 (with any GPU) ARM32 and ARM64 (with Mali GPU).

          Widgets ?
          -> No widgets, pure QPen and QBrush only.

          QtQuick ?
          -> No, not at all.

          Which version of Qt ?
          -> 5.9.7

          My final goal is to be able to "instruct" the painting engine to use DirectX, OpenGL or Vulkan (if supported by Qt) manually. I imagine a line telling the QPaintEngine what to use as part of my app initialisation.

          Right now, how can I know what is under the hood in case I have both DirectX and OpenGL installed on my Windows 10?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #4

            QPainter uses the raster engine, you can make use of an OpenGL viewport for QGraphicsView when using the Graphics View framework.

            Vulkan support came in a later version of Qt.

            Are you locked to 5.9 ?

            I think you will be interested in Qt's RHI but that requires at least 5.15.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1
            • V Offline
              V Offline
              vmetodiev
              wrote on last edited by
              #5

              @SGaist

              Great, thanks a lot for the information!

              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