Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qtextimagehandler_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QTEXTIMAGEHANDLER_P_H
5#define QTEXTIMAGEHANDLER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/private/qtguiglobal_p.h>
19#include "QtCore/qobject.h"
20#include "QtGui/qabstracttextdocumentlayout.h"
21
23
25
26class Q_GUI_EXPORT QTextImageHandler : public QObject,
28{
31public:
32 explicit QTextImageHandler(QObject *parent = nullptr);
33
34 virtual QSizeF intrinsicSize(QTextDocument *doc, int posInDocument, const QTextFormat &format) override;
35 virtual void drawObject(QPainter *p, const QRectF &rect, QTextDocument *doc, int posInDocument, const QTextFormat &format) override;
36 QImage image(QTextDocument *doc, const QTextImageFormat &imageFormat);
37};
38
40
41#endif // QTEXTIMAGEHANDLER_P_H
\inmodule QtGui
Definition qimage.h:37
\inmodule QtCore
Definition qobject.h:103
The QPainter class performs low-level painting on widgets and other paint devices.
Definition qpainter.h:46
\inmodule QtCore\reentrant
Definition qrect.h:484
\inmodule QtCore
Definition qsize.h:208
\reentrant \inmodule QtGui
\reentrant
Definition qtextformat.h:90
The QTextObjectInterface class allows drawing of custom text objects in \l{QTextDocument}s.
rect
[4]
Combined button and popup list for selecting options.
Definition image.cpp:4
GLint GLsizei GLsizei GLenum format
GLfloat GLfloat p
[1]
#define Q_OBJECT
#define Q_INTERFACES(x)