Qt 5.11 | Qt Widgets | Font Sampler Example | fontsampler.pro Example File

Qt 5.11.3 Reference Documentation

# fontsampler.pro Example File

painting/fontsampler/fontsampler.pro

      QT += widgets
      requires(qtConfig(combobox))
      qtHaveModule(printsupport): QT += printsupport

      FORMS     = mainwindowbase.ui
      HEADERS   = mainwindow.h
      SOURCES   = main.cpp \
                  mainwindow.cpp

      # install
      target.path = $$[QT_INSTALL_EXAMPLES]/widgets/painting/fontsampler
      INSTALLS += target