手册
1. API介绍
1.1  DWInputMethodCreate
1.2  DWInputMethodRelease
1.3  DWInputMethodOption
1.4  DWInputMethodShow
1.5  DWInputMethodHide
1.6  DWInputMethodReset
1.7  DWInputMethodShowing
1.8  DWInputMethodGetMode
1.9  DWInputMethodGetPos
1.10  DWInputMethodGetSize
1.11  DWInputMethodCommitFunc
1.12. 二次封装API
1.12.1  DWIM_SetPos
1.12.2  DWIM_SetSize
1.12.3  DWIM_SetMode
1.12.4  DWIM_SetT9Symb
1.12.5  DWIM_SetCss
1.12.6  DWIM_SetMoveable
1.12.7  DWIM_SetBool
1.12.8  DWIM_SetInt
1.12.9  DWIM_SetString
1.12.10  DWIM_SetColor
2. 自动弹出Hook
2.1  Open
2.2  Start
2.3  Stop
2.4  SetKeyboard
2.5  SetAutoHide
2.6  SetAutoMode
2.7  AddAutoMode
2.8  SetAutoPos
2.9  AddAutoShow
2.10  ExcludeAutoShow
2.11  ExcludeAutoHide
2.12  Close
3  例子代码

DWIM_SetString

219
文子
2023-11-02 11:43:03

接口定义:

void DWIM_SetString(QObject * im, const QString key, QString value)

设置键盘 QString 字符串参数,用于功能扩展或定义功能的用户使用。

这个接口实际是由DWInputMethodOption封装实现,代码如下:


// 设置 QString 类型参数
inline void DWIM_SetString(QObject * im, const QString key, QString value)
{
    DWInputMethodOption(im, key, (QObject*)&value);
}