Languages: عربي | Asturianu | Català | Česky | Kaszëbsczi | Dansk | Deutsch | English | Esperanto | Español | Eesti | فارسی | Suomi | Français | Galego | Italiano | 日本語 | 한국어 | Norwegian | Polski | Português Brasileiro | Română | Русский | Svenska | Slovenčina | Slovenščina | српски | Türkçe | Tiếng Việt | Українська | 简体中文 | 繁體中文
|Tutorial Series||Marble Widget Plugin for Qt Designer|
The MarbleWidget is also offered as a designer plugin. If you compile Marble yourself you probably need to enable the compilation of the designer plugin:
If your source directory is "~/marble" and your build directory is "~/marble_build" then you can enable compilation of the designer plugin via the cmake call:
cmake -DWITH_DESIGNER_PLUGIN=ON ../marble
Once you have compiled marble using make you can install everything using "make install". This should install the file
into Qt's designer plugin directory (please check this in case things don't work out).
Once you start Qt Designer you should spot a new "Marble Desktop Globe" category in the widget box on the left.
You can use this MarbleWidget just like all other widgets inside Designer: Once you have started Designer you can choose a new form from the ready-made templates (e.g. a QWidget). Now you can just drag and drop the Marble Widget from the widget box onto your form:
The map properties of the MarbleWidget can be adjusted in the .
There are two ready-made examples available inside the example directory of the Marble source code:
The examples nicely demonstrate how signals and slots work with the MarbleWidget.