By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,804 Members | 1,631 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,804 IT Pros & Developers. It's quick & easy.

GUI Library preferred by Standard programmers

P: n/a

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
Jul 8 '06 #1
Share this Question
Share on Google+
17 Replies


P: n/a
On Sat, 08 Jul 2006 16:36:47 GMT, Frederick Gotham
<fg*******@SPAM.comwrote:
>For those of you who strive to write fully portable, Standard-compliant code:
What's the best library for writing GUI applications?
HTML? We live in 2006!
Jul 8 '06 #2

P: n/a

"Frederick Gotham" <fg*******@SPAM.comwrote in message
news:za*******************@news.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.
Jul 8 '06 #3

P: n/a

Roland Pibinger wrote:
On Sat, 08 Jul 2006 16:36:47 GMT, Frederick Gotham
<fg*******@SPAM.comwrote:
For those of you who strive to write fully portable, Standard-compliant code:
What's the best library for writing GUI applications?

HTML? We live in 2006!
so you asking him to write a cgi program in c++ and provide an
installation with embedded webserver :D.. excellent..

:))

Jul 8 '06 #4

P: n/a
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.

Pick your poison.

--
Phlip
Jul 8 '06 #5

P: n/a

"Phlip" <ph*******@gEEEmail.comwrote in message
news:pa***************************@gEEEmail.com...
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.
QDialog doh(this);
doh.exec();
Pick your poison.
Sure.
Jul 9 '06 #6

P: n/a
On Sat, 8 Jul 2006 14:36:32 -0400, "Duane Hebert" <sp**@flarn2.com>
wrote:
>"Frederick Gotham" <fg*******@SPAM.comwrote in message
news:za*******************@news.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 "Development Status : 4 -
Beta".

Best wishes,
Roland Pibinger
Jul 9 '06 #7

P: n/a
On Sat, 08 Jul 2006 23:53:15 GMT, Phlip <ph*******@gEEEmail.com>
wrote:
>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.
.... and foreach. So, Qt-C++ isn't C++ any more, just lile C++/CLI.
>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?
Jul 9 '06 #8

P: n/a

"Roland Pibinger" <rp*****@yahoo.comwrote in message
news:44**************@news.utanet.at...
On Sat, 08 Jul 2006 23:53:15 GMT, Phlip <ph*******@gEEEmail.com>
wrote:
>>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.

... and foreach. So, Qt-C++ isn't C++ any more, just lile C++/CLI.
Qt has some extensions but unlike some other gui libs,
you don't need to use them.
>>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?
Yeah, I didn't get that either. I would prefer that to
extensive use of macros.
Jul 9 '06 #9

P: n/a
Roland Pibinger wrote:
>>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.

--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!
Jul 9 '06 #10

P: n/a
Roland Pibinger wrote:
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!!!
Jul 9 '06 #11

P: n/a
Frederick Gotham написав:
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?
What do you think about FOX?

http://www.fox-toolkit.org/

Jul 10 '06 #12

P: n/a
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...


Jul 10 '06 #13

P: n/a
Frederick Gotham wrote:
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.

Jul 10 '06 #14

P: n/a
Phlip wrote:
Roland Pibinger wrote:
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!!!
can we embed Lua in C or C++?

Jul 10 '06 #15

P: n/a
Diego Martins wrote:
can we embed Lua in C or C++?
It happens all the time - that's how most of the game industry works.
Programmers write the engine in C++, with C libraries, and bond to Lua.
Then designers script each game level by authoring monsters in Lua,
associating them with props and triggers, etc.

Python, Perl, Ruby, etc. all enjoy this grace. And the technique
'AlternateHardAndSoftLayers' makes C++ very flexible and easy to work
with. Your high-level logic should be in the softer language.

--
Phlip
Jul 10 '06 #16

P: n/a
Frederick Gotham posted:
>
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'm looking for the library which interacts best with the C++ Standard
Library.

I think I'm torn between wxWidgets and Qt at the moment.
--

Frederick Gotham
Jul 10 '06 #17

P: n/a
Frederick Gotham wrote:
>
I'm looking for the library which interacts best with the C++ Standard
Library.

I think I'm torn between wxWidgets and Qt at the moment.
Ever tried VCF? http://vcf-online.org

Jul 13 '06 #18

This discussion thread is closed

Replies have been disabled for this discussion.