Settings

Theme

Ask HN: Implement a webservice GUI with Qt?

4 points by mon1key 8 years ago · 3 comments · 1 min read


I have a webservice for which I want to build a GUI. I was initially considering doing it in electron but am now wondering if I could simply use Qt to build my GUI?

Qt would be making REST api calls to the backend service(which could be running locally or remote) to populate the UI.

terminalcommand 8 years ago

This could be easily achieved. QT does not require you to change the way you code, you can design a UI in QT designer, add the buttons, callbacks etc. . Then export it as a uic file. Then use a converter of that uic file to your programming language of choice, import it, fill the callbacks and be done with it.

It's 90% automated and visual.

I'd recommend coding a basic text-only (just print statements) interface first, then bind it to the QT GUI.

If you'd like a more modern looking UI, also check out QML.

Have fun :)

  • mon1keyOP 8 years ago

    okay so another question, so in theory I could keep a common backend code and experiment with Qt frontend code even as I simultaneously build with electron as well?

    • terminalcommand 8 years ago

      That is correct. This is one of the benefits that come with choosing the server-client architecture. Backend is decoupled from the frontend (e.g. UI).

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection