0
我試圖使它像這樣:如何在QMenu中插入圖像?
QWidgetAction *labelAct = new QWidgetAction(screenMenu);
QLabel *label = new QLabel("sadas", screenMenu);
labelAct->setDefaultWidget(label);
screenMenu->addAction(labelAct);
但標籤是空的: