blocksignals

20 views
Skip to first unread message

Luigi Ferraris

unread,
Apr 11, 2015, 11:36:19 AM4/11/15
to qtcon...@googlegroups.com
Hi Pritpal,

I'm investingating on my problem and surfing on the net I found (I don't know if is the solution in my scenario) usage of :blockSignals( bool ).
Into QObject.qth file I see there is this method, but it seems can't be used with HbQt (I'm testing with QLineEdit).

C code (used on the net)  is more or less like this

void Dialog::on_LineEdit_editingFinished()
{
if(ui->LineEdit->text().toDouble()<1000)
{
ui->LineEdit->blockSignals(true);
QMessageBox::information(this,“Information”,“Incorrect value “);
ui->LineEdit->blockSignals(false);
}
}

Can be enabled with HbQt?

TIA and regards
Luigi Ferraris

Luigi Ferraris

unread,
Apr 11, 2015, 11:42:32 AM4/11/15
to qtcon...@googlegroups.com
Hi Pritpal,
sorry, my mistake in my code. It is enabled...

Problem solved.

Regards
Luigi Ferraris
Reply all
Reply to author
Forward
0 new messages