From 1821598fbb856edc3cf87470171e85e8910a6f99 Mon Sep 17 00:00:00 2001 From: philtherobot Date: Thu, 22 Jun 2017 17:17:21 -0400 Subject: Improve the example by explaining modules (#1981) * Improve the example by explaining modules * Refer to Qt documentation for its list of modules * Add a sweet link to Qt's doc. --- docs/markdown/Qt5-module.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docs/markdown') diff --git a/docs/markdown/Qt5-module.md b/docs/markdown/Qt5-module.md index 2b733bb..64d2920 100644 --- a/docs/markdown/Qt5-module.md +++ b/docs/markdown/Qt5-module.md @@ -8,8 +8,11 @@ This method takes four keyword arguments, `moc_headers`, `moc_sources`, `ui_file ```meson qt5 = import('qt5') -qt5_dep = dependency('qt5', ...) +qt5_dep = dependency('qt5', modules: ['Core', 'Gui']) moc_files = qt5.preprocess(moc_headers : 'myclass.h') executable('myprog', 'main.cpp', 'myclass.cpp', moc_files, dependencies : qt5_dep) ``` + + +The 'modules' argument is used to include Qt modules in the project. See the Qt documentation for the [list of modules](http://doc.qt.io/qt-5/qtmodules.html). -- cgit v1.1