QT-随着鼠标悬停按钮的信息

Qt - INFO with button hover with mouse

本文关键字:按钮 信息 悬停 鼠标 QT-      更新时间:2023-10-16

qt - 帮助按钮 hover 带有鼠标>鼠标

我想制作 info box 关于按钮的事情,当用户将悬停使用鼠标>鼠标(Hover喜欢> html/CSS (。

QT Creator 中,当我们悬停某些参考时。

您可以使用QWidget::setToolTip(const QString&),即。

QToolButton* button = new QToolButton(this);
button->setToopTip("Button");