Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inclusion of <QtQml/qqmlextensionplugin.h> is not necessary #1

Open
virgileMaon opened this issue Sep 8, 2024 · 1 comment
Open
Labels
improvement Improves repo

Comments

@virgileMaon
Copy link

Hello,

the lines :

#include <QtQml/qqmlextensionplugin.h>
Q_IMPORT_QML_PLUGIN(MyPluginPlugin)

in MyPluginTest/main.cpp are not necessary.

According to you, is there a way to do the same thing without having to redeclare the module in MyPluginTest with the qt_add_qml_module?

@mohamadhpp
Copy link
Owner

Hi,

Yes, that's right.
After testing the item you mentioned, I realized that there is no need for that part, and by commenting that part of the code, it works without problems.

While developing this repo, I tried to find a process that, like Qt itself, can generate a set of plugins and use them with just one address without the need to declare. But unfortunately, I did not find it in the search process. Maybe I will research it in the future.

mohamadhpp added a commit that referenced this issue Sep 22, 2024
Update part of the code according to Issue #1
@mohamadhpp mohamadhpp added the improvement Improves repo label Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improves repo
Projects
None yet
Development

No branches or pull requests

2 participants