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?
myFileDialog myFd(this,"");
//myFd.show();
file = myFd.getOpenFileName(dir,
"All Files (*.jpg; *.png; *.pcx)",
this,
"open file dialog",
tr("Choose a texture"));
QFileDialog fd;
myFileDialog myFd(this,"");
QString file;
//myFd.show();
file = myFd.getOpenFileName(dir,
"All Files (*.jpg; *.png; *.pcx)",
this,
"open file dialog",
tr("Choose a texture"));
To copy to clipboard, switch view to plain text mode
Bookmarks