Solved QMessageBox style anomaly - Qt Widgets 5.7 - Windows 10
-
Hi, we found issue in style/layout in QMessageBox. This dialog is shown via internal QT code from QFileDialog:
Situation:
-> QFileDialog is set 'setOption(QFileDialog::DontUseNativeDialog, true)'
-> QFileDialog opens QMessageBox (warning) for delete folder confirmation 'Are sure you want to delete...'
-> QMessageBox is shown with clipping (transparent) background:-> Using styles We can only influence clipped (properly displayed) widget, margin, padding nothing helped.
Does anyone have a similar problem?
Any help please?
Thanks, David.
-
Ok, so the problem is caused by the thirdparty code 'CodeJock'. Sorry guys about your time. Thank you, David.
-
Hi,
I'd recommend taking a look at the bug report system to see if it's something known.
-
It would be interesting to see the stylesheet you apply to the dialog and by cascading the
QMessageBox.If you pop your own QMessageBox, does it also show this effect?
-
Thanks guys,
and es the same 'effect' for showing own QMessageBox :(
-
Hi
I think its something in the style sheet,
transparent settings or something like that. -
@mrjj Hi, problem is, there is no style for QMessageBox nor QDialog nor QWidget in my code...
-
@David.Reznicek
Well if you disable the stylesheet , the issue goes away ?Could be a bug in stylesheet but hard to crystal ball guess at.
So i assume its via the cascading effect. (for some reason)
-
@mrjj Thank for tip....no style is loaded :( so I really don't know where is the problem.
-
@David.Reznicek
Wait, what ?
There is no stylesheet involved at all ?
How did you get it dark then?
Palette ?If you make a default GUI project. and pop a QMessageBox ? its also strange or its only in that project?
-
Ok, so the problem is caused by the thirdparty code 'CodeJock'. Sorry guys about your time. Thank you, David.