Transparent effect is not working in Qt5
-
Hi and welcome to devnet,
Which plugin are you using ? And which version of Qt 5 ?
-
@SGaist Thank you very much. Uh, the plugin is tslib? Does that count? And it's Qt5.2.1.
There is another thing though, when it comes to QML, only the QtQuick 1.x can work properly, QtQuick 2.x will only show a black area. Just so you know. I don't know if this is relevant.
Thanks again. -
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.