You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
QskCombBox::openPopup creates a QskMenu, that has to be a top level item ( having the contentItem of the window as parentItem ). In situations, where the combo box has not been added to the scene it does not have a window and window()->contentItem() will crash.
To avoid the crash a simple check denying the call for this situation is good enough. However a user might expect, that the popup will be opened as soon as the combo box becomes visible. For this we would need to introduce some sort of flag, that indicates to do a delayed open.
For the moment you could overload QskComboBox::itemChange and do the setPopupOpen call there. Depending on your application you could also do a QTimer::singleShot to delay the opening.
comboBox1->setPopupOpen(true);The program crashed when I set it to true
examples\bin\gallery.exe crashed.
You can test it on gallery
The text was updated successfully, but these errors were encountered: