Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. How to integrate qmllint with PySide6 development?
Forum Updated to NodeBB v4.3 + New Features

How to integrate qmllint with PySide6 development?

Scheduled Pinned Locked Moved Unsolved Qt for Python
4 Posts 3 Posters 864 Views 1 Watching
  • 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.
  • E Offline
    E Offline
    EddieC
    wrote on last edited by
    #1

    I am trying to use qmllint to help me to find hard-to-debug issues in QML, but I'm having two issues with it.

    1. It doesn't seem to recognize some of QML's built-in types like ProgressBar and MessageDialog (I hope this should be easy to solve?):
    Warning: myqmlapp.qml: NativeStyle.DefaultProgressBar was not found. Did you add all import paths?
    Warning: myqmlapp.qml: MessageDialog was not found. Did you add all import paths?
    
    1. It cannot recognize elements declared within the Python source. For example, in my code, I have two new types declared with @QmlElement, resulting in several errors:
    Warning: myqmlapp.qml:7:1: Warnings occurred while importing module "myqmlapp/mainwindow":
    import myqmlapp.mainwindow 1.0
    ---
    Warning: Failed to import myqmlapp/mainwindow. Are your include paths set up properly?
    ---
    Warning: myqmlapp.qml: BridgeMainWindow was not found. Did you add all import paths?
    Warning: myqmlapp.qml: WorkerSignals was not found. Did you add all import paths?
    

    I believe this second issue should be harder to solve? Is it possible to extract the type information from the Python source (ideal solution), or at least teach qmllint to ignore those types?

    1 Reply Last reply
    0
    • CristianMaureiraC Offline
      CristianMaureiraC Offline
      CristianMaureira
      wrote on last edited by
      #2

      you cannot, that's why it's being worked out https://bugreports.qt.io/browse/PYSIDE-1709

      1 Reply Last reply
      1
      • E Offline
        E Offline
        EddieC
        wrote on last edited by
        #3

        @CristianMaureira said in How to integrate qmllint with PySide6 development?:

        PYSIDE-1709

        Curiously, I cannot see the bug on Jira: it says "You can't view this issue: It may have been deleted or you don't have permission to view it".

        A 1 Reply Last reply
        0
        • E EddieC

          @CristianMaureira said in How to integrate qmllint with PySide6 development?:

          PYSIDE-1709

          Curiously, I cannot see the bug on Jira: it says "You can't view this issue: It may have been deleted or you don't have permission to view it".

          A Offline
          A Offline
          Alexander Poss
          wrote on last edited by
          #4

          @EddieC I found this issue covering the topic. Maybe already possible but undocumented https://bugreports.qt.io/browse/PYSIDE-2210

          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