Results 1 to 7 of 7

Thread: Retrieving the data from the screen in the GUI

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2010
    Location
    Pretoria, South Africa
    Posts
    22
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Retrieving the data from the screen in the GUI

    QSpinBox and QDoubleSpinBox

  2. #2
    Join Date
    Nov 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Retrieving the data from the screen in the GUI

    Thanks but what if I want to use a simple box like a textEdit box for the user to type the integer or float into?

  3. #3
    Join Date
    May 2009
    Location
    Canada
    Posts
    163
    Thanks
    7
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows Android

    Default Re: Retrieving the data from the screen in the GUI

    Quote Originally Posted by Newbe View Post
    Thanks but what if I want to use a simple box like a textEdit box for the user to type the integer or float into?
    Then do that. See QString::toInt() and QString::toFloat().

  4. #4
    Join Date
    Mar 2011
    Location
    Coimbatore,TamilNadu,India
    Posts
    382
    Thanks
    10
    Thanked 13 Times in 12 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Retrieving the data from the screen in the GUI

    Use TextEdit and retrieve the values in QString and then convert those values to whatever format you are in need..

  5. #5
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Retrieving the data from the screen in the GUI

    Quote Originally Posted by Newbe View Post
    Thanks but what if I want to use a simple box like a textEdit box for the user to type the integer or float into?
    QSpinBox and QDoubleSpinBox both allow direct user input additional to their "spin" input method.

    Cheers,
    _

Similar Threads

  1. Problem retrieving data from class
    By prophet0 in forum Newbie
    Replies: 9
    Last Post: 11th March 2012, 08:14
  2. [SOLVED] Retrieving data from QTableWidget
    By timmu in forum Qt Programming
    Replies: 0
    Last Post: 7th October 2011, 11:36
  3. Replies: 1
    Last Post: 16th September 2011, 08:15
  4. retrieving data from a QWT plot
    By mobucl in forum Qwt
    Replies: 1
    Last Post: 26th May 2011, 13:00

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.