When I use the HTML commands to create a table in the tooltip, it creates an extra row after the table.
Is there anyway to get around this?
Attachment 8969
Printable View
When I use the HTML commands to create a table in the tooltip, it creates an extra row after the table.
Is there anyway to get around this?
Attachment 8969
Check your HTML code again.
Attachment 8973
Code:
int main(int argc, char *argv[]) { QWidget widget; QString html = "<table border=\"0\">" "<tr> <td>Constraint:</td> <td>Displacement Constraint 3</td> </tr>" "<tr> <td>Load Case:</td> <td>Load Case 1</td> </tr>" "<tr> <td>Limit:</td> <td>12mm</td> </tr>" "<tr> <td>Achieved:</td> <td>13.3mm</td> </tr>" "</table>"; widget.setWindowTitle("ToolTil - HTML"); widget.setToolTip(html); widget.show(); return app.exec(); }
Thanks, that is exactly what I am doing. Maybe it is a bug in Qt 3, I will try it in Qt 4