Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Help with programatically adding kit, debugger and device data
Forum Update on Monday, May 27th 2025

Help with programatically adding kit, debugger and device data

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 4 Posters 665 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.
  • E Offline
    E Offline
    ErikL
    wrote on 13 Apr 2019, 18:27 last edited by
    #1

    I have a situation were a large number of Qt Creator users need to add kit, device, and debugger configurations. My thinking is to provide a plugin that does it (because fifty+ people cannot possibly all enter the data correctly in the GUI). I can see how a plugin can update the data that ends up in the .ini files, but cannot see what to do to get it into the .xml files that hold the kit, device, and debugger configurations. Any pointers about how to do this?

    I thought about hacking the .XMLs, but there are certain fields (e.g, the internal IDs) that look like I could mess up and therefore corrupt the entry. Any pointers to how the value for this field is generated?

    Any assistance is appreciated.
    Best Regards, Erik

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 13 Apr 2019, 18:43 last edited by mrjj
      #2

      Hi
      Each Creator has a GUID which is the id you see.
      We have successfully appended data to the file, with
      http://xmlstar.sourceforge.net/overview.php
      however, ended up using virtual machines as its much faster to
      upgrade say the toolchain and device drivers in master WM and the other can
      simply just grab the WM and be productive without any fiddling.

      There is also
      https://doc.qt.io/qtcreator/creator-sharing-project-settings.html
      but it can say if it will work for your complete use case.

      It certainly would be possible to make a Creator plugin that could import a settings file but
      im not sure what API you should use for that.
      I would go peeking around here
      https://code.woboq.org/qt5/qt-creator/

      A 1 Reply Last reply 13 Apr 2019, 19:25
      3
      • M mrjj
        13 Apr 2019, 18:43

        Hi
        Each Creator has a GUID which is the id you see.
        We have successfully appended data to the file, with
        http://xmlstar.sourceforge.net/overview.php
        however, ended up using virtual machines as its much faster to
        upgrade say the toolchain and device drivers in master WM and the other can
        simply just grab the WM and be productive without any fiddling.

        There is also
        https://doc.qt.io/qtcreator/creator-sharing-project-settings.html
        but it can say if it will work for your complete use case.

        It certainly would be possible to make a Creator plugin that could import a settings file but
        im not sure what API you should use for that.
        I would go peeking around here
        https://code.woboq.org/qt5/qt-creator/

        A Offline
        A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 13 Apr 2019, 19:25 last edited by
        #3

        @mrjj is right with his points, I just like to add that MaintenanceTool is able to do exactly that, so a plugin could do it too.

        But probably a script would already be enough.

        Qt has to stay free or it will die.

        1 Reply Last reply
        3
        • E Offline
          E Offline
          ErikL
          wrote on 17 Apr 2019, 19:03 last edited by ErikL
          #4

          I recently learned about "sdktool"; it appears to be able to add kits and debuggers (and apparently devices, though it is not completely clear that feature is ready for use yet) from the command line. If it works as advertised, this is exactly what I was looking for.

          Here are some links:

          https://github.com/qt-creator/qt-creator/tree/master/src/tools/sdktool
          https://github.com/danimo/qt-creator/blob/master/src/tools/sdktool/README.txt
          https://lists.qt-project.org/pipermail/qt-creator/2017-September/006773.html

          1 Reply Last reply
          3
          • I Offline
            I Offline
            iieklund
            wrote on 13 Jun 2019, 08:47 last edited by
            #5

            Yes, the sdktool is the "API" to add kits etc. to creator. The Qt installers use the sdktool.

            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