Results 1 to 5 of 5

Thread: textEdit Question

  1. #1
    Join Date
    Mar 2009
    Location
    Nashville Tn.
    Posts
    53
    Thanks
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default textEdit Question

    i am trying to copy keys as user types, into a read only textedit (trying type to 2 textedits at the same time), when i type "ABCDEF" in textedit1,

    the textEdit2 displays

    A
    B
    C
    D
    E
    F

    I am using textedit2.append(keyPressed);
    any idea what is wrong?
    roger
    Last edited by rogerholmes; 25th May 2009 at 06:33.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: textEdit Question

    i am trying to copy keys as user types into a read only textedit
    Isnt that contradictory ? if you want the text to appear in text edit, why are u making it read ony ????????

    As for your ques, QTextEdit::append appends a new paragraph with text to the end of the text edit. May be the paragraph means para from new line

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

    rogerholmes (25th May 2009)

  4. #3
    Join Date
    Mar 2009
    Location
    Nashville Tn.
    Posts
    53
    Thanks
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: textEdit Question

    aamer4yu,

    i have an app that i want the user to type in one textEdit and the keypress's to show up in a read only textedit on a separate form (much like a chat app.). i have found that append does indeed add a newline. i am still trying to find something that will work.

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

    Default Re: textEdit Question

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    rogerholmes (25th May 2009)

  7. #5
    Join Date
    Aug 2007
    Location
    Gorakhpur, India
    Posts
    254
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: textEdit Question

    Quote Originally Posted by rogerholmes View Post
    i am trying to copy keys as user types, into a read only textedit (trying type to 2 textedits at the same time), when i type "ABCDEF" in textedit1,

    the textEdit2 displays

    A
    B
    C
    D
    E
    F

    I am using textedit2.append(keyPressed);
    any idea what is wrong?
    roger
    Another way is via this link;
    http://www.qtcentre.org/forum/f-qt-p...ext-11546.html
    Anurag Shukla
    A man who never makes mistake is the man who never does anything! Theodre Rosvelt!

  8. The following user says thank you to ashukla for this useful post:

    rogerholmes (25th May 2009)

Similar Threads

  1. Help text color in TextEdit
    By tho97 in forum Qt Programming
    Replies: 5
    Last Post: 26th March 2008, 08:47
  2. QTextEdit simple question
    By Marcopolo in forum Qt Tools
    Replies: 4
    Last Post: 11th October 2007, 00:01
  3. Make the cursor visible in textEdit (Qt3.3.5)
    By vermarajeev in forum Qt Programming
    Replies: 9
    Last Post: 24th January 2007, 22:50
  4. visible text of textedit
    By regix in forum Qt Programming
    Replies: 3
    Last Post: 26th June 2006, 09:02

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.