Results 1 to 3 of 3

Thread: How text can retrieve fromQTextTable

  1. #1
    Join Date
    Jun 2007
    Posts
    12
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy How text can retrieve fromQTextTable

    Hi ,

    In QTextTable when we press return key,the text goes next line as we expect.But when we try to get that text from QTextTableCell using the code

    table.cellAt(0, 1).firstCursorPosition().block().text();

    It gives only the first line.The text after return key(next line) is not returned.

    Anybody give some suggestion to get the full text in a QTextTable even when we press return key in a cell.

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: How text can retrieve fromQTextTable

    What is a block?
    Answer that and you know how to get the whole text.

  3. #3
    Join Date
    Jun 2007
    Posts
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How text can retrieve fromQTextTable

    Hi,
    I solved by itrating each block in a QText Table cell.

    Thanks

Similar Threads

  1. retrieve code from DLL
    By kernel.roy in forum Qt Programming
    Replies: 1
    Last Post: 15th September 2010, 08:03
  2. retrieve code from DLL
    By kernel.roy in forum Newbie
    Replies: 1
    Last Post: 15th September 2010, 06:21
  3. retrieve QSqlTableModel from QTableView?
    By jtdavidson in forum Newbie
    Replies: 1
    Last Post: 16th July 2010, 08:41
  4. Replies: 1
    Last Post: 18th July 2009, 07:39
  5. Replies: 1
    Last Post: 3rd September 2008, 14:16

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.