PDA

View Full Version : Qt 4.4.1 and Visual Studio 2015



Arthur
7th April 2015, 08:43
I need to migrate our projects to Visual Studio 2015. We still have the Qt 4.4.1 Library. When compiling the folowing errors are given:


1>c:\code\qt\include\qtcore\../../src/corelib/tools/qlist.h(299): warning C4458: declaration of 'd' hides class member
1> c:\code\qt\include\qtcore\../../src/corelib/tools/qlist.h(87): note: see declaration of 'QList<T>::d'
1> c:\code\qt\include\qtcore\../../src/corelib/tools/qlist.h(305): note: see reference to class template instantiation 'QList<T>' being compiled
1>c:\code\qt\include\qtcore\../../src/corelib/tools/qvector.h(277): warning C4458: declaration of 'd' hides class member
1> c:\code\qt\include\qtcore\../../src/corelib/tools/qvector.h(83): note: see declaration of 'QVector<T>::d'
1> c:\code\qt\include\qtcore\../../src/corelib/tools/qvector.h(283): note: see reference to class template instantiation 'QVector<T>' being compiled
1>c:\code\qt\include\qtgui\../../src/gui/painting/qpolygon.h(59): warning C4458: declaration of 'p' hides class member
1> c:\code\qt\include\qtcore\../../src/corelib/tools/qvector.h(83): note: see declaration of 'QVector<QPoint>::p'
1>c:\code\qt\include\qtcore\../../src/corelib/tools/qmap.h(361): warning C4458: declaration of 'd' hides class member
1> c:\code\qt\include\qtcore\../../src/corelib/tools/qmap.h(111): note: see declaration of 'QMap<aKey,aT>::d'
1> c:\code\qt\include\qtcore\../../src/corelib/tools/qmap.h(366): note: see reference to class template instantiation 'QMap<aKey,aT>' being compiled
1>c:\code\qt\include\qtcore\../../src/corelib/tools/qmap.h(364): warning C4458: declaration of 'd' hides class member
1> c:\code\qt\include\qtcore\../../src/corelib/tools/qmap.h(111): note: see declaration of 'QMap<aKey,aT>::d'
1>c:\code\qt\include\qtcore\../../src/corelib/tools/qhash.h(115): warning C4458: declaration of 'nodeSize' hides class member
1> c:\code\qt\include\qtcore\../../src/corelib/tools/qhash.h(107): note: see declaration of 'QHashData::nodeSize'
1>c:\code\qt\include\qtcore\../../src/corelib/tools/qhash.h(458): warning C4458: declaration of 'd' hides class member
1> c:\code\qt\include\qtcore\../../src/corelib/tools/qhash.h(238): note: see declaration of 'QHash<Key,T>::d'
1> c:\code\qt\include\qtcore\../../src/corelib/tools/qhash.h(464): note: see reference to class template instantiation 'QHash<Key,T>' being compiled
1>c:\code\qt\include\qtgui\../../src/gui/image/qicon.h(49): warning C4459: declaration of 'engine' hides global declaration
1> c:\code\3.0\modes\validregistration\..\\..\\editor \\application.h(340): note: see declaration of 'engine'
1>c:\code\qt\include\qtgui\../../src/gui/image/qicon.h(50): warning C4459: declaration of 'engine' hides global declaration
1> c:\code\3.0\modes\validregistration\..\\..\\editor \\application.h(340): note: see declaration of 'engine'
1>c:\code\qt\include\qtgui\../../src/gui/widgets/qtabbar.h(100): warning C4458: declaration of 'data' hides class member
1> c:\code\qt\include\qtgui\../../src/gui/kernel/qwidget.h(731): note: see declaration of 'QWidget::data'
1>c:\code\qt\include\qtgui\../../src/gui/itemviews/qtreewidget.h(331): warning C4458: declaration of 'data' hides class member
1> c:\code\qt\include\qtgui\../../src/gui/kernel/qwidget.h(731): note: see declaration of 'QWidget::data'
1>c:\code\qt\include\qtgui\../../src/gui/itemviews/qtreewidget.h(333): warning C4458: declaration of 'data' hides class member
1> c:\code\qt\include\qtgui\../../src/gui/kernel/qwidget.h(731): note: see declaration of 'QWidget::data'
1>c:\code\qt\include\qtgui\../../src/gui/itemviews/qtablewidget.h(308): warning C4458: declaration of 'data' hides class member
1> c:\code\qt\include\qtgui\../../src/gui/kernel/qwidget.h(731): note: see declaration of 'QWidget::data'
1>c:\code\qt\include\qtgui\../../src/gui/itemviews/qtablewidget.h(310): warning C4458: declaration of 'data' hides class member
1> c:\code\qt\include\qtgui\../../src/gui/kernel/qwidget.h(731): note: see declaration of 'QWidget::data'

If I switch the platform toolset to VS 2012 in the project properties it compiles without errors. Is there any way to solve this?

Best regards,
Arthur

anda_skoa
7th April 2015, 09:06
Those are only warnings, not errors.

Cheers,
_