Results 1 to 3 of 3

Thread: qFileDialog showing two browse windows on Qt4.7

  1. #1
    Join Date
    Jan 2011
    Posts
    55
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    12

    Smile qFileDialog showing two browse windows on Qt4.7

    Hi, this "issue" is not showing on Qt4.5 (OSX). With Qt4.7, each time I click and open a file dialog, two browse windows show up (see attached screenshot).
    How could I remove the grey one on the left and leave only the OSX-based browse window ?
    Code is the following:

    Qt Code:
    1. QFileDialog *chooseImage = new QFileDialog(0,tr("Open Image"), "/", tr("Image Files (*.png *.jpg *.bmp)"));
    2. QString fileName = chooseImage->getOpenFileName();
    To copy to clipboard, switch view to plain text mode 
    Attached Images Attached Images

  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
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: qFileDialog showing two browse windows on Qt4.7

    You are using a static method as a non-static one. Read the docs for QFileDialog and correct your approach.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2011
    Posts
    55
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    12

    Default Re: qFileDialog showing two browse windows on Qt4.7

    Ah, I see the problem, thanks for helping!

Similar Threads

  1. Qt .qrc ressources showing on Windows 7 but not on Windows XP
    By The_Student in forum Qt Programming
    Replies: 1
    Last Post: 8th February 2011, 10:53
  2. Qt Creator Browse files dialog not showing
    By wiseodd in forum Qt Tools
    Replies: 7
    Last Post: 11th September 2010, 14:24
  3. Browse /dev/ using QFileDialog on Mac OS X
    By blueillusion in forum Qt Programming
    Replies: 0
    Last Post: 22nd July 2010, 22:41
  4. Replies: 1
    Last Post: 5th October 2007, 10:51
  5. The direction of the showing of windows.
    By Mad Max in forum Qt Programming
    Replies: 6
    Last Post: 12th January 2007, 13:15

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.