Hi, something like this:
{
....
QObject::connect(dec2bin,
SIGNAL(clicked
()),
this,
SLOT(slotSetLabelText
()));
}
void NumericalSystemsConverter::slotSetLabelText()
{
result->setText("Hello World"); // this assumes result is a member of NumericalSystemsConverter
}
{
....
QObject::connect(dec2bin,SIGNAL(clicked()),this,SLOT(slotSetLabelText()));
}
void NumericalSystemsConverter::slotSetLabelText()
{
result->setText("Hello World"); // this assumes result is a member of NumericalSystemsConverter
}
To copy to clipboard, switch view to plain text mode
Ginsengelf
Bookmarks