Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Problem with Qt Creator editor after downgrading Qt Libraries
QtWS25 Last Chance

Problem with Qt Creator editor after downgrading Qt Libraries

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 1.6k Views
  • 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.
  • N Offline
    N Offline
    Nekromancer
    wrote on last edited by
    #1

    I needed to downgrade my project from Qt5 to Qt4 (4.8.4 exactly), and now i got a little problem with editor.

    I have found and installed all that Qt4 needs (MinGW 4.4 and Qt 4.8.4 from qt-project download page). Then i configured Qt Creator to build it (paths to compilator, qmake, sysroot of libraries etc). Compilation of project works like a charm.

    The problem is - editor can't see any files from Qt library. For example:
    QPushButton: No file or directory

    I tried to manually set up path to includes, but it makes absolutely no diffrence
    INCLUDEPATH += "C:/Qt/4.8.4/include"

    My pro file looks like that:
    @QT += core gui

    TARGET = SudokuComplex
    TEMPLATE = app

    INCLUDEPATH += "C:/Qt/4.8.4/include"

    #my project files@

    I'm looking for solution to that problem. I'm using Qt Creator 2.7.0 that has been packed with Qt 5.0.2 (so it has its default configuration). Is there any way to set path to Qt Libraries to an editor?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      t3685
      wrote on last edited by
      #2

      Are you cross-compiling? According to this page:

      http://qt-project.org/doc/qtcreator-2.7/creator-targets.html

      you should leave sysroot blank unless you are cross-compiling. Maybe that will solve your problems. Also I don't think you need this line in your pro file

      INCLUDEPATH += "C:/Qt/4.8.4/include"

      1 Reply Last reply
      0
      • N Offline
        N Offline
        Nekromancer
        wrote on last edited by
        #3

        Removing sysroot helped. Thx!

        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