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

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

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