Is there some way to 'automatize' plugin creation?



  • When I make a change in my plugin:

    1. I build it
    2. I close the Qt Creator (or else the existing plugin cannot be overwritten )
    3. I move the plugin from folder: C:\Documents\QtProjects\Tml\build-Tml-Desktop_Qt_5_0_2_MSVC2010_32bit-Release\release to the folder G:\Qt\Qt5.0.2\Tools\QtCreator\bin\designer, so the existing plugin is overwritten.
    4. I re - open Qt Creator.

    Is there some way to do all this automatically? (Qt Creator 2.7.0)


  • Qt Champions 2016

    Hi
    I use the "make install" feature

    http://doc.qt.io/qt-5/qmake-advanced-usage.html

    Look in "Installing Files"

    You can then make it copy it .

    Note for this to trigger. You must make a manual make step
    alt text

    Example

    I have ( in pro)

    # if you are using Shadow build, you need to get the output folder
    CONFIG(release, debug|release): DESTDIR = $$OUT_PWD/release
    CONFIG(debug, debug|release): DESTDIR = $$OUT_PWD/debug
    
    install_it.path = $$DESTDIR/data
    install_it.files = $$PWD/copy_to_install_dir/*
    
    INSTALLS += \
        install_it
    
    

    This will copy the data folder in the project (copy_to_install_dir) to the build folder i folder called data . ( all files in copy_to_install_dir)

    You can then just copy to plugin folder.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.