Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8900083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:01:10+00:00 2026-06-15T01:01:10+00:00

I am trying to do this (directDrawingPainterPath is a class member of type QPainterPath):

  • 0

I am trying to do this (directDrawingPainterPath is a class member of type QPainterPath):

directDrawingPainterPath = QPainterPath(point);

However, compiling the program in visual studio gets me the following error:

1>ScribbleWidget.obj : error LNK2019: unresolved external symbol
“__declspec(dllimport) public: class QPainterPath & _cdecl
QPainterPath::operator=(class QPainterPath &&)”
(
_imp_??4QPainterPath@@QEAAAEAV0@$$QEAV0@@Z) referenced in function
“protected: virtual void __cdecl ScribbleWidget::mousePressEvent(class
QMouseEvent *)”
(?mousePressEvent@ScribbleWidget@@MEAAXPEAVQMouseEvent@@@Z)

When I rewrite it like this:

QPainterPath tmp(point);
directDrawingPainterPath = tmp;

Then it works. This also happens for other assignments:

This works:

QString tmp = att.value().toString();
name = tmp;

This doesn’t:

name = att.value().toString();

Anyone knows what the problem could be?

Update

I just found the solution: The problem was that I tried to link against a QT that was compiled with VS2008, while I compiled the project with VS2010.

Using a QT that’s also compiled with VS2010 makes everything work…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T01:01:12+00:00Added an answer on June 15, 2026 at 1:01 am

    I just found the solution: The problem was that I tried to link against a QT that was compiled with VS2008, while I compiled the project with VS2010.

    Using a QT that’s also compiled with VS2010 makes everything work…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying this code, however i get the error above: <input id=content class=content
I am trying this to test wether an XML documents gets created or not
Trying this: - UPDATE -- SOOORRY! <li><a href=index.php class=first>Home</a></li> <?php if (the_title() == language-translation)
Trying this in the title environment: http://www.javadb.com/check-if-a-string-is-a-valid-date However, it isn't working in the right
I am trying this function, however something is wrong. I stored the name John
I am trying this but is not working... why? <html> <body> <script type=text/javascript> var
I was trying this sample program below. I'm not calling the +(void)initialise and -(id)init
I'm trying this: Type ThreadContextType = typeof(Application).GetNestedType(ThreadContext, System.Reflection.BindingFlags.NonPublic); MethodInfo FDoIdleMi = ThreadContextType.GetMethod(FDoIdle, BindingFlags.NonPublic |
I'm trying this and getting an error. SELECT Count(*) FROM CASE @Type WHEN 'UserName'
I am trying this JS code in jquery capty plugin . However the plugin

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.