QPushButton *bt =
new
QPushButton(
this
);
bt->setText(
"ok"
bt->move(200,100);
bt->setFlat(
true
//就是這句可以實現透明,真是意外的發現,但願對一些學習的朋友有點幫助