-
UID:143380
-
- 注册时间2013-05-03
- 最后登录2017-09-14
- 在线时间6小时
-
- 发帖31
- 搜Ta的帖子
- 精华0
- 金钱310
- 威望41
- 贡献值0
- 好评度31
-
访问TA的空间加好友用道具
|
一般的application的 pro是有指定库的,比如: - #-------------------------------------------------
- #
- # Project created by QtCreator 2013-05-16T22:31:49
- #
- #-------------------------------------------------
- QT += core gui
- greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
- TARGET = qa1
- TEMPLATE = app
- SOURCES += main.cpp\
- mainwindow.cpp
- HEADERS += mainwindow.h
- FORMS += mainwindow.ui
但是 qml工程的pro文件,压根没有QT这个 参数: - # Add more folders to ship with the application, here
- folder_01.source = qml/qml1
- folder_01.target = qml
- DEPLOYMENTFOLDERS = folder_01
- # Additional import path used to resolve QML modules in Creator's code model
- QML_IMPORT_PATH =
- # If your application uses the Qt Mobility libraries, uncomment the following
- # lines and add the respective components to the MOBILITY variable.
- # CONFIG += mobility
- # MOBILITY +=
- # The .cpp file which was generated for your project. Feel free to hack it.
- SOURCES += main.cpp
- # Installation path
- # target.path =
- # Please do not modify the following two lines. Required for deployment.
- include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
- qtcAddDeployment()
如果我要导入一个第三方库,咋弄?
|