Skip to content

QDialog, loadUi and closeEvent #192

@nchaverou

Description

@nchaverou

Hey there,

Wanted to move some legacy tools to maya 2017 using Qt.py
The only tool left I couldn't get to work properly used Nathan Ortiz loadUIType

Thus, I took a look to this page: https://github.com/mottosso/Qt.py/tree/master/examples/loadUi

  • baseinstance2.py implements it the same way than we do (but uses pysideuic) but works and my closeEvent function is called properly when the Dialog is closed
  • baseinstance1.py is pretty elegant, uses QtCompat.loadUi and looks like what i'd like to do. But when using it, my QDialog closeEvent is not called anymore

Attached is a minimal module with its ui file showing the issue
Am I missing something or is there a limitation to the loadUi function ?

skinWrangler.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions