RibbonGroup添加QLineEdit:
QLineEdit* controlEdit = new QLineEdit();
controlEdit->setToolTip(tr("Edit"));
controlEdit->setText(tr("Edit"));
controlEdit->setMinimumWidth(150);
controlEdit->setMaximumWidth(150);
QAction* act = groupStandard->addWidget(controlEdit);
act->setText(tr("Edit"));
效果如下: