打开窗口小部件窗口时无法使用主窗口 [英] Can't use the main window when open a widget window

查看:146
本文介绍了打开窗口小部件窗口时无法使用主窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要帮助.

我需要一个函数,当我打开选项窗口时,程序的主窗口已停用.
就像我打开计算机时一样,然后从工具>>

I need a help.

I need a function that when I open my option window, the main window of my program is out of use.
Like when I open my computer then from tool>> folder option, than I cant access to my computer.

推荐答案

我没有使用Python或QT的经验,但是您需要的是模态窗口. > 使用 Google [ ^ ]我发现了这个 http://www.commandprompt.com/community/pyqt/c6351 [^ ].

如果这不能解决您的问题,您将对如何在Pyhton QT中创建模态窗口进行Google搜索.
I have no experience with either Python or QT, but what you need is a modal window.
Using Google[^] I found this http://www.commandprompt.com/community/pyqt/c6351[^].

If this doesn''t work for you will do your own Google search on how to create a modal window in Pyhton QT.


thnx Andre,我发现了solutioan:
setWindowModality(2)
thnx Andre , i found the solutioan :
setWindowModality(2)


这篇关于打开窗口小部件窗口时无法使用主窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆