Is there any comparable alternative to Qt?

2019-03-25 18:15发布

I love the idea of Qt, however I use it not only for open source but closed source development. This isn't a real problem because I just license under the LGPL and distribute the DLLs needed. I've run into a problem though unfortunately.

The compiled statically linked executable is 4.36 MB. Not too shabby.

The compiled dynamically linked executable is 250 KB, however I also must include almost 35 MB in DLL files with the installation. This is REALLY tacky and no matter how I look at it I cannot justify the size-use ratio. This, and I simply cannot afford a commercial license. Talk about price gouging start up developers.

Anyway, you see my problem. My program performs only one function. 35 MB is too large. Unfortunately I've heard horror stories about how poorly maintained WxWidgets is but given my situation I'm afraid I'll be forced to use it. Can anyone recommend me a alternative that is nearly as powerful but won't result in the bloat an LGPL compiled Qt executable brings? Thank you!

3条回答
走好不送
2楼-- · 2019-03-25 18:45

http://www.fltk.org/ Have a look at that :) It's simpler, open source and might do enough for your needs.

查看更多
看我几分像从前
3楼-- · 2019-03-25 18:53

One thing I can suggest is to try UPX (or similar) packing the dynamic DLL's to get their size down, depending on how much code vs data/resources the DLL's contain you can get pretty impressive results.

查看更多
戒情不戒烟
4楼-- · 2019-03-25 18:54

Why don't you wrap all the functionality you need in a separate statically compiled dll and link your program dynamically with that. You can release the source code of the statically compiled dll since it's just a wrapper. And overall you'll still comply with LGPL.

查看更多
登录 后发表回答