Nominate our 2022 Qt Champions!

Converting HTML to QML

  • Hello everybody,
    I have recently started new project converting HTML to QML.
    Here is my question.
    Is it exist converting open source from HTML to QML?
    I'd like to get more information this converting.

    Best regards.

  • I don't think so, but maybe I'm wrong :)

  • I think this is an interesting topic. QML's Text element's "RichText" HTML subset is (IMHO) a bit weak more weak and limited than "content authors" could really use, but going to a full browser element (Qt WebKit/WebEngine) isn't an option on iOS apps (AFAIK). I could see an HTML-to-QML converter being quite useful to some folks. Interesting question of whether a preprocessor would be as good as a solution as a better QML Text element that was something somewhere between QML RichText Text and a full web engine. I suspect better CSS support is the main need and a significant complicating factor (simplest solution... just use a full-fat browser engine).

    Somewhere out there, there is a FOSS tool which will export from photoshop to QML ( ) and I've seen content author types resort to that to get the static layout they wanted into a QML Text+Images form.

Log in to reply