Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. TextChanged variable unreachable ?

TextChanged variable unreachable ?

Scheduled Pinned Locked Moved Solved General and Desktop
qlineditqlineeditvariableqstring
3 Posts 2 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • cxamC Offline
    cxamC Offline
    cxam
    wrote on last edited by
    #1

    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);
    

    Stay Hungry, Stay Foolish

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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();

      cxamC 1 Reply Last reply
      1
      • mrjjM mrjj

        @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();

        cxamC Offline
        cxamC Offline
        cxam
        wrote on last edited by
        #3

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

        Stay Hungry, Stay Foolish

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved