完成部分http功能

This commit is contained in:
LION-jiejie
2025-03-24 02:04:00 +08:00
parent 9d8c7baa36
commit d20d1907ca
7 changed files with 527 additions and 283 deletions

View File

@@ -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);