Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How can I detect if qml is run in Designer mode within Qt Creator?

How can I detect if qml is run in Designer mode within Qt Creator?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 362 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    delight
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    1

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved