QWidget* background = new QWidget(this);
background->setObjectName("ControllerSelector_bg");
background->setStyleSheet("QWidget#ControllerSelector_bg{border-width:60px;border-image:url(:/cs_bg.png) 60px 60px 60px 60px stretch stretch;}");
Qt 使用 border-image 实现图片九宫格
最新推荐文章于 2024-01-02 23:57:53 发布