http://blog.sina.com.cn/s/blog_a6fb6cc90101fsoe.html
Qt中可以自定义鼠标样式,无论是为了美观,还是遵从同行业标准,或者说是界面友好性都需要了解。
使用setCursor(Qt::CursorShape)来设置鼠标样式,Qt::CursorShape包含以下选项:
1、正常选择
Qt::ArrowCursor
Qt::ForbiddenCursor
6、水平分割
Qt::SplitHCursor
7、垂直分割
Qt::SplitVCursor
8、水平调整
Qt::SizeHorCursor
9、垂直调整
Qt::SizeVerCursor
Qt::SizeFDiagCursor
12、候选
Qt::UpArrowCursor
Qt::SizeAllCursor
Qt::IBeamCursor
15、帮助选择
Qt::WhatsThisCursor
16、关闭手型
Qt::ClosedHandCursor
17、打开手型
Qt::OpenHandCursor
18、手型
Qt::PointingHandCursor
以下是Qt助手里面的内容:
注:
Qt::CursorShape(Qt5)
http://doc.qt.io/qt-5/qt.html#CursorShape-enum