Frage zu Signal-Slot Problematik mit PyQT

slackfan

slackfan

König
Hallo,


ich bin gerade dabei, an einem Plasmoid für KDE4 zu basteln (in Python geschrieben), habe aber vorher noch keine Übungen Qt veranstaltet. Für den Plamoid benötige ich einen Mechanismus, der hier beschrieben ist:

registerWidget ( self, QGraphicsWidget widget )

Registers a widget with the tooltip manager.

Note that setContent() will register the widget if it has not already been registered, and so you do not normally need to use the method.

This is useful for creating tooltip content on demand. You can register your widget with registerWidget(), then implement a slot named toolTipAboutToShow for the widget. This will be called before the tooltip is shown, allowing you to set the data with setContent().

If the widget also has a toolTipHidden slot, this will be called after the tooltip is hidden.

Parameters: widget the desired widget

Ich scheitere im Moment daran, dass ich nicht weiß, wie man den genannten Slot-Mechanismus für toolTipAboutToShow implementiert. Muss man dafür ebenfalls mit QObject.connect() arbeiten und wenn ja, wie?

Kann mir da jemand auf die Sprünge helfen?
Ich bin für jeden Ratschlag dankbar :)


cu
 

Ähnliche Themen

Nginx als Reverse Proxy für Nextcloud und Emby

Zugriff Ubuntu 16.04. auf Freigabe 18.04. LTS nicht möglich

Senior System & Network Admin in Berlin

Problem bei apt-get upgrade (Kali 2.0)

Samba 4 Gast Zugang unter Ubuntu funktioniert nicht

Zurück
Oben