OS X transparent panels in Qt?

Is there a way to create a transparent panel, described the Guidelines for Apple human interface in the Qt 4.6(built for OS X 10.6 / Cocoa)?

If not, are there alternatives that are similar in appearance and function?

I understand that Qtthis is a cross-platform toolkit, but I want my application to be perceived as "native" as possible.

+3
source share
1 answer

I have not tried a Mac, but it should be possible. Here QWidget docs say:

Create transparent windows

Qt 4.5, , .

, Qt::WA_TranslucentBackground setAttribute() , , .

:

X11: X-, ARGB .

Windows: Qt::FramelessWindowHint, .

, - , Qt::WA_TranslucentBackground, .

+2

Source: https://habr.com/ru/post/1761554/


All Articles