Hi, I'm trying to subclassing QFile dialog to change it; I tried this below; but I see that I must use 'myFd.show();' to see my change; with these two ways, Dialog apparence is different; and with 'show() it seems I can't retrieve 'file variabile' (Is there a way to obtain 'file' variabile using myFd.getOpenFileName??? I need set .pcx .jpg....). An hint?
Qt Code:
  1. myFileDialog myFd(this,"");
  2. QString file;
  3. //myFd.show();
  4. file = myFd.getOpenFileName(dir,
  5. "All Files (*.jpg; *.png; *.pcx)",
  6. this,
  7. "open file dialog",
  8. tr("Choose a texture"));
To copy to clipboard, switch view to plain text mode