Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Import Qt5Compat with PySide6 in QML file
QtWS25 Last Chance

Import Qt5Compat with PySide6 in QML file

Scheduled Pinned Locked Moved Solved Qt 6
pyside6qt5compatqml
3 Posts 2 Posters 964 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.
  • W Offline
    W Offline
    wvffle
    wrote on last edited by
    #1

    Hey, I have a PySide6 project in which I want to import Qt5Compat.GraphicalEffects.
    Qt Creator shows me QML module not found error.
    When I run the project it throws module "Qt5Compat.GraphicalEffects" is not installed error.

    I've checked the installed packages on my archlinux machine and I have qt6-5compat installed.

    Is there a way to use Qt5Compat with PySide6?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      scherzo
      wrote on last edited by scherzo
      #2

      Yes, there is. I found out that Qt5Compat is coming to Qt 6.1. So any version of Qt or PySide6 below 6.1 won't have this module.
      I managed to import and use it by installing dev snapshot wheels of PySide6 6.1.0. You can find them here:

      https://download.qt.io/snapshots/ci/pyside/dev/latest/pyside2/

      Regards.

      1 Reply Last reply
      2
      • W Offline
        W Offline
        wvffle
        wrote on last edited by
        #3

        Well, I guess I'll have to wait for Qt 6.1 or compile it myself ;/

        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