Unsolved Programmers editor
-
Is any editor with highlighting syntax for Qt? What about QScintilla_gpl-2.9.2? I can' t compile it.
-
What about QtCreator?
-
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. -
@JohanSolo What editing component is using in QtCreator?
-
@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....
-
I ask for editing component to use in own program.
-
You could try taking a look at http://doc.qt.io/qt-5/qtwidgets-richtext-syntaxhighlighter-example.html
-
-
Thanks, this component has highlighting but if has also folding and all features like QtCreator?
-
JuffEd uses QSciScintilla
-
-
@Ni.Sumi said:
Just out of curiosity, What's the reason to use editing component when there is Qt creator which is very powerful ?
QtCreator is program, I ask for component
-
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 ?
-
Could you please check the pro file . it has this QT += gui or not?
Also try this, right click on the project name and click on "Run qmake " and rebuild /run
-
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
-
INCLUDEPATH += g:\Qt\Qt5.6.1\5.6\msvc2015_64\include\QtWidgets
nothing helps -
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.