![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qlitehtmlwidget.h>
Public Types | |
| using | ResourceHandler = std::function<QByteArray(QUrl)> |
Signals | |
| void | linkClicked (const QUrl &url) |
| void | linkHighlighted (const QUrl &url) |
| void | copyAvailable (bool available) |
| void | contextMenuRequested (const QPoint &pos, const QUrl &url) |
Public Member Functions | |
| QLiteHtmlWidget (QWidget *parent=nullptr) | |
| ~QLiteHtmlWidget () override | |
| void | setUrl (const QUrl &url) |
| Q_INVOKABLE QUrl | url () const |
| void | setHtml (const QString &content) |
| Q_INVOKABLE QString | html () const |
| Q_INVOKABLE QString | title () const |
| void | setZoomFactor (qreal scale) |
| qreal | zoomFactor () const |
| bool | findText (const QString &text, QTextDocument::FindFlags flags, bool incremental, bool *wrapped=nullptr) |
| void | setDefaultFont (const QFont &font) |
| QFont | defaultFont () const |
| void | setAntialias (bool on) |
| void | scrollToAnchor (const QString &name) |
| void | setResourceHandler (const ResourceHandler &handler) |
| Q_INVOKABLE QString | selectedText () const |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) override |
| void | resizeEvent (QResizeEvent *event) override |
| void | mouseMoveEvent (QMouseEvent *event) override |
| void | mousePressEvent (QMouseEvent *event) override |
| void | mouseReleaseEvent (QMouseEvent *event) override |
| void | mouseDoubleClickEvent (QMouseEvent *event) override |
| void | leaveEvent (QEvent *event) override |
| void | contextMenuEvent (QContextMenuEvent *event) override |
| void | keyPressEvent (QKeyEvent *event) override |
Definition at line 15 of file qlitehtmlwidget.h.
| using QLiteHtmlWidget::ResourceHandler = std::function<QByteArray(QUrl)> |
Definition at line 43 of file qlitehtmlwidget.h.
|
explicit |
Definition at line 400 of file qlitehtmlwidget.cpp.
|
override |
Definition at line 426 of file qlitehtmlwidget.cpp.
|
overrideprotected |
Definition at line 631 of file qlitehtmlwidget.cpp.
|
signal |
| QFont QLiteHtmlWidget::defaultFont | ( | ) | const |
Definition at line 521 of file qlitehtmlwidget.cpp.
| bool QLiteHtmlWidget::findText | ( | const QString & | text, |
| QTextDocument::FindFlags | flags, | ||
| bool | incremental, | ||
| bool * | wrapped = nullptr ) |
Definition at line 484 of file qlitehtmlwidget.cpp.
| QString QLiteHtmlWidget::html | ( | ) | const |
Definition at line 462 of file qlitehtmlwidget.cpp.
Definition at line 652 of file qlitehtmlwidget.cpp.
Definition at line 622 of file qlitehtmlwidget.cpp.
|
overrideprotected |
Definition at line 611 of file qlitehtmlwidget.cpp.
|
overrideprotected |
Definition at line 579 of file qlitehtmlwidget.cpp.
|
overrideprotected |
Definition at line 591 of file qlitehtmlwidget.cpp.
|
overrideprotected |
Definition at line 601 of file qlitehtmlwidget.cpp.
|
overrideprotected |
Definition at line 559 of file qlitehtmlwidget.cpp.
|
overrideprotected |
Definition at line 571 of file qlitehtmlwidget.cpp.
Definition at line 535 of file qlitehtmlwidget.cpp.
| QString QLiteHtmlWidget::selectedText | ( | ) | const |
Definition at line 554 of file qlitehtmlwidget.cpp.
| void QLiteHtmlWidget::setAntialias | ( | bool | on | ) |
Definition at line 526 of file qlitehtmlwidget.cpp.
Definition at line 513 of file qlitehtmlwidget.cpp.
Definition at line 450 of file qlitehtmlwidget.cpp.
| void QLiteHtmlWidget::setResourceHandler | ( | const ResourceHandler & | handler | ) |
Definition at line 549 of file qlitehtmlwidget.cpp.
Definition at line 431 of file qlitehtmlwidget.cpp.
Definition at line 472 of file qlitehtmlwidget.cpp.
| QString QLiteHtmlWidget::title | ( | ) | const |
Definition at line 467 of file qlitehtmlwidget.cpp.
| QUrl QLiteHtmlWidget::url | ( | ) | const |
Definition at line 445 of file qlitehtmlwidget.cpp.
| qreal QLiteHtmlWidget::zoomFactor | ( | ) | const |
Definition at line 479 of file qlitehtmlwidget.cpp.