Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qtdesign-studio
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public-demos
qtdesign-studio
Commits
60c479a1
Commit
60c479a1
authored
3 years ago
by
Thomas Hartmann
Browse files
Options
Downloads
Patches
Plain Diff
Link plugins into the executable
Q_IMPORT_QML_PLUGIN not linking on Windows
parent
ddbed3a5
Branches
WIP-coffee
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
playground/CoffeeMachine/CMakeLists.txt
+2
-2
2 additions, 2 deletions
playground/CoffeeMachine/CMakeLists.txt
playground/CoffeeMachine/main.cpp
+2
-2
2 additions, 2 deletions
playground/CoffeeMachine/main.cpp
with
4 additions
and
4 deletions
playground/CoffeeMachine/CMakeLists.txt
+
2
−
2
View file @
60c479a1
...
...
@@ -25,6 +25,6 @@ target_link_libraries(CoffeeMachine PRIVATE
Qt
${
QT_VERSION_MAJOR
}
::Gui
Qt
${
QT_VERSION_MAJOR
}
::Quick
Qt
${
QT_VERSION_MAJOR
}
::Qml
CoffeeMachineQml
CoffeeMachineImport
CoffeeMachineQml
plugin
CoffeeMachineImport
plugin
)
This diff is collapsed.
Click to expand it.
playground/CoffeeMachine/main.cpp
+
2
−
2
View file @
60c479a1
...
...
@@ -30,8 +30,8 @@
#include
<QGuiApplication>
#include
<QQmlApplicationEngine>
#include
<QtQml/qqmlextensionplugin.h>
//
Q_IMPORT_QML_PLUGIN(CoffeeMachineQml)
//
Q_IMPORT_QML_PLUGIN(CoffeeMachineImport) //does not link
Q_IMPORT_QML_PLUGIN
(
CoffeeMachineQml
)
Q_IMPORT_QML_PLUGIN
(
CoffeeMachineImport
)
//does not link
int
main
(
int
argc
,
char
*
argv
[])
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment