pihnat/rpi-Candle

Open file dialog does not work

simonCor opened this issue · 2 comments

Second rpi problem with candle.

When I try to open a file the file open dialog is translucent. This may be a problem with the rpi kernel as it seems that the dialog hangs in a system call.

Secreenshot:
IMG_20200405_124809899

It seems, that the native open file dialog is broken. I can't really say if this is general problem of the rpi.

Here is a fix which deactivcates the native open dialog.

Here is an example:
QString fileName = QFileDialog::getOpenFileName(this, tr("Open"), m_lastFolder, tr("G-Code files (*.nc *.ncc *.ngc *.tap *.txt);;All files (*.*)"),nullptr,QFileDialog::DontUseNativeDialog);

The Flag QFileDialog::DontUseNativeDialog is the key here. It has to be set everywhere where a file open or a file save dialog is used.

I installed a raspian on a new sd card - there it works.

Seems like the old one had a strange config...