Qt 5.11 | Qt Widgets | Syntax Highlighter Example | syntaxhighlighter.pro Example File

Qt 5.11.3 Reference Documentation

# syntaxhighlighter.pro Example File

richtext/syntaxhighlighter/syntaxhighlighter.pro

      QT += widgets
      requires(qtConfig(filedialog))

      HEADERS         = highlighter.h \
                        mainwindow.h
      SOURCES         = highlighter.cpp \
                        mainwindow.cpp \
                        main.cpp

      # install
      target.path = $$[QT_INSTALL_EXAMPLES]/widgets/richtext/syntaxhighlighter
      INSTALLS += target