本文整理汇总了C++中QBitmap::createHeuristicMask方法的典型用法代码示例。如果您正苦于以下问题:C++ QBitmap::createHeuristicMask方法的具体用法?C++ QBitmap::createHeuristicMask怎么用?C++ QBitmap::createHeuristicMask使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QBitmap
的用法示例。
在下文中一共展示了QBitmap::createHeuristicMask方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: needleMoveArrow
QCursor KarbonCursor::needleMoveArrow()
{
static unsigned char needle_move_bits[] = {
0x00, 0x00, 0x10, 0x00, 0x20, 0x00, 0x60, 0x00, 0xc0, 0x00, 0xc0, 0x01,
0x80, 0x03, 0x80, 0x07, 0x10, 0x0f, 0x38, 0x1f, 0x54, 0x3e, 0xfe, 0x7e,
0x54, 0x7c, 0x38, 0x1c, 0x10, 0x18, 0x00, 0x00};
QBitmap b = QBitmap::fromData( QSize(16, 16), needle_move_bits );
QBitmap m = b.createHeuristicMask( false );
return QCursor( b, m, 2, 0 );
}
示例2: crossHair
QCursor KarbonCursor::crossHair()
{
static unsigned char cross_bits[] = {
0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00,
0x80, 0x00, 0xff, 0x7f, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00,
0x80, 0x00, 0x80, 0x00, 0x80, 0x00};
QBitmap b = QBitmap::fromData( QSize(15, 15), cross_bits);
QBitmap m = b.createHeuristicMask( false );
return QCursor( b, m, 7, 7 );
}
示例3: horzMove
QCursor KarbonCursor::horzMove()
{
/*
#define horzMove_width 15
#define horzMove_height 15
static unsigned char horzMove_bits[] = {
0x00, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x90, 0x04,
0x98, 0x0c, 0xfc, 0x1f, 0x98, 0x0c, 0x90, 0x04, 0x80, 0x00, 0x80, 0x00,
0x80, 0x00, 0x80, 0x00, 0x00, 0x00};
*/
#define horzMove_width 15
#define horzMove_height 15
static unsigned char horzMove_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08,
0x0c, 0x18, 0xfe, 0x3f, 0x0c, 0x18, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
QBitmap b = QBitmap::fromData( QSize(15, 15), horzMove_bits );
QBitmap m = b.createHeuristicMask( false );
return QCursor( b, m, 7, 7 );
}