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. Auto generated qml file only opens in designer, warning if i try it to open in editor.
Forum Updated to NodeBB v4.3 + New Features

Auto generated qml file only opens in designer, warning if i try it to open in editor.

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.2k Views 2 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.
  • F Offline
    F Offline
    Frime
    wrote on last edited by
    #1

    Hi together,

    I just downloaded a new QtCreator version and if I setup a new QtQuick project, QtCreator creates a nice project tree with a main.qml and MainForm.ui.qml. So far so good.
    But hey, just wait.. .ui.qml? What in the hell.. This is something new. And this file seems only editable via the designer. There is a warning if I try to edit it manually.

    I didn't find any configuration file, any macro, something what says that QtCreator should open this only in edit mode. Renaming the file doesn't had any influence.. So my question:

    Where is the information, that QtCreator should open this file only in designer?
    Any ideas?

    Thanks in advance!
    Frime

    p3c0P 1 Reply Last reply
    0
    • F Frime

      Hi together,

      I just downloaded a new QtCreator version and if I setup a new QtQuick project, QtCreator creates a nice project tree with a main.qml and MainForm.ui.qml. So far so good.
      But hey, just wait.. .ui.qml? What in the hell.. This is something new. And this file seems only editable via the designer. There is a warning if I try to edit it manually.

      I didn't find any configuration file, any macro, something what says that QtCreator should open this only in edit mode. Renaming the file doesn't had any influence.. So my question:

      Where is the information, that QtCreator should open this file only in designer?
      Any ideas?

      Thanks in advance!
      Frime

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @Frime Yes it is a new feature. AFAIR it was included in QtCreator >= 3.2. ui.qml files are called Qt Quick UI Forms and any file with that suffix will open in the designer. To avoid it just remove .ui from the file name. To disable the designer itself completely goto
      Help > Qt Quick > About Plugins > QmlDesigner > uncheck it then restart.

      157

      1 Reply Last reply
      1
      • F Offline
        F Offline
        Frime
        wrote on last edited by
        #3

        Aaaaah okay, thank you very much! I just tried renaming the file, but it still opens in designer. After reading your answer, I restarted QtCreator and voilĂ , problem solved. Seems that QtCreator didn't realized the renaming...

        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