[Interest] Transparent QML Menu
EXL
exl at bk.ru
Mon May 18 14:18:30 CEST 2015
> color: "#00000000"
This works, but probably not all OS.
*need to check*
I even took it as a bug:
https://github.com/Swordfish90/cool-retro-term/issues/243
On 18.05.2015 17:59, Mark Gaiser wrote:
> Isn't that possible by re-implementing the tooltip using a Window {}
> element and setting flags?
>
> Example:
>
> import QtQuick 2.4
> import QtQuick.Window 2.2
> import QtQuick.Controls 1.3
> Window {
> width: 360
> height: 360
> visible: true
> color: "#00000000"
> flags: Qt.FramelessWindowHint | Qt.WA_TranslucentBackground
> Rectangle {
> width: 100
> height: 100
> color: "red"
> }
> }
> Note: the color: "#00000000" is important!
>
> On Mon, May 18, 2015 at 12:23 PM, deDietrich Gabriel
> <Gabriel.deDietrich at theqtcompany.com
> <mailto:Gabriel.deDietrich at theqtcompany.com>> wrote:
>
> Hi Thomas,
>
>
> This is currently unsupported, unfortunately. If you think it
> should, please open a suggestion on the bug tracker.
>
>
> Best regards,
>
> Dr. Gabriel de Dietrich
> Senior Software Developer
> The Qt Company — www.qt.io <http://www.qt.io>
>
>
>
> ------------------------------------------------------------------------
> *From:*
> interest-bounces+gabriel.dedietrich=theqtcompany.com at qt-project.org <mailto:theqtcompany.com at qt-project.org>
> <interest-bounces+gabriel.dedietrich=theqtcompany.com at qt-project.org
> <mailto:theqtcompany.com at qt-project.org>> on behalf of Thomas
> Sevaldrud <thomas at silentwings.no <mailto:thomas at silentwings.no>>
> *Sent:* Friday, May 15, 2015 12:21 AM
> *To:* Interest at qt-project.org <mailto:Interest at qt-project.org>
> *Subject:* [Interest] Transparent QML Menu
> Hi, I just wondered if it is possible to make a transparent Menu
> in QML? I have set up the background element in the MenuStyle as a
> semi-transparent rectangle, but it appears to be a white rectangle
> behind it that shows through.
>
> Thanks,
> Thomas.
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org <mailto:Interest at qt-project.org>
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150518/4696376c/attachment.html>
More information about the Interest
mailing list