New QML Features: Markdown & Inline Components

Hosted By
Stan M.

Details
There are two great new QML features that we'll talk about: Markdown support & Inline Components.
I will show off a Markdown viewer written in QML & C++ that shows the following:
- Qt 5.14 support for markdown formatting
- drag & drop to load a text file with markdown formatting
- real-time updating each time the dropped file is modified
- unit tests to verify the file system watcher class that reloads the text file
Also, we'll talk about inline components that are coming out in Qt 5.15. Here's an example:
Column {
id: col
// inline component declaration requires Qt 5.15 or later
component MyText : Text {
color: "aqua"
font.pointSize: 12
textFormat: Text.MarkdownText
}
MyText { text: "declare and use" }
MyText { text: "within" }
MyText { text: "same file }
MyText { id: adText; text: "- Burmashave\u2122" }
Button { onClicked: adText.font.italic = true }
}

OC Qt/QML
See more events
OC Qt/QML

No ratings yet
Pom & Olive
1400 Bristol St C · Costa Mesa, CA
New QML Features: Markdown & Inline Components