doforumda
25th August 2010, 08:28
hi i am trying to concatenate a variable with a string. How can i do this?
here is the code
void login::show_user()
{
QString user_name = user->text();
QMessageBox::information(this, tr("Your Username"),
tr("Your username is user_name"));
}
i want to concatenate user_name in QMessageBox to display username
here is the code
void login::show_user()
{
QString user_name = user->text();
QMessageBox::information(this, tr("Your Username"),
tr("Your username is user_name"));
}
i want to concatenate user_name in QMessageBox to display username