Programmers editor
-
QTCreator 3.5.1 is best when we using it in Ubuntu14.04 64bit PC with QT5.6.
We can set color scheme via Options ->Text Editor. -
@AndrzejB said:
@JohanSolo What editing component is using in QtCreator?
I don't get what you mean: you asked for an IDE with syntax highlighting. QtCreator is a C++ oriented IDE, coded using Qt. You have to be more specific if you want more information....
-
You could try taking a look at http://doc.qt.io/qt-5/qtwidgets-richtext-syntaxhighlighter-example.html
-
I have downloaded QScintilla_gpl-2.9.2 to g:\Qt\QScintilla_gpl-2.9.2
g:\Qt\QScintilla_gpl-2.9.2\Qt4Qt5\qscintilla.pro - build ok, but when I open g:\Qt\QScintilla_gpl-2.9.2\example-Qt4Qt5\application.pro are errors:G:\Qt\QScintilla_gpl-2.9.2\example-Qt4Qt5\main.cpp:22: błąd: C1083: Cannot open include file: 'QApplication': No such file or directory
G:\Qt\QScintilla_gpl-2.9.2\example-Qt4Qt5\mainwindow.cpp:22: błąd: C1083: Cannot open include file: 'QAction': No such file or directory
g:\qt\qscintilla_gpl-2.9.2\example-Qt4Qt5\mainwindow.h:25: błąd: C1083: Cannot open include file: 'QMainWindow': No such file or directory
Why can't find QApplication,QAction and QMainWindow ?
-
CONFIG += release qscintilla2 macx { QMAKE_POST_LINK = install_name_tool -change libqscintilla2.12.dylib $$[QT_INSTALL_LIBS]/libqscintilla2.12.dylib $(TARGET) } HEADERS = mainwindow.h SOURCES = main.cpp mainwindow.cpp RESOURCES = application.qrc
"Run qmake " is ok, but run program - error
-
You did not do something like @Ni-Sumi said:
QT += gui -
@HenrikSt. said:
QT += gui
CONFIG += release qscintilla2 macx { QMAKE_POST_LINK = install_name_tool -change libqscintilla2.12.dylib $$[QT_INSTALL_LIBS]/libqscintilla2.12.dylib $(TARGET) } QT += gui HEADERS = mainwindow.h SOURCES = main.cpp mainwindow.cpp RESOURCES = application.qrc
same
-
You should list all the modules you're using, only
QT += gui
will not be enough. Looking at the errors, you need thecore
,gui
andwidgets
module, so the following:QT += core gui widgets
should be present somewhere in your project file. Adding the modules will take care of the include and linkage paths, so
INCLUDEPATH += g:\Qt\Qt5.6.1\5.6\msvc2015_64\include\QtWidgets
is not necessary.Kind regards.