On 04/03/2016 8:10 AM, Duane wrote:
On 04/03/2016 3:17 AM, Ziller Eike wrote:

On Mar 3, 2016, at 5:42 PM, Duane <[email protected]> wrote:

QtCreator on Linux with Qt 4.8.5 and Qt 5.5.1 installed.  We're
moving our projects from Qt4 to Qt5.  U

I have QtCreator setup with a kit using each so I can support both
for the moment.  Recently when trying to build Qt4 projects I'm
getting errors in files like qheaderview.h  where it doesn't like
setSectionsMovable() which replaced Qt4's setMovable(), so I can see
it's getting the header.

But if I look at the Makefile generated it seems to have the correct
information.  In the kit/version section I can see that the includes
look correct.  Any idea why QtCreator is not getting the correct path?

Sorry, I do not understand what your actual problem is. So you get
errors when building. Is that expected, or the problem? Where does _Qt
Creator_ not get the correct path? (To what?) And what is the result
of that?

Br, Eike



Sorry if I wasn't clear.  I build with Qt5 kit and it's fine.  I switch
to the kit using Qt4 and I get errors like:

/usr/local/include/QtWidgets/qheaderview.h:119: error: missing binary
operator before token "("

And it's pointing to the line:

--->        bool sectionsMovable() const;
#if QT_DEPRECATED_SINCE(5, 0)
     inline QT_DEPRECATED void setMovable(bool movable) {
setSectionsMovable(movable); }
     inline QT_DEPRECATED bool isMovable() const { return
sectionsMovable(); }
#endif


But Qt4 doesn't have sectionsMovable() in qheaderview.

My Qt installations are in /usr/local/Trolltech/Qt-5.5.1 and
/usr/local/Trolltech/Qt-4.8.5.

Why would it be looking in /usr/local/include in the first place.  And
why would I have these in the second place?  They're only links to the
Qt5 headers in the installations.  This was working for quite a while.

The Qt header files in /usr/local/include are links to Qt5.3 that was used to build QtCreator. We're using Tiny Core Linux and had to build this ourselves. This was working. I'm still not seeing why switching the kit between builds isn't picking the correct include path.

_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator

Reply via email to