Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 06337b89 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

UI: Add free function to set background of widget transparent

parent c64aab4d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!15Video playback with mpv
#include "Utils.hh"
#include <QWidget>
using namespace Vivy;
void
Utils::setTransparentBackgroundForWidget(QWidget *const w) noexcept
{
w->setAttribute(Qt::WA_NoSystemBackground);
w->setAttribute(Qt::WA_TranslucentBackground);
w->setAttribute(Qt::WA_TransparentForMouseEvents);
}
#pragma once
#ifndef __cplusplus
#error "This is a C++ header"
#endif
class QWidget;
namespace Vivy::Utils
{
void setTransparentBackgroundForWidget(QWidget *const) noexcept;
}
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter