QTextTable cell lines

  • Hi,

    I am trying to create a PDF report with tables. I would like to hide the vertical lines between the cells, and keep the horizontal lines.
    I have not found a way to do this. Any ides? thanks!

    Some Example Code:

    QTextDocument* myDocument = new QTextDocument(this);
    QTextTableFormat m_TableFormat;
    auto table = cursor.insertTable(4, 2, m_TableFormat);
    table->cellAt(0, 0).firstCursorPosition().insertText(tr("hallootjes"));
    table->cellAt(1, 0).firstCursorPosition().insertText(tr("Current User"));

    // etc..

  • Moderators

    This is currently not extensible in Qt
    Painting happens in QTextDocumentLayoutPrivate class and no options are available to define the desired appearance

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.