Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Linking Qt Creator to Qt5
Forum Updated to NodeBB v4.3 + New Features

Linking Qt Creator to Qt5

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 3 Posters 11.2k 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.
  • A Offline
    A Offline
    Adekyn
    wrote on last edited by
    #1

    Hello,

    I'm attempting to use Qt Creator (2.4.0-rc) with Qt5.

    I have successfully downloaded Qt5 from the Git repository and compiled Qt5 without any errors.

    In Qt Creator --> Preferences --> Build & Run, I have added path to "qmake" for Qt 5.0.0 under the "Qt Versions" tab.

    After creating a new project (or opening an existing project), Qt Creator cannot locate Qt5 libs/headers.

    Example: Attempting to use "#include <QtGui/QApplication>" results in a "No such file or directory" message on hover.

    I obviously need to point Qt Creator to the ../qt5/qtbase/lib folder (which contains the QtGui module, among others), but I cannot discern how/were this is done.

    Can anyone point me in the right direction?

    Thanks

    [OS X 10.7.2]

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mohsen
      wrote on last edited by
      #2

      the easiest way is to install Qt Creator inside your Qt5 directory and then set lib and include env variables path to Qt5 directories using “sudo vi /etc/launchd.conf” on terminal.

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        The header you mention does not exist in Qt5. There are some source incompatible changes in Qt5.

        Instead of "#include <QtGui/QApplication>" try "#include <QtWidgets/QApplication>" or QCoreApplication (sorry for no details, it's been a while since I tinkered with Qt5 last time, I simply don't remember the exact one).

        (Z(:^

        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