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. Declare QFileDialog but the filtered files will be displayed

Declare QFileDialog but the filtered files will be displayed

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 637 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.
  • Y Offline
    Y Offline
    yoll522
    wrote on last edited by
    #1

    HI everyone, I use a subclass of QFileDialog that contains the Q_OBJECT macro.

    I want to get user selected file, this is my code
    cMyFileDialog fileDialog(this);
    fileDialog.setNameFilter ( " Image Files (*.png *.jpg *.jpeg *.bmp) " );

    my question is the dialog will be displayed filter files
    thought filter files can not select one by one, but can drag the mouse to select,
    how to hide the filter files?

    Thanks for your help.

    My English was bad, sorry

    !http://img407.imageshack.us/img407/5341/709g.png(http://img407.imageshack.us/img407/5341/709g.png)!

    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