I need an example, as moves to a qlineedit after i presses a checkbox:
something like that
void protocolonutri::on_cboOthersGarg_toggled(bool checked)
{
ui->txtGarg->setEnabled(checked);
if (!checked)
ui->txtGarg->setText("");
else
ui->txtGarg->setFocus();
}
ui->txtGarg - QLineEdit
void protocolonutri::on_cboOthersGarg_toggled(bool checked)
{
ui->txtGarg->setEnabled(checked);
if (!checked)
ui->txtGarg->setText("");
else
ui->txtGarg->setFocus();
}
To copy to clipboard, switch view to plain text mode
SetFocus Doesnt Work Well, how i can do?
Sorry for my english
Bookmarks