QToolButton* toolButton = new QToolButton(this); toolButton->setCursor(Qt::PointingHandCursor);
QToolButton* toolButton = new QToolButton(this); toolButton->setCursor(Qt::BlankCursor);In this example, a new QToolButton object is created and set to a BlankCursor. This is typically used to hide the cursor and provide a customized interface for the user. Package library: Qt Widgets.