Results 1 to 4 of 4

Thread: QTextEdit error

  1. #1
    Join Date
    Jun 2009
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QTextEdit error

    I am trying to compile a program that contains:
    Qt Code:
    1. #include <QTextEdit>
    2. //some code
    3. QTextEdit *textbox=new QTextEdit;
    4. //some code
    5. textbox->text();
    6. //some code
    To copy to clipboard, switch view to plain text mode 

    but I keep getting the error: "error: ‘class QTextEdit’ has no member named ‘text’"
    p, li { white-space: pre-wrap; }
    Does anyone know why this is happening or how to solve it.
    Any help is appreciated

  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: QTextEdit error

    Quote Originally Posted by scrasun View Post
    "error: ‘class QTextEdit’ has no member named ‘text’
    Hmm, let me guess, you get the error because QTextEdit dont have a member named text() anymore? (Unless you have Qt3 support enabled...)
    use QTextEdit::toHtml() or QTextEdit::toPlainText() instead.

  3. #3
    Join Date
    Jun 2009
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTextEdit error

    ok thanks, it would be helpful if the developers of 'qdevelop' updated it to show these changes.

  4. #4
    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: QTextEdit error

    update what? Source code, docs?

Similar Threads

  1. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  2. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  3. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  4. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19
  5. Qt-x11-commercial-src-4.2.0-snapshot-20060824 error
    By DevObject in forum Installation and Deployment
    Replies: 4
    Last Post: 24th August 2006, 23:31

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.