Results 1 to 4 of 4

Thread: conversion of lineedit text to numeric form

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Mar 2011
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Symbian S60
    Thanked 3 Times in 3 Posts

    Default Re: conversion of lineedit text to numeric form

    ui->lineEdit->text().toInt()

    additional you can define an input mask for the lineedit.
    Last edited by ghal maraz; 9th March 2011 at 16:43. Reason: updated contents
    develboard.blogspot.com - Private German Blog and Wiki about Qt and Linux related Stuff

  2. The following user says thank you to ghal maraz for this useful post:

    sachinmcajnu (9th March 2011)

Similar Threads

  1. lineEdit's setSelection - How to show more text?
    By squidge in forum Qt Programming
    Replies: 3
    Last Post: 30th January 2010, 17:22
  2. Get text from dynamic lineedit
    By wirasto in forum Qt Programming
    Replies: 1
    Last Post: 13th January 2010, 18:56
  3. Enabling buttons when lineEdit has text
    By k12yp70n in forum Newbie
    Replies: 4
    Last Post: 29th May 2009, 07:18
  4. Lineedit text change signal
    By zgulser in forum Qt Tools
    Replies: 2
    Last Post: 19th January 2009, 13:38
  5. read and write content of lineedit widget in Other Form
    By validator in forum Qt Programming
    Replies: 1
    Last Post: 25th April 2008, 15:07

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.