Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Do not use Motif with C++' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Do not use Motif with C++
Authored by: ygor on Feb 16, '04 10:53:32AM

As a programmer who spent a few years doing Motif GUI's, I can say with some authority that Motif and C++ do not mix well.

Motif predates C++ and was not built for Object Oriented Programming. It was built to handle the X Event Loop type of linear programming which makes up a lot of the X Window community.

I have seen several attempts to wrap Motif widgets in C++ classes, but I never became comfortable.

I would suggest using Qt instead of Motif. Qt was built for OOP, it is free (for non-commercial use), and it is supported under MacOS X.

The examples in the O'Reilly Qt book work "out of the box".

Just my $0.02 worth.

[ Reply to This | # ]
Do not use Motif with C++
Authored by: gdsimms on Feb 18, '04 11:31:11PM

What I would like to see is an XCode "native" project type for Qt applications. It would have to handle the meta-object compiler and ideally export a .pro file for portability.

[ Reply to This | # ]