Results 1 to 12 of 12

Thread: I have to reload QTcreator to re-build a plugin

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default I have to reload QTcreator to re-build a plugin

    I build my plugin and all is fine.
    I make some corrections and when build it again, QTCreator tells me that 'cannot acces to myplugin.dll'????
    I have to close and reopen QTcreator, and then I can build the pluging
    Any idea ?
    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: I have to reload QTcreator to re-build a plugin

    Windows uses mandatory exclusive locking when running binaries. If a binary using your dll is running, you can't overwrite the dll file.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I have to reload QTcreator to re-build a plugin

    Thanks wysota, but I have no program running.
    I have the main program, I test my changes, work on my dll again and try to build again, but I cannot rebuild If I dont 're-run' qtcreator.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: I have to reload QTcreator to re-build a plugin

    Quote Originally Posted by tonnot View Post
    Thanks wysota, but I have no program running.
    Isn't Creator a program? Isn't an app that you run within it a program?

    I have the main program, I test my changes, work on my dll again and try to build again, but I cannot rebuild If I dont 're-run' qtcreator.
    So what does the dll do exactly?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I have to reload QTcreator to re-build a plugin

    The dll is a plugin, excuse me. My problem is with custom widget plugins.
    I can compile a simple dll, made changes and compile again, but I cannot do the same with my plugins...
    Thanks

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: I have to reload QTcreator to re-build a plugin

    Quote Originally Posted by tonnot View Post
    The dll is a plugin, excuse me. My problem is with custom widget plugins.
    So it is a plugin for Creator/Designer, right? So the "program" I was talking about is Creator/Designer. If the plugin gets loaded into Creator (say, by opening an .ui file in Creator), it stays open until you close Creator.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I have to reload QTcreator to re-build a plugin

    Thanks Wysota.
    I understand your explanation. I close all the files and forms opened by QTcreator, but it does not fix the problem: I must to close and re-run Qtcreator.
    Is there any way to 'reset' QtCreator without closing and reopening it ?

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: I have to reload QTcreator to re-build a plugin

    Quote Originally Posted by tonnot View Post
    I understand your explanation.
    No, you don't. I clearly stated what causes the issue, there is nothing more to be added to the subject.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I have to reload QTcreator to re-build a plugin

    Conclusion :
    If you want to develop a plugin with QTCreator, every time you want to build and test it you must to re-run Qtcreator ?

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: I have to reload QTcreator to re-build a plugin

    No.... but for you - yes.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #11
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I have to reload QTcreator to re-build a plugin

    You wrote :
    So it is a plugin for Creator/Designer, right? So the "program" I was talking about is Creator/Designer. If the plugin gets loaded into Creator (say, by opening an .ui file in Creator), it stays open until you close Creator.
    it stays open until you close Creator
    So :
    Conclusion :
    If you want to develop a plugin with QTCreator, every time you want to build and test it you must to re-run Qtcreator ?
    And you answer :
    No.... but for you - yes.
    No... Means that there is a trick ?

  12. #12
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: I have to reload QTcreator to re-build a plugin

    There is no trick. There is logic though.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Qt Creator How to build ITALC in QTCreator.
    By Con Nít in forum Qt Tools
    Replies: 3
    Last Post: 19th January 2011, 10:36
  2. qwt plugin with qtcreator
    By rashmi in forum Newbie
    Replies: 2
    Last Post: 29th December 2010, 08:19
  3. After build QTcreator with mingw32, what more must I do ?
    By tonnot in forum Installation and Deployment
    Replies: 17
    Last Post: 23rd November 2010, 16:11
  4. Reload a Qt Plugin
    By bunjee in forum Qt Programming
    Replies: 3
    Last Post: 30th December 2009, 15:36
  5. qwt plugin with QtCreator in winXP
    By Carlton in forum Qwt
    Replies: 7
    Last Post: 20th May 2009, 19:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.