• 大小: 0.24M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-01
  • 语言: C/C++
  • 标签:

资源简介

360新版界面完整源代码下载 c

资源截图

代码片段和文件信息

#include “clabel.h“

CLabel::CLabel(QWidget *parent) :
    QWidget(parent)
{
    initVariable();
    initSetupUi();
}

CLabel::~CLabel()
{
    delete m_pLabelIcon;
    delete m_pLabelText;
    delete m_pHLayout;
}

void CLabel::setPixmap(const QPixmap &pixmap)
{
    m_pLabelIcon->setPixmap(pixmap.scaled(QSize(30 30) Qt::KeepAspectRatio Qt::SmoothTransformation));
}

void CLabel::setText(const QString &text)
{
    m_pLabelText->setText(text);
}

void CLabel::setMouseEnterFlag(bool flag)
{
    m_mouseEnterFlag = flag;
    this->update();
}

void CLabel::setMousePressFlag(bool flag)
{
    m_mousePressFlag = flag;
    this->update();
}

void CLabel::enterEvent(QEvent *e)
{
    if (!getMousePressFlag())
    {
        setMouseEnterFlag(true);
    }

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        448  2012-05-20 22:07  360Preview_Sources\360Preview.pro

     文件      18938  2012-05-22 14:38  360Preview_Sources\360Preview.pro.user

     文件       2667  2012-05-18 23:00  360Preview_Sources\clabel.cpp

     文件       1031  2012-05-18 22:36  360Preview_Sources\clabel.h

     文件        347  2012-05-21 21:31  360Preview_Sources\common.h

     文件      22486  2012-05-17 21:47  360Preview_Sources\images\360Preview.ico

     文件         44  2012-05-17 21:47  360Preview_Sources\images\360preview.rc

     文件      15971  2012-05-17 21:47  360Preview_Sources\images\bg_bottom.png

     文件        479  2012-05-17 21:47  360Preview_Sources\images\bg_briangle.png

     文件       7029  2012-05-17 21:47  360Preview_Sources\images\bg_top.png

     文件       2425  2012-05-17 21:47  360Preview_Sources\images\btn_0.png

     文件       2488  2012-05-17 21:47  360Preview_Sources\images\btn_1.png

     文件       3726  2012-05-17 21:47  360Preview_Sources\images\btn_2.png

     文件       2857  2012-05-17 21:47  360Preview_Sources\images\btn_3.png

     文件       1756  2012-05-17 21:47  360Preview_Sources\images\btn_close.png

     文件      13260  2012-05-17 21:47  360Preview_Sources\images\btn_open.png

     文件      13101  2012-05-17 21:47  360Preview_Sources\images\btn_use.png

     文件      59044  2012-05-17 21:47  360Preview_Sources\images\desktop_0.jpg

     文件      34811  2012-05-17 21:47  360Preview_Sources\images\desktop_1.jpg

     文件      41339  2012-05-17 21:47  360Preview_Sources\images\desktop_2.jpg

     文件      40093  2012-05-17 21:47  360Preview_Sources\images\desktop_3.jpg

     文件        569  2012-05-20 21:20  360Preview_Sources\images\images.qrc

     文件        402  2012-05-22 14:38  360Preview_Sources\main.cpp

     文件      11788  2012-05-23 09:50  360Preview_Sources\preview360.cpp

     文件       1630  2012-05-21 21:29  360Preview_Sources\preview360.h

     目录          0  2012-05-21 21:37  360Preview_Sources\images

     目录          0  2012-05-22 14:39  360Preview_Sources

----------- ---------  ---------- -----  ----

               298729                    27



............此处省略0个文件信息

评论

共有 条评论