How to integrate plugin, created using Qt Custom Designer Widget, into a project?
-
Hello society!
I am trying to add my custom widget created using Qt Custom Designer Widget in separate project.
The widget is added using Promotion successfully
But when I am trying to add widget to toolBar among other buttons etc. I failed.More details:
I repeat actions in that video:
https://www.youtube.com/watch?v=bc13VWTPMBU
My general and plugin projects are in Debug mode
I add 1 step in Build with Make argument: install
Created ddl file from C:\Qt\Qt5.12.12\5.12.12\mingw73_64\plugins\designer
I copied to
C:\Qt\Qt5.12.12\Tools\QtCreator\bin\plugins\designer
I don't have such directory as noticed in video:
C:\Qt\Qt5.12.12\Tools\QtCreator\lib\Qt\plugins\designer
so I copied dll only into one place.
But when I refreshed Plugin information I have
What is going on here?
Thanks!! -
@priskusman said in Where to create my custom button instance in purpose to get it among automaticaly created entities in graphical form?:
inherited from QPushButton
Hello and welcome.
In C++ the convention is to write any sub-class in its own
.cpp
and.h
files. Qt (not being a language) is no different, it may be even more important to do it this way for Qt.I'm afraid I don't understand how that relates/what the problem is from everything else you have written.
-
@JonB Thank you for answer! I have promoted farther since I posted that question. But now I stack on integrating my custom widget into other project. I guess it would more appropriate if I change title and the question then.