for(int i=0; i<8;i++)
{
QLabel *recordingModelab
[i
] = new QLabel(tr
("Recording Mode"),page
[i
]);
recordingModelab[i]->setGeometry(0,60,120,20);
recordingModecombo
[i
] = new QComboBox(page
[i
]);
recordingModecombo[i]->setGeometry(200,60,100,20);
recordingModecombo[i]->setFocusPolicy(Qt::NoFocus);
recordingModecombo[i]->addItem(tr("Normal"));
recordingModecombo[i]->addItem(tr("Bad"));
recordingModecombo[i]->addItem(tr("Good"));
QLabel *resolutionModelab
[i
] = new QLabel(tr
("Resolution"),page
[i
]);
resolutionModelab[i]->setGeometry(0,100,80,20);
resolutionModecombo
[i
] = new QComboBox(page
[i
]);
resolutionModecombo[i]->setGeometry(200,100,100,20);
resolutionModecombo[i]->setFocusPolicy(Qt::NoFocus);
resolutionModecombo[i]->addItem(tr("CIF"));
resolutionModecombo[i]->addItem(tr("D1"));
resolutionModecombo[i]->addItem(tr("QCIF"));
qualitylab[i]->setGeometry(0,140,80,20);
qualitycombo[i]->setGeometry(200,140,100,20);
qualitycombo[i]->setFocusPolicy(Qt::NoFocus);
qualitycombo[i]->addItem(tr("50 kbps"));
qualitycombo[i]->addItem(tr("120 kbps"));
qualitycombo[i]->addItem(tr("150 kbps"));
qualitycombo[i]->addItem(tr("200 kbps"));
QLabel *frameratelab
[i
] = new QLabel(tr
("Frame Rate"),page
[i
]);
frameratelab[i]->setGeometry(0,180,80,20);
frameratecombo[i]->setGeometry(200,180,100,20);
frameratecombo[i]->setFocusPolicy(Qt::NoFocus);
frameratecombo[i]->addItem(tr("15 fps"));
frameratecombo[i]->addItem(tr("25 fps"));
frameratecombo[i]->addItem(tr("30 fps"));
tabWidget->addTab(page[i],tr("Profile").append(name));
}
for(int i=0; i<8;i++)
{
page[i] = new QWidget();
QLabel *recordingModelab[i] = new QLabel(tr("Recording Mode"),page[i]);
recordingModelab[i]->setGeometry(0,60,120,20);
recordingModecombo[i] = new QComboBox(page[i]);
recordingModecombo[i]->setGeometry(200,60,100,20);
recordingModecombo[i]->setFocusPolicy(Qt::NoFocus);
recordingModecombo[i]->addItem(tr("Normal"));
recordingModecombo[i]->addItem(tr("Bad"));
recordingModecombo[i]->addItem(tr("Good"));
QLabel *resolutionModelab[i] = new QLabel(tr("Resolution"),page[i]);
resolutionModelab[i]->setGeometry(0,100,80,20);
resolutionModecombo[i] = new QComboBox(page[i]);
resolutionModecombo[i]->setGeometry(200,100,100,20);
resolutionModecombo[i]->setFocusPolicy(Qt::NoFocus);
resolutionModecombo[i]->addItem(tr("CIF"));
resolutionModecombo[i]->addItem(tr("D1"));
resolutionModecombo[i]->addItem(tr("QCIF"));
QLabel *qualitylab[i] = new QLabel(tr("Bit Rate"),page[i]);
qualitylab[i]->setGeometry(0,140,80,20);
qualitycombo[i] = new QComboBox(page[i]);
qualitycombo[i]->setGeometry(200,140,100,20);
qualitycombo[i]->setFocusPolicy(Qt::NoFocus);
qualitycombo[i]->addItem(tr("50 kbps"));
qualitycombo[i]->addItem(tr("120 kbps"));
qualitycombo[i]->addItem(tr("150 kbps"));
qualitycombo[i]->addItem(tr("200 kbps"));
QLabel *frameratelab[i] = new QLabel(tr("Frame Rate"),page[i]);
frameratelab[i]->setGeometry(0,180,80,20);
frameratecombo[i] = new QComboBox(page[i]);
frameratecombo[i]->setGeometry(200,180,100,20);
frameratecombo[i]->setFocusPolicy(Qt::NoFocus);
frameratecombo[i]->addItem(tr("15 fps"));
frameratecombo[i]->addItem(tr("25 fps"));
frameratecombo[i]->addItem(tr("30 fps"));
QString name(QString::number(1+i));
tabWidget->addTab(page[i],tr("Profile").append(name));
}
To copy to clipboard, switch view to plain text mode
Bookmarks