Solved Double-click a QTableWidget or QTreeWidget makes the new dialog minimized
-
Hello I have a QTableWidget, and I made a slot cellDoubleClicked(int row, int column) to open a new Dialog.
It worked just fine in a previous version (Qt 5.11 w/ MSVC 2017 x64). But recently I rebuilt this project and found that once I double-click the widget item, a new dialog appears, but immediately everything gets minimized and my desktop is shown.
I also tried QTreewidget and found the same problem.
But if I use other methods to open that dialog, even if I call that on_tablewidget_cellDoubleClicked(int row, int column) function, it displays correctly with no problem at all.
Any ideas on how to fix this?
-
Hi
I tried withvoid MainWindow::on_treeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column) { InfoDialog d; d.exec(); }
windows 10, Qt5.12 and VS2015
I could not reproduce it.Is it possible to create a minimal example that shows this behavior ?
-
@mrjj said in Double-click a QTableWidget or QTreeWidget makes the new dialog minimized:
Hi
I tried withvoid MainWindow::on_treeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column) { InfoDialog d; d.exec(); }
windows 10, Qt5.12 and VS2015
I could not reproduce it.Is it possible to create a minimal example that shows this behavior ?
Thanks for the reply.
I also created a new project similar to yours and it did get minimized. I'm using Windows 10, Qt 5.12 and MSVC 2017 x64.
-
@MasterBlade
Hi
Ok. so even a plain project does it.
I have no idea what it could be.
Do you have mingw installed ?
could be something with VS2017 so could be interesting to try other compiler.Would it be possible to test same mini project on other pc ?
-
@mrjj said in Double-click a QTableWidget or QTreeWidget makes the new dialog minimized:
@MasterBlade
Hi
Ok. so even a plain project does it.
I have no idea what it could be.
Do you have mingw installed ?
could be something with VS2017 so could be interesting to try other compiler.Would it be possible to test same mini project on other pc ?
OK I'll install MinGW and see if it works.
-
@mrjj said in Double-click a QTableWidget or QTreeWidget makes the new dialog minimized:
@MasterBlade
Hi
Ok. so even a plain project does it.
I have no idea what it could be.
Do you have mingw installed ?
could be something with VS2017 so could be interesting to try other compiler.Would it be possible to test same mini project on other pc ?
Oh, no. I tried MinGW 7.30 x64 and still having the same problem...
-
@MasterBlade
Hi
hmm so seems not to be Qt related as such.
What windows version ?
Would it be possible to test same code on other pc ? -
My office and Home PC are both Windows 10 1803. I'll try other PCs.
Do I need to install Qt on other PCs or just bring those exe files to them?
-
I tried Windows 7 and it works out just fine... It may be a problem related to Windows 10.
-
@MasterBlade
Yes it could be
but i tested on win 10 also and could not make it do so.But BOTH you pcs in office does it ?
so it could not be just that one pc that had odd issue ?
(some dll mixup or something odd) -
@mrjj
Both my office and home pc have the same issue. I tested on another office pc which runs Windows 7. It's working fine.I have been working on this project for a long period. It didn't have such problem in an earlier Qt version. It may possibly be a Qt bug.
-
@MasterBlade
Yes if 5.11 worked on the same pc it could be something in Qt5.12 and windows 10. (maybe with newer update)
But i didnt find anything in https://bugreports.qt.io/
Would it be possible to verify on same pc that Qt5.11 do not have such issue and
if that works, you should open bug report. With the small sample you made. -
@mrjj I downloaded Qt 5.11 on my office PC again and there is no minimal problem with it. So I'm now 100% sure it's a Qt 5.12 bug.
-
@MasterBlade
ok, sounds like it. if on same pc.
please open ticket at https://bugreports.qt.io/
and provide the test code. -