Qt 5.7 | Qt WebEngine | WebEngine Widgets Simple Browser Example | simplebrowser.pro Example File

Qt 5.7.1 Reference Documentation

# simplebrowser.pro Example File

webenginewidgets/simplebrowser/simplebrowser.pro

      TEMPLATE = app
      TARGET = simplebrowser
      QT += webenginewidgets
      CONFIG += c++11

      HEADERS += \
          browser.h \
          browserwindow.h \
          tabwidget.h \
          urllineedit.h \
          webview.h \
          webpage.h \
          webpopupwindow.h

      SOURCES += \
          browser.cpp \
          browserwindow.cpp \
          main.cpp \
          tabwidget.cpp \
          urllineedit.cpp \
          webview.cpp \
          webpage.cpp \
          webpopupwindow.cpp

      FORMS += \
          certificateerrordialog.ui \
          passworddialog.ui

      RESOURCES += data/simplebrowser.qrc

      # install
      target.path = $$[QT_INSTALL_EXAMPLES]/webenginewidgets/simplebrowser
      INSTALLS += target