CurrentChanged signal from QFileDialog using ExistingFiles FileMode



  • I have noticed that the currentChanged signal is not sent when the user clears the text edit box containing the file selections, but that the folder view does clear all the selection highlighting. In addition, the Open button stays enabled with a blank selection list, but does nothing when pressed. Is this the desired behavior, or should I report a bug?


  • Lifetime Qt Champion

    Hi,

    I'd say it depends on how you are using your dialog. How do you call it ? What parameter are you using ?



  • Thanks for the reply, SGaist. I am instantiating my own QFileDialog, not using the static calls. The following are the settings that I make explicitly:

    @
    new QFileDialog(this)
    WindowModality(WindowModal)
    FileMode( ExistingFiles )
    ResolveSymlinks( false )
    WindowTitle(tr("Select one or more files"))
    Options( HideNameFilterDetails, false and ReadOnly, true )
    NameFilters = "All (*.bmp *.gif *.jpg *.jpeg *.png)"
    "Only JPEG ( *.jpg *.jpeg )"
    "Only BMP ( *.bmp )"
    "Only GIF ( *.gif )"
    "Only PNG ( .png )"
    SelectNameFilter( "All (
    .bmp *.gif *.jpg *.jpeg *.png)" )
    LabelText( FileName, tr("Selected files:") )
    LabelText( FileType, tr("File types:") )
    AcceptMode( AcceptOpen )
    LabelText( Accept, tr("Load") )
    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.