Results 1 to 12 of 12

Thread: Problem in the QFileDialog

Threaded 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

    Unhappy Problem in the QFileDialog

    Hai guys,


    Version : Qt 3.3.4
    Problem : Problem in the MODEL property of a QFileDialog



    I have the following windows or objects in screen:-

    1. MyMainWindow
    2. MyWizard ( textBox, BrowseButton , CancelButton.. )
    3. QFileDialog

    The parent-child realation is setted in the same order as above.

    While Applicaitons loads the following will be the senario.....
    1. MyMainWindow comes
    2. while clicking one menu , MyWizad comes with a BROWSE-BUTTON
    3. While clicking on BROWSE-BUTTON , the below method <code> saveInputDataToFile ( const QString& inputName, const Q_ULLONG& inputSize, QWidget* parent ) </code> will be invoked to popup a QFileDilog
    Qt Code:
    1. void MyMainWindow :: saveInputDataToFile( const QString& inputName, const Q_ULLONG& inputSize , QWidget* parent )
    2. {
    3. -------
    4. // parent = MyWizard object
    5. QFileDialog * obj = new QFileDialog ( parent , "", true) ;
    6.  
    7. QString destFilePath = obj->getSaveFileName( QString::null, QString::Null, parent );
    8. -------
    9. }
    To copy to clipboard, switch view to plain text mode 


    My problem is that .....

    1 .While showing the " QFileDialog ", if am clicking on the MyMainWindow ,
    2. then the MyWizard's ( shows in between MyMainWindow and QFileDialog ) window highlighted , cursor will be in the wizard ( in a textBox near to BrowseButton )
    3. and we can access BUTTONS using tab Key. Even we can CLOSE that Wizard using KEYBOARD, At the same time we can see the QFileDialog in the screen with out MyWizard


    I want to restrict this KEYBORD access in MyWizard...please help me


    Thank You.
    Last edited by jacek; 6th December 2006 at 20:47. Reason: changed [html] to [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.