Open-Typer
Open source typewriting tutor program
Loading...
Searching...
No Matches
QmlWidget Class Reference

The QmlWidget class provides a way to display QWidgets in a QML scene. More...

#include "framework/uicomponents/internal/QmlWidget.h"

Inheritance diagram for QmlWidget:
Collaboration diagram for QmlWidget:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ QmlWidget()

QmlWidget::QmlWidget ( QQuickItem *  parent = nullptr)

Constructs QmlWidget.

Property Documentation

◆ widget

QWidget * QmlWidget::widget
readwrite

The widget which is displayed in QML.


The documentation for this class was generated from the following files: