c2248 and c2512 errors in the compilation of the MAPX component after the QT environment has been packaged

Source: Internet
Author: User

c:\qt\qt5.6.0\5.6\msvc2013\include\qtcore\qmetatype.h:760:error:c2248: "Mapspace::irowcursor::irowcursor": Cannot access Private member (declared in the "Mapspace::irowcursor" Class)

c:\qt\qt5.6.0\5.6\msvc2013\include\qtcore\qmetatype.h:761:error:c2512: "Mapspace::irowcursor": no appropriate default constructor available

On the internet for most of the days have not found a solution, as if suddenly saw someone said can look at the source code.

I went in and looked at the source, and found out where the problem is, as shown here.

Can see: New when the error, and then according to the wrong prompt class, you re-write the class's copy construction and default construction, the original private macro comments out, compiled through.

Then called the method of Mapx to try it, the successful popup "about" window.

c2248 and c2512 errors in the compilation of the MAPX component after the QT environment has been packaged

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.