Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, December 2006
RE:FIXED qt3to4(THANKS)


Message 1 in thread

Thanks a million to everyone who helped.
Justin; after following you to step 6 of the 30,000 foot view,  i:
 
1) converted the .ui files to qt4 using uic3 -convert myform3.ui > myform4.ui
2)transfered all converted files to a new folder (minus the .h and .cpp files generated from the original qt3 .ui files) [note: the .ui.h approach was not used to add custom slots to the qt3 project; inheritance of the form class was used]
3)then i created a new project that was saved in the new folder and added the converted files; new ui_myclass.h files were generated4) i then applied multiple inheritance and went on to step nine; and followed through.
 
thanks again.



> Date: Fri, 3 Nov 2006 12:23:09 -0500> From: justin@xxxxxxx> To: qt-interest@xxxxxxxxxxxxx> Subject: Re: qt3to4> > Keith,> > Here is the 30,000 foot view of at Qt3 - 4 port:> > 1) Checkout a fresh copy of your code> 2) Open up a command line (See the automatic env setup in the start menu > under Qt 4.2)> 3) cd \yourproject> 4) qt4to4 yourProject.pro> 5) Follow the prompts to change your code> 6) Read the portinglog.txt> 7) qmake (or qmake -tp vc)> 8) nmake (or use studio on the generated project)> 9) Hunt and peck out all compiler errors from the left over interface > incompatiblies from Qt3 to Qt4. Remember that you can use the Q3 > support classes to speed this up. Assistant will help.> 10) Sucessfully build against qt3support libs> 11) From here convert dialog by dialog Q3 calls to Q calls.> 12) Build cleanly without QT+=qt3support> > Steps 9-12 are going to be extremely difficult if you do not know either > the Qt3 API or Qt4 API. In fact its still painful if you are not well > versed in both versions of the API. Porting a reasonably large Qt3 app > to Qt4 is not really a newbie task ;)> > If you are a newbie, I suggest reading both books "C++ GUI Programming > in Qt 3" and "C++ GUI Programming in Qt 4" by Jasmin Blanchette and > Mark Summerfield or training from Trolltech before becoming discouraged > with your port.> > Good Luck,> --Justin> > keith burke wrote:> > I am trying to use the qt3to4 tool to import some code to qt4 and i > > don't even know where to start ( i am a beginner as you might have > > guessed) . I dont even know where to find the tool, i am using qt4.2. > > The designer is integrated into visual studio .net 2003. Please send > > me some info on this, my desperation knows no bounds.> > ------------------------------------------------------------------------> > Get the new Windows Live Messenger! Try it! > > <http://get.live.com/messenger/overview>> > --> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.> List archive and information: http://lists.trolltech.com/qt-interest/> 
_________________________________________________________________
Get into the holiday spirit, chat with Santa on Messenger.
http://imagine-windowslive.com/minisites/santabot/default.aspx?locale=en-us