Cross-Platform Applications using Qt
By ghutchis at Mon, Dec 7 2009 1:12pm |
One of the few modern cross-platform toolkits is Qt -- which allows near-native applications on Mac, Linux, Windows, and other UNIX platforms.
Yes, here at MacResearch, we prefer Mac-native applications. But if you want to run something on Linux or Windows as well as your Mac, Qt is a nice way to go. Recent versions even allow Cocoa-Qt hybrid coding, allowing you to add Mac-specific capabilities where you want.
I'll be adding a few tutorials on using Qt on Mac, but one of the best documentation sources is now completely online: C++ GUI Programming with Qt4, 2nd Edition.
Here's a link to each of the chapters:
- Getting Started
- Creating Dialogs
- Creating Main Windows
- Implementing Application Functionality
- Creating Custom Widgets
- Layout Management
- Event Processing
- 2D Graphics
- Drag and Drop
- Item View Classes
- Container Classes
- Input/Output
- Databases
- Multithreading
- Networking
- XML
- Providing Online Help
- Internationalization
- Look and Feel Customization
- 3D Graphics
- Creating Plugins
- Application Scripting
- Platform-Specific Features
- Embedded Programming
- Obtaining and Installing Qt
- Building Qt Applications
- Qt Jambi (i.e., Qt with Java)
- C++ for Java and C# Programmers



Comments
RE: Cross-Platform Applications using Qt
ANSI C is cross platform and has a user interface paradigm: it is called: printf() and scanf(). (that's a joke, but not really a joke as many see it that way). If you need more than that, then Qt is pretty good. Its layout managers are a lot different than Cocoa and turn the UI layout into a run-time algorithm. If you need ultimate precision in the UI then Cocoa is the way to go on the Mac and you will always fight Qt to get precision. But, Qt is definitely a quick solution to throw up some buttons and fields.
Some might contend that Java is the more modern cross-platform toolkit.
... for someone that is picky though, Cocoa is the only solution on the Mac (and MFC on Windows - am I allowed to mention MFC ? :-) ). ... of course, don't get me going on the heart-of-heart cross-plaform toolkits: the dreaded and lost yellowbox.
thanks!-
-lance
VVI