91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 95KB
    文件類型: .7z
    金幣: 1
    下載: 0 次
    發布日期: 2021-06-15
  • 語言: 其他
  • 標簽:

資源簡介

Qt個性化系統的實現,模仿了電腦管家的系統托盤,因為圖標沒有找到,所以圖標不是很像。但是基本很相似。

資源截圖

代碼片段和文件信息

#include?“computermanager.h“
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?“myswitchbutton.h“

ComputerManager::ComputerManager(Qobject?*parent)?:
????QSystemTrayIcon(parent)
{
????this->initAction();
????this->initTopAction();
????this->initMidAction();
????this->initBottomAction();
????this->addActions();
????this->initConnect();
????this->translateActions();
}

void?ComputerManager::translateActions()
{
????m_tbnOpenSteward->setText(tr(“Open“));
????m_tbnHome->setText(tr(“check“));
????m_tbnAntiVirus->setText(tr(“AntiVi“));
????m_tbnCleanRubbish->setText(tr(“Clean“));
????m_tbnComputerSpeed->setText(tr(“Comput“));
????m_tbnComputerClinic->setText(tr(“Clinic“));

}

bool?ComputerManager::eventFilter(Qobject?*obj?QEvent?*event)
{
????if?(obj?==?m_topWidget?&&?event->type()?==?QEvent::Paint)
????{
????????QPainter?painter(m_topWidget);
????????painter.setPen(Qt::NoPen);
????????painter.setBrush(QColor(42120192));
????????painter.drawRect(m_topWidget->rect());
????}
????return?QSystemTrayIcon::eventFilter(objevent);
}


void?ComputerManager::initTopAction()
{
????//頂層菜單項初始化
????m_topWidget?=?new?QWidget();
????m_topWidgetAction?=?new?QWidgetAction(m_trayMenu);
????m_topLabelIcon?=?new?QLabel();
????m_topLabelIcon->setPixmap(QPixmap(“:/image/topicon.png“));
????m_topLabelIcon->setFixedSize(3030);

????m_topLabel?=?new?QLabel(tr(“Comuter?Manager?now?protected?you!“));
????m_topLabel->setobjectName(QString(“WhiteLabel“));
????m_topLabel->setFont(QFont(“Times“?11));
????QHBoxLayout*?m_topLayout?=?new?QHBoxLayout();
????m_topLayout->addWidget(m_topLabelIcon);
????m_topLayout->addWidget(m_topLabel1Qt::AlignHCenter?|?Qt::AlignVCenter);
????m_topLayout->setContentsMargins(0000);
????m_topWidget->setLayout(m_topLayout);
????m_topWidget->setMinimumHeight(70);
????m_topWidget->installEventFilter(this);
????m_topWidgetAction->setDefaultWidget(m_topWidget);


????m_topQQWidget?=?new?QWidget();
????m_topQQWidgetAction?=?new?QWidgetAction(m_trayMenu);
????m_QQInfoBtn?=?new?QLabel(tr(“qq?infor?safety\n“)+
?????????????????????????????tr(“reinforce?more?secure“));
????m_QQInfoBtn->setCursor(Qt::PointingHandCursor);
????m_labelIcon?=?new?QLabel();
????m_labelIcon->setPixmap(QPixmap(“:/image/icon.png“));
????m_labelIcon->setFixedSize(5050);

????QHBoxLayout*?m_topQQLayout?=?new?QHBoxLayout();
????m_topQQLayout->addWidget(m_labelIcon);
????m_topQQLayout->addWidget(m_QQInfoBtn);
????m_topQQLayout->setContentsMargins(0000);
????m_topQQWidget->setLayout(m_topQQLayout);
????m_topQQWidget->setMinimumHeight(70);
????m_topQQWidget->installEventFilter(this);
????m_topQQWidgetAction->setDefaultWidget(m_topQQWidget);


????m_topTbnWidget?=?new?QWidget(

評論

共有 條評論

相關資源