我是 QT 的新手。我使用以下代码将按钮添加到 QGraphicScene
QGraphicsScene* scene = new QGraphicsScene;
QPushButton *btnuser = new QPushButton();
btnuser->resize(32, 32);
btnuser->setGeometry(QRect(QPoint(50, 50),QSize(32, 32)));
btnuser->setText("1");
btnuser->setAccessibleName("1");
connect(btnuser, SIGNAL( clicked() ), this, SLOT( on_btnProcess_clicked() ) );
scene->addWidget(btnuser);
但是在输出中,按钮后面有一个矩形。我怎样才能删除它?