Re: std::string to QString?
Re: std::string to QString?
I don't suppose this is what you mean?
Code:
ui.
labelName->setText
(QString::fromStdString ( const std
::string & K1.
getName() ));
Sorry if I'm missing something painfully simple
Thanks,
Backslash
Re: std::string to QString?
Sorry stupid move. I suppose I should be using:
ui.labelName->setText(QString::fromStdString (K1.getName()));
Re: std::string to QString?
No, I mean this:
Code:
ui.
labelName->setText
(QString::fromStdString( K1.
getName() ));
In my previous post I gave the function signature (this included the type of the parameter).
Edit: Yep, you got it.