Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Possibility to configure a script filepath in Qtcreator options and read it in plugin code
Forum Updated to NodeBB v4.3 + New Features

Possibility to configure a script filepath in Qtcreator options and read it in plugin code

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 438 Views 2 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.
  • V Offline
    V Offline
    Veepee
    wrote on last edited by
    #1

    I have a Qt creator plugin written where a perl script is called to perform the required functionality. The perl script is located in a specific path in my linux machine and there is a parameter passed to it. Currently I am invoking this perl script with the hardcoded path and parameter directly from my plugin. Whenever there is a change in the path or parameter of the perl script, my plugin code also got to be changed.

    Is there a possibility where I can configure the perl script path in some Tools-options of Qtcreator and read this path directly from plugin ? This will ensure plugin code remains untouched for any changes in perl script.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      As far as I know, there is not.
      But it seems possible to give a plugin command line parameters
      https://doc-snapshots.qt.io/qtcreator-extending/plugin-meta-data.html
      (Command Line Arguments)
      So you can start Creator with a shortcut with file path as param and
      it can be dynamic that way, i think.
      (it should pass the param to the plugin)

      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