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 6834585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:07:47+00:00 2026-05-26T23:07:47+00:00

I am doing the NFC project. In this I need to detect the tag

  • 0

I am doing the NFC project. In this I need to detect the tag and read the tag contents from the NFC tag and i need to send the tag id to the PHP server. From the server side i will get the response as {tagId&tagcontent}. After this i need to extract the tagId and tagcontents. Till this i have finished and working fine. Now my problem is to pass the value to another class. As soon as i get the SUCCESS response from server i need to pass the extracted values to another class. How can i do that. I am new to Qt programming. Please help me.

  • 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-26T23:07:48+00:00Added an answer on May 26, 2026 at 11:07 pm

    You can pass the parameters as key value pairs i.e. use a QHash or a QVector for this purpose.

    Moreover, if you want the information ot be too specific, you can define a custom C++ class, containing values for the response fields and pass the reference from your 1st class to the other class.

    Parameter passing in Qt is similar to C++.

    Your QStringList, QVector or QHash all are just classes.
    You can pass objects of these class as any other custom class.

    For example:

    In your target class (say T):

    void getResponseHeader(QHash<QString,QString> x);
    

    In your calling class(say C):

    T *t  = new T(); //or whatever instance you have
    t->getResponseHeader(myParsedResponse);
    

    More specifically, you can pass parameters inC++ either by value or by reference.
    For passing objects, it is better to pass them via reference.

    Passing by value means that a copy of the object is made on the callee’s stack and altering the object means altering a local copy so the caller’s object is unchanged when the function returns. Passing by reference means that the address of the object is send (a reference holds an address but behaves like an object) so that the callee can directly alter the original object.

    Have a look at this thread for What's the difference between passing by reference vs. passing by value?

    A nice explanation with examples is provided on codeforum at http://www.codeguru.com/forum/showthread.php?t=343473

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

Sidebar

Related Questions

Doing the below will reproduce my problem: New WPF Project Add ListView Name the
Doing some refactoring in some legacy code I've found in a project. This is
im doing a little reasearch about minimalizing the html from php. like class themeing
Doing a Socket.Receive(byte[]) will get the bytes in from the buffer, but if the
When doing TDD , how to tell that's enough tests for this class /
Doing a top shows this top - 22:04:27 up 7:47, 3 users, load average:
Doing a some practice questions for exam tomorrow can't figure out this one What
Doing this: fun test a 0.0 = good | test a b = bad;
Doing some client-side JavaScript development, which requires me to call a client-side API which
Doing some archiving/deleting of some uncommonly used databases on an Oracle server. Has anyone

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.