QMLWidget Class Reference
Base class for all widget load QML files. These widget are also an interface between the QML interface and the rest of the application by handling slots and signals.
More...
#include <UI/Types/QMLWidget.h>
List of all members.
Public Member Functions |
| QMLWidget (QWidget *parent=0) |
bool | load (const QString &fileName) |
| Loads the QML file designed by fileName
|
Protected Member Functions |
virtual bool | updateQML ()=0 |
| This function is called by load() after the loading of the QML. Implementers should connect the slots and signals in it, and also send data to QML file (Note: basically, the sending of data to QML should be done before and this will cause showing some warnings, but it is working).
|
void | resizeEvent (QResizeEvent *pResizeEvent) |
| Handles the resize events to cause the QML view to be resized.
|
Protected Attributes |
QDeclarativeView * | m_pView |
QObject * | m_pQMLObject |
Detailed Description
Base class for all widget load QML files. These widget are also an interface between the QML interface and the rest of the application by handling slots and signals.
Constructor & Destructor Documentation
QMLWidget::QMLWidget |
( |
QWidget * |
parent = 0 |
) |
|
Member Function Documentation
bool QMLWidget::load |
( |
const QString & |
fileName |
) |
|
Loads the QML file designed by fileName
- Parameters:
-
| fileName | the file to load |
- Returns:
- true if all goes right
void QMLWidget::resizeEvent |
( |
QResizeEvent * |
pResizeEvent |
) |
[protected] |
Handles the resize events to cause the QML view to be resized.
- Parameters:
-
| pResizeEvent | information on the resize event |
Member Data Documentation
The documentation for this class was generated from the following files: