Ah, simple solution:
self.setWindowFlags(Qt.Tool)
instead of
self.setWindowFlags(Qt.WindowStaysOnTopHint)
On 29/12/15 10:31 pm, Frank Rueter|OHUfx wrote:
If I register it as a panel I wouldn't have the stay-on-top problem,
but that seems to lose the ability to scale the wrapping widget so it
fits the custom widget, resulting in the user always having to resize
the window.
At the moment I am just opening it as a non-modal panel via show().
Setting parent=QtGui.QApplication.activeWindow() crashes Nuke when the
panel's show() method is called.
Setting no parent leaves me with the original problem.
Ideally I'd wrap it as a nuke panel via
nukescripts.registerWidgetAsPanel(create=True), then call show() on
the returned object. But as mentioned above, this creates a parent
widget that does not scale according to the widget it's wrapping.
frank
On 29/12/15 12:13 pm, Erik Johansson wrote:
Are you registering it as a nuke panel or just showing a QDialog?
If it's a QDialog what Hugo wrote should work if it have the correct
parent aka nuke mainwindow.
On Mon, Dec 28, 2015 at 9:59 PM, Frank Rueter|OHUfx <fr...@ohufx.com
<mailto:fr...@ohufx.com>> wrote:
so now that I have relaxed and enjoyed Christmas, any ideas? :)
On 25/12/15 3:00 am, Howard Jones wrote:
relax and enjoy Christmas? ;)
Howard
On 24 Dec 2015, at 12:57 am, Frank Rueter|OHUfx <fr...@ohufx.com
<mailto:fr...@ohufx.com>> wrote:
Slight issue: the flag keeps the panel on top of everything
system wide. I'd like it to only stay on top of Nuke, but not
on top of other stuff (e.g.system's file browser) when Nuke is
in the background.
Any ideas?
On 22/12/15 11:46 am, Frank Rueter|OHUfx wrote:
DOH, of course, thanks Hugo!
On 22/12/15 11:31 am, Hugo Léveillé wrote:
Have you tried:
self.setWindowFlags(Qt.WindowStaysOnTopHint)
Sent from my iPhone
On Dec 21, 2015, at 5:27 PM, Frank Rueter|OHUfx
<fr...@ohufx.com <mailto:fr...@ohufx.com>> wrote:
Hi guys,
does anybody know if it's possible to keep a non-modal
PySide panel above the main Nuke window when focus is on the
main app?
Cheers,
frank
--
<ohufxLogo_50x50.png> <http://www.ohufx.com> *vfx
compositing <http://ohufx.com/index.php/vfx-compositing> |
*workflow customisation and consulting
<http://ohufx.com/index.php/vfx-customising>* *
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk
<mailto:Nuke-python@support.thefoundry.co.uk>,
http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk
<mailto:Nuke-python@support.thefoundry.co.uk>,http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
<mime-attachment.png> <http://www.ohufx.com> *vfx compositing
<http://ohufx.com/index.php/vfx-compositing> | *workflow
customisation and consulting
<http://ohufx.com/index.php/vfx-customising>* *
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk
<mailto:Nuke-python@support.thefoundry.co.uk>,http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
<ohufxLogo_50x50.png> <http://www.ohufx.com> *vfx compositing
<http://ohufx.com/index.php/vfx-compositing> | *workflow
customisation and consulting
<http://ohufx.com/index.php/vfx-customising>* *
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk
<mailto:Nuke-python@support.thefoundry.co.uk>,
http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk
<mailto:Nuke-python@support.thefoundry.co.uk>,http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing
<http://ohufx.com/index.php/vfx-compositing> | *workflow
customisation and consulting
<http://ohufx.com/index.php/vfx-customising>* *
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk
<mailto:Nuke-python@support.thefoundry.co.uk>,
http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
*Erik Johansson */Pipeline TD/
*Fido *Rosenlundsgatan 40 118 53 Stockholm, Sweden www.fido.se
<http://www.fido.se/>
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk,http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing
<http://ohufx.com/index.php/vfx-compositing> | *workflow customisation
and consulting <http://ohufx.com/index.php/vfx-customising>* *
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing
<http://ohufx.com/index.php/vfx-compositing> | *workflow customisation
and consulting <http://ohufx.com/index.php/vfx-customising>* *
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python