简体   繁体   English

Linux和Windows应用程序Qt的GUID

[英]GUID for linux and windows application, Qt

I'm using Qt 4.x to develop a portable applicaion that will run on linux and windows. 我正在使用Qt 4.x开发可在Linux和Windows上运行的便携式应用程序。 I want to add to the application an identifier such like a guid. 我想向应用程序添加一个标识符,例如guid。 how can I do that? 我怎样才能做到这一点? what is the connection in the application I have to do the the id? 我必须执行ID的应用程序中的连接是什么? and GUID - is it only for windows? 和GUID-仅适用于Windows吗? (I want something that will be for both linux and windows) (我想要适用于linux和Windows的东西)

10x! 10倍!

I don't know if I understand your question(s) correctly, but I think QUuid ( qt5 link here ) is what you're looking for. 我不知道我是否正确理解了您的问题,但是我认为QUuid这里的qt5链接 )是您想要的。 It generates UUIDs (which GUIDs seem to be a special case of) for all supported platforms. 它为所有受支持的平台生成UUID(GUID似乎是其中的特例)。

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

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