上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 42 下一页

2019年5月5日

[Qt] 打开文件夹 Windows

摘要: bool ok = QDesktopServices::openUrl(QUrl("c:/users/administrator/desktop/dir")); 有些文件夹打不开,例如 C:\Users\Administrator。 把QUrl 换成QUrl::fromLocalFile 即可 bo 阅读全文

posted @ 2019-05-05 10:49 liujx2019 阅读(435) 评论(0) 推荐(0) 编辑

[Qt] 文本文件读写, 摘自官方文档

摘要: Reading Files Directly The following example reads a text file line by line: The QIODevice::Text flag passed to open() tells Qt to convert Windows-sty 阅读全文

posted @ 2019-05-05 09:56 liujx2019 阅读(200) 评论(0) 推荐(0) 编辑

[Windows] Socket Server Failed to bind, error 10048

摘要: Address already in use. Typically, only one usage of each socket address (protocol/IP address/port) is permitted. This error occurs if an application 阅读全文

posted @ 2019-05-05 09:49 liujx2019 阅读(1401) 评论(0) 推荐(0) 编辑

2019年4月19日

lodctr /R 失败的情况

摘要: I've resolved with the following steps: PS C:\Windows\system32> cmd Microsoft Windows [Version 6.2.9200] (c) 2012 Microsoft Corporation. All rights re 阅读全文

posted @ 2019-04-19 17:27 liujx2019 阅读(1748) 评论(0) 推荐(0) 编辑

2019年4月17日

ModuleNotFoundError: No module named 'sklearn.cross_validation'

摘要: 在sklearn 0.18及以上的版本中,出现了sklearn.cross_validation无法导入的情况,原因是新版本中此包被废弃 只需将 cross_validation 改为 model_selection 即可 阅读全文

posted @ 2019-04-17 16:26 liujx2019 阅读(3055) 评论(0) 推荐(0) 编辑

2019年4月12日

[Qt] 通过socket将另一个程序的某个窗口调到最前端

摘要: In linux i use this: I use this in windows, it works 出处:https://forum.qt.io/topic/1939/activatewindow-does-not-send-window-to-front/11 阅读全文

posted @ 2019-04-12 15:55 liujx2019 阅读(540) 评论(0) 推荐(0) 编辑

[Qt] QProcess::startDetached() 避免弹窗,或者窗口一闪而过

摘要: 主动宣告setProcessState(QProcess::NotRunning) 或者在堆上new一个QProcess。 出处: https://stackoverflow.com/questions/33874243/qprocessstartdetached-but-hide-console- 阅读全文

posted @ 2019-04-12 15:52 liujx2019 阅读(2618) 评论(0) 推荐(0) 编辑

2019年4月1日

[Inno Setup] 开机自启动

摘要: [icons] Name: "{userstartup}\My Program"; Filename: "{app}\MyProg.exe"; Tasks:StartMenuEntry; Name: "{commonstartup}\My Program"; Filename: "{app}\MyProg.exe"; Tasks:StartMenuEntry; 阅读全文

posted @ 2019-04-01 10:16 liujx2019 阅读(986) 评论(0) 推荐(0) 编辑

获取 ProgramData 文件夹路径

摘要: char startUpDir[500]; if (SHGetFolderPathA( NULL, CSIDL_COMMON_STARTUP, NULL, 0, startUpDir) != S_OK) { printf("SHGetFolderPathA... 阅读全文

posted @ 2019-04-01 10:14 liujx2019 阅读(722) 评论(0) 推荐(0) 编辑

2019年3月29日

获取盘符列表

摘要: 注意这个函数返回的字符串是按'\0'分割,所以必须先用别的分隔符替换之后再使用。否则只能得到第一个盘的盘符。 阅读全文

posted @ 2019-03-29 13:48 liujx2019 阅读(312) 评论(0) 推荐(0) 编辑

上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 42 下一页

导航