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. PySide6 QQmlApplicationEngine can't find QtCharts

PySide6 QQmlApplicationEngine can't find QtCharts

Scheduled Pinned Locked Moved Solved QML and Qt Quick
pyside6qtchartsqqmlapplication
3 Posts 2 Posters 2.0k 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.
  • T Offline
    T Offline
    Tauri
    wrote on last edited by
    #1

    Hello,

    I'm trying to create a python app that runs qml files as its GUI using the PySide6 QQmlApplicationEngine.
    Everything is working fine so far besides one module, I'm getting the following error with QtCharts:
    "QQmlApplicationEngine failed to load component
    file:///home/user/Projects/test/qml/main.qml:5:1: module "QtCharts" is not installed"

    When installing QT6 using the installer I made sure to check that I'm also installing QtCharts, and I do see a qtcharts folder in the "Qt/5.12.2/Src/" directory. Not sure exactly why I'm unable to load the module even though it looks to be installed.

    All the info that I found online was talking about QtCreator which I'm not using, if possible I'd want to just write qml/py files in VS Code and work like that on my project. I'm new to QT so I'm not sure exactly if it's possible the way that I want it.

    I'm running on Ubuntu 20.04, if any other info is needed please let me know.

    Thanks in advance

    JonBJ 1 Reply Last reply
    0
    • T Tauri

      Hello,

      I'm trying to create a python app that runs qml files as its GUI using the PySide6 QQmlApplicationEngine.
      Everything is working fine so far besides one module, I'm getting the following error with QtCharts:
      "QQmlApplicationEngine failed to load component
      file:///home/user/Projects/test/qml/main.qml:5:1: module "QtCharts" is not installed"

      When installing QT6 using the installer I made sure to check that I'm also installing QtCharts, and I do see a qtcharts folder in the "Qt/5.12.2/Src/" directory. Not sure exactly why I'm unable to load the module even though it looks to be installed.

      All the info that I found online was talking about QtCreator which I'm not using, if possible I'd want to just write qml/py files in VS Code and work like that on my project. I'm new to QT so I'm not sure exactly if it's possible the way that I want it.

      I'm running on Ubuntu 20.04, if any other info is needed please let me know.

      Thanks in advance

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @Tauri
      I'm not sure but: if you had posted this in the Qt6 sub-forum and read the stickied https://forum.qt.io/topic/121651/read-before-posting-in-this-category, https://www.qt.io/blog/add-on-support-in-qt-6.0-and-beyond tells you that Qt Charts for Qt6 is not slated for release till 6.1. And the 5.12.2 in that path you show appears to back that up. But I know no more than this.

      Why you have opted for Qt6/PySide6 I do not know. I would have stuck with Qt5/PySide2 if you want all features.

      1 Reply Last reply
      1
      • T Offline
        T Offline
        Tauri
        wrote on last edited by
        #3

        @JonB
        Thanks for pointing that out, I completely missed it.
        I'll go with PySide2 until more features are released in Qt6 like you mentioned.

        Thanks again.

        1 Reply Last reply
        1

        • Login

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