Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5361

Official Display • Re: Raspberry Pi 5 Touch Display 2 Bookworm hide mouse pointer cursor

$
0
0
Okay, I gave up on disabling the cursor on the main GUI, but used the following code in my Python PyQt5 app to hide the cursor:

Code:

class Window(QMainWindow):def __init__(self):super().__init__()self.initUI()self.setCursor(QCursor(Qt.BlankCursor))
Imports:

Code:

from PyQt5.QtCore import Qtfrom PyQt5.QtGui import QCursor

Statistics: Posted by fosautoparts — Sun Nov 17, 2024 8:14 am



Viewing all articles
Browse latest Browse all 5361

Trending Articles