Results 1 to 3 of 3

Thread: Can some please help?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Posts
    32
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Can some please help?

    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.
    Qt Code:
    1. void
    2. BasicInformation :: LoadProjectFile()
    3. {
    4. QString fileName = QFileDialog::getOpenFileName(this,
    5. "Project information Files",
    6. ".", "Text Files(*.txt)");
    7.  
    8. if(fileName.isEmpty())
    9. return;
    10. ReadInformationFile(fileName);
    11. }
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Can some please help?

    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).

  3. #3
    Join Date
    Feb 2006
    Posts
    32
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Can some please help?

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.