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. What is the basis of Qt5 drawing system in Windows? GDI or GDI++? Whether turn to D2D after Vista?

What is the basis of Qt5 drawing system in Windows? GDI or GDI++? Whether turn to D2D after Vista?

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 4.5k Views 2 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.
  • R Offline
    R Offline
    rbtcx
    wrote on last edited by
    #1

    What is the internal mechanism of Qt5 drawing system in Windows? GDI or GDI++? Whether turn to D2D after Vista?

    1 Reply Last reply
    1
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi,

      There are two variants. One uses OpenGL, the other uses DirectX.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rbtcx
        wrote on last edited by
        #3

        Hi,

        http://download.qt-project.org/official_releases/qt/5.1/5.1.1/qt-windows-opensource-5.1.1-msvc2010-x86-offline.exe

        uses DirectX?

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          Yes :)

          To be more precise, it uses ANGLE, which translates OpenGL functions into DirectX functions.

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rbtcx
            wrote on last edited by
            #5

            Oh, thanks. As far as I know, OpenGL is for 3D, but what I concerned is 2D.
            I searched the whole source of Qt5, do not find any appearance of the function D2D1CreateFactory() which is the beginning of using D2D for 2D drawing.
            are you sure qt-windows-opensource-5.1.1-msvc2010-x86-offline.exe is using D2D by ANGLE?

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              [quote author="rbtcx" date="1381568935"]Oh, thanks. As far as I know, OpenGL is for 3D, but what I concerned is 2D.[/quote]2D rendering is a just subset of 3D rendering. So, 3D engines are often used to do 2D rendering. Both OpenGL and Direct3D are used for 2D graphics too.

              See http://msdn.microsoft.com/en-us/library/windows/apps/hh452790.aspx

              [quote author="rbtcx" date="1381568935"]I searched the whole source of Qt5, do not find any appearance of the function D2D1CreateFactory() which is the beginning of using D2D for 2D drawing.
              are you sure qt-windows-opensource-5.1.1-msvc2010-x86-offline.exe is using D2D by ANGLE?[/quote]ANGLE uses Direct3D, not Direct2D. Search the code base for "D3D" instead.

              See http://blog.qt.digia.com/blog/2012/10/24/graphics-on-windows-from-a-different-angle/

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              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