xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 874KB
    文件類(lèi)型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-08
  • 語(yǔ)言: 其他
  • 標(biāo)簽: Qt??時(shí)鐘??

資源簡(jiǎn)介

Qt實(shí)現(xiàn)動(dòng)態(tài)時(shí)鐘 翻轉(zhuǎn) 滑動(dòng) 翻頁(yè)

資源截圖

代碼片段和文件信息

#include?
#include?

class?Digits:?public?QWidget
{
????Q_object

public:

????/*Define?three?transition?modes?of?the?digital?clock*/
????enum?{
????????Slide
????????Flip
????????Rotate
????};

????Digits(QWidget?*parent)
????????:?QWidget(parent)
?????????m_number(0)
?????????m_transition(Slide)
????{
????????setAttribute(Qt::WA_OpaquePaintEvent?true);
????????//Widget?paints?all?its?pixels?when?it?receives?a?paint?event

????????setAttribute(Qt::WA_NoSystemBackground?true);
????????//Indicates?that?the?widget?has?no?background?i.e.?when?the?widget?receives?paint?events?the?background?is?not?automatically?repainted.

????????connect(&m_animator?SIGNAL(frameChanged(int))?SLOT(update()));
????????//start?animation

????????m_animator.setframeRange(0?100);
????????m_animator.setDuration(600);
????????//Construct?a?0.6-second?timeline?with?a?frame?range?of?0?-?100

????????m_animator.setCurveShape(QTimeLine::EaseInOutCurve);
????????//starts?growing?slowly?then?runs?steadily?then?grows?slowly?again
????}

????/*Set?transition?when?time?changed*/
????void?setTransition(int?tr)?{
????????m_transition?=?tr;
????}

????/*Get?transition?mode*/
????int?transition()?const?{
????????return?m_transition;
????}

????/*Set?hours?and?minutes*/
????void?setNumber(int?n)?{
????????if?(m_number?!=?n)?{
????????????m_number?=?qBound(0?n?99);
????????????preparePixmap();
????????????update();
????????}
????}

????/*Flip?to?next?state*/
????void?flipTo(int?n)?{
????????if?(m_number?!=?n)?{
????????????m_number?=?qBound(0?n?99);
????????????m_lastPixmap?=?m_pixmap;
????????????preparePixmap();
????????????m_animator.stop();
????????????m_animator.start();
????????}
????}

protected:

????/*Draw?the?main?frame?of?the?digits?area*/
????void?drawframe(QPainter?*p?const?QRect?&rect)?{
????????p->setPen(Qt::NoPen);
????????QLinearGradient?gradient(rect.topLeft()?rect.bottomLeft());
????????//Set?linear?gradient?area

????????gradient.setColorAt(0.00?QColor(245?245?245));
????????gradient.setColorAt(0.49?QColor(192?192?192));
????????gradient.setColorAt(0.51?QColor(245?245?245));
????????gradient.setColorAt(1.00?QColor(192?192?192));
????????//Creates?stop?points?at?the?given?position?with?the?given?color

????????p->setBrush(gradient);
????????QRect?r?=?rect;
????????p->drawRoundedRect(r?15?15?Qt::RelativeSize);
????????/*
????????????Draws?outer?rectangle?rect?with?rounded?corners.
????????????Qt::RelativeSize?specifies?the?size?relative?to?the?bounding?rectangle
????????????typically?using?percentage?measurements.
????????*/

????????r.adjust(1?4?-1?-4);
????????//Adds?1?4?-1?and?-4?respectively?to?the?existing?coordinates?of?the?rectangle

????????p->setPen(QColor(181?181?181));
????????p->setBrush(Qt::NoBrush);
????????p->drawRoundedRect(r?15?15?Qt::RelativeSize);
????????//Draws?inner?rectangle?rect?with?rounded?corners.

????????p->setPen(QColor(159?159?159));
????????int?y?=?rect.top()?+?rect.height()?/?

?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----

?????文件??????13984??2015-06-10?09:57??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\1.cpp

?????文件?????443421??2015-11-13?10:56??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\debug\digits.o

?????文件?????250024??2015-11-13?10:56??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\debug\main.o

?????文件?????343025??2015-11-13?10:56??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\debug\mainwindow.o

?????文件???????2329??2015-11-13?10:56??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\debug\moc_Digits.cpp

?????文件?????404843??2015-11-13?10:56??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\debug\moc_Digits.o

?????文件???????3023??2015-11-13?10:56??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\debug\moc_mainwindow.cpp

?????文件?????266347??2015-11-13?10:56??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\debug\moc_mainwindow.o

?????文件????1697428??2015-11-13?10:56??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\debug\timer.exe

?????文件???????8416??2015-06-10?11:30??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\digits.cpp

?????文件???????1567??2015-06-10?11:26??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\Digits.h

?????文件????????306??2015-06-10?10:09??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\main.cpp

?????文件???????3090??2015-06-10?11:41??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\mainwindow.cpp

?????文件????????690??2015-06-10?11:32??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\mainwindow.h

?????文件???????5883??2015-11-13?10:56??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\Makefile

?????文件???????5992??2015-11-13?10:56??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\Makefile.Debug

?????文件???????6095??2015-11-13?10:56??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\Makefile.Release

?????文件????????373??2015-06-10?10:32??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\timer.pro

?????文件??????34008??2015-11-13?11:07??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\timer.pro.user

?????文件??????18253??2015-06-10?10:01??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\timer.pro.user.dbcd6a0.3.3-pre1

?????目錄??????????0??2015-11-13?10:56??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\debug

?????目錄??????????0??2015-11-13?10:56??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)\release

?????目錄??????????0??2015-11-13?11:07??qt?時(shí)鐘特效動(dòng)畫(huà)?翻頁(yè)?滑動(dòng)?翻轉(zhuǎn)

-----------?---------??----------?-----??----

??????????????3509097????????????????????23


評(píng)論

共有 條評(píng)論