Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parenting to host window merges it with other widgets #45

Closed
mottosso opened this issue Jun 22, 2016 · 0 comments
Closed

Parenting to host window merges it with other widgets #45

mottosso opened this issue Jun 22, 2016 · 0 comments
Labels

Comments

@mottosso
Copy link
Member

Initially reported by @linez69, a series of flags causes the GUI to merge rather than appear on-top as it's own self-contained window.

To reproduce

In Maya.

from PySide import QtGui

import pyblish.api
import pyblish_lite

pyblish.api.register_host("maya")

parent = {o.objectName(): o for o in QtGui.qApp.topLevelWidgets()}["MayaWindow"]
window = pyblish_lite.show(parent)

Problem

        self.setWindowFlags(QtCore.Qt.WindowTitleHint |
                            QtCore.Qt.WindowMaximizeButtonHint |
                            QtCore.Qt.WindowMinimizeButtonHint |
                            QtCore.Qt.WindowCloseButtonHint)

Solution

Include existing window flags.

        self.setWindowFlags(self.windowFlags() |
                            QtCore.Qt.WindowTitleHint |
                            QtCore.Qt.WindowMaximizeButtonHint |
                            QtCore.Qt.WindowMinimizeButtonHint |
                            QtCore.Qt.WindowCloseButtonHint)
@mottosso mottosso added the bug label Jun 22, 2016
mottosso added a commit to mottosso/pyblish-lite that referenced this issue Jun 22, 2016
mottosso added a commit to mottosso/pyblish-lite that referenced this issue Jun 22, 2016
@mottosso mottosso mentioned this issue Jun 22, 2016
mottosso added a commit that referenced this issue Jun 22, 2016
mottosso added a commit that referenced this issue Jun 24, 2016
* Fixes #45

* Use AwesomeFont tags instead of unicode characters, e.g. "play" rather than u"\uf04b"

* Transitioning to Docker for tests

* Fix broken README.md

* Update README.md

* Discard Python from .travis.yml

* Fix .travis.yml
tokejepsen pushed a commit to tokejepsen/pyblish-lite that referenced this issue May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant