Scanlines effects on background
-
It's possible to make this effect (scanlines) using Gradients? Which other alternatives do I have?
-
Oh Thanks, I'll try it. I didn't find it in the documentation.
-
Sure, just set up one dark and one lit up line and then useQGradient::RepeatSpread
to fill the outsideEDIT: Sorry, I just noticed you want it in QML and my answer is for Qt Widgets
@VRonin No problem. I'll wait for another answer. Thanks!
-
@VRonin No problem. I'll wait for another answer. Thanks!
hi
@efdiloreto said in Scanlines effects on background:
Which other alternatives do I have?
It is possible to use @VRonin s solution
create any visual Widget and subclass QQuickPaintedItem to expose it to QML
https://doc.qt.io/qt-5/qtqml-tutorials-extending-qml-example.html -
Thanks all for the responses. I found this awesome project which have the effects that I want. I will study it.
-
That's a good resource. You'll need shaders to achieve that effect.