Ketan Shah
21st May 2011, 13:51
hii,i want to perform some action when the checkbox is checked or unchecked, can ny1 tell me how can i do this...below is my code...
its not happening anything when i checked or unchecked d checkbox..
public slots:
void stateChange (bool);
signals:
void statusChange (ext*, bool);
ui->listView->setResizeMode( Q3ListView::LastColumn );
ui->listView->addColumn( "Extension" );
QStringList fileTypes;
fileTypes << "_*.dll" ;
QDir dir("E:/qtpro/ext");
dir.setNameFilters(fileTypes);
QStringList files = dir.entryList();
for (int i = 0; i < files.size(); ++i)
{
QFileInfo fileInfo = files.at(i);
new Q3CheckListItem(ui->listView,QString("%1").arg(fileInfo.fileName()), Q3CheckListItem::CheckBox );
}
}
void ext::stateChange(bool value)
{
emit statusChange(this, value);
}
plz help...
its not happening anything when i checked or unchecked d checkbox..
public slots:
void stateChange (bool);
signals:
void statusChange (ext*, bool);
ui->listView->setResizeMode( Q3ListView::LastColumn );
ui->listView->addColumn( "Extension" );
QStringList fileTypes;
fileTypes << "_*.dll" ;
QDir dir("E:/qtpro/ext");
dir.setNameFilters(fileTypes);
QStringList files = dir.entryList();
for (int i = 0; i < files.size(); ++i)
{
QFileInfo fileInfo = files.at(i);
new Q3CheckListItem(ui->listView,QString("%1").arg(fileInfo.fileName()), Q3CheckListItem::CheckBox );
}
}
void ext::stateChange(bool value)
{
emit statusChange(this, value);
}
plz help...