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

QFileDialog::getOpenFileName don't pop up correctly when QTimer is started with timeout = 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.7.4, 4.8.0, 4.8.1
    • None
    • Ubuntu 10.04 LTS 64bits (kernel 2.6.32-41)

      If there is an idle timer (QTimer::start(0)) running in the main loop of a Qt program, trying to pop up a file open dialog (QFileDialog::getOpenFileName()) produces an empty dialog (no buttons). If the timeout of the timer is not 0, the problem doesn't occur ( even with timeout = 1 ). There is a similar problem with QFileDialog::getSaveFileName(), but not with other generic dialogs such as QColorDialog. See the attached example to reproduce the bug.

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

            Unassigned Unassigned
            drouin.simon Simon Drouin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes