简体   繁体   English

如何在Qt中使用.NET Framework中的系统名称空间?

[英]How do I use the System namespace from the .NET Framework in Qt?

Specifically, I'm trying to use the System.IO.Ports classes for controlling serial ports. 具体来说,我正在尝试使用System.IO.Ports类来控制串行端口。 I am not sure if this is of any use at all: http://qt-project.org/doc/qt-4.8/activeqt-dotnet.html 我不确定这是否有用: http : //qt-project.org/doc/qt-4.8/activeqt-dotnet.html

I'm a bit lost here, any input would be appreciated. 我在这里有点迷路,任何输入将不胜感激。

MSDN has a great example for using the SerialPort Class. MSDN有一个很好的使用SerialPort类的例子。 Try this sample. 试试这个样本。 I believe this will get you on the track. 我相信这会让您步入正轨。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM