no adapter checked...
-
Please help me troubleshoot this issue
ui->localAdapterBox->setVisible(true);
ui->firstAdapter->setText(tr("Default (%1)", "%1 = Bluetooth address").
arg(localAdapters.at(0).address().toString()));
ui->secondAdapter->setText(localAdapters.at(1).address().toString());
ui->firstAdapter->setChecked(true);The first adapter should be checked by code and second adapter should show up.
Should the "Default" also show up ?PS I am, not sure what the red rectctangle in form is telling me.
Addendum
Looks as the highlighted code is wrong
It was setting the second adapter on;y....ui->localAdapterBox->setVisible(true);
ui->firstAdapter->setText(tr("Default (%1)", "%1 = Bluetooth address").
arg(localAdapters.at(1).address().toString()));
ui->firstAdapter->setText(localAdapters.at(0).address().toString());
ui->secondAdapter->setText(localAdapters.at(1).address().toString());
ui->firstAdapter->setChecked(true);
ui->secondAdapter->setChecked(true);SOLVED
Something to do with not having the "layout rectangle" in correct place.