Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-3183

QIODevice.cpp: When loading content to a Widget from a QFile and calling a QFileDialog from the application the dialog goes loop

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • Some future release
    • 4.4.3
    • Core: I/O
    • None

    Description

      When loading content to a Widget from a QFile and calling a QFileDialog from the application the dialog goes into a loop when navigating through subfolders.

      The following warning appears:
      warning: QFile::seek: IODevice is not open

      This is caused by calling the following:

       QFile list("foo\\bar");
       if(!list.open(QIODevice::ReadOnly)) {
        ...
        return;
       }
      

      Workaround:

       QFile list("foo\\bar");
       if(!list.open(stderr,QIODevice::ReadOnly)) {
        ...
        return;
       }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            stormols Marius Storm-Olsen
            engvolds Morten Engvoldsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes