[Solved] weird message for run plugin
-
I wrote a simple plugin that is in C++ GUI Programming with Qt 4 e-book and everything is correct but when i debug it appear a window that include 3 textboxes. first textbox is for excutable second is for Argument and third is for Working Directory.
!http://s7.postimage.org/gzvsjtkbv/untitled.png(error message)!but i have no idea what these is, interesting point is in the book or document of plugin no mentioned about this window and i still dont know what i do. have anyone idea?
-
welcome to devnet
You need to check the project settings in creator.
Go to "Projects" on the left bar. You should see now the settings of your project on the "Build&Run" knob. Below a bit to the right you will find distinguished buttons for "Build" and "Run". Press the run button.You should see now the Run settings and the entries given above are shown there as well. There is no executable defined in your run settings. So creator does not know which executable to start. You can define it here.
-
-
Whenever creator does not know which binaries are going to be built by the build system of your choice, then it will use a so called "Custom Executable Run Configuration". If you did not configure that one in Projects mode (Run Settings), then it Creator will pop up this window when you try to run something for the first time.
At this point your binaries should be build already. You need to give the executable to run, the arguments to pass to the executable as well as the directory to run it in. I think that is pretty self-explainatory.
Creator does not know which executables you are building when you use a build-system other than qmake or any qmake project without a executable target (e.g. when you build a library only).
-
thanks about your consideration but i know that first i must build the project after that run it. I think is better show you the code. this code is a practice for plugin that came in the C++ GUI Programming with Qt 4 book and i'll show you all of it. but if i write it here my post will be too long please download it with this link "iconeditorplugin":https://www.4shared.com/rar/v9AIUaZC/iconeditorplugin.html
-
That explains it then: You can obviously not run a plugin, so creator asks for something else to run instead. This is so that you can start the application this plugin is meant for.
-
So into which application does this plugin plug into?
-
You can take a look at "this":http://voidrealms.com/viewtutorial.aspx?id=246 video tutorial on plugins.