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

After hiding one of the columns in the detail view in QFileDialog then subsequent filedialogs will incorrectly show the hidden column as being visible in the header context menu

    XMLWordPrintable

Details

    • 2e220e4603d6a0c21efee3a884be76e9f2d7ebb7 (4.8), 9aa51821e446152517aa3022bcf7ebbcc7d3d888 (5.0)

    Description

      After hiding one of the columns in the detail view in QFileDialog then subsequent filedialogs will incorrectly show the hidden column as being visible in the header context menu.

      With the following code:

      #include <QtGui>
      
      int main( int argc, char *argv[] ) 
      { 
          QApplication app(argc, argv); 
          QString selFil; 
          QFileDialog::getOpenFileName(0, "Select file", QString(""), QString(""), 
                                       &selFil, QFileDialog::DontUseNativeDialog); 
          QFileDialog::getOpenFileName(0, "Select file", QString(""), QString(""), 
                                       &selFil, QFileDialog::DontUseNativeDialog); 
          return app.exec(); 
      } 
      

      then start the application, right click on the header and note that all three entries are correctly ticked, click on one of them and the section is hidden. Then click cancel/ok and then right click on the header on the new instance and see that it shows as being ticked again even though the section is hidden.

      Attachments

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

        Activity

          People

            andysh Andy Shaw
            andysh Andy Shaw
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes