直接上英文了,不翻译了。看不懂的可以留言哈。

————————————————————————————————————————

Installation

As supplied QScintilla will be built as a shared library/DLL and installed in the same directories as the Qt libraries and include files.

If you wish to build a static version of the library then pass CONFIG+=staticlib on the qmake command line.

If you want to make more significant changes to the configuration then edit the file qscintilla.pro in the Qt4Qt5 directory.

If you do make changes, specifically to the names of the installation directories or the name of the library, then you may also need to update the Qt4Qt5/features/qscintilla2.prf file.

See your qmake documentation for more details.

To build and install QScintilla, run:

cd Qt4Qt5
    qmake qscintilla.pro
    make
    make install
If you have multiple versions of Qt installed then make sure you use the correct version of qmake.

Installation on Windows

Before compiling QScintilla on Windows you should remove the Qsci directory containing the QScintilla header files from any previous installation. This is because the Makefile generated by qmake will find these older header files instead of the new ones.

Depending on the compiler you are using you may need to run nmake rather than make.

If you have built a Windows DLL then you probably also want to run:

copy %QTDIR%\lib\qscintilla2.dll %QTDIR%\bin

Installation on MacOS/X

On MacOS/X you may need to pass -spec macx-g++ in order to generate a Makefile, otherwise an XCode project file may be created. In particular the Qt Designer plugin will not load if you do not do this.

Integration with qmake

To configure qmake to find your QScintilla installation, add the following line to your application's .pro file:

CONFIG += qscintilla2

Example Application

The example application provided is a port of the standard Qt application example with the QsciScintilla class being used instead of Qt's QTextEdit class.

The example does not demonstrate all of the extra features of QScintilla.

To build the example, run:

cd example-Qt4Qt5
    qmake application.pro
    make
On Windows (and depending on the compiler you are using) you may need to run nmake rather than make.

Python Bindings

The Python bindings are in the Python directory. You must have either PyQt v4 or v5 already installed. QScintilla must also already be built and installed.

The configure, build and install the bindings for PyQt v4, run:

python configure.py
    make
    make install
On Windows (and depending on the compiler you are using) you may need to run nmake rather than make.

If you want to build the bindings for PyQt v5 then pass --pyqt=PyQt5 as an argument to configure.py.

configure.py supports a number of other arguments. Pass -h to display a list of the supported arguments.

configure.py was re-written for QScintilla v2.7.1 to make use of new features of PyQt v4.10. The old version is still provided as configure-old.py. The new configure.py will automatically invoke configure-old.py if it detects a version of PyQt earlier than v4.10. You may of course explicitly run configure-old.py.

Qt Designer Plugin

QScintilla includes an optional plugin for Qt Designer that allows QScintilla instances to be included in GUI designs just like any other Qt widget.

To build the plugin on all platforms, make sure QScintilla is installed and then run (as root or administrator):

cd designer-Qt4Qt5
    qmake designer.pro
    make
    make install
On Windows (and depending on the compiler you are using) you may need to run nmake rather than make.

最新文章

  1. jQuery.ajax(url,[settings])
  2. 布局TextView和EditText区别,layout_width和lay_weight区别--Android Studio
  3. 在win server 2003上安装SQL Server 2008的步骤
  4. Codeforces Gym 100637A A. Nano alarm-clocks 前缀和处理
  5. 关于async & await(TAP)异步模型的异常捕获
  6. Android的NDK开发(4)————JNI数据结构之JNINativeMethod
  7. Ext入门学习系列(五)表格控件(3)
  8. 查看tablespace的使用情况
  9. 抽象类(abstract class)和 接口(interface)
  10. Android JNI 编译正确 但是提示程序有错误无法运行 而且还看不到任何错误提示 的解决方法
  11. RH033读书笔记(3)-Lab 4 Browsing the Filesystem
  12. MS Open Tech 技术团队构建可靠的Windows版Redis
  13. PreparedStatement/Statement处理insert update等操作时乱码,以及URL
  14. Error Handling in ASP.NET Core
  15. mysql中的范式与范式——读<<高性能mysql>>笔记一
  16. 安装和使用 memcached
  17. redis 持久化文章分析的很到位
  18. js中slice方法(转)
  19. JavaSE——线程同步
  20. windows下用qemu搭建android

热门文章

  1. AJAX中使用post,get接收发送数据的区别
  2. hdu 1011 Starship Troopers(树形DP入门)
  3. inotify+rsync实现实时同步
  4. 0_Simple__simpleCallback
  5. 颜色框架Hue相关使用方法
  6. AngularJS学习篇(十六)
  7. PTA 数据结构 银行业务队列简单模拟
  8. 前端基于react,后端基于.net core2.0的开发之路(1) 介绍
  9. 对于ES6中Promise的个人见解
  10. SharpGL(46)用Billboard绘制头顶文字