TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A Simple Rust GUI with QML

182 pointsby irfankaabout 8 years ago

8 comments

conradevabout 8 years ago
Because it has largely not been done before, part of me wonders how well Rust would work to build a large, complex GUI. All GUI code I&#x27;ve seen relies on inheritance and dynamic dispatch to structure APIs.<p>I would love to see something like the Flutter Engine[1] written in Rust, which is a layer tree that runs in an OpenGL context and includes text rendering, shape drawing, gesture recognition, scroll layers, a layout engine, etc. – all components necessary for modern mobile app development.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;flutter&#x2F;engine" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;flutter&#x2F;engine</a>
评论 #13718659 未加载
评论 #13716982 未加载
评论 #13717283 未加载
评论 #13718086 未加载
评论 #13720801 未加载
erichdongublerabout 8 years ago
Gist that I&#x27;ve been developing for quick setup guides (PRs welcome!): <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;ErichDonGubler&#x2F;c802e066de7068241f0e6e492e6584ed" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;ErichDonGubler&#x2F;c802e066de7068241f0e6...</a><p>We&#x27;re still trying to get this to work with Windows. I&#x27;ve been reporting on this issue here: <a href="https:&#x2F;&#x2F;github.com&#x2F;White-Oak&#x2F;qml-rust&#x2F;issues&#x2F;31" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;White-Oak&#x2F;qml-rust&#x2F;issues&#x2F;31</a>.<p>Any suggestions to get this going would be appreciated! Developing with Rust&#x2F;QML on Windows definitely seems possible at this point...that said, most of what&#x27;s left to be defined is what setup is required to actually get things to work.
评论 #13717939 未加载
makmanalpabout 8 years ago
Part of me wonders how much better web programming could have been a decade ago if QT was the standard that browsers implemented, and we just shipped around QT frontends that ran sandboxed in the browser.
评论 #13716792 未加载
评论 #13717424 未加载
评论 #13715869 未加载
c-smileabout 8 years ago
Just in case, Rust integration of Sciter is even easier:<p><pre><code> extern crate sciter; fn main() { let mut frame = sciter::Window::new(); frame.load_file(&quot;minimal.htm&quot;); frame.run_app(); } </code></pre> Result: <a href="https:&#x2F;&#x2F;camo.githubusercontent.com&#x2F;b7d9438384930801ba15d027d42ca23441924dae&#x2F;687474703a2f2f692e696d6775722e636f6d2f6f6a634d354a4a2e706e67" rel="nofollow">https:&#x2F;&#x2F;camo.githubusercontent.com&#x2F;b7d9438384930801ba15d027d...</a><p>Rust&#x2F;Sciter integration: <a href="https:&#x2F;&#x2F;github.com&#x2F;sciter-sdk&#x2F;rust-sciter" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sciter-sdk&#x2F;rust-sciter</a>
评论 #13718328 未加载
shmerlabout 8 years ago
How does it compare to <a href="https:&#x2F;&#x2F;github.com&#x2F;cyndis&#x2F;qmlrs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cyndis&#x2F;qmlrs</a> ?
评论 #13715401 未加载
flukusabout 8 years ago
I&#x27;d prefer some real rust bindings instead of screwing around with qml.
david-cakoabout 8 years ago
What is it about Rust that makes porting QT different from any other language?
评论 #13716009 未加载
un008about 8 years ago
I prefer go-qml <a href="https:&#x2F;&#x2F;github.com&#x2F;go-qml&#x2F;qml" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;go-qml&#x2F;qml</a><p>or PyQt