Results 1 to 2 of 2

Thread: partly draw in textEdit.

  1. #1
    Join Date
    May 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question partly draw in textEdit.

    Hi, guys,

    I want to reimplement paintEvent() of QTextEdit for draw table, QT supported HTML is a subset of standard HTML, it's not enough when draw some complex tables.

    The issue is: when i reimplemented this function, i found it will be called again and again so the member functions like insertHtml() can not work.

    Does any one have a good solution for my issue? Or some other suggestion about insert a custom draw table(use QPainter functions draw) into QTextEdit.

    Thanks in advance.

  2. #2
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: partly draw in textEdit.

    The issue is: when i reimplemented this function, i found it will be called again and again so the member functions like insertHtml() can not work.
    explain more!!
    show your code.

Similar Threads

  1. Use delegate to draw different type of items
    By nifei in forum Qt Programming
    Replies: 1
    Last Post: 19th January 2009, 14:16
  2. Help text color in TextEdit
    By tho97 in forum Qt Programming
    Replies: 5
    Last Post: 26th March 2008, 09:47
  3. Make the cursor visible in textEdit (Qt3.3.5)
    By vermarajeev in forum Qt Programming
    Replies: 9
    Last Post: 24th January 2007, 23:50
  4. Using QGLWidget paint engine to draw regular widgtes?
    By high_flyer in forum Qt Programming
    Replies: 11
    Last Post: 9th October 2006, 13:06
  5. visible text of textedit
    By regix in forum Qt Programming
    Replies: 3
    Last Post: 26th June 2006, 10: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.