Hello,
i did port my app yesterday.
My mistake was: i did import the old qwt 4.5 build settings.\\
So: Do not import them, run qmake + clean all and rebuild all\\
this fixed my first error..
second error see was:
Qt Code:
QString Dir; Dir = G_cWorkSpace.fiModelsDirectory.absoluteFilePath(); //fixed the errorTo copy to clipboard, switch view to plain text mode
maybe try:
Qt Code:To copy to clipboard, switch view to plain text mode
greetz A.
Debugging - I just use GDB via the Creator GUI.
I've just finished recreating my mainwindow.cpp (where my class derived from QMainWindow is implemented).
I recreated the file by pasting chunks of functional code from the original mainwindow.cpp into a new file.
Each time I added code, I rebuilt (commenting out any code that casued compiler/linker errors) and tested for the crash.
Now I have 100% of the functionality back and no crashes at all!???
Then I diff'd the original file against this new one and the only change is the positioning of functions within the file.
Next I backed up this new file and restored the original one....no crash!!?
No I am very confused. In my earlier post where I said I performed a clean rebuild, I right-clicked the project and selected "Clean", then right-click "Run qmake", then right-click "build".
I also on more than one occasion rebuilt the project into a completely different shadow directory and still saw the crash.
So I'm wonderng if "Clean" only cleaned out the compiler and linker outputs from the shadow build dir did not clean everything (I'm thinking of moc files etc...)
I wonder if, instead, I had performed a clean checkout of my sources this problem would not have happened?
What you are saying is similar i had done.
But than i re-installed every qt version i had - 4.5, 4.5.2, 4.5.3, 4.6 4.7 to see if it is a qt problem or if it has to do with my files.
At last Qt asked me during importing the project files: "Do you wish to import build settings.." or something..
i said no, did a qmake + rebuild and everything was fine.
greetz A.
jonks (26th September 2010)
That sounds the most likely reason!
Bookmarks