普遍在WINDOWS下开发QT程序大多用的是动态的方法使用QT库,这样在发布版本时必须拷贝QT动态库才能运行,使用繁琐,使用静态方式的QT库很好的解决了此类问题。本文档总结怎样在WINDOWS下编译出QT静态库,简单,易学,使用Qt5.7-VS2015环境实现其他环境原理都是相通的。
2023-12-02 17:33:17 374KB VS2015 QT5.7
1
Graphics View Framework 提供了一个强大且灵活的工具集,用于创建可交互的 2D 图形界面,并且支持丰富的图形操作和事件处理。无论是创建游戏、数据可视化还是绘制图表,Graphics View Framework 都能够满足各种需求。 通过使用 Graphics View Framework,你可以创建具有丰富交互性和定制性的 2D 图形界面。你可以在场景中添加、移动和删除图形项,并通过视图来查看和操作场景。Graphics View Framework 还提供了方便的方法来处理事件、选择图形项、执行动画、导出图形为图片等功能。你可以根据需要继承 QGraphicsItem 或 QGraphicsWidget 类来创建自定义的图形项。
2023-12-01 15:47:25 6KB
1
代码已经经过测试,可以操作 声明:该代码是一朋友传给的~非本人杰作
2023-11-30 14:53:54 3KB xml
1
using System; using System.Runtime.InteropServices; using System.Reflection; using System.Windows.Forms; namespace KeyboardHook { public enum KeyboardEvents { KeyDown = 0x0100, KeyUp = 0x0101, SystemKeyDown = 0x0104, SystemKeyUp = 0x0105 } [StructLayout(LayoutKind.Sequential)] public struct KeyboardHookStruct { public int vkCode; //表示一个在1到254间的虚似键盘码 public int scanCode; //表示硬件扫描码 public int flags; public int time; public int dwExtraInfo; } public delegate void KeyboardEventHandler(KeyboardEvents keyEvent, System.Windows.Forms.Keys key); public class Hook { public event KeyboardEventHandler KeyboardEvent; public enum HookType { WH_JOURNALRECORD = 0, WH_JOURNALPLAYBACK = 1, WH_KEYBOARD = 2, WH_GETMESSAGE = 3, WH_CALLWNDPROC = 4, WH_CBT = 5, WH_SYSMSGFILTER = 6, WH_MOUSE = 7, WH_HARDWARE = 8, WH_DEBUG = 9, WH_SHELL = 10, WH_FOREGROUNDIDLE = 11, WH_CALLWNDPROCRET = 12, WH_KEYBOARD_LL = 13, WH_MOUSE_LL = 14, WH_MSGFILTER = -1, } public delegate IntPtr HookProc(int code, int wParam, IntPtr lParam); [DllImport("User32.dll", CharSet = CharSet.Auto)] public static extern IntPtr SetWindowsHookEx(HookType hookType, HookProc hook, IntPtr instance, int threadID); [DllImport("User32.dll", CharSet = CharSet.Auto)] public static extern IntPtr CallNextHookEx(IntPtr hookHandle, int code, int wParam, IntPtr lParam); [DllImport("User32.dll", CharSet = CharSet.Auto)] public static extern bool UnhookWindowsHookEx(IntPtr hookHandle); private IntPtr instance; private IntPtr hookHandle; private int threadID; private HookProc hookProcEx; public Hook() { this.instance = Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()[0]); this.threadID = 0; hookHandle = IntPtr.Zero; hookProcEx = new HookProc(hookProc); } public bool SetHook() { this.hookHandle = SetWindowsHookEx(HookType.WH_KEYBOARD_LL, hookProcEx, this.instance, this.threadID); return ((int)hookHandle != 0); } public IntPtr hookProc(int code, int wParam, IntPtr lParam) { if (code >= 0) { KeyboardEvents kEvent = (KeyboardEvents)wParam; if (kEvent != KeyboardEvents.KeyDown && kEvent != KeyboardEvents.KeyUp && kEvent != KeyboardEvents.SystemKeyDown && kEvent != KeyboardEvents.SystemKeyUp) { return CallNextHookEx(this.hookHandle, (int)HookType.WH_KEYBOARD_LL, wParam, lParam); } KeyboardHookStruct MyKey = new KeyboardHookStruct(); Type t = MyKey.GetType(); MyKey = (KeyboardHookStruct)Marshal.PtrToStructure(lParam, t); Keys keyData = (Keys)MyKey.vkCode; KeyboardEvent(kEvent, keyData); } return CallNextHookEx(this.hookHandle, (int)HookType.WH_KEYBOARD_LL, wParam, lParam); } public bool UnHook() { return Hook.UnhookWindowsHookEx(this.hookHandle); } } }
2023-11-30 05:06:49 70KB 键盘钩子
1
tesseract的编译文件,可用于qt在windows上进行开发
2023-11-28 19:08:28 39.32MB ocr
1
文件内包括实现效果截图,源代码,及release版文件。
2023-11-28 14:47:31 75.67MB opencv
1
基于Qt creater的串口数据可视化软件源码,串口读取值,实现动态波形显示
2023-11-27 16:37:30 7KB
1
一个用来计时的C#程序,用于演讲时给予选手时间的提示。所用.net framework 4.0框架
2023-11-27 05:05:10 2.49MB
1
1.Excel2003、2007及2010格式的数据导入导出。 2.将Excel2003、2007及2010格式的数据报表导入到datagridview中预览 3.将datagridview中的数据导出为Excel2003、2007及2010格式的数据保存或查看。
2023-11-26 05:05:02 429KB Excel数据导出导入
1
1.支持对Excel2003、2007及Excel2010的数据导出及导入。 2.将Excel2003、2007及Excel2010格式的报表数据直接导入到datagridview中预览。 3.也可以将datagridview报表导出到Excel2003、2007及2010格式的Excel文件
2023-11-26 05:04:41 418KB Excel 数据导出 数据导入
1