I have a QFileDialog with the filter set to "Image Files (*.png)" like this:

QString fileName = QFileDialog::getOpenFileName(this, tr("Open Image Files"), "/home/data", tr(Image Files (*.png)");

When the dialog opens on Windows, the whole filter string is shown on the file selection area. But on Linux, it only shows "Image Files" part, not including the real filter string (*.png). Why is the difference? Any way to solve this?

Many QThanks.