Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
None
-
None
Description
Consider this code:
#include <QApplication>
#include <QLabel>
#include <QHBoxLayout>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QWidget top;
QHBoxLayout layout;
const QString s("<table>"
"<tr><td>Line 1</td></tr>"
"<tr><td>Line 2%1</td></tr>"
"<tr><td>Line 3</td></tr>"
"</table>");
const QString line2b("Line 2b");
top.setLayout(&layout);
top.show();
return app.exec();
}
This is not about text wrapping/layoutting, but the yellow background rectangle, which in the case of Second Label has an incorrectly computed width.