Cannot build Custom Widgets for iOS
-
Hi and welcome to devnet,
Are you trying to create a plugin for Qt Designer ? If not then there's no need for that module at all. Just create your widget with Designer for your application and you can build it for all platforms.
-
Hi and welcome to devnet,
Are you trying to create a plugin for Qt Designer ? If not then there's no need for that module at all. Just create your widget with Designer for your application and you can build it for all platforms.
I have solved this problem, thank you anyway.
The solution is:
Need to exclude
desinger
module in.pro
file like this:win32 | mac { QT += desinger }
Because the the custom widget plugins are only for desktop version, so the embedded version does not include the designer module.
Then Qt will not try to find
desinger
module, andqmake
the project will be ok.Then replace
#include <QtUiPlugin>
by#include <QtUiPlugin/QtUiPlugin>
, and it works.
BTW, you guys should point out the changes of header files for different platforms in the documents. Anyway, Qt is the best cross platform solution, thank you guys.