Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Qt -HELP 用鼠标悬停按钮。
我想做一些关于按钮的信息框,当用户用鼠标悬停它时(像HTML/CSS一样悬停)。
当我们悬停一些参考时,在Qt Creator中会出现类似的情况。
你可以使用QWidget::setToolTip(const QString&),即
QWidget::setToolTip(const QString&)
QToolButton* button = new QToolButton(this); button->setToopTip("Button");