Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.4.0
-
None
Description
It is possible to get the QToolTip to show without resizing properly vertically.
This problem on happens with rich text, and it requires some trial and error to get the tooltip to show in this state.
The tool tip is normally shown on multiple lines, when moving the mouse cursor back and forth between two buttons with tool tip
it is possible to get the multiline richtext tooltip to show up on one long line.
Reproducible in Qt 4.4 by modifying the examples/widgets/tooltips example in sortingbox.cpp and replace the following function with:
QToolButton *SortingBox::createToolButton(const QString &toolTip,
const QIcon &icon, const char
*member)
{
QToolButton *button = new QToolButton(this);
static int a=0;
if (a == 0)
else
{ button->setToolTip(toolTip); }a++;
// button->setToolTip(toolTip);
button->setIcon(icon);
button->setIconSize(QSize(32, 32));
connect(button, SIGNAL(clicked()), this, member);
return button;
}