-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.10
-
None
When trying to display a Qt documentation page inside a QTextBrowser, jumping to property definitions does not work, as the QTextBrowser does not support "id='row'" on <tr>.
QTextBrowser *browser = new QTextBrowser; browser->setHtml(R"rhtml( <!DOCTYPE html> <html lang="en"> <body> <table> <tr id="row1"> <td id="row1-col1">Row 1 Col 1</td> </tr> </table> </body> </html> )rhtml"); for (QTextBlock block = browser->document()->begin(); block.isValid(); block = block.next()) { QTextCharFormat format = block.charFormat(); if (format.isAnchor()) { qDebug() << format.anchorNames(); } }
I would expect "row1" to be printed, but only "row1-col1" is printed.