ºÇºÇ£¡Ò»¸öQTͨ¹ýÌùͼʵÏÖµÄÄ£ÄâʱÖÓ cÎļþ
#include "draw.h"
#include "ui_draw.h"
#include <QPixmap>
draw::draw(QWidget *parent)
: QDialog(parent), ui(new Ui::draw)
{
ui->setupUi(this);
// this->setWindowFlags( Qt::FramelessWindowHint);
ctrlPoint.setX(this->width() / 2);
ctrlPoint.setY(this->height() / 2);
m_pixmap = QPixmap("Skin/Night Blue/main.png");
m_mainScale = this->width() /((qreal)(m_pixmap.width())) ;
m_pixmap = QPixmap("Skin/Night Blue/hour.png");
m_hourScale = (this->width()/(qreal)2.0 ) / (m_pixmap.width()) ;
m_pixmap = QPixmap("Skin/Night Blue/min.png");
m_minScale = (this->width()/(qreal)1.8 ) / (m_pixmap.width()) ;
m_pixmap = QPixmap("Skin/Night Blue/sec.png");
m_secScale = (this->width()/(qreal)1.5 ) / (m_pixmap.width()) ;
// qDebug("m_mainScale = %f , m_hourScale = %f , m_minScale = %f ,m_secScale = %f",m_mainScale,m_hourScale,m_minScale,m_secScale);
m_secRotation = QTime::currentTime ().second() *6 - 90;
m_minRotation = QTime::currentTime ().minute() *6 - 90;
m_hourRotation = m_minRotation / 10 + QTime::currentTime ().hour() * 30 - 90;
upTimer = new QTimer(this);
connect(upTimer,SIGNAL(timeout()),this,SLOT(updataTime()));
upTimer->start(500);
}
draw::~draw()
{
delete ui;
}
void draw::paintEvent(QPaintEvent *event)
{
//face
QPainter painter(this);
m_pixmap = QPixmap("Skin/Night Blue/main.png");
painter.scale(m_mainScale,m_mainScale);
painter.drawPixmap(QPointF(0, 0), m_pixmap);
//hour
QPainter p
Ïà¹ØÎĵµ£º
CÓïÑÔ±ØÖª±Ø»á£¨2£©
4.º¯ÊýºÍÖ¸Õë
4.1. Ö¸Ïòº¯ÊýµÄÖ¸Õë
Ö¸Ïòº¯ÊýµÄÖ¸Õ뼴ͨ³£ËµµÄº¯ÊýÖ¸Õ룬ÕýÊÇÓÉÓÚÕâЩ¼ò³Æ£¬ËùÒÔËüºÍ·µ»ØÖ¸ÕëµÄº¯Êý£¨Ö¸Õ뺯Êý£©ÈÝÒ×»ìÏý£¬¶øÇÒÒ²ÓÉÓÚд·¨ÉϱȽÏÏà½ü£¬¾ÍÏñÊý×éÖ¸Õë(int (*p)[4])ºÍÖ¸ÕëÊý×é(int *p[4])Ò»Ñù£¬Ç°Õß±íʾָÕë±äÁ¿pÖ¸ÏòÒ»¸öһάÊý×飬Õâ¸öÊý×éº¬Ó ......
CrimsonÀ´×ÔÓÚSun¾èÔù¸øApacheµÄProjectXÏîÄ¿£¬XercesÀ´×ÔIBM¾èÔù¸øApacheµÄXML4JÏîÄ¿£¬½á¹ûXercesʤ³ö£¬³ÉÁËApache XMLС×éÈ«Á¦¿ª·¢µÄXML API£¬¶øCrimonÒѾÔç¾Í²»×öÁË£¬Èç½ñXercesÃûÂúÌìÏ£¬µ½´¦¶¼ÊÇÔÚÓÃXerces DOMºÍSAX½âÎöÆ÷£¬Ö»ÓÐSun²»·þÆø£¬·ÇÒªÔÚJDK1.4ÀïÃæʹÓùýʱµÄCrimson£¬ÈÃÈ˸оõÏñÊÇÔÚ¶ÄÆøÒ»Ñù£¬ÕæÊÇÈà ......
¾³£ÐèÒªÔÚ³ÌÐòÖн«Ô¶³Ì´«À´µÄ×Ö½ÚÁ÷½øÐнṹ»¯£¬»òÕß½«½á¹¹»¯µÄÊý¾Ý±ä³É×Ö½ÚÁ÷´«¸øÔ¶³ÌÖ÷»ú¡£ÔÚC/C++³ÌÐòÖУ¬½á¹¹»¯Êý¾Ýͨ³£ÓýṹÌåÀ´×éÖ¯£¬½á¹¹ÌåÒ²Äܹ»·½±ãµÄת»»Îª×Ö½ÚÁ÷£¬Òò´Ë½á¹¹»¯µÄÊý¾Ý´«Êä±¾²»¸Ã³ÉΪÎÊÌ⣬µ«ÔÚVC»òGCCµÄĬÈÏÉèÖÃϱàÒë³öµÄ³ÌÐò£¬È´ÓÐÒ»¸öÖµµÃ×¢ÒâµÄÎÊÌâ——½á¹¹ÌåµÄ¶ÔÆë¡£ ......
// backlightDlg.cpp : implementation file
//
#include "stdafx.h"
#include "backlight.h"
#include "backlightDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CbacklightDlg dialog
CbacklightDlg::CbacklightDlg(CWnd* pParent /*=NULL*/)
: CDialog(CbacklightDlg::IDD, pParent)
{
......