完成部分http功能
This commit is contained in:
@@ -133,7 +133,11 @@ void Widget::paintEvent(QPaintEvent *event)
|
||||
|
||||
// QWidget::paintEvent(event);
|
||||
QStyleOption opt;
|
||||
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
||||
opt.init(this);
|
||||
#else
|
||||
opt.initFrom(this);
|
||||
#endif
|
||||
QPainter painter(this);
|
||||
style()->drawPrimitive(QStyle::PE_Widget, &opt, &painter, this);
|
||||
}
|
||||
@@ -264,7 +268,11 @@ void Widget::initLeftMenu()
|
||||
labAbout->installEventFilter(this);
|
||||
buttomLayout->addWidget(labAbout);
|
||||
buttomLayout->addSpacerItem(horizenSpacer);
|
||||
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
||||
buttomLayout->setMargin(0);
|
||||
#else
|
||||
buttomLayout->setContentsMargins(0, 0, 0, 0);
|
||||
#endif
|
||||
|
||||
frameLayout->addItem(buttomLayout);
|
||||
frameLayout->setSpacing(40);
|
||||
|
||||
Reference in New Issue
Block a user