Results 1 to 2 of 2

Thread: Open FileDialog showing Back of the Widget in Mac

  1. #1
    Join Date
    Jan 2007
    Posts
    20
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Open FileDialog showing Back of the Widget in Mac

    Hi

    I am using Mac 10.4

    I want open an Image File from FileDialog using QFileDialog . But FileDialog is showing backside of the widget in Mac OS .
    If i want select a file i should have to move the widget aside .

    Code snippet :

    QString selectFile = QFileDialog::getOpenFileName( 0x00 , tr("Open File") ,
    QDir::currentPath() , tr("Images (*.png *.jpeg *.jpg *.bmp);; bmp (*.bmp);;jpg (*.jpeg *.jpg);;png (*.png)"));


    Please can anybody help me to get FileDialog to be on top of the widget in Mac .

    Thnx in advance .

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Open FileDialog showing Back of the Widget in Mac

    Give the widget from where you start the dialog as a parent to the file dlg ( the first parameter ).
    Should be:
    Qt Code:
    1. QString selectFile = QFileDialog::getOpenFileName( this , tr("Open File") ,
    2. QDir::currentPath() , tr("Images (*.png *.jpeg *.jpg *.bmp);; bmp (*.bmp);;jpg (*.jpeg *.jpg);;png (*.png)"));
    To copy to clipboard, switch view to plain text mode 


    Regards

Similar Threads

  1. Replies: 1
    Last Post: 5th November 2006, 23:50

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.