techartorg / bqt

A Blender add-on to support & manage Qt Widgets in Blender (PySide2)
https://github.com/techartorg/bqt/wiki
Mozilla Public License 2.0
172 stars 25 forks source link

getColor opens multiple color picker windows #121

Closed martin-dgg closed 1 month ago

martin-dgg commented 2 months ago

calling QtWidgets.QColorDialog.getColor() should show the dialog of the QColorDialog Class described here: https://doc.qt.io/qt-6/qcolordialog.html#details

However currently it produces two windows one of which has the color picker the other one is just a empty widget. The color picker also doesn't set the color correctly as the output of the getColor function as described in the Documentation.

Here a screenshot of the current result: image

hannesdelbeke commented 1 month ago

hi,

could you provide some standalone python code to reproduce this issue? so i can try this out. i believe this is related to the automated REPARENT env var, which can be disabled with BQT_DOCKABLE_WRAP see https://github.com/techartorg/bqt/wiki/Environment-variables

martin-dgg commented 1 month ago

Hi,

sorry for not updating this ticket. It was in fact solved for us after setting BQT_DOCKABLE_WRAP to "0"

hannesdelbeke commented 1 month ago

thanks for the update. i'll consider disabling dockable wrap enabled by default, it is not stable enough yet and requires exceptions for various widgets.