Check your HTML code again.
ToolTip-HTML.jpg
int main(int argc, char *argv[])
{
"<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();
}
int main(int argc, char *argv[])
{
QApplication app(argc, 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();
}
To copy to clipboard, switch view to plain text mode
Bookmarks