Results 1 to 7 of 7

Thread: SelectFile() is returning NULL

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2009
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: SelectFile() is returning NULL

    Which function should I used to retrieve file name of the selected file?

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: SelectFile() is returning NULL

    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: SelectFile() is returning NULL

    ...or use the static QFileDialog::getSaveFileName() and check if empty.

  4. #4
    Join Date
    Jun 2009
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: SelectFile() is returning NULL

    I tried using this getSavefileName() static method but I was not able to resize it's window size. I am developing application for mobile device hence I want to resize the dialog window as per my device resolution.

Similar Threads

  1. QSqlTableModel and NULL
    By karas in forum Qt Programming
    Replies: 0
    Last Post: 9th February 2009, 12:55
  2. Problem at time compilation in traslation of language
    By thomasjoy in forum Qt Programming
    Replies: 3
    Last Post: 22nd May 2007, 14:18
  3. checking for null
    By drkbkr in forum General Programming
    Replies: 6
    Last Post: 13th March 2006, 21:54

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.