[Solved] Is it possible to achieve some kind of GLOW TEXT in QML?
-
Hi,
While I was watching Oblivion (2013) Movie. I saw this "display ":http://picpaste.com/vlcsnap-2013-09-02-18h05m56s24-qqMT1eIU.png which has kind of glowing Text!
Can we achieve that with QML?
I dnt mean to use photoshop on some image. I want real text to be displayed like that!?Regards,
inblueswithu -
I haven't used it with text. I'm not 100% sure it will work, but I think you can set the source to text.
http://qt-project.org/doc/qt-5.0/qtgraphicaleffects/qml-qtgraphicaleffects1-glow.html
-
Woww... ! <3 u learc83. It did exactly what I needed.
That was fast and perfect.
Do you know which font is that in that picture in the 1st post?
@import QtQuick 2.0
import QtGraphicalEffects 1.0Item {
width: 300
height: 300Rectangle { anchors.fill: parent color: "black" } Text { id: butterfly text: qsTr("Butterfly") font.family: "Century Gothic" font.pointSize: 40 color: "#b2f3ef" visible: false smooth: true anchors.centerIn: parent } Glow { radius: 8 samples: 16 color: "lightblue" source: butterfly anchors.fill: butterfly }
}
@ -
Sorry, not sure about the font. You might want to post the picture on a typography forum.
-
I dnt know why this glow is not applying for a Rectangle element.
Here is the code: http://pastebin.com/PL4dWWdMAny help?
-
yes, I found "this":http://doc-snapshot.qt-project.org/qt5-stable/qtgraphicaleffects/qml-qtgraphicaleffects1-rectangularglow.html for Rectangle glow. But I dnt know why it is making the corners rounded with out my consent. Guess it is due to the default cornerRadius property
[quote author="inblueswithu" date="1378148099"]I dnt know why this glow is not applying for a Rectangle element.
Here is the code: http://pastebin.com/PL4dWWdMAny help?[/quote]