Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

QLCDnumber not Displaying as required !!

$
0
0
The diplay is only “.yyyy” or “dd.mm” ….all the six digits are not displayed . PLEASE review the given code ………… #include<lcdtd.h> #include<QtGui>   lcdtd::lcdtd(QLCDNumber *parent):QLCDNumber(parent) {     setWindowTitle("Time And Date");     QTimer *timer = new QTimer(this);     connect(timer,SIGNAL(timeout()),this,SLOT(showtime()));     timer->start(1000);       resize(200,200);   }   void lcdtd::showtime() {     QDate time = QDate::currentDate();     QString text= time.toString("dd.MM.yyyy");     this->display(text); }

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>