V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
blackbeardd
V2EX  ›  问与答

qt 的槽函数可以是协程吗?

  •  
  •   blackbeardd · Feb 12, 2023 via Android · 642 views
    This topic created in 1176 days ago, the information mentioned may be changed or developed.
    如:MyMainForm.pushButton.clicked.connect(self.sendmessage),

    self.sendmessage 是一个协程,想要将它作为槽与 pushbutton.clicked 这个信号关联起来。但是当我点击按钮的时候报错:RuntimeWarning: Enable tracemalloc to get the object allocation traceback ,

    正确的做法应该是什么样的?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   829 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:19 · PVG 04:19 · LAX 13:19 · JFK 16:19
    ♥ Do have faith in what you're doing.