【问题标题】:Qt - INFO with button hover with mouseQt - 带有鼠标悬停按钮的信息
【发布时间】:2017-05-05 18:43:37
【问题描述】:

Qt - 使用鼠标按钮悬停帮助。

我想要制作类似 INFO BOX 的按钮,当用户将 鼠标悬停 时使用 mouse(悬停就像在 HTML/ CSS)。

当我们 HOVER 一些 reference 时,Qt Creator 中的类似内容。

【问题讨论】:

    标签: c++ qt hover mouse info


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-11
      • 1970-01-01
      • 2020-08-03
      • 2016-02-14
      • 2012-12-11
      • 1970-01-01
      相关资源
      最近更新 更多