标题:qt5 qml的pro文件怎么 指定链接的库?
作者:ztz0223
日期:2013-05-17 22:29
内容:
一般的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()
如果我要导入一个第三方库,咋弄?