Ejemplo n.º 1
0
 public function createPaw($icon, $desktopWidth, $desktopHeight)
 {
     $paw = new QLabel();
     $paw->resize(256, 256);
     $paw->icon = $icon;
     $paw->windowFlags = Qt::Tool | Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint;
     $paw->setAttribute(Qt::WA_TranslucentBackground);
     $paw->setAttribute(Qt::WA_DeleteOnClose);
     $paw->setAttribute(Qt::WA_QuitOnClose);
     return $paw;
 }