qlabel html format
Unsolved
General and Desktop
-
void QReportForm::CreateTable() { QTextDocument textdoc; QString html = "<table border=1 bordercolor=blue width =500 height=300 align =center><tr><td>First11</td><td>Second22</td></tr><tr><td>First33</td><td>Second44</td></ tr></table>"; this->ui.label_14->setTextFormat(Qt::RichText); this->ui.label_14->setText(html); }
I put a table in html format on the label, but it occupies the area of fixmap above, is there a solution to this?