Hacker News new | past | comments | ask | show | jobs | submit login

Linux developers who write GUI apps. The many people who write server apps are unlikely to have more than user experience.



Speaking of non-gui apps with Qt.

In the past, I wrote a server app that was supposed to be cross-platform (Windows, Linux, Embedded Linux and eventually OSX). I chose to write it in C++ & Qt. That ended up being a bad decision because of the bloat. Since we needed the app to be able to run on embedded systems we couldn't use Qt. (We eventually wanted to be able to run on VxWorks as well). So, the size of the binary was too large. Eventually, I rewrote the app in ANSI C and saved a huge amount in the size of the static binary IIRC ~4MB (Warning, I don't remember exactly). The #ifdef code for each platform was one .c file for each OS with just a few functions on how to start/stop the service etc...


Did you ever try wxWidgets? The OSX support has come on leaps and bounds the last few dot releases.


Not for that specific project no. In the past ~2002 timeframe we used WxWidgets back when it was still WxWindows for a Linux desktop frontend. But other than that, I haven't played around with it lately.

I should take another look at it.


It is worth looking at. There are multiple ways to connect events (signals/slots), and they encourage "Bind" these days, but you can still do Connect/Disconnect or use macro-based event maps (very MFC style).

But in general it's pretty good. There was a GSOC project this year to implement a DirectX backend to the Windows drawing system instead of GDI but I don't know how well that has got on. They overhauled the drawing system to using native drawing contexts on whichever platform you're running, so you can do aliasing etc.

It's worth a look I think, as it is quite easy to write something usable in it very quickly. There is no database support anymore though - wxODBC died a death.


Though Qt provides loads of tools useful for writing headless applications. It's not just a GUI toolkit by a long way.


Even among GUI apps, GTK has been until very recently by far more popular.


By what metric? I'm fairly sure there's always been more Qt software than GTK+ software.


On Linux i guess so, on others GTK+ support is mostly dead.


Fair.


I imagine you mean on GNU/Linux.


Many projects recently started switching from GTK to Qt.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: