"Frederick Gotham" <fgothamNO@SPAM .comwrote in message
news:zaRrg.1125 5$j7.315412@new s.indigo.ie...
>
For those of you who strive to write fully portable, Standard-compliant
code:
What's the best library for writing GUI applications?
>
I've heard good things about wxWidgets. Would it be the preferred choice?
Qt. Last time I looked at wxWidgets (2+ years) it seemed to use
a lot of old style constructs - macros and such. Qt keeps that
to a minimum.
"Phlip" <phlip2005@gEEE mail.comwrote in message
news:pan.2006.0 7.08.23.53.01.3 5485@gEEEmail.c om...
Duane Hebert wrote:
>
>Qt. Last time I looked at wxWidgets (2+ years) it seemed to use a lot of
>old style constructs - macros and such. Qt keeps that to a minimum.
>
By adding 2 new keywords, signals & slots.
>
Oh, and they are dynamically typed, where the rest of C++ (including
careful macro usage) is statically typed.
>"Frederick Gotham" <fgothamNO@SPAM .comwrote in message
>news:zaRrg.112 55$j7.315412@ne ws.indigo.ie...
>For those of you who strive to write fully portable, Standard-compliant
>code:
> What's the best library for writing GUI applications?
>I've heard good things about wxWidgets. Would it be the preferred choice?
>
>Qt. Last time I looked at wxWidgets (2+ years) it seemed to use
>a lot of old style constructs - macros and such.
If I had time for an experiment I would try wxLua
(http://wxlua.sourceforge.net/). C++ is not a good choice for GUI
programming. Lua (http://www.lua.org/) brings the flexibility of a
scripting language to C++. The combination of Lua and Wx seems
promising although wxLua currently is in "Developmen t Status : 4 -
Beta".
>>Oh, and they are dynamically typed, where the rest of C++ (including
>>careful macro usage) is statically typed.
>
You mean, the 'rest of C++' does not support polymorphic programming?
Static typing means earlying binding to the base type of a set of
polymorphic types. All types in the set must relate by inheritance (to
provide the vtable or equivalent).
GUIs work best with dynamic typing (and block closures, which Qt doesn't
provide).
Qt provides dynamic typing when the 'signal' keyword does not specify which
base type must satisfy a corresponding 'slot'. Any type with a matching slot
will qualify.
That's not a bad thing, but it is indeed one more inconsistency between raw
C++ and Qt-C++.
Macros, by contrast, and despite their other flaws, can enforce a modest
amount of early typing.
If I had time for an experiment I would try wxLua
(http://wxlua.sourceforge.net/). C++ is not a good choice for GUI
programming. Lua (http://www.lua.org/) brings the flexibility of a
scripting language to C++.
Lua (like wxPython and the apocryphal wyRuby) provides dynamic typing and -
generally - block closures. GUIs need them.
For those of you who strive to write fully portable, Standard-compliant code:
What's the best library for writing GUI applications?
>
I've heard good things about wxWidgets. Would it be the preferred choice?
For those of you who strive to write fully portable,
Standard-compliant code:
What's the best library for writing GUI applications?
>
I've heard good things about wxWidgets. Would it be the preferred
choice?
I wonder if there's any of the x-platform webbrosers, that provide a
slim and clean way of making a C++ program with a HTML/JavaScript GUI
frontend...
For those of you who strive to write fully portable, Standard-compliant code:
What's the best library for writing GUI applications?
>
I've heard good things about wxWidgets. Would it be the preferred choice?
>
--
>
Frederick Gotham
I think SmartWin++ is maybe another choice,I found it at www.sourceforge.net,and have tried for some time.The framework is
designed in modern c++ style,and support std c++.I hope anyone who
experienced the framework could tell me about his opinion.
If I had time for an experiment I would try wxLua
(http://wxlua.sourceforge.net/). C++ is not a good choice for GUI
programming. Lua (http://www.lua.org/) brings the flexibility of a
scripting language to C++.
>
Lua (like wxPython and the apocryphal wyRuby) provides dynamic typing and -
generally - block closures. GUIs need them.
>
--
Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!
Comment