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. How to impliment standard save functionality
QtWS25 Last Chance

How to impliment standard save functionality

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 670 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    I have QDialog box with Ok button . WHen I press ok I want following dialog box to save the file . how to get the same

    https://postimg.org/image/stpzy1ybt/361afd24/

    J.HilkJ 1 Reply Last reply
    0
    • Q Qt Enthusiast

      I have QDialog box with Ok button . WHen I press ok I want following dialog box to save the file . how to get the same

      https://postimg.org/image/stpzy1ybt/361afd24/

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @Qt-Enthusiast QString QFileDialog::getSaveFileName creates a dialog that on completion returns a QString(path+Name) of the potential new file.

      You'll have to do the QFile::open/QFile::write stuff yourself of course.


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      3
      • Q Offline
        Q Offline
        Qt Enthusiast
        wrote on last edited by
        #3

        QFileDialog::getSaveFileName( seems to be a solution to me

        1 Reply Last reply
        1

        • Login

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