Results 1 to 4 of 4

Thread: QScintilla

  1. #1
    Join Date
    Mar 2007
    Posts
    31
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11

    Red face QScintilla

    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!!!

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QScintilla

    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.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Mar 2007
    Posts
    31
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QScintilla

    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?

  4. #4
    Join Date
    Mar 2010
    Location
    Brazil
    Posts
    39
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QScintilla

    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_MainWindow7setupUiEP11QMainWindow[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
    Last edited by HelderC; 1st November 2010 at 14:01.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.