label = new QLabel(this); label->setMinimumSize(150,30); label->setMaximumSize(240,200); label->setFont(QFont("san",10,QFont::Black)); label->setText("press the top button to\n" "read/write the text to the eeprom"); label->setAlignment(AlignLeft);
flag = 0; //0:表示当前是读操作
b_on1 = new QPushButton("read",this); b_on1->setMinimumSize(30,20); b_on1->setFont(QFont("Times",15,QFont::Bold));
bExit = new QPushButton("exit",this); bExit->setMinimumSize(30,20); bExit->setFont(QFont("Times",15,QFont::Bold));
editTop = new QMultiLineEdit(this); editTop->setMinimumSize(200,60); editTop->setText(QString("long long ago ...\n" "a king die\n" "and another king die\n" "and the rest king die\n"));
editBtm = new QMultiLineEdit(this); editBtm->setMinimumSize(200,60); editBtm->setText(QString(""));
bar = new QProgressBar(1024,this); bar->setMinimumSize(100,20);