Solved where should i place CustomWidgetPlugin.dll and CustomWidgetPlugin.lib?
-
where should i place CustomWidgetPlugin.dll and CustomWidgetPlugin.lib?
-
Not sure about the question. Ideally you can place anywhere path in your file system. Ensure that path is appropriately set. If you are compiling ensure you put the LIBS in your pro file. If you want run ensure path available.
-
u mean i should put CustomWidgetPlugin.dll and CustomWidgetPlugin.lib in my exe project's include and lib path dir?
but how QDesigner load this CustomWidgetPlugin ? i want to use CustomWidgetPlugin in QDesigner -
i use Qt on Windows, and the IDE is visualStudio and qt-vs-addin
-
Have you seen the example "Creating Custom Widgets for Qt Designer" in assistant ? It give you complete detail on how to write designer plugins.
-
i am look at the tutorial, but not find the answer yet.
-
Have you looked at these lines ?
It is also necessary to ensure that the plugin is installed together with other Qt Designer widget plugins: target.path = $$[QT_INSTALL_PLUGINS]/designer
-
ok, thank you. i make it.
but is CustomWidgetPlugin.lib(associated with CustomWidgetPlugin.dll) useless? i searched qaxwidget, qdeclarativeview, qquickwidget, qwebview in the whole Qt dir, and the result only include the dll, no lib -
solved.
the lib and dll are used in the exe project.
while the dll is used for the QDesigner, lib is useless for the QDesigner.
thanks