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. Using VSCode extensions: how to configure import path for PySide6 classes
Qt 6.11 is out! See what's new in the release blog

Using VSCode extensions: how to configure import path for PySide6 classes

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmllsqmllintvscodeqmlelementpyside6
1 Posts 1 Posters 36 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.
  • S Offline
    S Offline
    s.cook
    wrote last edited by
    #1

    I'm developing QML modules in VSCode and I've started using the Qt extensions. I'm getting lots of spurious warnings about unrecognised imports. These relate to PySide6 classes in the same VSCode project (regular imports of Qt classes are ok). The PySide6 classes are imported using the @QmlElement decorator, and this mechanism works at runtime but isn't recognised by qmllint or qmlls. How do I configure these Qt tools to recognise the imports from Python? (I've tried adding the path to the Python files' folder, not effective.)

    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