View Full Version : QScintilla
drake1983
18th May 2007, 15:34
Can anyone help me with a sample program using QScintilla with Qt4?
I want to use it to make a code editor with syntax high-lighting and code completion in the future , but I don't know how to integrate QScintilla with the Qt4 Components.
Everything I found in Google is scintilla + Gtk, and really I don't like GTK.
Thanks for your answers!!!
high_flyer
21st May 2007, 09:20
but I don't know how to integrate QScintilla with the Qt4 Components.
Based on what it says on the web site:
The current version of QScintilla is v1.7.1 and requires Qt v3.
You can't.
Unless you port QScintilla to Qt4.
Another option is to use QScintilla as a lib, which it self links to Qt3, and use it in an Qt4 application - but I guess this might raise a set of problems.
drake1983
21st May 2007, 21:23
I have downloaded a development version of QSCintilla ported to Qt4, and I have compiled it without problems.
To use QScintilla, Do I need to use a QTextEdit or QScintilla has a component for that?
HelderC
1st November 2010, 13:01
How did you ompile your qt project using the qscintilla?
I installed it (Qscintilla-dev) at Ubuntu and when I'll compile, i got this error:
mainwindow.cpp:(.text._ZN13Ui_MainWindow7setupUiEP 11QMainWindow[Ui_MainWindow::setupUi:-1: error: undefined reference to `QsciScintilla::QsciScintilla(QWidget*)'
Anyone knnows how resolve it?
Thanks.
Added after 19 minutes:
I found the solution.
In the file.pro
puts the line: LIBS += -lqscintilla2
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.