Linked by Thom Holwerda on Tue 16th Sep 2008 14:03 UTC, submitted by John Mills
Google When Google released its Chrome web browser not too long ago, it of course emphasised that the browser was an open source product. The browser contains 24 parts originating from 3rd parties, and to some surprise, one of those parts comes from one of Google's biggest enemies - Microsoft.
Thread beginning with comment 330426
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[3]: They should have used Qt
by macman on Tue 16th Sep 2008 15:54 UTC in reply to "RE[2]: They should have used Qt"
macman
Member since:
2006-11-19

Actually QT doesn't really use native widgets, it sort of does, but not really. Take a look through the source code, QT handles all of its own messaging and most if its own drawing. Essentially, each widget is connected to something like a peer, kind of like Java Swing. It is horribly complex.

Thats the reason why QT applications look absolutely God awful on the Mac and usually pretty bad on Windows (especially when compared with a true native WPF app on Windows or a Cocoa app on OSX).

And yes, I know that there is a beta version of QT that uses Cocoa, but I took a look at the source, and it does the exact same thing. It still most of its own drawing, it just draws to a Cocoa window instead of a Carbon window.

There is a reason why Apple ditched the bottom end of WebKit which was QT to a very light platform abstraction layer. There is a reason why most decent cross platform applications use the real native toolkit on each platform and not some library like QT. QT is really only truly native on Unix where QT and GTK ARE the toolkits.

Edited 2008-09-16 15:56 UTC

Reply Parent Bookmark Score: 2

modmans2ndcoming Member since:
2005-11-09

wouldn't it be nice if QT developers learned to deligate the drawing to the native widgets?

Reply Parent Bookmark Score: 2

RE[4]: They should have used Qt
by leos on Tue 16th Sep 2008 18:17 in reply to "RE[3]: They should have used Qt"
leos Member since:
2005-09-21

Actually QT doesn't really use native widgets, it sort of does, but not really. Take a look through the source code, QT handles all of its own messaging and most if its own drawing. Essentially, each widget is connected to something like a peer, kind of like Java Swing. It is horribly complex.


Cross platform native apps are hard. The code to handle it will be complex. You won't find any toolkit that can do what Qt can and is any simpler.

Thats the reason why QT applications look absolutely God awful on the Mac and usually pretty bad on Windows (especially when compared with a true native WPF app on Windows or a Cocoa app on OSX).


I don't use Qt on OS X, but on Windows they are pretty much indistinguishable. Especially considering every single windows app looks slightly different, so there really is no "native" windows look. Office, WMP, Explorer, Notepad, etc all look different, and those are from the same company. I haven't received any complaints about my Qt software on windows from any clients.

There is a reason why Apple ditched the bottom end of WebKit which was QT to a very light platform abstraction layer. There is a reason why most decent cross platform applications use the real native toolkit on each platform and not some library like QT. QT is really only truly native on Unix where QT and GTK ARE the toolkits.


If you talk to normal users (not computer geeks) you will realize that no one gives a crap about what happens under the hood. However Qt does come with a lot more features, and since Chrome was supposed to be as lightweight as possible, I suspect that google went with something customized to keep down on overhead. It's more of a tech demo anyway, I don't think anyone seriously believes that Chrome will be a major browser.

Edited 2008-09-16 18:22 UTC

Reply Parent Bookmark Score: 4

sbergman27 Member since:
2005-07-24

It's more of a tech demo anyway, I don't think anyone seriously believes that Chrome will be a major browser.

Speak for yourself. Chrome is very likely to be a "major browser". Firefox garnered much of its popularity riding on the coattails (and pocketbook) of Google. Remember all those years Mozilla/Firefox sat at low single digit market share?

Reply Parent Bookmark Score: 1

RE[4]: They should have used Qt
by ba1l on Wed 17th Sep 2008 11:08 in reply to "RE[3]: They should have used Qt"
ba1l Member since:
2007-09-08

Erm... WPF is not "native" by your definition either. WPF handles all of it's own drawing, and builds it's own messaging system on top of Windows's events. Just like Qt.

Windows.Forms does this as well. So do the UI libraries used internally by Microsoft's various applications. So does Internet Explorer. So does Firefox.

Reply Parent Bookmark Score: 3