Hello , I need to develope a basic GUI in Qt. I have connected PushButton's Click signal to one custom slot of the Form. In this slot I want to call a function written in c which is in a separate file having following prototype & that file is included in my main application ..
char* file(char *a)
The argument to this function , I want to be text of QLineEdit widget
when i write Table4->setText(rows,0, file(LineEdit1->text().latin1()));
& compile it gives error invalid conversion from `const char*' to `char*'
do i need anything else than latin1() ?
How do I overcome this problem ? Thanx in advance Kedar
On Sun, 26 Oct 2003 k_sapre@softhome.net wrote:
~ ~ char* file(char *a) ~ ~ The argument to this function , I want to be text of QLineEdit widget ~ ~ when i write ~ Table4->setText(rows,0, file(LineEdit1->text().latin1())); ~ ~ & compile it gives error ~ invalid conversion from `const char*' to `char*'
~ char* file(char *a)
to: char* file(const char *a) is one option. But why dont you stick with QFile. That way you get the benefit of other Qt classes[Networking/XML etc] too.