diff options
| author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-10-15 09:54:06 -0300 |
|---|---|---|
| committer | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-10-15 09:54:06 -0300 |
| commit | 5c56d1288ba905ab162246c65fffbc69a831a14e (patch) | |
| tree | 5043b5daf97aa9e2bb2e87e7d5809b3a762e556e /examples/README | |
| parent | e243399cba32f939eccdcb55fe093b7c57f31161 (diff) | |
| parent | 5999e7a42962140b6479995d77a178186b6b2fcc (diff) | |
| download | qmenumodel-5c56d1288ba905ab162246c65fffbc69a831a14e.tar.gz qmenumodel-5c56d1288ba905ab162246c65fffbc69a831a14e.tar.bz2 qmenumodel-5c56d1288ba905ab162246c65fffbc69a831a14e.zip | |
Merged mainline.
Diffstat (limited to 'examples/README')
| -rw-r--r-- | examples/README | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/examples/README b/examples/README index 1ecac0e..ab683f3 100644 --- a/examples/README +++ b/examples/README @@ -1,11 +1,23 @@ This directory contains examples that demonstrate how to use the QMenuModel -QML binding in applications. +binding in Qt and QML applications. + To export an example menu model on the bus, run 'exportmenu.py'. + To render this menu in a QML application, run 'render-menumodel.qml' in qmlscene. You will need to inform qmlscene of the location of the QMenuModel plugin if it’s not installed system-wide, e.g.: - qmlscene -I libqmenumodel examples/render-menumodel.qml + $ qmlscene -I libqmenumodel examples/render-menumodel.qml + + +To compile a C++ executable that uses libqmenumodel to monitor and print +information about the exported menu, run `cmake` and then `make` from this +directory. This assumes that libqmenumodel-dev is installed on the system +(it won’t work with a local copy). Then, run the executable generated: + + $ cmake . + $ make + $ ./info-menumodel |
