Skip to content

Commit

Permalink
Merge pull request #4 from misland/patch-1
Browse files Browse the repository at this point in the history
修复显示不完整问题(win10)
  • Loading branch information
yiminyangguang520 authored Feb 1, 2020
2 parents a47568c + d863ad8 commit 444b974
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ClockDemo/digiclock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ DigiClock::DigiClock(QWidget *parent)
setWindowFlags(Qt::FramelessWindowHint);

setWindowOpacity(0.5);

setDigitCount(10);

QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(showTime()));
timer->start(1000);
showTime();
resize(150,60);
showColon = true; //³õʼ»¯
showColon = true; //³õʼ»¯
}

void DigiClock::showTime()
Expand Down

0 comments on commit 444b974

Please sign in to comment.