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?
Forum Updated to NodeBB v4.3 + New Features

Why did "useOpenGL" not work?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 375 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.
  • 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

      • Login

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