Transparent effect is not working in Qt5
-
Maybe it has to do with the window manager.
As far as i know, Qt4 uses its own window manager and Qt5 needs an external one for composing. -
@PhTe Well, I don't know about Qt's window manager. But the same pixmap that used during a dragging, if it is used in a widget like QListWidget, QToolButton, the transparent part looks normal. What's the difference between these two situations?
-
tslib is the input plugin for touchscreen handling.
Are you using linuxfb ? eglfs ?
-
@SGaist Yes. It's linuxfb.
-
Ok, then there's your problem: linuxfb is not enough for QtQuick2. You should use the eglfs plugin for Qt Quick 2 since OpenGL is a hard requirement for this module.
-
@SGaist So that's the problem, thanks a lot. To solve this, I have to re-transplant Qt with elgfs platform, right?
But the transparent thing I talked about, the code I used is pure C++, no qml at all. It still has something to do with elgfs platform? -
Recompile ? Yes
So transparency on a pure QWidget project ?
-
Thanks.
Yes, no QtQuick involved, just QWidget. -
Check that thread it might help
-
@SGaist Thanks. I'll give it a look.