I created my pluging with pluging builder, after compile the resources file, i test my pluging in QGIS 2.8.2. I modify the ui file in QtDesigner, but i don't know how to compile it in order to see the changes that i made in the ui file.

Can you help me?

  • I downloaded the pb_tool.tar
    – PositiveX
    Jun 23 '15 at 2:32
  • The method I used to compile custom-made plugins in Windows was to load the OSGeo4W Shell program, type cd your_plugin_path, press enter and then type make. Hope it works for you too!
    – Joseph
    Jun 23 '15 at 9:00
  • Okey thank you joseph, i'm going to try this method
    – PositiveX
    Jun 23 '15 at 10:34
  • Hi Joseph, when i go to pluging path and type make, it doesn't work. I have as message (make: Nothing to be done for 'default' )
    – PositiveX
    Jun 23 '15 at 11:08
  • That message could mean that your plugin has already been compiled. Have you reloaded QGIS to see if your plugin has been updated or was QGIS closed when you edited your plugin (not sure if this makes any difference but I do this to be sure)?
    – Joseph
    Jun 23 '15 at 11:25

The user Joseph help me to solve the problem. I'm so happy to share with you the steps:

  1. Open QGis 2.8.2
  2. Create your plugin with plugin builder. Click ok when you finished filling the form.
  3. Select the plugin folder (C:\OSGeo4W64\apps\qgis\python\plugins) where your plugin will be saved.
  4. The pluging builder result appear, and then press Ok.
  5. Go to the command prompt of OSGeo4w and type :

cd C:\OSGeo4W64\apps\qgis\python\plugins\your_plugins

  1. Type make then press enter
  2. Close and open Qgis 2.8.2, go to the menu: Plugins>Manage and install plugins. Choose your plugin in the list.
  3. To modify the form : open Qt4Designer, go to the menu and open the ui file: C:\OSGeo4W64\apps\qgis\python\plugins\yourPlugins_Dialog_base.ui
  4. Modify the form, put other controls and save
  5. Go to QGis 2.8.2, reload the plugin
  6. Click on your plugin in order to see the change that you made on the form.
  • 1
    I had an issue after upgrading to QGIS 3.4. pb_tool would return "subprocess.CalledProcessError: Command '['C:\\Program Files\\QGIS 3.4\\apps\\Python37\\Scripts\\pyrcc5.BAT', '-o', 'resources.py', 'resources.qrc']' returned non-zero exit status 1. PS C:\Users\Cary\Documents\Programming\Python\QGIS\structuremanager>" I had to uninstall pyqt5 and reinstall. The problem was fixed.
    – Cary H
    Dec 19 '18 at 16:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.