Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Programmers editor
Qt 6.11 is out! See what's new in the release blog

Programmers editor

Scheduled Pinned Locked Moved Unsolved General and Desktop
19 Posts 7 Posters 5.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JohanSoloJ Offline
    JohanSoloJ Offline
    JohanSolo
    wrote on last edited by
    #2

    What about QtCreator?

    `They did not know it was impossible, so they did it.'
    -- Mark Twain

    A 1 Reply Last reply
    2
    • Mandar KhireM Offline
      Mandar KhireM Offline
      Mandar Khire
      wrote on last edited by
      #3

      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.

      1 Reply Last reply
      0
      • JohanSoloJ JohanSolo

        What about QtCreator?

        A Offline
        A Offline
        AndrzejB
        wrote on last edited by
        #4

        @JohanSolo What editing component is using in QtCreator?

        JohanSoloJ 1 Reply Last reply
        0
        • A AndrzejB

          @JohanSolo What editing component is using in QtCreator?

          JohanSoloJ Offline
          JohanSoloJ Offline
          JohanSolo
          wrote on last edited by JohanSolo
          #5

          @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....

          `They did not know it was impossible, so they did it.'
          -- Mark Twain

          1 Reply Last reply
          3
          • A Offline
            A Offline
            AndrzejB
            wrote on last edited by
            #6

            I ask for editing component to use in own program.

            1 Reply Last reply
            0
            • VRoninV Offline
              VRoninV Offline
              VRonin
              wrote on last edited by
              #7

              You could try taking a look at http://doc.qt.io/qt-5/qtwidgets-richtext-syntaxhighlighter-example.html

              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
              ~Napoleon Bonaparte

              On a crusade to banish setIndexWidget() from the holy land of Qt

              1 Reply Last reply
              1
              • Ni.SumiN Offline
                Ni.SumiN Offline
                Ni.Sumi
                wrote on last edited by
                #8

                Hi @AndrzejB ,

                Some thing like Scintilla and these , component to edit open source code editing ?

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  AndrzejB
                  wrote on last edited by
                  #9

                  Thanks, this component has highlighting but if has also folding and all features like QtCreator?

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    AndrzejB
                    wrote on last edited by
                    #10

                    JuffEd uses QSciScintilla

                    Ni.SumiN 1 Reply Last reply
                    0
                    • A AndrzejB

                      JuffEd uses QSciScintilla

                      Ni.SumiN Offline
                      Ni.SumiN Offline
                      Ni.Sumi
                      wrote on last edited by
                      #11

                      @AndrzejB
                      @AndrzejB ,

                      Yes, they have code folding , find /replace and all.

                      Just out of curiosity, What's the reason to use editing component when there is Qt creator which is very powerful ?

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        AndrzejB
                        wrote on last edited by
                        #12

                        @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

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          AndrzejB
                          wrote on last edited by
                          #13

                          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 ?

                          Ni.SumiN 1 Reply Last reply
                          0
                          • A AndrzejB

                            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 ?

                            Ni.SumiN Offline
                            Ni.SumiN Offline
                            Ni.Sumi
                            wrote on last edited by Ni.Sumi
                            #14

                            @AndrzejB

                            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

                            1 Reply Last reply
                            1
                            • A Offline
                              A Offline
                              AndrzejB
                              wrote on last edited by
                              #15
                              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

                              1 Reply Last reply
                              0
                              • ? Offline
                                ? Offline
                                A Former User
                                wrote on last edited by
                                #16

                                You did not do something like @Ni-Sumi said:
                                QT += gui

                                1 Reply Last reply
                                0
                                • A Offline
                                  A Offline
                                  AndrzejB
                                  wrote on last edited by
                                  #17

                                  @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

                                  1 Reply Last reply
                                  0
                                  • A Offline
                                    A Offline
                                    AndrzejB
                                    wrote on last edited by
                                    #18

                                    INCLUDEPATH += g:\Qt\Qt5.6.1\5.6\msvc2015_64\include\QtWidgets
                                    nothing helps

                                    kshegunovK 1 Reply Last reply
                                    0
                                    • A AndrzejB

                                      INCLUDEPATH += g:\Qt\Qt5.6.1\5.6\msvc2015_64\include\QtWidgets
                                      nothing helps

                                      kshegunovK Offline
                                      kshegunovK Offline
                                      kshegunov
                                      Moderators
                                      wrote on last edited by
                                      #19

                                      @AndrzejB

                                      You should list all the modules you're using, only QT += gui will not be enough. Looking at the errors, you need the core, gui and widgets 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.

                                      Read and abide by the Qt Code of Conduct

                                      1 Reply Last reply
                                      6

                                      • Login

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • Users
                                      • Groups
                                      • Search
                                      • Get Qt Extensions
                                      • Unsolved