hii,
this is my code....
fileTypes << "_*.dll" ;
QDir dir
("E:/qtpro/ext");
dir.setNameFilters(fileTypes);
QFileInfoList list = dir.entryInfoList();
//ui->textEdit->append("Bytes Filename");
for (int i = 0; i < list.size(); ++i)
{
//QString s= fileInfo.size();
//s.append(s1);
ui->textEdit->append(s1);*/
QStringList fileTypes;
fileTypes << "_*.dll" ;
QDir dir("E:/qtpro/ext");
dir.setNameFilters(fileTypes);
QFileInfoList list = dir.entryInfoList();
//ui->textEdit->append("Bytes Filename");
for (int i = 0; i < list.size(); ++i)
{
QFileInfo fileInfo = list.at(i);
//QString s= fileInfo.size();
QString s1 = fileInfo.fileName();
//s.append(s1);
ui->textEdit->append(s1);*/
To copy to clipboard, switch view to plain text mode
this displays the dll files in the directory in the textedit..
now i want to display all these dlls as checkboxes in the listview...
can any1 help me how to do this...
i had also wrote this code for adding checkboxes in listview...bt got error...
Q3ListView view(0);
view.setResizeMode( Q3ListView::LastColumn );
view.addColumn( "Filename" );
view.show();
for( QStringList::Iterator it
= files.
begin(); it
!= files.
end();
++it
) {
(void)new Q3CheckListItem ( &view, *it, Q3CheckListItem::CheckBox );
}
Q3ListView view(0);
view.setResizeMode( Q3ListView::LastColumn );
view.addColumn( "Filename" );
view.show();
QStringList files = dir.entryList();
for( QStringList::Iterator it = files.begin(); it != files.end(); ++it)
{
(void)new Q3CheckListItem ( &view, *it, Q3CheckListItem::CheckBox );
}
To copy to clipboard, switch view to plain text mode
i got this error...:
:: error: collect2: ld returned 1 exit status
plz help..
Bookmarks