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. Text obtaining a QLineEdit
QtWS25 Last Chance

Text obtaining a QLineEdit

Scheduled Pinned Locked Moved General and Desktop
qt applicationdesktopqlineditgettext
2 Posts 2 Posters 1.3k 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.
  • L Offline
    L Offline
    LuisEnrique
    wrote on last edited by LuisEnrique
    #1

    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

    p3c0P 1 Reply Last reply
    0
    • L 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

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2
      This post is deleted!
      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