Results 1 to 3 of 3

Thread: QTextEdit... was ->text() too easy?

  1. #1
    Join Date
    Sep 2007
    Location
    Sant'Elpidio a Mare, Italy
    Posts
    194
    Thanks
    54
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Question QTextEdit... was ->text() too easy?

    Hi, in a newbie topic, a newbie question:
    how to retrieve all the text contained in a QTextEdit in order to put it in a SQLite database?

    Once upon a time there was a method called text() the returned a QString which was the text contained in the box... now I can't go on...

    How to take all the QTextEdit data and put it in the proper database field? Maybe QTextEdit for a note field is not suitable? Should I use some else component?
    --
    raccoon29

    "La mia vita finirà quando non vedrò più la gente ridere...non necessariamente alle mie battute "

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QTextEdit... was ->text() too easy?


  3. The following user says thank you to wysota for this useful post:

    Raccoon29 (16th March 2008)

  4. #3
    Join Date
    Sep 2007
    Location
    Sant'Elpidio a Mare, Italy
    Posts
    194
    Thanks
    54
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: QTextEdit... was ->text() too easy?

    Quote Originally Posted by wysota View Post
    Great!
    This is exactely what I was looking for!

    ...I read some many times that doc, but never noticed that method... ohhh my sleeping brain...
    Thank you!
    --
    raccoon29

    "La mia vita finirà quando non vedrò più la gente ridere...non necessariamente alle mie battute "

Similar Threads

  1. QTextEdit slow to insert text
    By thomaspu in forum Qt Programming
    Replies: 4
    Last Post: 10th January 2008, 12:05
  2. How to retrieve lines from QTextEdit -- easy way?
    By macias in forum Qt Programming
    Replies: 1
    Last Post: 14th November 2007, 15:44
  3. QTextEdit API questions (plain text)
    By Gaspar in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 06:03

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.