View Full Version : qFileDialog showing two browse windows on Qt4.7

7th September 2011, 17:59
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:

QFileDialog *chooseImage = new QFileDialog(0,tr("Open Image"), "/", tr("Image Files (*.png *.jpg *.bmp)"));
QString fileName = chooseImage->getOpenFileName();

7th September 2011, 18:03
You are using a static method as a non-static one. Read the docs for QFileDialog and correct your approach.

7th September 2011, 18:16
Ah, I see the problem, thanks for helping!