WENZHAO LI
  • Home
  • Modeling
  • TechArtBlog
  • About

TechART Blog

DCC Python - Qt Ui always on top and Center Window

11/17/2021

0 评论

 
Original Post can be find in the link below, I paste here in case it can not be access in the future.
https://discourse.techart.online/t/how-to-make-a-pyside-ui-stay-on-top-of-maya-only/12473/10
Quote from ​JoDaRober

If you have issues with the dialog not appearing at the center of the screen, you can center it when showing the UI. I prefer to override QDialog’s show method for this, since it will have to happen after any widget creation that can change the dimensions of the dialog, and that include’s QtDialog’s show() method. Here’s an example:

0 评论



写评论。

    Author

    Write something about yourself. No need to be fancy, just an overview.

    Archives

    November 2021
    September 2021
    August 2021
    July 2021
    June 2021
    April 2021
    January 2021
    November 2020
    October 2019
    September 2019
    February 2019
    November 2018
    July 2018
    February 2018

    Categories

    All

    RSS Feed

Powered by 通过可定制的模板创建自己独特的网站。
  • Home
  • Modeling
  • TechArtBlog
  • About