Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

QtQuick 2 application crashes when window too small for graphical effects elements

$
0
0
Hi, If I use graphical effects on Windows 7 (seems to work fine in Linux and OS X) and I resize the window so that the elements with graphical effects applied, then the application crashes and the following is written to the console: Invalid parameter passed to C runtime function. ASSERT: “!m_targetRect.isEmpty()” in file scenegraph\qsgdefaultimagenode.cpp, line 392 I assume this happens because the shaders that create the effects look up the size and the size must not be zero, but since the window is too small to fit the elements, it is zero and the assertion fails. Does anyone know how too solve this? One thing I tried that works is to detect when the element becomes too small and then to manually destroy the graphical effects elements and then recreate them when the element becomes large enough again, but this is really ugly and means I have to continuously monitor the elements size. Any help greatly appreciated.

Viewing all articles
Browse latest Browse all 13965

Trending Articles