Can anyone please help where did I make mistake please?
void Registr(QString str)
{
QString rezult = str;
for(int i = 0; i < str.size(); i++)
{
rezult[i] = toUpper(str[i]);
}
QMessageBox msg;
msg.setText(rezult);
msg.exec();
}
Can anyone please help where did I make mistake please?
void Registr(QString str)
{
QString rezult = str;
for(int i = 0; i < str.size(); i++)
{
rezult[i] = toUpper(str[i]);
}
QMessageBox msg;
msg.setText(rezult);
msg.exec();
}
toUpper() is a member function of QString class, you will have to call it on the QString object.
Qt Code:
{ QMessageBox msg; msg.setText(str.toUpper()); msg.exec(); }To copy to clipboard, switch view to plain text mode
When you know how to do it then you may do it wrong.
When you don't know how to do it then it is not that you may do it wrong but you may not do it right.
Bookmarks