V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
rj2
V2EX  ›  Python

qtabelwidget 中右击菜单,求问,如何点击一个动作后, qt 窗口变灰,其余操作不可用。

  •  
  •   rj2 · 2019-07-24 17:07:12 +08:00 · 832 次点击
    这是一个创建于 1709 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题,比如我进行“卸载”操作,在这个卸载操作未完成前,整个个 qt 窗口为灰色,点击没有反应。其他操作,比如说“修改”不可用。

    2 条回复    2019-07-26 08:55:48 +08:00
    wangyaominde
        1
    wangyaominde  
       2019-07-25 09:21:03 +08:00
    1.点击这个按钮给一个信号,窗体连接这个信号
    2.在点击的函数里面把窗体所有能点的全部 setEnabled(False)
    可以试试,之前搞过一个按钮的禁选
    rj2
        2
    rj2  
    OP
       2019-07-26 08:55:48 +08:00
    @wangyaominde 好的 我试下
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5818 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 06:20 · PVG 14:20 · LAX 23:20 · JFK 02:20
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.