Results 1 to 4 of 4

Thread: how to read from text edit in QT4

  1. #1
    Join Date
    Oct 2008
    Location
    Thodupuzha, a small town in kerala
    Posts
    31
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default how to read from text edit in QT4

    I am using QT4.4. I want to create a mainwindow application with a textedit as my central widget. I have already done this project successfully in qt3. But qt 3 has a text() function in qtextedit that helps to read from text edit . Can anybody tell me a way to read text from text edit. Thanks in advance.

    I am asking for a function which is equivalant to text() in QT 3

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to read from text edit in QT4


  3. #3
    Join Date
    Jul 2008
    Location
    Mumbai, India
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to read from text edit in QT4

    u can also use toHtml() for reading rich text.

  4. #4
    Join Date
    Oct 2008
    Location
    Thodupuzha, a small town in kerala
    Posts
    31
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: how to read from text edit in QT4

    Thanks all.....I solved the problem ....... With toPlainText() function.....Once again thank you to all......

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49
  2. Checking max text lenght to fit in line edit?
    By maverick_pol in forum Qt Programming
    Replies: 2
    Last Post: 16th June 2008, 00:24
  3. Replies: 8
    Last Post: 15th May 2007, 09:21
  4. automatic scrolling text edit
    By Vash5556 in forum Newbie
    Replies: 2
    Last Post: 19th March 2007, 18:32
  5. Finding text on Text edit
    By jyoti kumar in forum Qt Programming
    Replies: 2
    Last Post: 18th May 2006, 13:20

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.