Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How can I detect if qml is run in Designer mode within Qt Creator?
delight last edited by
I have a component that is changing the size of its child components when onWidthChanged() gets called. It works great but it should not do that while in Designer mode, only when the app is running.
Is it possible to detect if my component is being shown in the Designer within Qt Creator?
Since animations don't run in the designer I tried setting up a background animation and see if it gets paused but that didn't work. Maybe it can be done using c++ code but I'm a designer and have very limited knowledge of c++ so I would need some help with that.