7#include <QtGui/qbrush.h>
8#include <QtGui/qcolor.h>
9#include <QtGui/qfont.h>
10#include <QtGui/qpen.h>
11#include <QtGui/qtextoption.h>
12#include <QtGui/qtguiglobal.h>
14#include <QtCore/qlist.h>
15#include <QtCore/qshareddata.h>
16#include <QtCore/qvariant.h>
40#ifndef QT_NO_DEBUG_STREAM
49 inline QTextLength() : lengthType(VariableLength), fixedValueOrPercentage(0) {}
53 inline Type type()
const {
return lengthType; }
57 case FixedLength:
return fixedValueOrPercentage;
58 case VariableLength:
return maximumLength;
59 case PercentageLength:
return fixedValueOrPercentage * maximumLength /
qreal(100);
67 {
return lengthType ==
other.lengthType
70 {
return lengthType !=
other.lengthType
76 qreal fixedValueOrPercentage;
83 : lengthType(atype), fixedValueOrPercentage(avalue) {}
85#ifndef QT_NO_DEBUG_STREAM
109 LayoutDirection = 0x0801,
112 BackgroundBrush = 0x820,
113 ForegroundBrush = 0x821,
115 BackgroundImageUrl = 0x823,
118 BlockAlignment = 0x1010,
119 BlockTopMargin = 0x1030,
120 BlockBottomMargin = 0x1031,
121 BlockLeftMargin = 0x1032,
122 BlockRightMargin = 0x1033,
124 TabPositions = 0x1035,
125 BlockIndent = 0x1040,
127 LineHeightType = 0x1049,
128 BlockNonBreakableLines = 0x1050,
129 BlockTrailingHorizontalRulerWidth = 0x1060,
130 HeadingLevel = 0x1070,
131 BlockQuoteLevel = 0x1080,
132 BlockCodeLanguage = 0x1090,
133 BlockCodeFence = 0x1091,
134 BlockMarker = 0x10A0,
137 FirstFontProperty = 0x1FE0,
138 FontCapitalization = FirstFontProperty,
139 FontLetterSpacing = 0x1FE1,
140 FontWordSpacing = 0x1FE2,
141 FontStyleHint = 0x1FE3,
142 FontStyleStrategy = 0x1FE4,
143 FontKerning = 0x1FE5,
144 FontHintingPreference = 0x1FE6,
145 FontFamilies = 0x1FE7,
146 FontStyleName = 0x1FE8,
147 FontLetterSpacingType = 0x1FE9,
148 FontStretch = 0x1FEA,
149#if QT_DEPRECATED_SINCE(6, 0)
152 FontPointSize = 0x2001,
153 FontSizeAdjustment = 0x2002,
154 FontSizeIncrement = FontSizeAdjustment,
157 FontUnderline = 0x2005,
158 FontOverline = 0x2006,
159 FontStrikeOut = 0x2007,
160 FontFixedPitch = 0x2008,
161 FontPixelSize = 0x2009,
162 LastFontProperty = FontPixelSize,
164 TextUnderlineColor = 0x2020,
165 TextVerticalAlignment = 0x2021,
166 TextOutline = 0x2022,
167 TextUnderlineStyle = 0x2023,
168 TextToolTip = 0x2024,
169 TextSuperScriptBaseline = 0x2025,
170 TextSubScriptBaseline = 0x2026,
171 TextBaselineOffset = 0x2027,
179 OldFontLetterSpacingType = 0x2033,
180 OldFontStretch = 0x2034,
181 OldTextUnderlineColor = 0x2010,
182 OldFontFamily = 0x2000,
189 ListNumberPrefix = 0x3002,
190 ListNumberSuffix = 0x3003,
194 FrameBorder = 0x4000,
195 FrameMargin = 0x4001,
196 FramePadding = 0x4002,
198 FrameHeight = 0x4004,
199 FrameTopMargin = 0x4005,
200 FrameBottomMargin = 0x4006,
201 FrameLeftMargin = 0x4007,
202 FrameRightMargin = 0x4008,
203 FrameBorderBrush = 0x4009,
204 FrameBorderStyle = 0x4010,
206 TableColumns = 0x4100,
207 TableColumnWidthConstraints = 0x4101,
208 TableCellSpacing = 0x4102,
209 TableCellPadding = 0x4103,
210 TableHeaderRowCount = 0x4104,
211 TableBorderCollapse = 0x4105,
214 TableCellRowSpan = 0x4810,
215 TableCellColumnSpan = 0x4811,
217 TableCellTopPadding = 0x4812,
218 TableCellBottomPadding = 0x4813,
219 TableCellLeftPadding = 0x4814,
220 TableCellRightPadding = 0x4815,
222 TableCellTopBorder = 0x4816,
223 TableCellBottomBorder = 0x4817,
224 TableCellLeftBorder = 0x4818,
225 TableCellRightBorder = 0x4819,
227 TableCellTopBorderStyle = 0x481a,
228 TableCellBottomBorderStyle = 0x481b,
229 TableCellLeftBorderStyle = 0x481c,
230 TableCellRightBorderStyle = 0x481d,
232 TableCellTopBorderBrush = 0x481e,
233 TableCellBottomBorderBrush = 0x481f,
234 TableCellLeftBorderBrush = 0x4820,
235 TableCellRightBorderBrush = 0x4821,
240 ImageAltText = 0x5002,
242 ImageHeight = 0x5011,
243 ImageQuality = 0x5014,
252 FullWidthSelection = 0x06000,
255 PageBreakPolicy = 0x7000,
258 UserProperty = 0x100000
274 PageBreak_AlwaysBefore = 0x001,
275 PageBreak_AlwaysAfter = 0x010
289 {
d.swap(
other.d); std::swap(format_type,
other.format_type); }
294 inline bool isEmpty()
const {
return propertyCount() == 0; }
298 int objectIndex()
const;
299 void setObjectIndex(
int object);
303 void clearProperty(
int propertyId);
304 bool hasProperty(
int propertyId)
const;
306 bool boolProperty(
int propertyId)
const;
307 int intProperty(
int propertyId)
const;
308 qreal doubleProperty(
int propertyId)
const;
309 QString stringProperty(
int propertyId)
const;
310 QColor colorProperty(
int propertyId)
const;
311 QPen penProperty(
int propertyId)
const;
312 QBrush brushProperty(
int propertyId)
const;
319 int propertyCount()
const;
321 inline void setObjectType(
int type);
323 {
return intProperty(ObjectType); }
329 inline bool isImageFormat()
const {
return type() == CharFormat && objectType() == ImageObject; }
330 inline bool isTableFormat()
const {
return type() == FrameFormat && objectType() == TableObject; }
353 {
return brushProperty(BackgroundBrush); }
355 { clearProperty(BackgroundBrush); }
360 {
return brushProperty(ForegroundBrush); }
362 { clearProperty(ForegroundBrush); }
415#if QT_DEPRECATED_SINCE(6, 1)
424#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
434#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
591 if (_tableCellRowSpan <= 1)
599 if (_tableCellColumnSpan <= 1)
610 ProportionalHeight = 1,
613 LineDistanceHeight = 4
624 bool isValid()
const {
return isBlockFormat(); }
633 {
return doubleProperty(BlockTopMargin); }
638 {
return doubleProperty(BlockBottomMargin); }
643 {
return doubleProperty(BlockLeftMargin); }
648 {
return doubleProperty(BlockRightMargin); }
653 {
return doubleProperty(TextIndent); }
655 inline void setIndent(
int indent);
657 {
return intProperty(BlockIndent); }
662 {
return intProperty(HeadingLevel); }
668 {
return doubleProperty(LineHeight); }
670 {
return intProperty(LineHeightType); }
675 {
return boolProperty(BlockNonBreakableLines); }
680 {
return PageBreakFlags(intProperty(PageBreakPolicy)); }
688 {
return MarkerType(intProperty(BlockMarker)); }
709 return(scriptLineHeight);
727 bool isValid()
const {
return isListFormat(); }
738 ListStyleUndefined = 0
743 {
return static_cast<Style>(intProperty(ListStyle)); }
745 inline void setIndent(
int indent);
747 {
return intProperty(ListIndent); }
749 inline void setNumberPrefix(
const QString &numberPrefix);
751 {
return stringProperty(ListNumberPrefix); }
753 inline void setNumberSuffix(
const QString &numberSuffix);
755 {
return stringProperty(ListNumberSuffix); }
757 inline void setStart(
int indent);
758 inline int start()
const {
return intProperty(ListStart); }
789 bool isValid()
const {
return isImageFormat(); }
793 {
return stringProperty(ImageName); }
797 {
return doubleProperty(ImageWidth); }
801 {
return doubleProperty(ImageHeight); }
803 inline void setQuality(
int quality);
804#if QT_DEPRECATED_SINCE(6, 3)
809 {
return intProperty(ImageQuality); }
837 bool isValid()
const {
return isFrameFormat(); }
864 {
return static_cast<Position>(intProperty(CssFloat)); }
868 {
return doubleProperty(FrameBorder); }
873 {
return brushProperty(FrameBorderBrush); }
878 {
return static_cast<BorderStyle>(intProperty(FrameBorderStyle)); }
880 void setMargin(
qreal margin);
882 {
return doubleProperty(FrameMargin); }
884 inline void setTopMargin(
qreal margin);
885 qreal topMargin()
const;
887 inline void setBottomMargin(
qreal margin);
888 qreal bottomMargin()
const;
890 inline void setLeftMargin(
qreal margin);
891 qreal leftMargin()
const;
893 inline void setRightMargin(
qreal margin);
894 qreal rightMargin()
const;
896 inline void setPadding(
qreal padding);
898 {
return doubleProperty(FramePadding); }
904 {
return lengthProperty(FrameWidth); }
909 {
return lengthProperty(FrameHeight); }
914 {
return PageBreakFlags(intProperty(PageBreakPolicy)); }
956 inline bool isValid()
const {
return isTableFormat(); }
959 {
int cols = intProperty(TableColumns);
if (cols == 0) cols = 1;
return cols; }
960 inline void setColumns(
int columns);
963 {
setProperty(TableColumnWidthConstraints, constraints); }
966 {
return lengthVectorProperty(TableColumnWidthConstraints); }
969 { clearProperty(TableColumnWidthConstraints); }
972 {
return doubleProperty(TableCellSpacing); }
977 {
return doubleProperty(TableCellPadding); }
978 inline void setCellPadding(
qreal padding);
982 {
return QFlag(intProperty(BlockAlignment)); }
987 {
return intProperty(TableHeaderRowCount); }
990 {
setProperty(TableBorderCollapse, borderCollapse); }
992 {
return boolProperty(TableBorderCollapse); }
1019 inline bool isValid()
const {
return isTableCellFormat(); }
1021 inline void setTopPadding(
qreal padding);
1022 inline qreal topPadding()
const;
1024 inline void setBottomPadding(
qreal padding);
1025 inline qreal bottomPadding()
const;
1027 inline void setLeftPadding(
qreal padding);
1028 inline qreal leftPadding()
const;
1030 inline void setRightPadding(
qreal padding);
1031 inline qreal rightPadding()
const;
1033 inline void setPadding(
qreal padding);
1038 {
return doubleProperty(TableCellTopBorder); }
1043 {
return doubleProperty(TableCellBottomBorder); }
1048 {
return doubleProperty(TableCellLeftBorder); }
1053 {
return doubleProperty(TableCellRightBorder); }
1063 {
setProperty(TableCellBottomBorderStyle, style); }
1073 {
setProperty(TableCellRightBorderStyle, style); }
1082 {
return brushProperty(TableCellTopBorderBrush); }
1087 {
return brushProperty(TableCellBottomBorderBrush); }
1092 {
return brushProperty(TableCellLeftBorderBrush); }
1097 {
return brushProperty(TableCellRightBorderBrush); }
The QColor class provides colors based on RGB, HSV or CMYK values.
\inmodule QtCore\reentrant
StyleHint
Style hints are used by the \l{QFont}{font matching} algorithm to find an appropriate default family ...
StyleStrategy
The style strategy tells the \l{QFont}{font matching} algorithm what type of fonts should be used to ...
\macro QT_RESTRICTED_CAST_FROM_ASCII
qreal bottomMargin() const
Returns the paragraph's bottom margin.
qreal topMargin() const
Returns the paragraph's top margin.
void setLeftMargin(qreal margin)
Sets the paragraph's left margin.
Qt::Alignment alignment() const
Returns the paragraph's alignment.
MarkerType marker() const
void setPageBreakPolicy(PageBreakFlags flags)
void setMarker(MarkerType marker)
void setBottomMargin(qreal margin)
Sets the paragraph's bottom margin.
bool isValid() const
Returns true if this block format is valid; otherwise returns false.
void setLineHeight(qreal height, int heightType)
PageBreakFlags pageBreakPolicy() const
void setNonBreakableLines(bool b)
If b is true, the lines in the paragraph are treated as non-breakable; otherwise they are breakable.
void setRightMargin(qreal margin)
Sets the paragraph's right margin.
void setIndent(int indent)
Sets the paragraph's indentation.
bool nonBreakableLines() const
Returns true if the lines in the paragraph are non-breakable; otherwise returns false.
int indent() const
Returns the paragraph's indent.
qreal leftMargin() const
Returns the paragraph's left margin.
qreal textIndent() const
Returns the paragraph's text indent.
void setHeadingLevel(int alevel)
qreal rightMargin() const
Returns the paragraph's right margin.
void setTopMargin(qreal margin)
Sets the paragraph's top margin.
int lineHeightType() const
void setTextIndent(qreal aindent)
Sets the indent for the first line in the block.
qreal fontLetterSpacing() const
FontPropertiesInheritanceBehavior
@ FontPropertiesSpecifiedOnly
VerticalAlignment
This enum describes the ways that adjacent characters can be vertically aligned.
bool fontFixedPitch() const
Returns true if the text format's font is fixed pitch; otherwise returns false.
bool isAnchor() const
Returns true if the text is formatted as an anchor; otherwise returns false.
void setSubScriptBaseline(qreal baseline)
QStringList anchorNames() const
int tableCellColumnSpan() const
int fontWeight() const
Returns the text format's font weight.
void setFontFamilies(const QStringList &families)
void setUnderlineStyle(UnderlineStyle style)
void setTextOutline(const QPen &pen)
Sets the pen used to draw the outlines of characters to the given pen.
qreal fontPointSize() const
Returns the font size used to display text in this format.
UnderlineStyle underlineStyle() const
QFont::StyleHint fontStyleHint() const
void setFontWordSpacing(qreal spacing)
bool fontStrikeOut() const
Returns true if the text format's font is struck out (has a horizontal line drawn through it); otherw...
QTextCharFormat()
Constructs a new character format object.
void setVerticalAlignment(VerticalAlignment alignment)
Sets the vertical alignment used for the characters with this format to the alignment specified.
void setSuperScriptBaseline(qreal baseline)
qreal fontWordSpacing() const
bool isValid() const
Returns true if this character format is valid; otherwise returns false.
QFont::Capitalization fontCapitalization() const
void setFontPointSize(qreal size)
Sets the text format's font size.
QFont::StyleStrategy fontStyleStrategy() const
QStringList fontFamilies() const
void setAnchor(bool anchor)
If anchor is true, text with this format represents an anchor, and is formatted in the appropriate wa...
void setFontUnderline(bool underline)
If underline is true, sets the text format's font to be underlined; otherwise it is displayed non-und...
void setAnchorNames(const QStringList &names)
QString anchorHref() const
Returns the text format's hypertext link, or an empty string if none has been set.
UnderlineStyle
This enum describes the different ways drawing underlined text.
qreal baselineOffset() const
bool fontOverline() const
Returns true if the text format's font is overlined; otherwise returns false.
QColor underlineColor() const
Returns the color used to draw underlines, overlines and strikeouts on the characters with this forma...
VerticalAlignment verticalAlignment() const
Returns the vertical alignment used for characters with this format.
void setToolTip(const QString &tip)
void setFontKerning(bool enable)
void setTableCellColumnSpan(int tableCellColumnSpan)
void setUnderlineColor(const QColor &color)
Sets the color used to draw underlines, overlines and strikeouts on the characters with this format t...
QFont::SpacingType fontLetterSpacingType() const
void setFontStyleHint(QFont::StyleHint hint, QFont::StyleStrategy strategy=QFont::PreferDefault)
void setFontFixedPitch(bool fixedPitch)
If fixedPitch is true, sets the text format's font to be fixed pitch; otherwise a non-fixed pitch fon...
int tableCellRowSpan() const
void setFontLetterSpacing(qreal spacing)
qreal subScriptBaseline() const
void setFontStyleStrategy(QFont::StyleStrategy strategy)
void setBaselineOffset(qreal baseline)
qreal superScriptBaseline() const
void setFontStrikeOut(bool strikeOut)
If strikeOut is true, sets the text format's font with strike-out enabled (with a horizontal line thr...
bool fontItalic() const
Returns true if the text format's font is italic; otherwise returns false.
void setFontHintingPreference(QFont::HintingPreference hintingPreference)
void setFontStretch(int factor)
bool fontUnderline() const
Returns true if the text format's font is underlined; otherwise returns false.
QStringList fontStyleName() const
void setAnchorHref(const QString &value)
Sets the hypertext link for the text format to the given value.
void setFontOverline(bool overline)
If overline is true, sets the text format's font to be overlined; otherwise the font is displayed non...
QFont::HintingPreference fontHintingPreference() const
QPen textOutline() const
Returns the pen used to draw the outlines of characters in this format.
void setFontLetterSpacingType(QFont::SpacingType letterSpacingType)
void setTableCellRowSpan(int tableCellRowSpan)
void setFontStyleName(const QString &styleName)
void setFontItalic(bool italic)
If italic is true, sets the text format's font to be italic; otherwise the font will be non-italic.
void setFontWeight(int weight)
Sets the text format's font weight to weight.
void setFontCapitalization(QFont::Capitalization capitalization)
void setFont(const QFont &font, FontPropertiesInheritanceBehavior behavior=FontPropertiesAll)
\reentrant \inmodule QtGui
\reentrant \inmodule QtGui
bool isTableCellFormat() const
FormatType
This enum describes the text item a QTextFormat object is formatting.
bool operator!=(const QTextFormat &rhs) const
Returns true if this text format is different from the other text format.
QBrush background() const
Returns the brush used to paint the document's background.
QString stringProperty(int propertyId) const
Returns the value of the property given by propertyId; if the property isn't of QMetaType::QString ty...
Qt::LayoutDirection layoutDirection() const
Returns the document's layout direction.
bool isCharFormat() const
Returns true if this text format is a CharFormat; otherwise returns false.
void setForeground(const QBrush &brush)
Sets the foreground brush to the specified brush.
ObjectTypes
This enum describes what kind of QTextObject this format is associated with.
Property
This enum describes the different properties a format can have.
@ TextSuperScriptBaseline
bool isFrameFormat() const
Returns true if this text format is a FrameFormat; otherwise returns false.
int intProperty(int propertyId) const
Returns the value of the property specified by propertyId.
void clearForeground()
Clears the brush used to paint the document's foreground.
QColor colorProperty(int propertyId) const
Returns the value of the property given by propertyId; if the property isn't of QMetaType::QColor typ...
void setBackground(const QBrush &brush)
Sets the brush use to paint the document's background to the brush specified.
bool boolProperty(int propertyId) const
Returns the value of the property specified by propertyId.
void clearBackground()
Clears the brush used to paint the document's background.
void setProperty(int propertyId, const QVariant &value)
Sets the property specified by the propertyId to the given value.
bool isImageFormat() const
Returns true if this text format is an image format; otherwise returns false.
void setLayoutDirection(Qt::LayoutDirection direction)
Sets the document's layout direction to the specified direction.
bool isListFormat() const
Returns true if this text format is a ListFormat; otherwise returns false.
void setObjectType(int type)
Sets the text format's object type to type.
bool hasProperty(int propertyId) const
Returns true if the text format has a property with the given propertyId; otherwise returns false.
bool isValid() const
Returns true if the format is valid (i.e.
void swap(QTextFormat &other)
bool isBlockFormat() const
Returns true if this text format is a BlockFormat; otherwise returns false.
QPen penProperty(int propertyId) const
Returns the value of the property given by propertyId; if the property isn't of QMetaType::QPen type,...
int objectType() const
Returns the text format's object type.
bool isTableFormat() const
Returns true if this text format is a TableFormat; otherwise returns false.
void clearProperty(int propertyId)
Clears the value of the property given by propertyId.
qreal doubleProperty(int propertyId) const
Returns the value of the property specified by propertyId.
QBrush foreground() const
Returns the brush used to render foreground details, such as text, frame outlines,...
Position position() const
Returns the positioning policy for frames with this frame format.
QBrush borderBrush() const
void setTopMargin(qreal margin)
void setWidth(qreal width)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void setPosition(Position f)
Sets the policy for positioning frames with this frame format.
void setLeftMargin(qreal margin)
bool isValid() const
Returns true if the format description is valid; otherwise returns false.
void setBorderBrush(const QBrush &brush)
void setBorderStyle(BorderStyle style)
QTextLength width() const
Returns the width of the frame's border rectangle.
void setPadding(qreal padding)
Sets the width of the frame's internal padding in pixels.
void setBottomMargin(qreal margin)
QTextLength height() const
Returns the height of the frame's border rectangle.
qreal border() const
Returns the width of the border in pixels.
void setPageBreakPolicy(PageBreakFlags flags)
BorderStyle borderStyle() const
void setRightMargin(qreal margin)
void setHeight(qreal height)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void setWidth(const QTextLength &length)
Sets the frame's border rectangle's width.
Position
This enum describes how a frame is located relative to the surrounding text.
qreal padding() const
Returns the width of the frame's internal padding in pixels.
qreal margin() const
Returns the width of the frame's external margin in pixels.
PageBreakFlags pageBreakPolicy() const
qreal width() const
Returns the width of the rectangle occupied by the image.
bool isValid() const
Returns true if this image format is valid; otherwise returns false.
qreal height() const
Returns the height of the rectangle occupied by the image.
void setHeight(qreal height)
Sets the height of the rectangle occupied by the image.
QString name() const
Returns the name of the image.
void setQuality(int quality)
void setWidth(qreal width)
Sets the width of the rectangle occupied by the image.
bool operator==(const QTextLength &other) const
Returns true if this text length is the same as the other text length.
QTextLength()
Constructs a new length object which represents a variable size.
bool operator!=(const QTextLength &other) const
Returns true if this text length is different from the other text length.
qreal rawValue() const
Returns the constraint value that is specific for the type of the length.
qreal value(qreal maximumLength) const
Returns the effective length, constrained by the type of the length object and the specified maximumL...
Type type() const
Returns the type of this length object.
QString numberSuffix() const
bool isValid() const
Returns true if this list format is valid; otherwise returns false.
Style
This enum describes the symbols used to decorate list items:
void setIndent(int indent)
Sets the list format's indentation.
Style style() const
Returns the list format's style.
void setNumberSuffix(const QString &numberSuffix)
void setNumberPrefix(const QString &numberPrefix)
QString numberPrefix() const
int indent() const
Returns the list format's indentation.
void setStart(int indent)
void setLeftPadding(qreal padding)
void setBottomBorder(qreal width)
QBrush leftBorderBrush() const
void setPadding(qreal padding)
QTextFrameFormat::BorderStyle bottomBorderStyle() const
void setBottomPadding(qreal padding)
QTextFrameFormat::BorderStyle rightBorderStyle() const
QBrush rightBorderBrush() const
void setRightBorderStyle(QTextFrameFormat::BorderStyle style)
qreal rightBorder() const
void setLeftBorder(qreal width)
void setRightBorderBrush(const QBrush &brush)
void setLeftBorderBrush(const QBrush &brush)
QBrush topBorderBrush() const
qreal bottomBorder() const
qreal leftPadding() const
void setTopPadding(qreal padding)
qreal rightPadding() const
void setBorderStyle(QTextFrameFormat::BorderStyle style)
void setTopBorder(qreal width)
QBrush bottomBorderBrush() const
void setBorder(qreal width)
void setLeftBorderStyle(QTextFrameFormat::BorderStyle style)
void setBottomBorderBrush(const QBrush &brush)
void setBorderBrush(const QBrush &brush)
void setTopBorderBrush(const QBrush &brush)
void setBottomBorderStyle(QTextFrameFormat::BorderStyle style)
QTextFrameFormat::BorderStyle leftBorderStyle() const
qreal bottomPadding() const
QTextFrameFormat::BorderStyle topBorderStyle() const
void setTopBorderStyle(QTextFrameFormat::BorderStyle style)
void setRightPadding(qreal padding)
void setRightBorder(qreal width)
qreal cellSpacing() const
Returns the table's cell spacing.
void setAlignment(Qt::Alignment alignment)
Sets the table's alignment.
void clearColumnWidthConstraints()
Clears the column width constraints for the table.
QList< QTextLength > columnWidthConstraints() const
Returns a list of constraints used by this table format to control the appearance of columns in a tab...
bool borderCollapse() const
qreal cellPadding() const
Returns the table's cell padding.
bool isValid() const
Returns true if this table format is valid; otherwise returns false.
int headerRowCount() const
Qt::Alignment alignment() const
Returns the table's alignment.
void setBorderCollapse(bool borderCollapse)
void setColumnWidthConstraints(const QList< QTextLength > &constraints)
Sets the column width constraints for the table.
int columns() const
Returns the number of columns specified by the table format.
void setHeaderRowCount(int count)
void setCellSpacing(qreal spacing)
Sets the cell spacing for the table.
void setCellPadding(qreal padding)
Sets the cell padding for the table.
object setProperty("down", true)
employee setName("Richard Schmit")
Combined button and popup list for selecting options.
static const QCssKnownValue properties[NumProperties - 1]
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
bool qFuzzyCompare(qfloat16 p1, qfloat16 p2) noexcept
constexpr const T & qMax(const T &a, const T &b)
GLboolean GLboolean GLboolean b
GLint GLsizei GLsizei height
GLboolean GLboolean GLboolean GLboolean a
[7]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLenum GLsizei length
GLenum GLenum GLsizei count
GLint GLenum GLsizei GLsizei GLsizei GLint border
GLuint GLuint GLfloat weight
GLsizei GLenum GLenum GLuint GLenum GLsizei * lengths
GLint GLsizei GLsizei GLenum format
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)
#define QT_DEPRECATED_VERSION_X_6_3(text)
#define QT_DEPRECATED_VERSION_X_6_1(text)
Q_GUI_EXPORT QDebug operator<<(QDebug, const QTextLength &)
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
QVideoFrameFormat::PixelFormat fmt
label setAlignment(Qt::AlignLeft|Qt::AlignTop)
[0]