kandi X-RAY | fastblur Summary
kandi X-RAY | fastblur Summary
fastblur
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fastblur
fastblur Key Features
fastblur Examples and Code Snippets
Community Discussions
Trending Discussions on fastblur
QUESTION
I'm current learning Qt Quick and qml (super intuitive) as an alternative to electron, but lately I started to get visual artifacts on MacOs but running perfectly fine on Windows, so I would like to know if I'm doing something wrong.
These are my specs:
MacBook Pro 13 2019 15
Catalina 10.15.4
8GB ram
Intel Iris Plus Graphics 645
Here are some photos of the problem:
image of it looks before closing the menu or resizing vertically the application
window with visual artifacts
window resized vertically
Here is my Qml code, as for C++ is pretty much the initial code for when creating a project.
...ANSWER
Answered 2020-May-24 at 06:13Things to be considered while using graphical effects. Effects have to be applied only to the required item or as a layer. In your case of DropShadow and Blur recursively applied since it's been used inside the item that intends to get effects.
Change the drop shadow & blur item's as below way. This resolves the issue. I have checked with QtQuick2.9 & Ubuntu OS
QUESTION
My QML application with PySide2 giving warnings at runtime
QQmlExpression: Expression file:///E:/kingpin/qml/main.qml:68:17 depends on non-NOTIFYable properties: controller::project_proxy_list_model
Proxy model update with onTextChanged event, so how can i manage notify signal for proxy model ?
app.py
...ANSWER
Answered 2020-Mar-29 at 17:55As I pointed out in the comments I do not get the warning message, also that the code is valid so I can presume that it is an old bug.
But also as the OP points out there is another problem: every time a search is made, new elements are added to the model and that is caused because every time it is filtered, the "project_proxy_list_model" qproperty must be obtained, therefore this function is invoked , and in the logic of the OP is that 4 new items are loaded, which is wrong, the logic is to return the model and not use another method.
QUESTION
I have this code, qml
...ANSWER
Answered 2020-Mar-11 at 11:40I'm updating this answer as the question has been partially cleared in the comments, but I will leave the original answer at the end, as it might still be useful.
Besides that, the concept at the base remains the same: a graphics effect is applied to an object, and it modifies that object look, not how underlying objects appear. If you want to apply that effect to multiple objects, they have to be children of a common parent, and the effect has to be set for that parent, but everything that is below that parent (and it's not its child) will only be partially affected by the result of the effect.
Imagine a blur effect as a filter applied to a real life photograph that is partially transparent: while the image in the photograph is blurred, what you can see behind it will not be blurred.
QGraphicsEffects don't provide the ability to limit the extent of their processing, as they usually modify the whole "bounding rect" of the object they are set for.
In order to achieve that, subclassing is necessary and the draw()
method has to be overridden, as it is the one responsible for the actual drawing.
I'm going to presume that the whole interface is going to be affected by the effect in some way: even if some objects are "outside" the rectangle of the effect, they are still part of the same parent, so this is what we're going to do:
- create a main widget that acts as container for the full interface
- add a main layout for the main interface (the one normally shown)
- create a sub widget that contains the main interface, set a layout for it and add anything you need to that layout
- set the subclassed graphics effect to the sub widget
- create a widget for the menu, that has the main widget as parent, so it will not be part of the main layout; it will have its own layout with its buttons, labels, etc.
- add a system that changes the graphics effect according to the geometry of the menu, and whenever that changes, the effect will be applied to that geometry only
QUESTION
I would like to get a semi-transparent blurred window in QML on Windows 10 similar to the Fluent Design guidelines (example). I know you can make a transparent window:
...ANSWER
Answered 2019-Aug-25 at 09:40QUESTION
Context: If you google for Hidden/Fatblur, you'll find multiple urls where this shader is available, i won't post any link here because i don't know where the original is located. It's basically a shader for blurring that should be optimized for mobile devices.
Problem: If you used this shader in the past and just updated your Unity version to 2018+, the shader stops working.
What i tried: I messed up the shader in the Editor... hear the god news, was able to get the same symptoms. So I know the issue is in the way this shader is compiled on my iOS device. No shader errors though during the unity ->x Code project compilation.
Question: How do I fix the shader such that it works again?
Here is the shader code that is not working:
...ANSWER
Answered 2019-Mar-03 at 14:20The answer is to unroll the for loops:
There are 2 loops (one of size 3
, and one of size 7
)
Just unroll them manually, replacing [l]
with [0]
etc.
The shader now gets properly compiled and you get the desired results again on your iOS device!
Here is the modified shader code such that it works:
QUESTION
Is there a way in QML to render the output of an effect(eg. Fastblur) to an external image? I would like to use this in conjunction with a videooutput for a something like real-time snapchat filters.
In my app, the camera feeds the videooutput which feeds the effect output but there doesn't seem to be an API for rendering the effect to an image. The imageCapture camera component only captures the frame from directly from the camera before the effect is applied. There's no method in the effect component to render it to an external image.
Is there a way to do this?
...ANSWER
Answered 2018-Dec-14 at 23:23There is a grabToImage()
method that's available for every QML visual item, and it works for QtGraphicalEffects
as well.
It is not very efficient tho, but in most cases it will suffice. Note that it will save individual images tho, it is not usable for video, and while Qt itself can internally encode video, it doesn't really offer anything in terms of video encoding of individual frames as a public API, so if you want to save the effect output as a video, you will have to dig in deeper into the scene-graph to implement a more efficient method for frame capturing, and utilize some 3rd party library to encode the frames to video.
QUESTION
I have an QT5/QML quarter-circle arc that I want to add a glow effect to. The issue is I want the arc to have a gradient, and for the glow to match the color of the arc that it's closest to.
...ANSWER
Answered 2017-Oct-26 at 08:00I don't know what your problem is with the FastBlur
- for me it works, but has too weak an effect.
QUESTION
I have a SwipeView with a background image. It has two pages, both pages have a set of controls and text, and I've put an iOS-like blurred rounded rectangle underneath them so that it's easier to read but doesn't completely block out the nice background
I found this snippet at the end of this thread that led me to use a white rectangle combined with a semi translucent FastBlur that sampled the background: https://forum.qt.io/topic/38297/a-semi-transparent-rectangle-that-also-blurs/7
...ANSWER
Answered 2017-Jun-09 at 20:58Instead of doing it with swipeView.width
increments, you could use the x
position of your parent page in the SwipeView
:
QUESTION
I want whole screen must be blured beside centre. How can I make it?
...ANSWER
Answered 2017-Mar-03 at 13:51import QtQuick 2.5
import QtQuick.Window 2.2
import QtGraphicalEffects 1.0
Window
{
visible: true
width: 640
height: 480
title: qsTr("Hello World")
Image
{
id:img
source:"qrc:/Tulips.jpg"
anchors.fill: parent
visible: false
}
FastBlur
{
anchors.fill: parent
source: img
radius: 100
}
Rectangle
{
id:rect
height: 250
width: 250
anchors.centerIn: parent
color:"red"
}
}
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fastblur
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page