Dear visitor, welcome to QtForum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.

RE: Your experience with Qt3 -> Qt4 ?

Quoted

Originally posted by lehrig
Why is it not possible to reuse the ui files from Qt3 ?
(The generated code will also be different)

It is possible, apart of uic there's also uic3 which handles Qt3 .ui files (if you were using the subclassing approach you shouldn't have a lot of troubles, but I don't know how it works with .ui.h files).

Quoted

Qt Designer seems not to be complete.

Yes, I miss some functionality of the Designer from Qt3 too and I hope that it will be fixed soon.

Quoted

E.g. Why can I not set a pixmap in QLabel ?

It works on my system.

Quoted

Why did they not continue the old classes for ListView, Table and IconView ?
At least for item based programming ?

How about QListWidget, QTableWidget and QTreeWidget?

Quoted

When Qt5 will come out (let's say in 4 years), will we have the same procedure again ?

You will have to ask the Trolls, but I hope that Qt4 is flexible enough and it won't happen again.

I see you're a bit irritated with the difference between Qt3 and Qt4. I don't intend to answer every question you asked here (as I see Jacek already have), but I'll try to focus on the general issue.

Take into consideration, that the current version of Qt4 is Qt 4.0.1. This is an early release, with many bugs and unfinished aspects. It has an architecture different than Qt3 -- all those years seem not to have been wasted. There is an article on Qt Quarterly about the API change between Qt3 and Qt4, read it, you might find it interesting. Have you heard of a project which is perfect and bug-free from the very beginning? I know, I haven't. Don't treat Qt4 as a next version of Qt3. Instead treat it as a separate product, because the internals in Qt4 are completely different than the ones in Qt3. Main paradigms have been kept and that's what's most important. For example the whole drawing scheme has been completely rewritten, so the code responsible for drawing may be buggy, etc.

Many classes have been declared obsolete and have been kept only to enable quick porting of Qt3 apps. These are moved to a separate library, so that if one doesn't want to use any Qt3 code, it's possible not to link with it at all, making the target app lighter and more robust.

Qt4 has a long way ahead of it until it becomes as mature as Qt3 is now. It took more than 4 years to release Qt4, maybe it'll take another five years until Qt5 is released. Let's hope that by then all the Qt4 issues will already have been resolved.

Qt4 is really a giant leap compared to Qt3, it just needs some care until it blossoms and gives fruit, as once it ancesstor did.