{"id":134943,"date":"2020-07-08T14:28:05","date_gmt":"2020-07-08T06:28:05","guid":{"rendered":"http:\/\/4563.org\/?p=134943"},"modified":"2020-07-08T14:28:05","modified_gmt":"2020-07-08T06:28:05","slug":"qt-%e6%a7%bd%e5%8f%aa%e8%83%bd%e8%a7%a6%e5%8f%91%e4%b8%80%e6%ac%a1%ef%bc%8c%e5%90%8e%e7%bb%ad-emit-%e5%86%8d%e6%97%a0%e6%b3%95%e6%89%a7%e8%a1%8c%e6%a7%bd%e5%87%bd%e6%95%b0","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=134943","title":{"rendered":"Qt \u69fd\u53ea\u80fd\u89e6\u53d1\u4e00\u6b21\uff0c\u540e\u7eed emit \u518d\u65e0\u6cd5\u6267\u884c\u69fd\u51fd\u6570"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Qt \u69fd\u53ea\u80fd\u89e6\u53d1\u4e00\u6b21\uff0c\u540e\u7eed emit \u518d\u65e0\u6cd5\u6267\u884c\u69fd\u51fd\u6570               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sr0tzo <\/span>  <span><i><\/i> 7<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>void LeftPanelWidget::SearchDateOfDay(const QString &amp;id, const QDate date) { QTime time = QTime(0, 0, 0); QDateTime datetime = QDateTime(date, time); int timestamp = datetime.toTime_t();<\/p>\n<pre><code>QString channelId = id; emit sglQueryTimeline(channelId, timestamp); qDebug() &lt;&lt; \"hahahaha \"; <\/code><\/pre>\n<p>}<\/p>\n<pre><code>connect(this, &amp;LeftPanelWidget::sglQueryTimeline, [this](QString &amp;id, int ts) {             qDebug() &lt;&lt; \"query timeline \"  &lt;&lt; id &lt;&lt; \"  \" &lt;&lt; ts; }); <\/code><\/pre>\n<p>\u5982\u4e0a\u9762\u4ee3\u7801\u6240\u793a\uff0c\u6211\u901a\u8fc7\u4e00\u4e2a\u63a7\u4ef6\u8c03\u7528 SearchDateOfDay\uff0c\u5355\u6b65\u8ddf\u4e0b\u6765\u786e\u8ba4\u6bcf\u6b21\u90fd\u4f1a emit\uff0c\u4f46\u662f\u69fd\u53ea\u5728\u7b2c\u4e00\u6b21\u6267\u884c\u4e86\uff0c\u540e\u9762\u518d\u4e5f\u4e0d\u80fd\u89e6\u53d1\uff0c\u8bf7\u54ea\u4f4d\u5927\u795e\u6307\u70b9\u4e00\u4e0b\u95ee\u9898\u53ef\u80fd\u51fa\u5728\u54ea\u91cc\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"2462629\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : imn1 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u61c2 C++\uff0c\u53ea\u73a9 pyqt<br \/>\u4f60\u8fd9\u662f\u4ec0\u4e48\u63a7\u4ef6\uff0c\u65e5\u5386\uff1f\u62d6\u52a8\u6761\uff1f<br \/>\u591a\u6b21\u6539\u53d8\u7684\u6570\u636e\uff0c\u7406\u8bba\u4e0a\u89e6\u53d1\u4e8b\u4ef6\u5e94\u8be5\u662f valueChanged\uff0c\u6ca1\u770b\u5230\u8fd9\u4e2a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2462630\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : whi147 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u822c\u6765\u8bf4\u662f\u51fd\u6570\u7684\u751f\u547d\u5468\u671f\u7ed3\u675f\uff0c\u88ab\u81ea\u52a8\u56de\u6536\uff0c\u4f60\u4e0b\u9762\u8fd9\u4e2a\u4fe1\u53f7\u69fd\u94fe\u63a5\u662f\u5426\u653e\u5728\u6784\u9020\u51fd\u6570\u8fd9\u91cc                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2462631\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : acainiao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u4eec\u90fd\u7528 qt \u505a\u4ec0\u4e48\u5440\uff1f qt \u73b0\u5728\u4e0d\u662f\u8981\u6536\u8d39\u4e86\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Qt \u69fd\u53ea\u80fd\u89e6\u53d1\u4e00\u6b21\uff0c\u540e\u7eed emi&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/134943"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=134943"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/134943\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=134943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=134943"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=134943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}