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-08-03
  • 2021-08-03
  • 2021-08-03
  • 2021-08-03
  • 2021-08-03
  • 2021-05-01
  • 2021-04-22
猜你喜欢
  • 2021-08-03
  • 2021-08-03
  • 2021-08-03
  • 2021-08-03
  • 2021-08-03
  • 2021-10-15
  • 2021-08-03
相关资源
相似解决方案