The class exposing a browser tab to QML.
More...
#include <qmltab.h>
The class exposing a browser tab to QML.
Definition at line 31 of file qmltab.h.
◆ QmlTab()
QmlTab::QmlTab |
( |
WebTab * |
webTab = nullptr , |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ back()
Loads the previous page.
Definition at line 158 of file qmltab.cpp.
◆ backgroundActivityChanged
void QmlTab::backgroundActivityChanged |
( |
int |
backgroundActivityChanged | ) |
|
|
signal |
The signal emitted when background activity of the tab is changed.
- Parameters
-
Bool | representing if there is background activity attached to the tab |
◆ detach()
◆ execJavaScript()
QVariant QmlTab::execJavaScript |
( |
const QJSValue & |
value | ) |
|
execute JavaScript function in a page
- Parameters
-
value,representing | JavaScript function |
- Returns
- QVariant, the return value of executed javascript
Definition at line 203 of file qmltab.cpp.
◆ forward()
◆ hitTestContent()
Gets result of web hit test at a given point.
- Parameters
-
- Returns
- result of web hit test
Definition at line 215 of file qmltab.cpp.
◆ load()
void QmlTab::load |
( |
const QString & |
url | ) |
|
Loads webview associated with the tab.
- Parameters
-
String | representing the url to load |
Definition at line 84 of file qmltab.cpp.
◆ loadingChanged
void QmlTab::loadingChanged |
( |
bool |
loading | ) |
|
|
signal |
The signal emitted when loading state of the tab is changed.
- Parameters
-
Bool | representing if the tab is loading |
◆ mutedChanged
void QmlTab::mutedChanged |
( |
bool |
muted | ) |
|
|
signal |
The signal emitted when muted state of the tab is changed.
- Parameters
-
Bool | representing if the tab is muted |
◆ navigationRequestAccepted
void QmlTab::navigationRequestAccepted |
( |
const QUrl & |
url, |
|
|
QWebEnginePage::NavigationType |
type, |
|
|
bool |
isMainFrame |
|
) |
| |
|
signal |
The signal emitted when navigation request is accepted.
- Parameters
-
url,representing | requested url |
type | of navigation |
isMainFrame,represents | if navigation is requested for a top level page. |
◆ pinnedChanged
void QmlTab::pinnedChanged |
( |
bool |
pinned | ) |
|
|
signal |
The signal emitted when pinned state of the tab is changed.
- Parameters
-
Bool | representing if a tab is pinned |
◆ playingChanged
void QmlTab::playingChanged |
( |
bool |
playing | ) |
|
|
signal |
The signal emitted when playing state of the tab is changed.
- Parameters
-
Bool | representing if the tab is in playing state |
◆ printPage()
void QmlTab::printPage |
( |
| ) |
|
◆ redo()
Performs edit redo on the tab.
Definition at line 131 of file qmltab.cpp.
◆ reload()
Reloads webview associated with the tab.
Definition at line 66 of file qmltab.cpp.
◆ reloadBypassCache()
void QmlTab::reloadBypassCache |
( |
| ) |
|
Reloads the tab by bypassing the cache.
Definition at line 149 of file qmltab.cpp.
◆ restoredChanged
void QmlTab::restoredChanged |
( |
bool |
restored | ) |
|
|
signal |
The signal emitted when restored state of the tab is changed.
- Parameters
-
Bool | representing if the tab is restored |
◆ selectAll()
void QmlTab::selectAll |
( |
| ) |
|
Performs edit select-all on the tab.
Definition at line 140 of file qmltab.cpp.
◆ sendPageByMail()
void QmlTab::sendPageByMail |
( |
| ) |
|
◆ setWebPage()
void QmlTab::setWebPage |
( |
WebPage * |
webPage | ) |
|
◆ setZoomLevel()
void QmlTab::setZoomLevel |
( |
int |
zoomLevel | ) |
|
Set the zoom level of the tab.
- Parameters
-
Integer | representing the zoom level |
Definition at line 48 of file qmltab.cpp.
◆ showSource()
void QmlTab::showSource |
( |
| ) |
|
Shows the page source.
Definition at line 185 of file qmltab.cpp.
◆ stop()
Stops webview associated with the tab.
Definition at line 57 of file qmltab.cpp.
◆ titleChanged
void QmlTab::titleChanged |
( |
const QString & |
title | ) |
|
|
signal |
The signal emitted when the tab title is changed.
- Parameters
-
String | representing the new title |
◆ undo()
Performs edit undo on the tab.
Definition at line 122 of file qmltab.cpp.
◆ unload()
◆ zoomIn()
Decreases the zoom level of the tab.
Definition at line 95 of file qmltab.cpp.
◆ zoomLevelChanged
void QmlTab::zoomLevelChanged |
( |
int |
zoomLevel | ) |
|
|
signal |
The signal emitted when zoom level of the tab is changed.
- Parameters
-
Integer | representing the zoom level |
◆ zoomOut()
Increases the zoom level of the tab.
Definition at line 104 of file qmltab.cpp.
◆ zoomReset()
void QmlTab::zoomReset |
( |
| ) |
|
Resets the tab zoom level.
Definition at line 113 of file qmltab.cpp.
◆ backgroundActivity
bool QmlTab::backgroundActivity |
|
read |
checks if the tab has associated background activity
Definition at line 1 of file qmltab.h.
◆ browserWindow
window of the tab
Definition at line 1 of file qmltab.h.
◆ canGoBack
checks if the tab is can go back
Definition at line 1 of file qmltab.h.
◆ canGoForward
bool QmlTab::canGoForward |
|
read |
checks if the tab is can go forward
Definition at line 1 of file qmltab.h.
◆ current
checks if the tab is the current tab
Definition at line 1 of file qmltab.h.
◆ index
index of the tab
Definition at line 1 of file qmltab.h.
◆ loading
checks if the tab is loading
Definition at line 1 of file qmltab.h.
◆ loadingProgress
int QmlTab::loadingProgress |
|
read |
get the loading progress of the tab
Definition at line 1 of file qmltab.h.
◆ muted
checks if the tab is muted
Definition at line 1 of file qmltab.h.
◆ pinned
checks if the tab is pinned
Definition at line 1 of file qmltab.h.
◆ playing
checks if the tab is playing
Definition at line 1 of file qmltab.h.
◆ restored
checks if the tab is restored
Definition at line 1 of file qmltab.h.
◆ title
title of the tab
Definition at line 1 of file qmltab.h.
◆ url
url of the tab
Definition at line 1 of file qmltab.h.
◆ zoomLevel
zoom level of the tab
Zoom levels are from 0 to 18
Definition at line 1 of file qmltab.h.
The documentation for this class was generated from the following files: