Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, December 2007
4.3.3: QFileDialog::getOpenFileName() crashes when passing a hidden directory


Message 1 in thread

Hi list,

I discovered a probable bug when using QFileDialog::getOpenFileName() which 
results in a segmentation fault when a hidden directory is passed to 
the "dir" parameter as in this example:

...
  QString s = QFileDialog::getOpenFileName(this, tr("Choose temporary work              
file"), "/path/.to/file", tr("All files (*)"));
...

If I "do it myself" as in the following code-snippet, the result is the same :

...
  QFileDialog dialog(this, tr("Choose temporary work file"), "/path/.to/file", 
tr("All files (*)");

  dialog.setFileMode(QFileDialog::AnyFile);
  dialog.setViewMode(QFileDialog::Detail);

  if ( dialog.exec() == QDialog::Accepted ) {
     // crashes here!
     ...
  }
...

I tried Qt 4.3.2 and 4.2.3 as well. Qt 4.3.2 has the same problem, Qt 4.2.3 is 
fine (not sure about Qt 4.3.0 and 4.3.1, though).

Any help is greatly appreciated!!

Regards, René
-- 
 [ signature omitted ] 

Message 2 in thread

QSslKey - loads keys
QSslCertificate - loads certificates

what should I use to complement an application written in QT to generate 
certificates and keys ?

--
 [ signature omitted ] 

Message 3 in thread

Yong Taro wrote:
>QSslKey - loads keys
>QSslCertificate - loads certificates
>
>what should I use to complement an application written in QT to generate
>certificates and keys ?

The openssl command-line application.

Or anything that can generate X.509 certificates.
-- 
 [ signature omitted ] 

Attachment: signature.asc
Description: This is a digitally signed message part.


Message 4 in thread

On Sunday 23 December 2007 09:58:03 am Yong Taro wrote:
> QSslKey - loads keys
> QSslCertificate - loads certificates
>
> what should I use to complement an application written in QT to generate
> certificates and keys ?
As Thiago pointed out, you can do this on the command line with openssl(1) or 
equivalent tools (e.g. Mozilla's certutil). openssl comes with a CA.pl script 
that can help a lot if you need to do a lot of certificates. 

If you want to generate them programmatically, and want something more than 
QProcess and the openssl application, QCA _may_ be able to help. See 
http://delta.affinix.com/docs/qca/classQCA_1_1KeyGenerator.html
http://delta.affinix.com/docs/qca/classQCA_1_1CertificateRequest.html
http://delta.affinix.com/docs/qca/classQCA_1_1CertificateAuthority.html

Brad

--
 [ signature omitted ]