Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Text obtaining a QLineEdit

    General and Desktop
    qt application desktop qlinedit gettext
    2
    2
    994
    Loading More Posts
    • 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.
    • L
      LuisEnrique last edited by LuisEnrique

      How are you.

      I'm doing a task in Qt, but not much about this program.

      I have a graphical interface where I have a QLineEdit, which need to catch an INT of the entire QLineEdit but QLineEdit receive a text String, then I need to parse Retrieve and save it to a variable.

      Exactly this, just as in C ++ language QT.

      int number = Integer.parseInt (txtfield1.getText ());

      Thank you for your help

      p3c0 1 Reply Last reply Reply Quote 0
      • p3c0
        p3c0 Moderators @LuisEnrique last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • First post
          Last post