JUN
28
2005

Trolltech Releases Qt 4.0

Trolltech has released Qt 4.0 both under commercial and GPL licenses for X11, Mac OS X and MS Windows. It is the first time that a MS Windows GPL edition is available. To celebrate the release Trolltech employees have created a song and a music video (Bittorrent download, Ogg Theora version). Read the Qt 4 Overview and the online Qt Reference Documentation for more information. You can download Qt from ftp.trolltech.com or from one of its mirrors. Work on KDE 4 has already started with making a development branch of KDE compile and run with Qt 4.

Unlike previous Qt releases, Qt 4 is a collection of smaller libraries which also allowed the restructuring of commercial offers into Qt Console for non-GUI development, Qt Desktop Light replacing the Professional and Qt Desktop comparable to Enterprise editions.

There are five new technologies that are new within Qt 4:

  • Tulip, a new set of template container classes.
  • Interview, a model/view architecture for item views.
  • Arthur, the Qt 4 painting framework.
  • Scribe, the Unicode text renderer with a public API for performing low-level text layout.
  • Mainwindow, a modern action-based mainwindow, toolbar, menu, and docking architecture.

In addition, the following modules have been significantly improved since Qt 3:

  • A fully cross-platform accessibility module, with support for the emerging SP-API Unix standard in addition to Microsoft and Mac Accessibility.
  • The SQL module, which is now based on the Interview model/view framework.
  • The network module, with better support for UDP and synchronous sockets.
  • The style API, which is now decoupled from the widgets, meaning that you can draw any user interface element on any device (widget, pixmap, etc.).
  • Enhanced thread support, with signal-slot connections across threads and per-thread event loops.
  • A new resource system for embedding images and other resource files into the application executable.

The Qt Designer user interface design tool has been rewritten as a collection of interchangeable components. It now features support for MDI and SDI modes and supports custom widgets. The project editor and the code editor have been dropped.

Qt 3 based applications have to be ported to be able to run with Qt 4. A porting guide, a porting tool as well as a Qt3Support library for obsolete classes are provided. Trolltech aims to maintain the Qt3Support Library for the lifetime of the Qt 4 series, and will also support the Qt 3 series for a minimum of two years beyond the release of Qt 4.

Some known issues are listed which are expected to be fixed in upcoming maintenance releases of Qt 4.0. Qt 4.1 will features certain advanced Qt 3 features rewritten for Qt 4 which are now only available in the Qt 3 support library (eg. Qt 3 canvas, Qt 3 syntax highlighter). It is planned be released late in 2005.

Comments

(...) Work on KDE 4 has already started with making a development branch of KDE compile and run with Qt 4 (...)

Is there any documentation or how-to about how can I compile and test that?


By efegea at Tue, 2005/06/28 - 5:00am

Look under /branches/work/kde4/ on anonsvn.kde.org.


By Anonymous at Tue, 2005/06/28 - 5:00am

The modules are under trunk/branches/work/kde4

You need unsermake 0.4 (trunk/kdenonbeta/unsermake), if you are not using it already. (You can use the same version on KDE 3.x too.) Automake does not work (and will never work).

You need to compile Qt4 as debug not as release, otherwise it does not work.

There are perhaps other traps (and please do not await wonders...)

Have a nice day!


By Nicolas Goutte at Tue, 2005/06/28 - 5:00am

will kde4 be the first release to fully support qt4? or is there any other *easy* way to get a kde desktop, with kdevelop that makes use of qt4?


By hannes hauswedell at Wed, 2005/06/29 - 5:00am

There will probably not be any easy way, as Qt4 is not source compatible to Qt3. (That is why Trolltech has made a porting tool.)

Have a nice day!


By Nicolas Goutte at Wed, 2005/06/29 - 5:00am

Many thanks for not being musicians. It was the first time in my life that i used remove file from inside amarok, instead of remove from playlist. The song is terrible. But i know that bad advertising is good, so everyone who read this will try the song anyway.

PS: Thanks for Qt. But for this i have no words.


By Henrique Marks at Tue, 2005/06/28 - 5:00am

At least it's better than the Free Software Song (http://www.gnu.org/music/free-software-song.html) :P


By Anonymous at Tue, 2005/06/28 - 5:00am

But not better than John Ashcroft's "Let the Eagle Soar"


By Anonymous at Tue, 2005/06/28 - 5:00am

Song was ok, but Dance was laughable ;), had a hearty laugh watching trolls dancing :D


By Asif Ali Rizwaan at Tue, 2005/06/28 - 5:00am

Be sure to watch the .ogg or .mov with mplayer or somesuch to get the full music video experience. Personally I think its so lame that goes around and is actually incredibly awesome. ;)

/me does the Qt 4 Dance


By Ian Monroe at Tue, 2005/06/28 - 5:00am

The guy speaks with the same horrible french accent as myself. Lol


By JC at Tue, 2005/06/28 - 5:00am

Congratulation for the Qt4 release and the video rocks! :)


By cartman at Tue, 2005/06/28 - 5:00am

Small addition, Trolltech has now a public bug tracker: http://www.trolltech.com/developer/tasktracker.html


By binner at Tue, 2005/06/28 - 5:00am

Excellent, was about the time they finally opened that up.


By ac at Tue, 2005/06/28 - 5:00am

THANKS!


By cies breijs at Tue, 2005/06/28 - 5:00am

Any possibility that the new low-level style API will help spur development of a common widget set / backend for Qt & Gtk on freedesktop.org? Linux is in real need for a standard GUI, and having one would allow GNOME and KDE to work closer together, always a good thing!


By LuckySandal at Tue, 2005/06/28 - 5:00am

I haven't looked in detail at what the low-level APIs provide, but some of them already have an equivalent for GTK. Whether or not we'll see them merge is something we'll have to wait and see, but it would be a good start.

Glib provides container classes like Tulip.
I'm fairly sure Cairo is similar to Arthur.
Pango is the equivalent text renderer to Scribe.


By James Livingston at Tue, 2005/06/28 - 5:00am

I doubt such a merge would be widely used unless it's both compatible with Trolltech's Qt and available for all systems theirs is (which is highly unlikely if GTK is to form the base of the merger).


By ac at Tue, 2005/06/28 - 5:00am

I don't know if that would happen, but the new API sounds like a good thing for the Gtk-Qt Theme Engine.


By mmebane at Tue, 2005/06/28 - 5:00am

common do the Qt4 dance...

NO


By ac at Tue, 2005/06/28 - 5:00am

The song is great and the video is very funny, but in mov format kaffeine fails (extrange when I could watch other files in mov format), so I encoded to MPEG4 and mp3.

Could I made a mirror of this video and mp3 on my own server? or there is any copyright restriction?

By the way, Qt4 looks nice :-)


By Pedro Jurado Maqueda at Tue, 2005/06/28 - 5:00am

If I download the video it works in Kaffeine (but not KPlayer), but the audio doesn't work in either, oh well.


By Corbin at Tue, 2005/06/28 - 5:00am

Just tested and confirmed that KPlayer correctly autodetects and plays the video both locally and directly from trolltech.com. The codecs are ffh264 for video and faad for audio, MPlayer is 1.0-pre7. You may want to make sure you have an uncrippled MPlayer binary, like the one from Marillat (http://debian.video.free.fr/). Also make sure you have the correct version of libfaad, for example if you use Marillat's binaries you should also use Marillat's libfaad, rather than the one from rarewares for example.


By kiriuja at Wed, 2005/06/29 - 5:00am

i hope i like it


By macflurry at Sat, 2005/09/03 - 5:00am

With the release of QT4, I hope Adobe will now quickly work on, and release its reader based on QT4. Adobe's newest reader (ver. 7.0) for Linux sucks in the file-save or file-open dialog to say the least. Besides, I think that for those having nothing like *GTK* but a KDE environment, the reader will load faster than the current GTK based one.


By charles at Tue, 2005/06/28 - 5:00am

since adobe rewrote the reader from motif to gtk for the version 5->7 upgrade, I don't think they will change it again any time soon.


By Martin Stubenschrott at Tue, 2005/06/28 - 5:00am

How about porting all Adobe tools (including Dreaweaver) to Qt?
Lots of people would buy a Creative Suite on Linux today. I wonder if there are hidden reasons for not serving the Linux market (-- insert your favourite paranoid phantasy here --). In the long run KDE will fill the gap just as KPDF is already a wonderful replacement for Acrobat Reader. The only weak spot of KPDF is the improper handling of truetype font kerning. Qt 4 Scribe promises to fix it.
Adobe will need to run on a couple of different platforms soon. The Windows platform is about to fork to Win32, .net and Avalon, the Mac will fork to Power and i386 hardware. I do not see an economic development strategy other than using Qt.

Go KDE go!


By Roland Wolf at Tue, 2005/06/28 - 5:00am

> Adobe will need to run on a couple of different
> platforms soon. The Windows platform is about
> to fork to Win32, .net and Avalon, the Mac will
> fork to Power and i386 hardware. I do not see an
> economic development strategy other than using Qt.

Good point, there are indeed too many toolkits on the horizon :)

Adobe already has one (can i say: 'experiment') program using Qt, called Photoshop Album (http://www.adobe.com/products/photoshopalbum/). More info on that here:
http://dot.kde.org/1046444343/


By cies breijs at Tue, 2005/06/28 - 5:00am

"I do not see an economic development strategy other than using Qt. "
Don't quit your day job then.


By illogic-al at Wed, 2005/06/29 - 5:00am

> How about porting all Adobe tools (including Dreaweaver) to Qt?

Since it's closed source then of course Adobe would have to do that. Supposedly there was work in progress to port Dreamweaver to Linux a year or two ago. Where is it and where is the hype? Reading things like this are distressing to me personally. Quanta Plus is here _now_, already native KDE, is already superior for coding like PHP and already has a superior rendering engine with KHTML. Currently development work is being done to make a new generation visual mode, integrate with the KDevelop framework and enhance other capabilities like scripting with Kommander. It also has a fully DTD compliant markup engine and manages XML DTDs on the fly. One of the goals for KDE 4 is to manage XML with XSLT on the fly. All the feedback I've gotten from people who have used Dreamweaver and Quanta is that there are less and less reasons to use Dreamweaver. Quanta is not targetting a feature for feature replacement but is targetting a new generation tool with a goal of nothing less than being the best.

If you can get software that is free as in freedom and free as in beer and it is deeply native KDE, mature and based on a more advanced architecture would you prefer a commercial product? Since Quanta uses sponsored development a contribution of a lot less than the retail cost of Dreamweaver can go a long way to helping to make sure that when (if) it finally shows up on Linux you have no reason left to downgrade.


By Eric Laffoon at Wed, 2005/06/29 - 5:00am

Hello Eric,
Any plans to port Quanta to Windows and/or Mac?

I think it would be a very good idea to expand the 'market' of the program, and now with the GPL version of the Qt it would be possible to offer it for free.

I don't know how hard it will be because it probably has many KDE dependencies.

Thanks for supporting such a great software,
Manuel


By Manuel Valladares at Wed, 2005/06/29 - 5:00am

"The reader will load faster than the current GTK based one."

Well, if you have enough RAM (about 512Mb these days), the gtk components that you need will stay in the cache after being loaded from disk for the first time, and next time they'll be loaded from mem-cache, not from the disk. Note that your argument goes both ways right ? Some people use gnome-only. Adobe will definitely not release a product with two different libs just to keep as happy :-)))

I still would love to see _everything_ written with the Qt/KDE libs. But that's _my_ preference and _my_ opinion. Other people like other libs, let's all coexist. Long life to freedesktop.org
:-)

Cheers,


By MandrakeUser at Tue, 2005/06/28 - 5:00am

Cool, then I , as a non KDE user can complain about Adobe using Qt and the slow startup and bloated file opener.


By me at Tue, 2005/06/28 - 5:00am

KDE people tend to believe you should actually be able to find your files rather than having to click to open up a dialog and then get about 4 pixels to browse your filesystem with.


By mikeyd at Tue, 2005/06/28 - 5:00am

C'mon, let's not get into flaming. Both approaches have their strenghts, so let's just keep promoting the ones we like instead of lowering the other ones.


By Jakob Petsovits at Wed, 2005/06/29 - 5:00am

What's the strength of having a much smaller area to browse your files with? I agree that there are advantages to gnome and its way in some areas, but the file dialog is just stupid.


By mikeyd at Wed, 2005/06/29 - 5:00am

Thanks Trolltech for releasing QT for windows and mac under GNU/GPL. Now we can see more QT applications in Linux, Windows and Mac too :)

I wonder how KOffice for Windows would look like ;)


By Asif Ali Rizwaan at Tue, 2005/06/28 - 5:00am

Qt/Mac is available under GPL for quite some time already now.


By Anonymous at Tue, 2005/06/28 - 5:00am

Qt was already licensed under GPL for Mac for quite a long time!
Windows is a first.


By blacksheep at Tue, 2005/06/28 - 5:00am

hey...
do the qt4 dance! %-}

this is beyond embarrassing... but I'm sure it was great fun for all those dancing around in the vid ;)

- 42


By 42 at Tue, 2005/06/28 - 5:00am

First there was linux
Than there was Mac
Now we put Windows
on the open source track...

The only thing better than that was the beta (alpha?) release of KDE codename krocodile theme... Go, Schnappi, go...


By Amadeo at Tue, 2005/06/28 - 5:00am

Just wondering, which one is Zack "The Hacker" Rusin? :)
The video's credits seq just says he is one of "The Cute Four".


By blacksheep at Tue, 2005/06/28 - 5:00am

The cutest one of course. Still question open? OK, the most left after leaving the computer.


By Anonymous at Tue, 2005/06/28 - 5:00am

This guy at the bottom is Zack Rusin:

http://www.kdedevelopers.org/node/view/1122


By suy at Tue, 2005/06/28 - 5:00am

And why is there a credit for "Stand-in for Zack"?


By AC at Fri, 2005/07/01 - 5:00am

Because there was a stand-in for Zack for "within the computer" scenes.


By Anonymous at Fri, 2005/07/01 - 5:00am

Does the fact that there is now a GPL official Qt windows release mean that pyqt for windows will also have a GPL version ? That's gonna boost PyQt as a fantastic cross platform rapid dev. environment !

Maybe even PyKDE, are there any plans to natively port the kdelibs to the evil empire ?


By MandrakeUser at Tue, 2005/06/28 - 5:00am

Yup, PyQt4 will be GPL'd in Windows

http://www.riverbankcomputing.co.uk/pyqt/roadmap.php


By smt at Tue, 2005/06/28 - 5:00am

Cool, thanks!

Win PyKDE of course will depend on what happens with Win KDE ... oh well, one step at a time

Personally, I only use windows at work 'cause I have no option. It sucks, and I'd love to be able to use some kde apps ...


By MandrakeUser at Tue, 2005/06/28 - 5:00am

Pages