diff --git a/doc/libvlc/QtPlayer/QtVLC.pro b/doc/libvlc/QtPlayer/QtVLC.pro
index c050c9712648a8375dd4670b7833ed98d3034f9e..f3f1385880469b1c3428e269d5d5684ae7ddcc2b 100644
--- a/doc/libvlc/QtPlayer/QtVLC.pro
+++ b/doc/libvlc/QtPlayer/QtVLC.pro
@@ -1,9 +1,9 @@
 TEMPLATE = app
 TARGET = qtvlc
-DEPENDPATH += .
-INCLUDEPATH += .
-LIBS += -lvlc -lX11
 
-# Input
+CONFIG += link_pkgconfig force_debug_info
+PKGCONFIG = libvlc
+QT += widgets
+
 HEADERS += player.h
 SOURCES += main.cpp player.cpp