5 ms·
We use Qt heavily at Starsky Robotics. We initially used it because it has tight integration with ROS via RQT [1], but I'm pretty impressed with the framework i
by DanFeldman 8y ago
We use Qt heavily at Starsky Robotics. We initially used it because it has tight integration with ROS via RQT [1], but I'm pretty impressed with the framework in general. Lots of great tools out of the box, QtCreator is awesome and once you get the right signal/slot model in your head everything is a breeze. Plus getting to prototyping in python is always fast!
For our use case, relative speed of the GUI isn't a factor. We've considered moving to electron just for ease of development, but python is winning out.
[1] http://wiki.ros.org/rqt http://wiki.ros.org/rqt
- morenoh149 8y agoWhat's the memory consumption of pyQT compared to electron apps?
- toyg 8y agoAn order of magnitude lower. I see 40Mb on macos right now for a simple app.
- megous 8y agoI see a simple electron app using 140MB total. Measured by running 'free -m' before and after starting the app and waiting a while for a gc to run. Measuring memory use is difficult.
- TheAceOfHearts 8y agoFYI, you can open dev tools in electron and manually trigger GC [0]. [0] https://i.imgur.com/JbWArmR.png https://i.imgur.com/JbWArmR.png
- megous 8y agoI'm sure opending dev tools will increase memory use significantly though. So it's a bit self-defeating. :) Perhaps there's some API to call instead.
- vbsteven 8y agoI can't comment for pyQt. But the regular C++ Qt app I'm tinkering with at the moment uses 11MB private and about 50MB in shared memory for displaying a simple window with some nested widgets and scrollable lists.
- jcelerier 8y agofor reference, the app I'm working on (https://ossia.io https://ossia.io), a multiple-hundred-LOC Qt-based DAW with support for many network protocols and which uses most Qt libraries as well as boost uses itself 41 megabytes of RAM (private working set) and 70 megabytes total (working set) with a small document loaded, according to the windows task manager.
- Thev00d00 8y ago/me cries in electron
- DanFeldman 8y agoI don't know off hand, and we never compared w/ Electron, it was just floated as an idea. When we eventually fully refactor our GUI code to be agnostic of ROS we'll profile more completely.
- denysonique 8y agoFor a JavaScript alternative to pyQT I recommend proton-native[1] - a React environment for cross platform native desktop apps. 1: https://github.com/kusti8/proton-native https://github.com/kusti8/proton-native
- solarkraft 8y agoThank you for not using Electron.
- DanFeldman 8y agoAll of our end users are internal, so the main bloat-related problems wouldn't really be an issue at all. Why should we be worried about electron in the future?
- cpburns2009 8y agoElectron is notorious for disregarding all platform conventions, being slow, and being a memory hog.
- deleted 8y ago[deleted]
- deckiedan 8y agoI have 3 "internal" tools in electron I need to have running all the time on my PC... It's a corporate dell mini PC, poor thing.
- deleted 8y ago[deleted]
- hotpotjunkie 8y agoThe worry is that you have too many developers who don't consider HTML/CSS/JS a proper stack for a "real" engineer and there refuses to learn it.
- codemac 8y ago> even though the development time is obviously shorter with electron Evidence? I think you're making a great point (about the reputation of html/css/js) but leave the unfounded claims out and your point would be stronger.
- 8y ago
- Waterluvian 8y agoI'm presenting QGIS-ROS at ROSCon this year. It's a QGIS plugin for integrating real time robot data. Was relatively easy to do thanks to QGIS being Qt 5. Felt exactly like making a RQT plugin.