What about the part you cut out? Is there a constructor for the class?
What about the part you cut out? Is there a constructor for the class?
no there is no constructor.
should not qt be portable. as i have seen one must change his code to get it compiled in win (in my case). i have solved another problem, witch i didn't have in linux.
Last edited by yazan; 19th June 2011 at 20:26. Reason: updated contents
How is the member variable ui declared ? You have some kind of forward declaration? Can you post the content of graphform.h ?
Are you using the same version of Qt/Creator on both systems?
Are you attempting to use automatically generated files created on Linux under Windows?
Have you done a complete 'make clean' of your project and regenerated everything from scratch?
Are you sure this code compiled under Linux? 'cause it doesn't look like it should; there's no constructor corresponding to the object you're trying to construct in the initialization routine.
To answer the question you've repeated several times now: yes, Qt code is, for the most part, portable without change between Linux and Windows. The only exceptions are sections of code that are clearly platform-dependent such as calls to Windows or Linux OS routines or similar resources. I've ported several large programs between the two systems and have never once had to rewrite code.
Last edited by SixDegrees; 19th June 2011 at 20:47.
But I think there is a default, auto-generated no-argument constructor like for any other C++ class without other constructors, so new Ui::graphForm should be ok.
I agree with SixDegrees, you should rebuild everything from scratch.
Bookmarks