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. VS 2015 QT5.6.0 QFileDialog::GetSaveFileName API issue
Forum Updated to NodeBB v4.3 + New Features

VS 2015 QT5.6.0 QFileDialog::GetSaveFileName API issue

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 137 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.
  • S Offline
    S Offline
    suchi
    wrote on last edited by suchi
    #1

    We have files names like attached image.
    We would like to list out them when we save it. So we use the filter * . slb*. But the default name in QT5.6.0 is shown as Database1.slb*. But in QT4.7.3, it is Database1(with out extension)

    getSaveFileName(QWidget *parent = Q_NULLPTR,
    const QString &caption = QString(),
    const QString &dir = QString(),
    const QString &filter = QString(),
    QString *selectedFilter = Q_NULLPTR,
    Options options = Options());

    caption - "Database(*.slb *)"

    filename = QFileDialog::getSaveFileName("Save As", strHomeDir, "Database( * .slb * )", &selectedfilter) ;
    But with QT5.6.0, * it is considering as some special symbol and not saving as the default name is Database1.slb*
    Do you have a fix for it?![fileextensions.png](https://ddgobkiprc33d.cloudfront.net/e8639667-4e09-4e23-a7f0-8174b3aed069.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