Hi All,
I prepared a small design and sent it to some customer. In design I used a load button which internally calls a static function "getOpenFileName()" of QFileDialog. In my system it is running fine, When I clicked on load button it create a browser window and shows all files in side the dir.
But, the customer complains that when they clicked on button instead of showing browser window it throws some error
"ASSERT: "idx.isValid()" in file itemviews/qdirmodel.cpp, line 1044"
I tried all possible way to get this type of error, but I failed. Can some body please help me what is cause behind it.
Thanks
Jnana
The code I used as follows.
void
BasicInformation :: LoadProjectFile()
{
"Project information Files",
".", "Text Files(*.txt)");
if(fileName.isEmpty())
return;
ReadInformationFile(fileName);
}
void
BasicInformation :: LoadProjectFile()
{
QString fileName = QFileDialog::getOpenFileName(this,
"Project information Files",
".", "Text Files(*.txt)");
if(fileName.isEmpty())
return;
ReadInformationFile(fileName);
}
To copy to clipboard, switch view to plain text mode
Bookmarks