Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to detect QML design mode in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

How to detect QML design mode in Qt Creator

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 1 Posters 1.1k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    miskol
    wrote on last edited by
    #1

    I want to use some design(test) data for my UI
    is it possible to detect Qt Creator from javascript somehow?
    Or how we can test UI design with some design data in Qt Creator design mode ?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      miskol
      wrote on last edited by
      #2

      I get this answer somewhere else

      Thomas Hartmann says:
      December 10, 2014 at 15:36
      If you need complex backend data or models, then you can do what is described here: http://blog.qt.digia.com/blog/2011/07/28/mockup-data-for-the-qml-designer/

      But with Qt Creator 3.3 we introduced a new ui.qml file format. In this case your code is split into full QML and a subset (in the .ui.qml file) for the designer. Then you can define any values and even models in the .ui.qml file and overwrite those in the qml file that contains the implementation.
      See: http://doc-snapshot.qt-project.org/qtcreator-3.3/creator-quick-ui-forms.html

      1 Reply Last reply
      0

      • Login

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