TextChanged variable unreachable ?



  • Hi! I'm having a problem, I want to use the variable returned by a QLineEdit on a function but I don't seem to be able to do it. Here's my code:

    ui->IntroNombre->textChanged(QString nombre);
    BuscarUser(nombre);
    

  • Qt Champions 2017

    @cxam said:
    He
    you seem to call the signal function ??
    To use that , you would hook up the signal to a slot. You cannot just call it.

    Just use
    QString nombre;
    nombre=ui->IntroNombre->text();



  • @mrjj Thanks Mrjj :) it went perfect, you're awesome haha ;)



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.