ich möchte einen Syntax Higlighter mit Hilfe eines Parsers (lex) schreiben.
Dafür habe ich eine eigene Klasse von QSyntaxhighlighter abgeleitet. Dort erzeuge ich einen process, dem ich komischerweise nicht den Syntaxhigligher als Vater zuweisen kann.
Leider kann ich das processExited SIGNAL nicht abfangen:
Es kommt:
Code: Alles auswählen
syntaxhighlighter.cpp:13: error: no matching function for call to `QObject::connect(QProcess*&, const char[17], SyntaxHighlighter* const, const char[18])'
/usr/lib/qt3//include/qobject.h:116: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*)
/usr/lib/qt3//include/qobject.h:227: note: bool QObject::connect(const QObject*, const char*, const char*) const