#include "widget.h"
Widget::Widget(QWidget *parent)
: QWidget(parent)
{
this->setMinimumSize (800,800);
this->pushButton = new QPushButton();
this->pushButton->setFixedSize (100,30);
this->pushButton->showFullScreen();
this->pushButton->setStyleSheet ("background-color : red");
QGraphicsScene* pScene = new QGraphicsScene(this);
pScene->addWidget (this->pushButton);
QGraphicsView* pView = new QGraphicsView(pScene, this);
pView->setFixedSize (100,50);
pView->setVerticalScrollBarPolicy (Qt::ScrollBarAlwaysOff);
pView->rotate(90);
}
Widget::~Widget()
{
}
qt里设置控件的旋转、转移、缩放等
猜你喜欢
转载自blog.csdn.net/wtl1992/article/details/102651920
今日推荐
周排行