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. Error loading apt-installed QtDataVisualization at runtime on ubuntu

Error loading apt-installed QtDataVisualization at runtime on ubuntu

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 412 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.
  • Tom assoT Offline
    Tom assoT Offline
    Tom asso
    wrote on last edited by Tom asso
    #1

    I'm running Qt 5.12 on ubuntu 20.04.3. Qt software components are installed with apt. My C++ application uses Qt DataVisualization . I've installed these apt packages for DataVisualization:

    libqt5datavisualization5-dev
    qml-module-qtdatavisualization
    

    The app compiles OK, but the runtime cannot find the qml module. My qml file contains this statement, as specified by Qt documentation:

    import QtDataVisualization 1.15
    

    But at runtime I get the error:

    QQmlApplicationEngine failed to load component
    qrc:/main.qml:6 module "QtDataVisualization" version 1.15 is not installed
    

    I get a similar runtime error if qml has "import QtDataVisualization 1.14". Also tried import "QtDataVisualization 1.12" to match the Qt version "5.12" - but get similar error that 1.12 is not installed.
    Can someone help please? Thanks!

    1 Reply Last reply
    0
    • Tom assoT Offline
      Tom assoT Offline
      Tom asso
      wrote on last edited by
      #2

      This page indicates that Qt 5.12 should import DataVisualization 1.2
      That resolves my issue.

      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