Index: trunk/BNC/src/map/bncmapwin.cpp
===================================================================
--- trunk/BNC/src/map/bncmapwin.cpp	(revision 8253)
+++ trunk/BNC/src/map/bncmapwin.cpp	(revision 8260)
@@ -35,5 +35,5 @@
  * Created:    08-Jun-2013
  *
- * Changes:    
+ * Changes:
  *
  * -----------------------------------------------------------------------*/
@@ -56,5 +56,10 @@
   _currLon =  8.66496871; // BKG longitude
 
+#ifdef QT_WEBENGINE
+  _webView = new QWebEngineView(this);
+#else
   _webView = new QWebView(this);
+#endif
+
   connect(_webView, SIGNAL(loadFinished(bool)), this, SLOT(slotInitMap(bool)));
 
@@ -75,5 +80,5 @@
   loadHtmlPage();
 
-  _webView->show();  
+  _webView->show();
 
   _statusLabel = new QLabel;
@@ -99,5 +104,5 @@
 }
 
-// 
+//
 ////////////////////////////////////////////////////////////////////////////
 void bncMapWin::loadHtmlPage() {
@@ -123,5 +128,5 @@
 }
 
-// 
+//
 ////////////////////////////////////////////////////////////////////////////
 void bncMapWin::slotInitMap(bool isOk) {
@@ -139,5 +144,5 @@
 }
 
-// 
+//
 ////////////////////////////////////////////////////////////////////////////
 void bncMapWin::gotoLocation(double lat, double lon) {
@@ -166,5 +171,5 @@
 }
 
-// 
+//
 ////////////////////////////////////////////////////////////////////////////
 void bncMapWin::slotNewPosition(QByteArray staID, bncTime /* time */, QVector<double> xx) {
Index: trunk/BNC/src/map/bncmapwin.h
===================================================================
--- trunk/BNC/src/map/bncmapwin.h	(revision 8253)
+++ trunk/BNC/src/map/bncmapwin.h	(revision 8260)
@@ -26,4 +26,12 @@
 #define BNCMAPWIN_H
 
+#ifdef QT_WEBENGINE
+  #include <QWebEngineView>
+#else
+  #include <QWebView>
+#endif
+#include <QLabel>
+#include <QHBoxLayout>
+#include <QWebFrame>
 #include <QByteArray>
 #include <QDialog>
@@ -40,5 +48,5 @@
 
  signals:
-  void mapClosed(); 
+  void mapClosed();
 
  public slots:
@@ -54,5 +62,9 @@
   void loadHtmlPage();
   void gotoLocation(double lat, double lon);
-  QWebView*  _webView;
+#ifdef QT_WEBENGINE
+  QWebEngineView*  _webView;
+#else
+  QWebView*        _webView;
+#endif
   QLabel*    _statusLabel;
   double     _currLat;
Index: trunk/BNC/src/src.pri
===================================================================
--- trunk/BNC/src/src.pri	(revision 8253)
+++ trunk/BNC/src/src.pri	(revision 8260)
@@ -135,25 +135,17 @@
 # Check QtWebKit Library Existence
 # --------------------------------
-win32 {
-  exists("$$[QT_INSTALL_BINS]/QtWebKit4.dll") {
+exists("$$[QT_INSTALL_LIBS]/*WebKit*") {
     DEFINES += QT_WEBKIT
-  }
+    QT      += webkitwidgets
+    message("Configured with QtWebKit")
 }
 
-unix {
-  exists("$$[QT_INSTALL_LIBS]/libQtWebKit.so") {
-    DEFINES += QT_WEBKIT
-  }
+exists("$$[QT_INSTALL_LIBS]/*WebEngineWidgets*") {
+    DEFINES += QT_WEBENGINE
+    QT      += webenginewidgets
+    message("Configured with QtWebEngine")
 }
 
-macx {
-  exists("$$[QT_INSTALL_LIBS]/QtWebKit.framework") {
-    DEFINES += QT_WEBKIT
-  }
-}
-
-contains(DEFINES, QT_WEBKIT) {
-  message("Configured with QtWebKit")
-  QT          += webkit
+contains(DEFINES, QT_WEBENGINE) | contains(DEFINES, QT_WEBKIT) {
   HEADERS     += map/bncmapwin.h
   SOURCES     += map/bncmapwin.cpp
@@ -161,4 +153,4 @@
 }
 else {
-  message("No QtWebKit")
+  message("Neither QtWebEngine nor QtWebKit is available")
 }
