In standard C++, the following code is passed as the actual data when used as a parameter:
Does Qt pass the actual data or the reference/address ?Qt Code:
m_ui->myTextField()->toPlainText()To copy to clipboard, switch view to plain text mode
In standard C++, the following code is passed as the actual data when used as a parameter:
Does Qt pass the actual data or the reference/address ?Qt Code:
m_ui->myTextField()->toPlainText()To copy to clipboard, switch view to plain text mode
Last edited by vieraci; 24th October 2009 at 02:48. Reason: missing [code] tags
Something like the reference because the type of the returned data is a QString which is implicitely shared. See http://qt.nokia.com/doc/4.5/shared.html
It's nice to be important but it's more important to be nice.
Yeah, that's what I thought.
Bookmarks