Results 1 to 3 of 3

Thread: [Qt4] need help with QFileDialog

  1. #1
    Join Date
    Jan 2006
    Posts
    46
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default [Qt4] need help with QFileDialog

    I wrote this funtion:
    Qt Code:
    1. void GenerateInvoiceDialog::on_saveandPrintpushButton_cliked(){
    2. QString s = QFileDialog::getSaveFileName(
    3. this,
    4. "Choose a filename to save under",
    5. "/home",
    6. "Images (*.html)");
    7. }
    To copy to clipboard, switch view to plain text mode 

    unfortunately nothing happens when I click on my saveandPrintpushButton. Isn't that supposed to start a file dialog? Thanx in advance

    Patcito

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: [Qt4] need help with QFileDialog

    try "clicked" instead of "cliked"
    It's nice to be important but it's more important to be nice.

  3. #3
    Join Date
    Jan 2006
    Posts
    46
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: [Qt4] need help with QFileDialog

    lol thanx, i must be tired.

Similar Threads

  1. Check for invalid file name in QFileDialog
    By darren in forum Qt Programming
    Replies: 2
    Last Post: 7th November 2008, 14:43
  2. QFileDialog and file sequences
    By peterhillman in forum Qt Programming
    Replies: 5
    Last Post: 24th November 2007, 10:16
  3. QFileDialog in Qt designer
    By tpf80 in forum Qt Tools
    Replies: 1
    Last Post: 17th May 2007, 00:41
  4. QFileDialog Mac / PC
    By hey in forum Qt Programming
    Replies: 3
    Last Post: 26th April 2007, 18:23
  5. copy file/s from QFileDialog
    By raphaelf in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 14:26

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.