Results 1 to 3 of 3

Thread: how to fetch complex numbers from plain text edit widget ?

  1. #1
    Join Date
    Oct 2010
    Posts
    6
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Question how to fetch complex numbers from plain text edit widget ?

    HI i am new to qt.
    I have used plain text edit widget to read a string and a number, but how to fetch each numbers if many numbers are entered seperted by commas ,in PLAIN TEXT EDIT widget?

    example
    23.12,3.13,123.2,0.334,21.05
    And even how to fetch each complex number from many complex numbers seperated by commas in PLAIN text edit widget?

    example
    12+j2.43,1.32-j34,234+j343.3,34+j4.45

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: how to fetch complex numbers from plain text edit widget ?


  3. #3

    Default Re: how to fetch complex numbers from plain text edit widget ?

    Hi
    You can read the text from the textedit and checkout QString::toDouble() function reference.

Similar Threads

  1. Replies: 1
    Last Post: 6th July 2010, 16:40
  2. Replies: 1
    Last Post: 7th December 2009, 15:59
  3. Routing stdout to Plain Text Edit
    By Barry79 in forum Qt Programming
    Replies: 7
    Last Post: 2nd April 2009, 14:06
  4. QTextEdit + paste rich text as plain text only
    By Yong in forum Qt Programming
    Replies: 2
    Last Post: 6th February 2008, 17:45
  5. Complex Numbers
    By Max Yaffe in forum Qt Programming
    Replies: 2
    Last Post: 24th May 2007, 18:40

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.