Cross-platform gui?
I need to make a cross-platform gui with an OpenGL widget (the gui part is important, not the GL part); what do y'all recommend?
As I see it, there's Qt and Tk; any other major ones?
As I see it, there's Qt and Tk; any other major ones?
It's not magic, it's Ruby.
wxWidgets seems to be nice. I think that comes installed on newer versions of OSX.
Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
You should be aware that your GUI will *not* be nice on all 3 platforms at once if you use a single toolkit.
Qt sucks. I don't know wxWidgets. GTK+ is good (at least when programmed from Ruby/Python) but currently only targets X11 on Mac OS X. Swing isn't great, but is better than most of the rest. I haven't tried SWT.
Qt sucks. I don't know wxWidgets. GTK+ is good (at least when programmed from Ruby/Python) but currently only targets X11 on Mac OS X. Swing isn't great, but is better than most of the rest. I haven't tried SWT.
OneSadCookie Wrote:GTK+ is good (at least when programmed from Ruby/Python) but currently only targets X11 on Mac OS X.
Not exactly true anymore, but it requires a bit more work to get it going.
http://developer.imendio.com/projects/gtk-macosx
Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
Qt isn't too bad but check the licensing.
Skorche Wrote:Not exactly true anymore, but it requires a bit more work to get it going.
http://developer.imendio.com/projects/gtk-macosx
All this gives you is no dependency on X11, it doesn't give you any native widgets or anything. So yes, what I said was technically incorrect, but...
Qt suck on the mac, but in my opinion it's not as bad at OSC says. He -- for I assume good reason -- severely dislikes C++.
Qt does some dirty things with C++ requiring a metacompiler and as such is a PITA unless your toolchain is set up to work with the "moc". So long as that works, Qt's not really that bad. Your apps will look and feel native on Windows and Linux. They'll totally look and feel broken on OS X, though.
Qt does some dirty things with C++ requiring a metacompiler and as such is a PITA unless your toolchain is set up to work with the "moc". So long as that works, Qt's not really that bad. Your apps will look and feel native on Windows and Linux. They'll totally look and feel broken on OS X, though.
I've used wxWidgets a couple times and really, I don't like it very much. On the Mac, it tends to look slightly off and it's hard to get things to work consistently between Mac and Windows.
Of course, if you're doing simple stuff, it's probably okay.
Of course, if you're doing simple stuff, it's probably okay.
The brains and fingers behind Malarkey Software (plus caretaker of the world's two brattiest felines).
Qt's hacked-on dynamism is bad, but it's not the worst thing about Qt. The worst thing about Qt is how programmatically changing the value of a widget fires all the change notifications, so you constantly have to disable change notifications and reenable them.
Of course, I haven't used Qt 4. I hear that they haven't fixed the issue, though they have added a new set of "MVC" APIs which help avoid it.
Of course, I haven't used Qt 4. I hear that they haven't fixed the issue, though they have added a new set of "MVC" APIs which help avoid it.
The whole metacompiler thing for QT is annoying. But I haven't had many other problems with it. The GUI doesn't end up looking any more un-Mac-like than your typical Java application (not that that is good... just not *that* bad relatively speaking). And OSC, you don't *have* to disable notifications just choose when/how you fire those notifications.
Of course all that said, if I'm making something that has to be cross-platform I'd rather use Java. If not, I'd use Cocoa so I don't see that much of a place for it. And I've only ever use Qt 4 so I have no idea what it was like prior to that. I've heard Qt 4 was a good step forward.
Of course all that said, if I'm making something that has to be cross-platform I'd rather use Java. If not, I'd use Cocoa so I don't see that much of a place for it. And I've only ever use Qt 4 so I have no idea what it was like prior to that. I've heard Qt 4 was a good step forward.
OneSadCookie Wrote:Qt's hacked-on dynamism is bad, but it's not the worst thing about Qt. The worst thing about Qt is how programmatically changing the value of a widget fires all the change notifications, so you constantly have to disable change notifications and reenable them.
Of course, I haven't used Qt 4. I hear that they haven't fixed the issue, though they have added a new set of "MVC" APIs which help avoid it.
Oh my, I forgot about that. I haven't done a lick of Qt programming since coming to the Mac and discovering Cocoa. I think the last version of Qt I worked with was an early version of 3.
http://www.wxwidgets.org !! use it
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Cross platform question | kordeul | 13 | 4,760 |
Aug 22, 2007 03:09 AM Last Post: kordeul |
|
| Best cross platform API for PC & MAC | Tarek Demiati | 6 | 2,948 |
Apr 16, 2006 03:07 PM Last Post: Dan Potter |
|
| cross-platform code | leggo | 35 | 11,197 |
Jul 18, 2004 05:05 PM Last Post: Fenris |
|
| Cross platform game code on a budget | Carlos Camacho | 7 | 3,416 |
Apr 19, 2003 09:29 PM Last Post: Mars_999 |
|
| Cross-platform Solutions | DJBlufire | 13 | 4,647 |
Feb 16, 2003 02:40 PM Last Post: athomson |
|

