Hi I have strange problem.
I have a widget gui with a not checkable button that when pressed opens a file dialog.

here is the signal

connect(ui->loadcsv,SIGNAL(pressed()),this, SLOT(fromcsv()));

and the start of the slot

void newinstrument::fromcsv(){
QString line,filename;
QStringList filesnames;

QFileDialog dialog(this);
dialog.setFileMode(QFileDialog::ExistingFile);
dialog.setDirectory(folder);
if(dialog.exec())filesnames=dialog.selectedFiles() ;

.....

This always leaves the loadcsv button as checked.

although this being a noncheckable button I still tried to explicitly put the status of the button as unchecked before returning the fromscv slot but the result do not change. After being pressed once the button stays always checked but other from that everything seem to work fine (I called this checked due only to the visual effect but really is not a checked status as a second click does not put the button with the visual aspect of an unchecked button).

any hints would be welcome

P.s.
I'm using qt12.1 from opensuse leap 15.0