接口定义:
void DWIM_SetPos(QObject * im, int x, int y)
void DWIM_SetPos(QObject * im, QPoint _pos)设置输入法键盘位置。
这个接口实际是由DWInputMethodOption封装实现,代码如下:
// 设置位置 inline void DWIM_SetPos(QObject * im, int x, int y) { QPoint _pos = QPoint(x, y); DWInputMethodOption(im, "pos", (QObject*)&_pos); } inline void DWIM_SetPos(QObject * im, QPoint _pos) { DWInputMethodOption(im, "pos", (QObject*)&_pos); }