Questions tagged [qscintilla]

QScintilla is a Qt port of Scintilla, a source code editing component.

Official documentation: https://riverbankcomputing.com/software/qscintilla/intro

98 questions
1
vote
1 answer

Install QScintilla to qtpy

I am using qtpy to write Qt application and I import modules as ` from qtpy import QtWidget I would like to install QScintilla but installing it using pip install QScintilla installs QScintilla inside site-packages/PyQt5 directory ,but I would…
Noushadali
  • 41
  • 5
1
vote
1 answer

How do I delete typed character (previous character) in QScintilla PyQt5?

I know that a method of deleting can be self.qsci.cut() and I know in a different language you can use the DeleteBack() method, but how can I remove a typed character event.text() or just simply remove the previous character in PyQt5. Thank you in…
1
vote
0 answers

QScintilla syntax highlighting with QsciLexerCustom - UTF-8 issue

I'm using QScintilla as a text editor in my C++ Qt project and would like to have syntax highlighting for my custom(ish) language. Following a great guide I found (qscintilla), I subclassed QsciLexerCustom and implemented all necessary methods,…
rofo
  • 29
  • 4
1
vote
1 answer

Executing "SCI_GOTOLINE" API of Qscintilla inside indicatorReleased() event handler is not functioning properly

I am developing a desktop application using "PyQt4". The application contains an XML editor implemented on top of Qscintilla. However I have an issue whenever I click a hyperlink-alike text defined via indicators. The "indicatorClicked" event is…
Rida Shamasneh
  • 767
  • 1
  • 6
  • 16
1
vote
1 answer

Why the slot function cannot insert text even if it's successfully called

I'm writing a code editor in Qt with QScintilla. I want to automatically complete the back brackets when I enter the front brackets. So that I connect the cursorPositionChanged(int, int) signal to complete_braces() slot and the connection works.…
DCTewi
  • 120
  • 1
  • 8
1
vote
3 answers

How to highlight QScintilla using ANTLR4?

I'm trying to learn ANTLR4 and I'm already having some issues with my first experiment. The goal here is to learn how to use ANTLR to syntax highlight a QScintilla component. To practice a little bit I've decided I'd like to learn how to properly…
BPL
  • 9,632
  • 9
  • 59
  • 117
1
vote
1 answer

How to unselect / unhighlight selected and highlighted text in QScintilla editor widget?

I'm trying to write a search box, containing find/find previous/find next to interact with a QScintilla textEditor widget. I therefore wrote to methods, one for highlighting all matching words and then select first occurance, one for…
1
vote
1 answer

QScintilla: How to add a user context menu to textEdit? (C++)

I'm struggeling with telling a QScitilla textEdit that is the main widget of my MainWindow app to accept showing a personalized context menu on right-clicking the mouse. What works fine if I use a standard Qt5 textEdit fails if used with the…
1
vote
1 answer

Backward search using QsciScintilla.findNext not working as expected

If I search for letter x forward (button Next), everything works as it should, but as soon as I change direction (button Previous), this happens: QsciScintilla.findFirst() doesn't move selection. I.e., first press of button Previous doesn't do…
Pugsley
  • 1,146
  • 14
  • 14
1
vote
1 answer

qscintilla2: Undefined symbols for architecture x86_64

I have a static Qt and recompiled qscintilla2_qt5.a (2.10) on macOS 10.12.4. When I compile my project it prints this error: Undefined symbols for architecture x86_64: "qRegisterDraggedTypes(QStringList const&)", referenced from: …
Kroll
  • 649
  • 2
  • 6
  • 17
1
vote
0 answers

Scintilla editor: style composition

I'm trying to use the Scintilla editing component (actually using python QScintilla, but that shouldn't matter here) to edit more-or-less plain text (not a programming language or other structured text). Nonetheless I have some structures that can…
ZioByte
  • 2,690
  • 1
  • 32
  • 68
1
vote
1 answer

QScintilla Custom syntax highlighting

I need to QSCintilla highlight codes like this one: \xfffe. After a hour of googling, i still found nothing on custom lexicon for QScintilla. So how do i make mine custom lex with it? I already have a parser code(from old versions)…
Nezd
  • 15
  • 6
1
vote
1 answer

Compiling QScintilla on Ubuntu Fails

I'm trying to compile Qscintilla 2.9.2 on Ubuntu 16.04 64bit using Qt 5.7 got the following error message: -L/home/mwambi/Qt5.7.0/5.7/gcc_64/lib -lQt5PrintSupport -L/usr/lib64 -lQt5Widgets -lQt5Gui -lQt5Core -lpthread -lGL /usr/bin/ld: cannot find…
Amani
  • 16,245
  • 29
  • 103
  • 153
1
vote
1 answer

Incremental Loading in QScintilla Object

I am using a an object of QScintilla and I am reading the file in QScintilla Object incrementally. Header myEditor.h class myScintilla: public QScintilla { public readFile(); }; #include "myEditor.h" void myEditor::readFile() { if (FILE*…
TechEnthusiast
  • 273
  • 4
  • 18
1
vote
1 answer

Building QScintilla on Windows fails

I was able to build the most recent version of QScintilla (2.9.1) on Ubuntu 15.10. I have tried building the same version on Windows 10 using Qt 5.6. QMake run to completion without giving errors. A call to Make gives the following error…
Amani
  • 16,245
  • 29
  • 103
  • 153