xshang
QToolButton *button = new QToolButton(this);
button->resize(100,30);
button->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
QStyle* style = QApplication::style();
QIcon icon = style->standardIcon(QStyle::SP_DriveCDIcon);
button->setIcon(icon);
button->setText(QString("123"));
button->move(100,100);

  

分类:

技术点:

相关文章:

  • 2021-10-02
  • 2021-12-06
  • 2021-04-11
  • 2021-12-07
  • 2021-12-04
  • 2021-11-17
  • 2021-12-21
  • 2021-12-04
猜你喜欢
  • 2021-09-26
  • 2021-09-30
  • 2021-09-27
  • 2021-07-16
  • 2021-08-17
  • 2021-11-29
  • 2021-11-23
  • 2021-05-16
相关资源
相似解决方案