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

GUI freeze after cancel QFileDialog

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 5.2.0 Beta1 , 5.3.1
    • None
    • Linux, ubuntu, gnome or unity

    Description

      1. show a QFileDialog, select some texts and copy them, cancel the dialog
      2. press right button of mouse on QLineEdit
      3. GUI will freeze.

      tip: can reproduce on all qt version

      snippet:

      #!/usr/bin/python
      
      from PyQt4.QtGui import *
      from PyQt4.QtCore import *
      import sys
      
      class MyMainWindow(QWidget) :
          request = pyqtSignal()
          def __init__(self, parent = None):
              super(QWidget, self).__init__(parent)
              self.button = QPushButton('Save File')
              layout = QVBoxLayout()
              lineedit = QLineEdit()
              layout.addWidget(self.button)
              layout.addWidget(lineedit)
              self.setLayout(layout)
              self.button.clicked.connect(self.buttonClicked)
      
          def buttonClicked(self):
              strn = QFileDialog.getSaveFileName(self, "Caption")
      
      if __name__ == '__main__':
          app = QApplication(sys.argv)
          w = MyMainWindow()
          w.show()
          sys.exit(app.exec_())
      

      Attachments

        1. 34475.ogv
          605 kB
        2. main.cpp
          0.7 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-34475
          # Subject Branch Project Status CR V

          Activity

            People

              paeglis Gatis Paeglis
              ikenchina peng
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes