Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. CurrentChanged signal from QFileDialog using ExistingFiles FileMode
Forum Updated to NodeBB v4.3 + New Features

CurrentChanged signal from QFileDialog using ExistingFiles FileMode

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 730 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    norisezp
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • N Offline
        N Offline
        norisezp
        wrote on last edited by
        #3

        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") )
        @

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved