7#include <QtCore/qglobal.h>
11#include <QtGui/QTextDocument>
13#include <QtPrintSupport/QPrinter>
15#include <QtWidgets/QWidget>
29 Q_DECLARE_FLAGS(FindFlags, FindFlag)
57 bool findText(
const QString &text, FindFlags flags,
bool incremental,
66 bool eventFilter(QObject *src, QEvent *event)
override;
69#if QT_CONFIG(clipboard)
86 void doSetSource(
const QUrl &url,
bool reload);
QString documentTitle() const
void setText(const QString &text, const QByteArray &resources)
void setPixmap(const QPixmap &pixmap)
QSize minimumSizeHint() const override
QVariant loadResource(int type, const QUrl &name) override
This function is called when the document is loaded and for each image in the document.
void doSetSource(const QUrl &name, QTextDocument::ResourceType type) override
Attempts to load the document at the given url with the specified type.
void setText(const QString &text, const QByteArray &resources)
void setViewerFont(const QFont &font)
static QString mimeFromUrl(const QUrl &url)
void forwardAvailable(bool enabled)
void copyAvailable(bool yes)
void setSource(const QUrl &url)
static bool launchWithExternalApp(const QUrl &url)
QString selectedText() const
void sourceChanged(const QUrl &url)
static bool isLocalUrl(const QUrl &url)
bool isForwardAvailable() const
void backwardAvailable(bool enabled)
bool findText(const QString &text, FindFlags flags, bool incremental, bool fromSearch)
bool isBackwardAvailable() const
bool eventFilter(QObject *src, QEvent *event) override
Filters events if this object has been installed as an event filter for the watched object.
void highlighted(const QUrl &link)
static bool canOpenPage(const QString &url)
Combined button and popup list for selecting options.