Home
Sign Up
Sign In
›
Qt Documentation
V2EX
›
Qt
Qt 的信号与槽的疑问?
zlel
·
Apr 12, 2017
· 7506 views
This topic created in 3335 days ago, the information mentioned may be changed or developed.
最近看到一些代码,在 singal 与 slot 建立连接之前,就开始 emit singal ,这样写也是没问题的吗?
singal
slot
emit
代码
3 replies
•
2017-04-12 11:38:57 +08:00
1
aogg
Apr 12, 2017
同在学 QT ,如果按照 js 的来就是没有接收方,就执行完毕,不报错,随便发
2
zlel
OP
Apr 12, 2017
@
aogg
刚才测试了一下,不建立连接,只是发送信号,没有任何错误的。
3
initialdp
Apr 12, 2017
这种情况下,发出 signal 是没有任何意义的,没有 slot 来处理。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
2885 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms ·
UTC 08:56
·
PVG 16:56
·
LAX 01:56
·
JFK 04:56
♥ Do have faith in what you're doing.
❯