求助对于Embedded Qt启动时的鼠标隐藏
求助对于Embedded Qt启动时的鼠标隐藏我现在可以在网上查到的都是需要修改Qt源代码的,有没有不修改源代码的方式? --------------------编程问答-------------------- 在窗口的构造函数中使用
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(). --------------------编程问答--------------------
在窗口的构造函数中使用
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