[Qt-creator] Problems switching kit between 4.85 and 5.5
Duane
duane.hebert at group-upc.com
Fri Mar 4 14:10:30 CET 2016
On 04/03/2016 3:17 AM, Ziller Eike wrote:
>
>> On Mar 3, 2016, at 5:42 PM, Duane <duane.hebert at group-upc.com> 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.
More information about the Qt-creator
mailing list