Results 1 to 12 of 12

Thread: Problem in the QFileDialog

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Posts
    157
    Qt products
    Qt3 Qt4
    Thanks
    12
    Thanked 1 Time in 1 Post

    Default Re: Problem in the QFileDialog

    I confirmed that , " QFileDialog's " parent is " QMyWizard " in run time.
    I have debugged the code it shows ....



    Qt Code:
    1. void MyMainWindow :: saveInputDataToFile( const QString& inputName,
    2. const Q_ULLONG& inputSize ,
    3. QWidget* parent )
    4.  
    5. {
    6.  
    7. -------
    8. const char * Name = parent->className();
    9. // in run time the Name is MyWizard.
    10.  
    11. QString destFilePath = QFileDialog::getSaveFileName( ..., .., ..., ..., parent );
    12.  
    13.  
    14.  
    15. -------
    16.  
    17. }
    To copy to clipboard, switch view to plain text mode 


    I think i have to do some thing else ...


    Thank you so much for sparing your time for me
    Last edited by jacek; 6th December 2006 at 20:48. Reason: changed [html] to [code]

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Problem in the QFileDialog

    Quote Originally Posted by joseph View Post
    I think i have to do some thing else ...
    Is the wizard a QDialog subclass (note that QWizard is QDialog subclass as well)?

    Try the code I attached in the previous post, it should work for you. If it doesn't you'll know you have a buggy Qt installation. If it does, maybe it'll help you correct your code.

Similar Threads

  1. hierarchical model in a flat view
    By gniking in forum Qt Programming
    Replies: 4
    Last Post: 10th November 2009, 21:17
  2. Qfiledialog Problem - (Beginner)
    By kingslee in forum Qt Tools
    Replies: 3
    Last Post: 12th October 2006, 00:00
  3. QPixmap designer property not showing up
    By high_flyer in forum Qt Programming
    Replies: 1
    Last Post: 15th March 2006, 20:56
  4. Replies: 16
    Last Post: 7th March 2006, 16:57

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.