全文预览

Qt Creater开发万年历(C++)

上传者:似水流年 |  格式:doc  |  页数:25 |  大小:158KB

文档介绍
a[i];Р }Р for(int var = 0; var < m_listWeekItem.count(); ++var) {Р itemButton *lundarweek = m_listWeekItem.at(var);Р lundarweek->deleteLater();Р lundarweek = NULL;Р m_listWeekItem.removeAt(var);Р --var;Р }Р for (int var = 0; var < m_listWeekItem.count(); ++var) {Р itemButton *week = m_listWeekItem.at(var);Р week->deleteLater();Р week = NULL;Р m_listWeekItem.removeAt(var);Р --var;Р }Р int newday=1;Р for(int m=0;m<6;m++)Р { Р for(int n=0;n<7;n++)Р {Р if(m==0&&n<signy)Р {Р QString newdate=QString::number(newday,10);Р itemButton *week= new itemButton(this);Р week->setTextColor(Qt::white);Р week->resize(83, 40);Р week->setRect(QRect(0,0 , 83, 40));Р week->setAlignment(Qt::AlignCenter);Р week->setTextFont(QFont("宋体", 15));Р week->setText(tr(" "));Р week->update();Р week->move(210+83*n,180+40*m);

收藏

分享

举报
下载此文档