Results 1 to 2 of 2

Thread: limited QFileDialog filters on Windows XP

  1. #1
    Join Date
    Oct 2009
    Posts
    16
    Qt products
    Qt4
    Platforms
    Windows

    Default limited QFileDialog filters on Windows XP

    Hi,

    I use QFileDialog::getOpenFileName with different filters, and one default filters with all supported extensions ("All Supported Formats (*.ext1 *.ext2 *.ext3...)".
    So this default filter can get pretty larger if many formats are supported.

    It works on Windows 7, but when used on Windows XP the default filter gets truncated after 255 chars or so. So only the first extensions in this filter are used, a lot of files cannot be displayed because of that.

    Any idea/workaround ? (other than using a single dirty *.* filter).

    Thanks

  2. #2
    Join Date
    Dec 2009
    Posts
    128
    Thanks
    7
    Thanked 14 Times in 14 Posts
    Platforms
    Unix/X11 Windows

    Default Re: limited QFileDialog filters on Windows XP

    you could split the "all supported formats" line in two or more lines, like :

    "All Supported Formats of type 1 (*.ext1 *.ext2 *.ext3...)"
    "All Supported Formats of type 2 (*.ext10 *.ext11 *.ext12...)"

    this could work fine if you find common points for different sets of formats :

    "Images (*.png *.jpg *.bmp...)"
    "Documents (*.txt *.dat *.doc...)"

    instead of

    "All Supported Formats (*.png *.jpg *.bmp *.txt *.dat *.doc...)"

    It depends on what these formats are of course

Similar Threads

  1. Replies: 3
    Last Post: 26th August 2010, 11:51
  2. Does QSqlTableModel have limited capacity?
    By metdos in forum Qt Programming
    Replies: 2
    Last Post: 1st January 2010, 22:06
  3. QFileDialog not closing windows.
    By prodj in forum Qt Programming
    Replies: 1
    Last Post: 3rd September 2009, 03:44
  4. Replies: 2
    Last Post: 22nd July 2009, 20:16
  5. filter signal to limited slots
    By sriky27 in forum Qt Programming
    Replies: 17
    Last Post: 26th March 2009, 16:59

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.