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. QFileDialog hides the extension ,creates problem.
Forum Update on Monday, May 27th 2025

QFileDialog hides the extension ,creates problem.

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 2.2k Views
  • 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.
  • R Offline
    R Offline
    Rahul Das
    wrote on last edited by
    #1

    Hi,

    I am using QFileDialog::getSaveFileName to save a file.
    On the Dialog window, it shows the file name with out extension.
    The file name of QFileDialog is set using QFileInfo::fileName () , and the filter by QFileInfo::completeSuffix ().

    This works well with out any trouble if i dont change file name. if i change the file name on QFileDialog window , it saves with out extension!
    Could any one please suggest me where i went wrong or a way to do this better ? All i want to do is, to save a file with any name but the extension shouldn't be changed with user interaction.


    Declaration of (Platform) independence.

    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