![]() |
Falkon Develop
Cross-platform Qt-based web browser
|
The class exposing Windows API to QML. More...
#include <qmlwindows.h>
Signals | |
void | created (QmlWindow *window) |
The signal emitted when a window is created. More... | |
void | removed (QmlWindow *window) |
The signal emitted when a window is removed. More... | |
Public Member Functions | |
QmlWindows (QObject *parent=nullptr) | |
Q_INVOKABLE QmlWindow * | get (int id) const |
Gets a browser window. More... | |
Q_INVOKABLE QmlWindow * | getCurrent () const |
Gets the current browser window. More... | |
Q_INVOKABLE QList< QObject * > | getAll () const |
Get all the browser window. More... | |
Q_INVOKABLE QmlWindow * | create (const QVariantMap &map) const |
Creates a browser window. More... | |
Q_INVOKABLE void | remove (int windowId) const |
Removes a browser window. More... | |
The class exposing Windows API to QML.
Definition at line 26 of file qmlwindows.h.
QmlWindows::QmlWindows | ( | QObject * | parent = nullptr | ) |
Definition at line 24 of file qmlwindows.cpp.
QmlWindow * QmlWindows::create | ( | const QVariantMap & | map | ) | const |
Creates a browser window.
A | JavaScript object containing
|
Definition at line 59 of file qmlwindows.cpp.
|
signal |
The signal emitted when a window is created.
Object | of type QmlWindow |
QmlWindow * QmlWindows::get | ( | int | id | ) | const |
Gets a browser window.
Integer | representing the browser window |
Definition at line 38 of file qmlwindows.cpp.
QList< QObject * > QmlWindows::getAll | ( | ) | const |
Get all the browser window.
Definition at line 48 of file qmlwindows.cpp.
QmlWindow * QmlWindows::getCurrent | ( | ) | const |
Gets the current browser window.
Definition at line 43 of file qmlwindows.cpp.
void QmlWindows::remove | ( | int | windowId | ) | const |
Removes a browser window.
Integer | representing the window id |
Definition at line 67 of file qmlwindows.cpp.
|
signal |
The signal emitted when a window is removed.
Object | of type QmlWindow |