Open-Typer
Open source typewriting tutor program
|
The QmlWidget class provides a way to display QWidgets in a QML scene. More...
#include "framework/uicomponents/internal/QmlWidget.h"
Signals | |
void | widgetChanged (QWidget *widget) |
Public Member Functions | |
QmlWidget (QQuickItem *parent=nullptr) | |
QWidget * | widget (void) |
void | setWidget (QWidget *widget) |
void | paint (QPainter *painter) override |
Properties | |
QWidget * | widget |
Private Attributes | |
QWidget * | m_widget = nullptr |
The QmlWidget class provides a way to display QWidgets in a QML scene.
Note: It does not support any events and needs to be repainted manually.
The widget can be only created in C++ and used in QML using QQmlContext::setContextProperty() or singleton type.
QmlWidget::QmlWidget | ( | QQuickItem * | parent = nullptr | ) |
Constructs QmlWidget.
|
readwrite |
The widget which is displayed in QML.