QScintilla 是 Scintilla 这个 C++ 编辑器类在 QT 环境下的移植版本。
本文的配置环境如下:


配置过程
下载地址
https://riverbankcomputing.com/software/qscintilla/download
选择如下版本:

打开工程

选择构建路径

进行编译,选择构建,构建完成后生成动态库和静态库

项目中使用,右键*.pro文件,加入【外部库】

选择外部库文件


这时pro会自动添加如下代码

内容如下:
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
INCLUDEPATH += D:\soft\QScintilla_gpl\QScintilla_gpl-2.11.2\Qt4Qt5
win32:CONFIG(release, debug|release): LIBS += -LD:/soft/QScintilla_gpl/QScintilla_gpl-2.11.2/Qt4Qt5/release/ -lqscintilla2_qt5
else:win32:CONFIG(debug, debug|release): LIBS += -LD:/soft/QScintilla_gpl/QScintilla_gpl-2.11.2/Qt4Qt5/debug/ -lqscintilla2_qt5
else:unix: LIBS += -LD:/soft/QScintilla_gpl/QScintilla_gpl-2.11.2/Qt4Qt5/ -lqscintilla2_qt5
INCLUDEPATH += D:/soft/QScintilla_gpl/QScintilla_gpl-2.11.2/Qt4Qt5/release
DEPENDPATH += D:/soft/QScintilla_gpl/QScintilla_gpl-2.11.2/Qt4Qt5/release
使用

网友评论