Results 1 to 3 of 3

Thread: QFileDilaog:: cancel button

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: QFileDilaog:: cancel button

    getOpenFileName() returns an empty string when cancel is clicked or the dialog is closed, so check fileName.isEmpty()

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    kulsekarr (20th March 2015)

Similar Threads

  1. Adding a OK and Cancel button to QTableview
    By rex in forum Qt Programming
    Replies: 0
    Last Post: 24th July 2011, 17:32
  2. Replies: 4
    Last Post: 29th April 2011, 09:42
  3. Replies: 1
    Last Post: 17th February 2010, 23:17
  4. QDialog, editingFinished, and Cancel Button.
    By jeffpogo in forum Qt Programming
    Replies: 8
    Last Post: 3rd June 2009, 03:22
  5. How to show QProgressDialog without cancel button
    By rajesh in forum Qt Programming
    Replies: 1
    Last Post: 30th January 2007, 09:53

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
  •  
Qt is a trademark of The Qt Company.