jbcp
5th September 2014, 07:23
Hi All,
When I use the code below
QString name = QFileDialog::getSaveFileName(this, "Save As: ",QDir::currentPath(),"PNG(*.png)"); and in the Pop Up Dialog/Window if I tried to create a NewFolder ,my application is crashing(Windows7,64bit).
I tried below code
QString name = QFileDialog::getSaveFileName(this, "Save As: ",QDir::currentPath(),"PNG(*.png)",0,QFileDialog:: DontUseNativeDialog);Then I can create a NewFolder but the popped Dialog doesn't have Icon.
Setting the Icon like below code doesn't help.
QFileDialog filedlg;
filedlg.setWindowIcon(QIcon(":/new/Icon.ico"));
filedlg.getSaveFileName(this, "Save As: ",QDir::currentPath(),"PNG(*.png)",0,QFileDialog:: DontUseNativeDialog);
Can anyone correct me what I am doing wrong?I want to use native dialog itself, any suggestions on the crashing?
Thanks in Advance.
When I use the code below
QString name = QFileDialog::getSaveFileName(this, "Save As: ",QDir::currentPath(),"PNG(*.png)"); and in the Pop Up Dialog/Window if I tried to create a NewFolder ,my application is crashing(Windows7,64bit).
I tried below code
QString name = QFileDialog::getSaveFileName(this, "Save As: ",QDir::currentPath(),"PNG(*.png)",0,QFileDialog:: DontUseNativeDialog);Then I can create a NewFolder but the popped Dialog doesn't have Icon.
Setting the Icon like below code doesn't help.
QFileDialog filedlg;
filedlg.setWindowIcon(QIcon(":/new/Icon.ico"));
filedlg.getSaveFileName(this, "Save As: ",QDir::currentPath(),"PNG(*.png)",0,QFileDialog:: DontUseNativeDialog);
Can anyone correct me what I am doing wrong?I want to use native dialog itself, any suggestions on the crashing?
Thanks in Advance.