View Full Version : QToolTip tables adding an extra row
ksierens
19th April 2013, 20:55
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?
8969
Santosh Reddy
20th April 2013, 17:00
Check your HTML code again.
8973
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();
}
ksierens
20th April 2013, 18:05
Thanks, that is exactly what I am doing. Maybe it is a bug in Qt 3, I will try it in Qt 4
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.