vinithr
18th April 2012, 13:54
hi,
I am new to QT. i am not getting the proper way to convert a char * string to QString that i need to display in lineEdit.
Here is the scenario:
I have a header file my_header.h In that i have a variable named char * string. This variable will update by some other application.
I need to update this variable into a lineEdit that accept only QString.. Could you please tell me how i can convert that to QString.
And I need to do reverse operation also.such as i need to get data from line edit and update in the variable in the header..
Thanks in advance
I am new to QT. i am not getting the proper way to convert a char * string to QString that i need to display in lineEdit.
Here is the scenario:
I have a header file my_header.h In that i have a variable named char * string. This variable will update by some other application.
I need to update this variable into a lineEdit that accept only QString.. Could you please tell me how i can convert that to QString.
And I need to do reverse operation also.such as i need to get data from line edit and update in the variable in the header..
Thanks in advance