Results 1 to 3 of 3

Thread: read text from QPlainTextEdit

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Oct 2009
    Posts
    22
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    8
    Thanked 4 Times in 3 Posts

    Default Re: read text from QPlainTextEdit

    you can use this method :
    Qt Code:
    1. toPlainText()
    To copy to clipboard, switch view to plain text mode 
    eg:
    Qt Code:
    1. ui->plainTextEdit->toPlainText();
    To copy to clipboard, switch view to plain text mode 

    if you only want to use simple text edit control,you can use <line edit> or <text edit>.

  2. The following 2 users say thank you to rainspider for this useful post:

    Foul Ole Ron (8th June 2016), pavanbarot (4th November 2010)

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49
  2. How can I read from Text Edit
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 5
    Last Post: 5th November 2009, 21:22
  3. QPlainTextEdit text format question
    By vieraci in forum Qt Programming
    Replies: 0
    Last Post: 4th November 2009, 12:19
  4. Replies: 5
    Last Post: 27th May 2009, 12:49
  5. how to read from text edit in QT4
    By iamjayanth in forum Qt Programming
    Replies: 3
    Last Post: 17th October 2008, 12:51

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.