当前位置:编程学习 > wap >>

求助对于Embedded Qt启动时的鼠标隐藏

求助对于Embedded Qt启动时的鼠标隐藏
我现在可以在网上查到的都是需要修改Qt源代码的,有没有不修改源代码的方式? --------------------编程问答-------------------- 在窗口的构造函数中使用
 this->setCursor(Qt::BlankCursor) 
./program -qws -nomouse
  --------------------编程问答--------------------
引用 1 楼 openXMPP 的回复:
在窗口的构造函数中使用
 this->setCursor(Qt::BlankCursor) 
./program -qws -nomouse
 

我的程序需要在启动中无鼠标,启动后我已经处理了,也就是在进入构造之前 --------------------编程问答--------------------
引用 1 楼 openXMPP 的回复:
在窗口的构造函数中使用
 this->setCursor(Qt::BlankCursor) 
./program -qws -nomouse
 

./program -qws -nomouse
你这个把整个鼠标给屏蔽了,我只想隐藏啊 --------------------编程问答--------------------
引用 3 楼 tt2com 的回复:
Quote: 引用 1 楼 openXMPP 的回复:

在窗口的构造函数中使用
 this->setCursor(Qt::BlankCursor) 
./program -qws -nomouse
 

./program -qws -nomouse
你这个把整个鼠标给屏蔽了,我只想隐藏啊

那你试试这个
手边没板子
你试试
void QWSServer::setCursorVisible ( bool visible ) [static]

Shows the cursor if visible is true: otherwise the cursor is hidden.

Note that this function can only be used in the server process.

See also isCursorVisible(). --------------------编程问答--------------------
引用 4 楼 openXMPP 的回复:
Quote: 引用 3 楼 tt2com 的回复:

Quote: 引用 1 楼 openXMPP 的回复:

在窗口的构造函数中使用
 this->setCursor(Qt::BlankCursor) 
./program -qws -nomouse
 

./program -qws -nomouse
你这个把整个鼠标给屏蔽了,我只想隐藏啊

那你试试这个
手边没板子
你试试
void QWSServer::setCursorVisible ( bool visible ) [static]

Shows the cursor if visible is true: otherwise the cursor is hidden.

Note that this function can only be used in the server process.

See also isCursorVisible().

我在程序中用的就是这个函数。我的程序在启动以后的鼠标时被了隐藏的。但在启动的时候有出现一个小鼠标方块。我现在想做的是隐藏这个启动时候的方块 --------------------编程问答--------------------  QWSServer::setCursorVisible(false); //隐藏鼠标
补充:移动开发 ,  Qt
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,