• 4196阅读
  • 0回复

qt5 qml的pro文件怎么 指定链接的库? [复制链接]

上一主题 下一主题
离线ztz0223
 

只看楼主 倒序阅读 楼主  发表于: 2013-05-17
一般的application的pro是有指定库的,比如:
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2013-05-16T22:31:49
  4. #
  5. #-------------------------------------------------
  6. QT       += core gui
  7. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  8. TARGET = qa1
  9. TEMPLATE = app
  10. SOURCES += main.cpp\
  11.         mainwindow.cpp
  12. HEADERS  += mainwindow.h
  13. FORMS    += mainwindow.ui


但是qml工程的pro文件,压根没有QT这个参数:
  1. # Add more folders to ship with the application, here
  2. folder_01.source = qml/qml1
  3. folder_01.target = qml
  4. DEPLOYMENTFOLDERS = folder_01
  5. # Additional import path used to resolve QML modules in Creator's code model
  6. QML_IMPORT_PATH =
  7. # If your application uses the Qt Mobility libraries, uncomment the following
  8. # lines and add the respective components to the MOBILITY variable.
  9. # CONFIG += mobility
  10. # MOBILITY +=
  11. # The .cpp file which was generated for your project. Feel free to hack it.
  12. SOURCES += main.cpp
  13. # Installation path
  14. # target.path =
  15. # Please do not modify the following two lines. Required for deployment.
  16. include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
  17. qtcAddDeployment()


如果我要导入一个第三方库,咋弄?

快速回复
限100 字节
 
上一个 下一个