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. Not work Surface3D and Scatter3D
Qt 6.11 is out! See what's new in the release blog

Not work Surface3D and Scatter3D

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 399 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.
  • M Offline
    M Offline
    Mihaill
    wrote on last edited by Mihaill
    #1

    Hi!
    Ig I start app with Surface3D, then my program falling. If i use example qml3doscilloscope, then all normal work.
    I use Win 10, MinGW 64, Qt 6.2.3
    Why my app not work?

    QT += quick core multimedia datavisualization
    
    import QtQuick
    import QtQuick.Layouts
    import QtQuick.Controls
    import QtDataVisualization 1.2
    
    Item {
        width: 1000
        height: 700
    
        Label {
            text: "test label 3D"
            font.pixelSize: 50
            z: 2
        }
        Surface3D {  // or     Scatter3D {
        }
    }
    

    In console I have only:

    NVD3DREL: 
    GR-805 : DX9 Overlay is DISABLED
    NVD3DREL: GR-805 : DX9 Overlay is DISABLED
    
    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mihaill
      wrote on last edited by Mihaill
      #2

      In main.cpp need add

      qputenv("QSG_RHI_BACKEND", "opengl");
      

      more code:

      #include <QtDataVisualization/qutils.h>
      //! [2]
      
      #include <QtGui/QGuiApplication>
      #include <QtCore/QDir>
      #include <QtQml/QQmlContext>
      #include <QtQuick/QQuickView>
      #include <QtQml/QQmlEngine>
      
      int main(int argc, char *argv[])
      {
          qputenv("QSG_RHI_BACKEND", "opengl");
      
      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