Results 1 to 2 of 2

Thread: Qt 4.4.1 and Visual Studio 2015

  1. #1
    Join Date
    Jan 2006
    Location
    Leiden, the Netherlands
    Posts
    43
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt 4.4.1 and Visual Studio 2015

    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:

    Qt Code:
    1. 1>c:\code\qt\include\qtcore\../../src/corelib/tools/qlist.h(299): warning C4458: declaration of 'd' hides class member
    2. 1> c:\code\qt\include\qtcore\../../src/corelib/tools/qlist.h(87): note: see declaration of 'QList<T>::d'
    3. 1> c:\code\qt\include\qtcore\../../src/corelib/tools/qlist.h(305): note: see reference to class template instantiation 'QList<T>' being compiled
    4. 1>c:\code\qt\include\qtcore\../../src/corelib/tools/qvector.h(277): warning C4458: declaration of 'd' hides class member
    5. 1> c:\code\qt\include\qtcore\../../src/corelib/tools/qvector.h(83): note: see declaration of 'QVector<T>::d'
    6. 1> c:\code\qt\include\qtcore\../../src/corelib/tools/qvector.h(283): note: see reference to class template instantiation 'QVector<T>' being compiled
    7. 1>c:\code\qt\include\qtgui\../../src/gui/painting/qpolygon.h(59): warning C4458: declaration of 'p' hides class member
    8. 1> c:\code\qt\include\qtcore\../../src/corelib/tools/qvector.h(83): note: see declaration of 'QVector<QPoint>::p'
    9. 1>c:\code\qt\include\qtcore\../../src/corelib/tools/qmap.h(361): warning C4458: declaration of 'd' hides class member
    10. 1> c:\code\qt\include\qtcore\../../src/corelib/tools/qmap.h(111): note: see declaration of 'QMap<aKey,aT>::d'
    11. 1> c:\code\qt\include\qtcore\../../src/corelib/tools/qmap.h(366): note: see reference to class template instantiation 'QMap<aKey,aT>' being compiled
    12. 1>c:\code\qt\include\qtcore\../../src/corelib/tools/qmap.h(364): warning C4458: declaration of 'd' hides class member
    13. 1> c:\code\qt\include\qtcore\../../src/corelib/tools/qmap.h(111): note: see declaration of 'QMap<aKey,aT>::d'
    14. 1>c:\code\qt\include\qtcore\../../src/corelib/tools/qhash.h(115): warning C4458: declaration of 'nodeSize' hides class member
    15. 1> c:\code\qt\include\qtcore\../../src/corelib/tools/qhash.h(107): note: see declaration of 'QHashData::nodeSize'
    16. 1>c:\code\qt\include\qtcore\../../src/corelib/tools/qhash.h(458): warning C4458: declaration of 'd' hides class member
    17. 1> c:\code\qt\include\qtcore\../../src/corelib/tools/qhash.h(238): note: see declaration of 'QHash<Key,T>::d'
    18. 1> c:\code\qt\include\qtcore\../../src/corelib/tools/qhash.h(464): note: see reference to class template instantiation 'QHash<Key,T>' being compiled
    19. 1>c:\code\qt\include\qtgui\../../src/gui/image/qicon.h(49): warning C4459: declaration of 'engine' hides global declaration
    20. 1> c:\code\3.0\modes\validregistration\..\\..\\editor\\application.h(340): note: see declaration of 'engine'
    21. 1>c:\code\qt\include\qtgui\../../src/gui/image/qicon.h(50): warning C4459: declaration of 'engine' hides global declaration
    22. 1> c:\code\3.0\modes\validregistration\..\\..\\editor\\application.h(340): note: see declaration of 'engine'
    23. 1>c:\code\qt\include\qtgui\../../src/gui/widgets/qtabbar.h(100): warning C4458: declaration of 'data' hides class member
    24. 1> c:\code\qt\include\qtgui\../../src/gui/kernel/qwidget.h(731): note: see declaration of 'QWidget::data'
    25. 1>c:\code\qt\include\qtgui\../../src/gui/itemviews/qtreewidget.h(331): warning C4458: declaration of 'data' hides class member
    26. 1> c:\code\qt\include\qtgui\../../src/gui/kernel/qwidget.h(731): note: see declaration of 'QWidget::data'
    27. 1>c:\code\qt\include\qtgui\../../src/gui/itemviews/qtreewidget.h(333): warning C4458: declaration of 'data' hides class member
    28. 1> c:\code\qt\include\qtgui\../../src/gui/kernel/qwidget.h(731): note: see declaration of 'QWidget::data'
    29. 1>c:\code\qt\include\qtgui\../../src/gui/itemviews/qtablewidget.h(308): warning C4458: declaration of 'data' hides class member
    30. 1> c:\code\qt\include\qtgui\../../src/gui/kernel/qwidget.h(731): note: see declaration of 'QWidget::data'
    31. 1>c:\code\qt\include\qtgui\../../src/gui/itemviews/qtablewidget.h(310): warning C4458: declaration of 'data' hides class member
    32. 1> c:\code\qt\include\qtgui\../../src/gui/kernel/qwidget.h(731): note: see declaration of 'QWidget::data'
    To copy to clipboard, switch view to plain text mode 

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.4.1 and Visual Studio 2015

    Those are only warnings, not errors.

    Cheers,
    _

Similar Threads

  1. Using Qt 5.4.1 Visual Studio 2013 libs in Visual Studio 2010
    By ^NyAw^ in forum Installation and Deployment
    Replies: 0
    Last Post: 6th March 2015, 10:20
  2. ms visual c++ compile without ms visual studio
    By zzz9 in forum General Programming
    Replies: 2
    Last Post: 12th August 2012, 20:29
  3. Visual Studio Plugin (1.1.6) crashes Visual Studio (2010)
    By mboeni in forum Installation and Deployment
    Replies: 0
    Last Post: 11th October 2010, 16:46
  4. Qt Visual Studio Add-in for Visual Studio 2010??
    By jiapei100 in forum Installation and Deployment
    Replies: 3
    Last Post: 5th July 2010, 13:14
  5. Visual Studio Add-in
    By dima in forum Installation and Deployment
    Replies: 3
    Last Post: 5th August 2009, 06:36

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.