label = new QLabel(this); label->setMinimumSize(150,30); label->setMaximumSize(240,30); label->setText("press these buttons to\n" "control the leds on or off"); label->setAlignment(AlignCenter);
b_on1 = new QPushButton("on 1",this); b_on1->setMinimumSize(50,20); b_on1->setFont(QFont("Times",15,QFont::Bold));
b_off1 = new QPushButton("off 1",this); b_off1->setMinimumSize(50,20); b_off1->setFont(QFont("Times",15,QFont::Bold));
b_on2 = new QPushButton("on 2",this); b_on2->setMinimumSize(50,20); b_on2->setFont(QFont("Times",15,QFont::Bold));
b_off2 = new QPushButton("off 2",this); b_off2->setMinimumSize(50,20); b_off2->setFont(QFont("Times",15,QFont::Bold));
b_on3 = new QPushButton("on 3",this); b_on3->setMinimumSize(50,20); b_on3->setFont(QFont("Times",15,QFont::Bold));
b_off3 = new QPushButton("off 3",this); b_off3->setMinimumSize(50,20); b_off3->setFont(QFont("Times",15,QFont::Bold));
b_on4 = new QPushButton("on 4",this); b_on4->setMinimumSize(50,20); b_on4->setFont(QFont("Times",15,QFont::Bold));
b_off4 = new QPushButton("off 4",this); b_off4->setMinimumSize(50,20); b_off4->setFont(QFont("Times",15,QFont::Bold));
b_onAll = new QPushButton("on All",this); b_onAll->setMinimumSize(50,20); b_onAll->setFont(QFont("Times",15,QFont::Bold));
b_offAll = new QPushButton("off All",this); b_offAll->setMinimumSize(50,20); b_offAll->setFont(QFont("Times",15,QFont::Bold));
QVBoxLayout *vbox = new QVBoxLayout(this); QHBoxLayout *hbox1 = new QHBoxLayout(); QHBoxLayout *hbox2 = new QHBoxLayout(); QHBoxLayout *hbox3 = new QHBoxLayout(); QHBoxLayout *hbox4 = new QHBoxLayout(); QHBoxLayout *hbox5 = new QHBoxLayout(); QHBoxLayout *hbox6 = new QHBoxLayout();