Could I use QWidget and qml together?
-
I want to use QTextBrowser to create a simple help engine
How could I open a QWidget from qml?something like
@
import QtQuick 2.1import Help 1.0
Rectangle {
width: 100
height: 62HelpBrowser{id: helpBrowser} MouseArea{ anchors.fill: parent onClicked: { helpBrowser.showBrowser() } }
}
@
Or there exist easier solution in qml?
-
See "this blog post":http://blog.qt.digia.com/blog/2013/06/21/overview-of-the-new-features-in-qt-quick/?utm_source=rss&utm_medium=rss&utm_campaign=overview-of-the-new-features-in-qt-quick, especially "Exposing the text document to C++".
-
[quote author="sierdzio" date="1372838349"]See "this blog post":http://blog.qt.digia.com/blog/2013/06/21/overview-of-the-new-features-in-qt-quick/?utm_source=rss&utm_medium=rss&utm_campaign=overview-of-the-new-features-in-qt-quick, especially "Exposing the text document to C++".[/quote]
Thanks, I try the example, but looks like it do not support QTextBrowser yet
Do QTextDocument support the hyperlink in html?
Not just make the text "rich" but also redirect the page to
the specific location(local or network)