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 ?Code:
m_ui->myTextField()->toPlainText()
Printable View
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 ?Code:
m_ui->myTextField()->toPlainText()
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
Yeah, that's what I thought.
Remember that Qt is also "standard C++".