From Qt Wiki
Jump to: navigation, search
This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine.
Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean.

Qt3 to Qt4 porting approach


The large-scale application usually consists of many libraries and some executable modules.

To reduce time-to-market the following approach looks attractive:

  1. Port the application using Q3Support module. Get it up and running
  2. In the continues way remove Q3Support classes, replace them with Qt4 equivalents and get benefits from all Qt4 improvements


  1. Check library dependencies and order them for "one-pass" build. Probably, it is already done in your Qt3 build environment
  2. Start from the library that does not depend on any other, and follow in the build order
  3. Compile the library using Qt3
  4. Create the test application that uses main classes from the library (just display widgets and fill them with data) for Qt3
  5. Port library to Qt4
  6. Port test application to Qt4
  7. Test that the ported application works in the same way as Qt3-based version.
  8. After processing of all libraries start to port and debug the main application.