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. Why did "useOpenGL" not work?

Why did "useOpenGL" not work?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 5 Posters 494 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.
  • E Offline
    E Offline
    element W.SJ
    wrote on last edited by
    #1

    I wrote a example :

    import QtCharts 2.2
    import QtQuick 2.2
    
    
    ChartView {
        title: "Line"
        width: 800
        height: 600
        antialiasing: true
    
        LineSeries {
            name: "LineSeries"
    
            XYPoint { x: 0; y: 0 }
            XYPoint { x: 1.1; y: 2.1 }
            XYPoint { x: 1.9; y: 3.3 }
            XYPoint { x: 2.1; y: 2.1 }
            XYPoint { x: 2.9; y: 4.9 }
            XYPoint { x: 3.4; y: 3.0 }
            XYPoint { x: 4.1; y: 3.3 }
        }
    }
    

    And got the result: 92f65aae-2666-41d7-9bbd-fcc79fee460f-image.png

    Then set "useOpenGL: true" :

    import QtCharts 2.2
    import QtQuick 2.2
    
    ChartView {
        title: "Line"
        width: 800
        height: 600
        antialiasing: true
    
        LineSeries {
            name: "LineSeries"
    
            useOpenGL: true
    
            XYPoint { x: 0; y: 0 }
            XYPoint { x: 1.1; y: 2.1 }
            XYPoint { x: 1.9; y: 3.3 }
            XYPoint { x: 2.1; y: 2.1 }
            XYPoint { x: 2.9; y: 4.9 }
            XYPoint { x: 3.4; y: 3.0 }
            XYPoint { x: 4.1; y: 3.3 }
        }
    }
    

    and got blank result:
    c492e847-5128-4cdb-b56f-e754b6e2a204-image.png

    Is there anyone help me?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Toan Vo Khanh Nguyen
      wrote on last edited by
      #2

      I'm getting the same issue.
      Have you solved this problem yet? If true, could you share me how to fix it?
      Thanks!

      1 Reply Last reply
      0
      • F Online
        F Online
        FishBoneEK
        wrote last edited by
        #3

        2026 issue still present.

        SGaistS 1 Reply Last reply
        0
        • F FishBoneEK

          2026 issue still present.

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote last edited by
          #4

          @FishBoneEK hi,

          Which version of Qt are you using now ?
          On which platform ?
          Did you check the bug report system to see if it's something known ?

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

          F JKSHJ 2 Replies Last reply
          0
          • SGaistS SGaist

            @FishBoneEK hi,

            Which version of Qt are you using now ?
            On which platform ?
            Did you check the bug report system to see if it's something known ?

            F Online
            F Online
            FishBoneEK
            wrote last edited by
            #5

            @SGaist Hi, tried on 6.10.1 and 6.10.2 on Windows, the useOpenGL doesn't work.
            Though the example OpenGL Accelerated Series Example works quite well, it doesn't use QtQuick though.
            Quick search in Bug Tracker shows nothing relevant. I'd like to report it myself but the "Create" button doesn't work, as mentioned in another thread of mine.

            1 Reply Last reply
            0
            • SGaistS SGaist

              @FishBoneEK hi,

              Which version of Qt are you using now ?
              On which platform ?
              Did you check the bug report system to see if it's something known ?

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote last edited by
              #6

              @SGaist said in Why did "useOpenGL" not work?:

              Did you check the bug report system to see if it's something known ?

              Note that Qt Charts is now deprecated in favour of Qt Graphs. Even if a bug exists in Qt Charts, it will no longer be fixed.

              So, the solution might be to switch to Qt Graphs where GPU rendering is always enabled.

              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