PDA

View Full Version : Char Array to QString



3nc31
25th November 2007, 22:04
Hi!!!

First sorry if this question had been asked yet, but I didn't find a post like this in the forum...sorry!! :(

Well, I need convert a char array in a Qstring because I want show the text in a LineEdit.

For example:
char message[20] ="Hello World"

convert in a Qstring message2 then:
QLineEdit lineMessage = new QLineEdit;
lineMessage -> setText(message2);

Thanks!!!!! :o

wysota
25th November 2007, 22:10
Have you tried
lineMessage->setText(message)? :)

3nc31
25th November 2007, 22:18
OMG!!!! Even a blind man can see it!! Thanks!!!! :)