Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved 其他语言调用qt封装的库文件,信号与槽失效,未收到信号!

    Chinese
    1
    3
    742
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      helloQt_SLOT last edited by

      [问题连接:](link https://zhidao.baidu.com/question/2080929297220068068.html?entry=qb_uhome_tag)

      H 1 Reply Last reply Reply Quote 0
      • H
        helloQt_SLOT @helloQt_SLOT last edited by

        将qt的串口操作封装成dll库,由java/C#调用;windows7 C# 语言的winfrom环境下,QSerialPort::readyread 信号未触发!

        1 Reply Last reply Reply Quote 0
        • H
          helloQt_SLOT last edited by

          初步猜测是因为不同的运行平台,加载库的线程不同导致的。Qt下运行在QAbstractProxyModel下,C#winform加载库运行在RtlUserThread。
          对于我这种小白来说,QtCore的库不能很好解决这个问题。
          参考:link[https://github.com/itas109/CSerialPort],在此我谢谢相关作者。
          虽然封装的不太标准,取缓存数据也不太优雅,终归能跨平台调用,能够解决问题。

          1 Reply Last reply Reply Quote 0
          • First post
            Last post