Results 1 to 2 of 2

Thread: QTextEdit: I can not see the cursor by deafult

  1. #1
    Join Date
    Sep 2006
    Posts
    12
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Question QTextEdit: I can not see the cursor by deafult

    Hi,

    I am implementing plain text Editor using QTextEdit class.
    Editor has QMainWindow which in turn has QTextEdit.

    When i create new Editor window, I can not see the cursor by default.
    I need to click inside in the edtor to see the cursor.

    How can i see the cursor by deafult when i create new editor?

    I also want to know if it is possible to paint background of a line in QTextEdit to show that there exists a bookmark?

    Some light please .....

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QTextEdit: I can not see the cursor by deafult

    Try setting the focus on the text edit (QWidget::setFocus()). You might also consider using focus proxies.
    J-P Nurmi

Similar Threads

  1. a question about visualizing cursor in read-only QTextEdit
    By kennyxing in forum Qt Programming
    Replies: 3
    Last Post: 17th September 2006, 19:52
  2. QTextEdit API questions (plain text)
    By Gaspar in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 06:03
  3. [QT 4] QTextEdit performance
    By fellobo in forum Qt Programming
    Replies: 8
    Last Post: 6th March 2006, 19:27
  4. Painting to QTextEdit
    By gesslar in forum Qt Programming
    Replies: 8
    Last Post: 18th February 2006, 18:40
  5. Obtaining clean (x)html from QTextEdit
    By ccf_h in forum Qt Programming
    Replies: 1
    Last Post: 5th February 2006, 14:47

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.