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

  • Home
  • SEARCH
  • 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 4347282
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:17:06+00:00 2026-05-21T12:17:06+00:00

I am a biginer to Qt and referring to some tutorials on implicit ans

  • 0

I am a biginer to Qt and referring to some tutorials on implicit ans explicit sharing and I came across following article.

http://cdumez.blogspot.com/2011/03/implicit-explicit-data-sharing-with-qt.html

in the code section I was not able to understand the functionality of the following operator

Contact& Contact::operator=(const Contact& other) {
  d = other.d;
  return *this;
}

If some one could explain this what exactly this does and why it is there for in code it would be a great help.

Thanks guys.

~Tharanga

  • 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-05-21T12:17:07+00:00Added an answer on May 21, 2026 at 12:17 pm

    He is overloading the assignment operator. That way, when he says

    c2 = c1;
    

    c2.d will be the same as c1.d.

    It is not Qt specific. Also see this long explanation.

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

Sidebar

Related Questions

Hi Acidentally locked my rootviewcontroller.h file in my application, so if i write some
I beginer programmer,and don't have any QA experience (only simple test that i write
I beginer in zend framework. ob_start(ob_gzhandler) - why the function not use directly in
I am a beginer in programing. When i execute the code by locking the
I am a beginer on game development. I wont write simple game with DirectX
hii. im just beginer in flex development. I wish to do projects in mvc
Excuse me if this is a silly question but i'm a beginer here. I
First off, I'm a real beginer at C# so please be gentle. I'm trying
I'm coding a programm, that will produce 3d coordinates for a rocket and I
I am a beginer with visual studio 2008 (C#), mysql and NHibernate. I have

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.