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. Migration to 6.4.1 and opengl
QtWS25 Last Chance

Migration to 6.4.1 and opengl

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt6openglvulkan
6 Posts 3 Posters 722 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.
  • S Offline
    S Offline
    supratik123
    wrote on last edited by supratik123
    #1

    I recently migrated to qt 6.4.1 and understood that opengl is no longer supported. I tried using QSG_RHI_BACKEND as vulkan but the lines and edges are not smooth how it used to be with Qt 5.14.1 and Opengl. I feel maybe something to do with anti-aliasing but i didnt find much help online.

    This is how i am setting the env
    QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
    qputenv("QT3D_RENDERER", "rhi");
    qputenv("QSG_RHI_BACKEND", "vulkan");

    How do i smoothen out my edges and lines?

    Also using qputenv("QSG_INFO", "1"); gives me the output as

    GL Type: desktop
    Surface Type: OpenGL
    Surface Profile: CompatibilityProfile
    Surface Version: 4.6
    QSG RHI Backend: OpenGL
    Using Supported QSG Backend: yes
    Using Software Dynamic GL: no
    Using Multithreaded OpenGL: yes

    so i am not sure if my application is actually using vulkan

    1 Reply Last reply
    0
    • S Offline
      S Offline
      supratik123
      wrote on last edited by
      #2

      @Christian-Ehrlicher i posted because i was looking for answers.
      Opengl doesn't provide the same effect as it used to do in Qt 5.14.1 in Windows in Qt 6.4.1 and many documentation of Qt6 referred about opengl being obsolete.
      Please correct me if am wrong

      Christian EhrlicherC 1 Reply Last reply
      0
      • S supratik123

        @Christian-Ehrlicher i posted because i was looking for answers.
        Opengl doesn't provide the same effect as it used to do in Qt 5.14.1 in Windows in Qt 6.4.1 and many documentation of Qt6 referred about opengl being obsolete.
        Please correct me if am wrong

        Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by Christian Ehrlicher
        #3

        @supratik123 said in Migration to 6.4.1 and opengl:

        i posted because i was looking for answers.

        But why twice within hours?

        referred about opengl being obsolete

        Please give the links to the Qt documentation where this is stated.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        0
        • S Offline
          S Offline
          supratik123
          wrote on last edited by
          #4

          https://doc.qt.io/qt-6/opengl-changes-qt6.html
          I am not sure if i understood it correctly

          *QOpenGL classes migrated
          In Qt 5, a replacement set of OpenGL-support classes were added to Qt Gui. This was in order to support OpenGL as the cross-platform graphics API that served as foundation for graphics in Qt.

          In Qt 6, these have been migrated to the Qt OpenGL module. They are still usable and fully supported for applications depending on OpenGL directly. However, they are no longer considered foundational, since Qt has been extended to support other graphics APIs in its foundation, such as Direct3D, Metal and Vulkan.*

          Sorry for reposting again in the forum. Will take this as learning.

          Also could you please help me in understanding that if i am using qsg_rhi_backend as vulkan why it is still showing opengl as backend used? Just trying to understand changes

          jsulmJ 1 Reply Last reply
          0
          • S supratik123

            https://doc.qt.io/qt-6/opengl-changes-qt6.html
            I am not sure if i understood it correctly

            *QOpenGL classes migrated
            In Qt 5, a replacement set of OpenGL-support classes were added to Qt Gui. This was in order to support OpenGL as the cross-platform graphics API that served as foundation for graphics in Qt.

            In Qt 6, these have been migrated to the Qt OpenGL module. They are still usable and fully supported for applications depending on OpenGL directly. However, they are no longer considered foundational, since Qt has been extended to support other graphics APIs in its foundation, such as Direct3D, Metal and Vulkan.*

            Sorry for reposting again in the forum. Will take this as learning.

            Also could you please help me in understanding that if i am using qsg_rhi_backend as vulkan why it is still showing opengl as backend used? Just trying to understand changes

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @supratik123 said in Migration to 6.4.1 and opengl:

            I am not sure if i understood it correctly

            You did not. This peace of documentation simply talks about moving OpenGL stuff into another module. Nothing is depricated or "no longer supported".

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • S Offline
              S Offline
              supratik123
              wrote on last edited by
              #6

              @jsulm the only query i have is if OpenGL is still supported why am i observing kind of jagged lines when i use Opengl? Also am i setting the backend properly like i stated in my code above?

              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