Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Unable to make changes to old project
Forum Updated to NodeBB v4.3 + New Features

Unable to make changes to old project

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 828 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    garth_thompson
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        garth_thompson
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You're welcome !

          You can also use this construct if you want to retain compatibility with both:

          @greaterThan(QT_MAJOR_VERSION, 4): QT += widgets@

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved