PDA

View Full Version : Can some please help?



jnana
16th May 2006, 16:02
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()
{
QString fileName = QFileDialog::getOpenFileName(this,
"Project information Files",
".", "Text Files(*.txt)");

if(fileName.isEmpty())
return;
ReadInformationFile(fileName);
}

wysota
16th May 2006, 16:05
Asserts only happen if you compile your app in debug mode. Either send a non-debug version of the app to your client of compile app in debug mode for yourself and try to replicate the assert (it might be a bug in Qt though, so check the task tracker too).

jnana
17th May 2006, 15:22
I was able to find out the problem. The problem is with auto mount. If file system is mounted by amd the qt is not able to find all the items in a dir. There fore it is throwing error.

Thanks
Jnana