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>

Inheritance diagram for QMLWidget:
ConnectionQMLWidget QMLBarWidget QMLChatWidget QMLEditDataWidget QMLEditMachinesWidget QMLEditUsersWidget QMLPatientListWidget QMLVersionningWidget

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  ) 
Parameters:
parent 

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

QObject* QMLWidget::m_pQMLObject [protected]

QML Object context

QDeclarativeView* QMLWidget::m_pView [protected]

QML View


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Properties
Generated on Tue Sep 13 01:46:07 2011 for MedCenter by  doxygen 1.6.3