Hi,
Okay you have just reminded me that QT was not free on Windows prior to release 4. However you can use QT4 on Kdevelop, I think what you need to do is to change the QPATH variable in you bash_profile file. I think that's what I did for Fedora but I'm working on windows today so I can't check :( ... graeme. |
Quote:
Quote:
|
Here's my path:
Code:
$ echo $PATH and the other possibility: QPATH. That variable is not set in my environment. What should it be? |
Okay I didn't quite get it right, the environment variable is QTDIR...
It's set on my system as: Quote:
hope that helps graeme. |
Good! But it's not set in my environment either. :-)
|
Perhaps this can help you help me:
Code:
$ dpkg -l qt'*' |
I don't know where the package will put qt but try a slocate
Code:
$ slocate include/QtCore/QString graeme. |
I have /usr/include/qt[34]
inside /usr/include/qt4/ there's QtCore and QtCore/QString so Code:
QDIR=/usr/include/qt4/ |
and about the other problem: I finally made the "String" show up:
Code:
QString("Hay ").append(QString::number(consulta.size())).append(" registros en la consulta. Desea verlos?") |
and bad news (for me, of course). I don't have a bin inside qt4:
Code:
/usr/include/qt4$ find ./ -iname bin'*' I digged a little further: Code:
$ dpkg -L qt4-dev-tools |
The set is quite short. What you really need (apart from assistant and designer): uic, moc, qmake.
|
after a little 'update-alternatives', I have this:
Code:
$ qmake -v PS I just ran kdevelop, my old project, and asked to compile and it says: QDIR=/usr/share/qt3 and it compiled successfully. I expected it to fail big time. :scratch: |
qt3 to qt4
I thought it was gonna be an easy thing to change from qt3 to qt4, but it seems it isn't just a matter or running the new verion of qmake. I'll have to remake my very first project to see how qt4 works, cause there are many changes.
Will keep you posted. :-) Thanks for your help so far. PS I'll be working without kdevelop till I figure the whole thing out. |
some progress on QT4
I'm starting to make some progress on QT4, though not working on kdevelop, but kate, designer, konsole and so on. :'(
I have noticed two problems: When I try to make my project, it doesn't do the uic of the form I'm working on, though I included it in the src.pro file. Code:
SOURCES += main.cpp Code:
$ qmake src.pro; qmake; make If I uic it myself, going to that directory, then it works: Code:
$ cd formas/principal/ Finally, the second problem: when I run the application, it fails to stop when I close the main form. I have to ctrl+c it. Here's the main code: Code:
QApplication a( argc, argv ); |
There is a conversion program from QT3 to QT4. Not certain how accurate it is but worth running your program through that first.
graeme. |
All times are GMT -5. The time now is 07:27 PM. |