Unable to make changes to old project
-
I have a project which I build on another computer and move it to my new computer running ubuntu 14.04 and unable to make changes. I want to add another lineEdit when I add it using qtcreator the designer form show it but when trying to build I get error saying no lineEdit.
I am sure it is something I have left out of the new install on qtcreator but I have been unable to find what.
Garth
-
Hi and welcome to devnet,
Are you by any chance using Qt 4 for your old computer and Qt 5 on your new one ?
If so you need to add
@QT += widgets@
to your pro file
-
Thank you for your reply as it turn out you are correct the project was done in qt4 and I now have qr5 found many change I had to make. Now have the program working.
Gartrh
-
You're welcome !
You can also use this construct if you want to retain compatibility with both:
@greaterThan(QT_MAJOR_VERSION, 4): QT += widgets@