blackbeardd
V2EX  ›  问与答

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

  •  
  •   blackbeardd · Feb 12, 2023 via Android · 675 views
    This topic created in 1188 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   ·   4256 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 10:11 · PVG 18:11 · LAX 03:11 · JFK 06:11
    ♥ Do have faith in what you're doing.