Results 1 to 4 of 4

Thread: Using tables in QTextEdit

  1. #1
    Join Date
    May 2009
    Posts
    17
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Question Using tables in QTextEdit

    I'm using a QTextEdit as an Html Editor, and I want to give users the possibility of creating their own customized table in their .html files.

    I've read a little bit QTableWidget and QTableView, but I couldn't get anything that could help me. Maybe I overlooked?

    What Qt classes or methods should I look deeper?
    Thank you.

  2. #2
    Join Date
    Jan 2006
    Posts
    369
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Using tables in QTextEdit

    Look into QTextCursor

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

    lyucs (29th May 2009)

  4. #3
    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: Using tables in QTextEdit

    Have a look at Text Edit example in Qt Demos under Demonstrations

  5. #4
    Join Date
    May 2009
    Posts
    17
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Using tables in QTextEdit

    I've already seen that example, it shows a table, that's true, but you can't create your own.

    well, anyways, I read the doc for QTextCursor, and I managed to create a table. Thankyou!

    Now, I have to edit the table. If I need help, I'll count on you again

Similar Threads

  1. QTextEdit Performance handling large paragraphs
    By netuno in forum Qt Programming
    Replies: 14
    Last Post: 1st September 2010, 22:58
  2. Drawing on QTextEdit
    By jgrauman in forum Qt Programming
    Replies: 3
    Last Post: 7th February 2009, 09:40
  3. QTextEdit slow to insert text
    By thomaspu in forum Qt Programming
    Replies: 4
    Last Post: 10th January 2008, 12:05
  4. QTextEdit API questions (plain text)
    By Gaspar in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 06:03
  5. Painting to QTextEdit
    By gesslar in forum Qt Programming
    Replies: 8
    Last Post: 18th February 2006, 18:40

Tags for this Thread

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.