hi all, I use the following code in QDialog
Qt Code:
void Dialog::loadForm()
{
ui->volumeSlider->setValue(findItem("AUDIO_LEVEL").toInt());
ui->txtKeyBoad->setText(findItem("KEYBOARD_MAP"));
ui->txtTimeZone->setText(findItem("TIME_ZONE"));
}
void Dialog::loadForm()
{
ui->volumeSlider->setValue(findItem("AUDIO_LEVEL").toInt());
ui->txtKeyBoad->setText(findItem("KEYBOARD_MAP"));
ui->txtTimeZone->setText(findItem("TIME_ZONE"));
}
To copy to clipboard, switch view to plain text mode
To Access the Dialog consisting Volume Slider and Text Boxes, it Run Correctly.
Now I switch to MainWindow Form using this code
Qt Code:
ui->general_tab->horizontalSlider->setValue(findItem("AUDIO_LEVEL").toInt());
ui->general_tab->horizontalSlider->setValue(findItem("AUDIO_LEVEL").toInt());
To copy to clipboard, switch view to plain text mode
it can't access the subTab
where my maintab ObjectName is"general_tab_2" and SubTab ObjName is"general_tab"
Please anyone who tell me that "whats the changes required in this code".
thanks
Bookmarks