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. Debug QML plugin

Debug QML plugin

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 3.2k 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.
  • M Offline
    M Offline
    Merinas
    wrote on last edited by
    #1

    Hi

    I'm currently trying to debug a QML plugin. For now I can only build in release otherwise the qmlviewer don't want it. And I need to specify in my project what executable I used ( qmlviewer) and the command argument for it.Then organize all my source. Finally, I manage to make all this work (define import path, qmldir,...). But this doesn't allow me to debug just run . I will also need to rebuild Qt to have a debug qmlviewer and then redo all this work with other lib and stuff.

    So I'm asking is there a simple way to debug qml plugin. For now it's really hard and it should only be a click on debug icon, then selection of the main qml file, maybe a working dir. But maybe I'm missing something ?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      Perhaps you could create a simple C++-based Qt Quick application from the wizard in Creator, and then use that to load and debug your QML, rather than using the qmlviewer app.

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Merinas
        wrote on last edited by
        #3

        Ok I will explore this. But that still not seems quite easy. To load a plugin in this app I will just need to add import path ?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mlong
          wrote on last edited by
          #4

          There are a number of good tutorials around for using QML plugins in different scenarios. I don't have any references handy, but Google knows about them. If I get a chance, I'll post the ones I know of.

          Software Engineer
          My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

          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