Return to site

Ssdreporter 1 5 5 Qt

broken image


Qt's text widgets are able to display rich text, specified using a subset of HTML 4 markup. Widgets that use QTextDocument, such as QLabel and QTextEdit, are able to display rich text specified in this way.

Download Qt - Qt 5.15.1, Qt is a GUI software toolkit. Qt is a GUI software toolkit. Qt simplifies the task of writing and maintaining GUI (graphical user interface) applications. Deprecated modules are still included in Qt 5.7, but are considered for removal in future releases. List of API Changes. The pages below contain a list of API changes in Qt 5.7: New Classes and Functions in Qt 5.7; Obsolete Classes; Additions to Other Qt 5 Releases. What's New in Qt 5.6; What's New in Qt 5.5; What's New in Qt 5.4; What's New in. Phase Original plan Updated plan Realized; Feature Freeze 31.1.2020 Alpha Release Beta1 Release. The New Qt Creator 4.0.1 is included in the Qt 5.6.1 offline installer packages. Qt 5.6.0, released in March after a long maturation phase, was the first long-term supported Qt 5 release and focused mainly on maturity and stability. The Qt 5.6.1 patch release continues this focus, bringing over 800 improvements on top of the already solid Qt 5. Phase Original plan Updated plan Realized; Structure and platform freeze 30.6.2020 Feature Freeze Alpha Release.

Using HTML Markup in Text Widgets

Widgets automatically detect HTML markup and display rich text accordingly. For example, setting a label's text property with the string 'Hello Qt!' will result in the label displaying text like this: HelloQt!

When HTML markup is used for text, Qt follows the rules defined by the HTML 4 specification. This includes default properties for text layout, such as the direction of the text flow (left-to-right) which can be changed by applying the dir attribute to blocks of text.

Supported Tags

The following table lists the HTML tags supported by Qt's rich text engine:

TagDescriptionComment
aAnchor or linkSupports the href and name attributes.
addressAddress
bBold
bigLarger font
blockquoteIndented paragraph
bodyDocument bodySupports the bgcolor attribute, which can be a Qt color name or a #RRGGBB color specification.
brLine break
centerCentered paragraph
citeInline citationSame as i.
codeCodeSame as tt.
ddDefinition data
dfnDefinitionSame as i.
divDocument divisionSupports the standard block attributes.
dlDefinition listSupports the standard block attributes.
dtDefinition termSupports the standard block attributes.
emEmphasizedSame as i.
fontFont size, family, and/or colorSupports the following attributes: size, face, and color (Qt color names or #RRGGBB).
h1Level 1 headingSupports the standard block attributes.
h2Level 2 headingSupports the standard block attributes.
h3Level 3 headingSupports the standard block attributes.
h4Level 4 headingSupports the standard block attributes.
h5Level 5 headingSupports the standard block attributes.
h6Level 6 headingSupports the standard block attributes.
headDocument header
hrHorizontal lineSupports the width attribute, which can be specified as an absolute or relative (%) value.
htmlHTML document
iItalic
imgImageSupports the src, source (for Qt 3 compatibility), width, and height attributes.
kbdUser-entered text
metaMeta-informationIf a text encoding is specified using the meta tag, it is picked up by Qt::codecForHtml(). Likewise, if an encoding is specified to QTextDocument::toHtml(), the encoding is stored using a meta tag, for example:
liList item
nobrNon-breakable text
olOrdered listSupports the standard list attributes.
pParagraphLeft-aligned by default. Supports the standard block attributes.
prePreformated text
qtQt rich-text documentSynonym for html. Provided for compatibility with earlier versions of Qt.
sStrikethrough
sampSample codeSame as tt.
smallSmall font
spanGrouped elements
strongStrongSame as b.
subSubscript
supSuperscript
tableTableSupports the following attributes: border, bgcolor (Qt color names or #RRGGBB), cellspacing, cellpadding, width (absolute or relative), and height.
tbodyTable bodyDoes nothing.
tdTable data cellSupports the standard table cell attributes.
tfootTable footerDoes nothing.
thTable header cellSupports the standard table cell attributes.
theadTable headerIf the thead tag is specified, it is used when printing tables that span multiple pages.
titleDocument titleThe value specified using the title tag is available through QTextDocument::metaInformation().
trTable rowSupports the bgcolor attribute, which can be a Qt color name or a #RRGGBB color specification.
ttTypewrite font
uUnderlined
ulUnordered listSupports the standard list attributes.
varVariableSame as i.

Block Attributes

The following attributes are supported by the div, dl, dt, h1, h2, h3, h4, h5, h6, p tags:

  • align (left, right, center, justify)
  • dir (ltr, rtl)

List Attributes

The following attribute is supported by the ol and ul tags:

  • type (1, a, A, square, disc, circle)

Table Cell Attributes

The following attributes are supported by the td and th tags:

  • width (absolute, relative, or no-value)
  • bgcolor (Qt color names or #RRGGBB)
  • colspan
  • rowspan
  • align (left, right, center, justify)
  • valign (top, middle, bottom)

CSS Properties

The following table lists the CSS properties supported by Qt's rich text engine:

Ssdreporter 1 5 5 Qt Pressure Cooker

PropertyValuesDescription
background-colorBackground color for elements
background-imageBackground image for elements
colorText foreground color
font-familyFont family name
font-size[ small | medium | large | x-large | xx-large ] | pt | pxFont size relative to the document font, or specified in points or pixels
font-style[ normal | italic | oblique ]
font-weight[ normal | bold | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 ]Specifies the font weight used for text, where normal and bold are mapped to the corresponding QFont weights. Numeric values are 8 times the equivalent QFont weight values.
text-decorationnone | [ underline || overline || line-through ]Additional text effects
font[ [ <'font-style'> || <'font-weight'> ]? <'font-size'> <'font-family'> ]Font shorthand property
text-indentpxFirst line text indentation in pixels
white-spacenormal | pre | nowrap | pre-wrapDeclares how whitespace in HTML is handled.
margin-toppxTop paragraph margin in pixels
margin-bottompxBottom paragraph margin in pixels
margin-leftpxLeft paragraph margin in pixels
margin-rightpxRight paragraph margin in pixels
padding-toppxTop table cell padding in pixels
padding-bottompxBottom table cell padding in pixels
padding-leftpxLeft table cell padding in pixels
padding-rightpxRight table cell padding in pixels
paddingpxShorthand for setting all the padding properties at once.
vertical-alignbaseline | sub | super | middle | top | bottomVertical text alignment. For vertical alignment in text table cells only middle, top, and bottom apply.
border-collapsecollapse | separateBorder Collapse mode for text tables. If set to collapse, cell-spacing will not be applied.
border-colorBorder color for text tables and table cells.
border-top-colorTop border color for table cells.
border-bottom-colorBottom border color for table cells.
border-left-colorLeft border color for table cells.
border-right-colorRight border color for table cells.
border-stylenone | dotted | dashed | dot-dash | dot-dot-dash | solid | double | groove | ridge | inset | outsetBorder style for text tables and table cells.
border-top-styleTop border style for table cells.
border-bottom-styleBottom border style for table cells.
border-left-styleLeft border style for table cells.
border-right-styleRight border style for table cells.
border-widthpxWidth of table or cell border
border-top-widthpxTop border width for table cells.
border-bottom-widthpxBottom border width for table cells.
border-left-widthpxLeft border width for table cells.
border-right-widthpxRight border width for table cells.
border-toppx Shorthand for setting top border width, style and color
border-bottompx Shorthand for setting bottom border width, style and color
border-leftpx Shorthand for setting left border width, style and color
border-rightpx Shorthand for setting right border width, style and color
border-toppx Shorthand for setting top border width, style and color
border-bottompx Shorthand for setting bottom border width, style and color
borderpx Shorthand for setting all four border's width, style and color
background[ <'background-color'> || <'background-image'> ]Background shorthand property
page-break-before[ auto | always ]Make it possible to enforce a page break before the paragraph/table
page-break-after[ auto | always ]Make it possible to enforce a page break after the paragraph/table
float[ left | right | none ]Specifies where an image or a text will be placed in another element. Note that the float property is only supported for tables and images.
text-transform[ uppercase | lowercase ]Select the transformation that will be performed on the text prior to displaying it.
font-kerning[ normal | none ]Enables or disables kerning between text characters.
font-variantsmall-capsPerform the smallcaps transformation on the text prior to displaying it.
word-spacingpxSpecifies an alternate spacing between each word.
line-height[% | px | pt | cm]Specifies the height of a line. It can be one of the following:
  • fixed line height in pixels, points, or centimeters.
  • a percentage of the current font size.

Qt-specific CSS properties

Ssdreporter 1 5 5 Qts

Ssdreporter 1 5 5 Qt

Besides the standard CSS properties listed earlier, the following Qt-specific properties can also be used to style a text block:

PropertyValuesDescription
-qt-block-indentIndents the text block by the specified no. spaces.
-qt-list-indentIndents the list items by the specified no. of spaces.
-qt-list-number-prefixPrefixes the given string to list number in an HTML ordered list.
-qt-list-number-suffixSuffixes the given string to list number in an HTML ordered list.
-qt-paragraph-typeemptyHides the text block.
-qt-table-typeroot | frameroot renders the text blocks inline without borders and indentation, whereas frame renders them on a new line with a frame around.
-qt-user-stateAdds it as user data for the text block.

Supported CSS Selectors

All CSS 2.1 selector classes are supported except pseudo-class selectors such as :first-child, :visited and :hover.

Ssdreporter 1 5 5 Qt Baking Dish

© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.





broken image