Hi. I've got a problem. I've got a piece of code:
if (ui.beaufortBox->isChecked() && ui.knotBox_2->isChecked())
{
QString current
= ui.
fromLineEdit->text
();
int converted = current.toInt();
if (converted == 0)
{
ui.whiteLabel->setText("0-1");
}
}
if (ui.beaufortBox->isChecked() && ui.knotBox_2->isChecked())
{
QString current = ui.fromLineEdit->text();
int converted = current.toInt();
if (converted == 0)
{
ui.whiteLabel->setText("0-1");
}
}
To copy to clipboard, switch view to plain text mode
program's contents you already know from my previous posts, but this is a new thing in it. The problem is, that when I select beaufortBox and knotBox_2 and click next step, type 0 to fromLineEdit, and click convert(which is connected to function where this code is) whiteLabel's text isn't set to 0-1. Why? Regards
edit:
but the problem isn't about value, i added
else
{
ui.whiteLabel->setText("other");
}
else
{
ui.whiteLabel->setText("other");
}
To copy to clipboard, switch view to plain text mode
and still without result.
Bookmarks