Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-14275

generic projects: Resource links are removed from ui file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 3.5.0-beta1
    • Qt Creator 3.2.2
    • Widget Designer
    • None
    • 32bit Linux

    Description

      I use a cmake project created with New File or Project -> Import Project -> Import Existing Project. I can't use CMake plugin directly because we use compile server, and I can't build the project locally, in other words I use QtCreator only as an editor.

      I attached a sample, which demonstrates the issue (validators_test.creator is a project file). When I change ui file in built-in designer plugin all references to resources are removed from the ui.

      You can see it with the diff:

      diff -uNr validators.creator_resources.copy/validators.ui validators.creator_resources/validators.ui
      --- validators.creator_resources.copy/validators.ui     2015-04-14 09:08:26.829761129 +0200
      +++ validators.creator_resources/validators.ui  2015-04-14 09:11:31.722911814 +0200
      @@ -155,7 +155,7 @@
                     </sizepolicy>
                    </property>
                    <property name="pixmap">
      -              <pixmap resource="validators.qrc">:/ledoff.png</pixmap>
      +              <pixmap>:/ledoff.png</pixmap>
                    </property>
                    <property name="alignment">
                     <set>Qt::AlignCenter</set>
      @@ -346,7 +346,7 @@
                     <string/>
                    </property>
                    <property name="pixmap">
      -              <pixmap resource="validators.qrc">:/ledoff.png</pixmap>
      +              <pixmap>:/ledoff.png</pixmap>
                    </property>
                    <property name="alignment">
                     <set>Qt::AlignCenter</set>
      @@ -401,6 +401,13 @@
           </spacer>
          </item>
          <item>
      +    <widget class="QLabel" name="label_9">
      +     <property name="text">
      +      <string>TextLabel</string>
      +     </property>
      +    </widget>
      +   </item>
      +   <item>
           <layout class="QHBoxLayout">
            <property name="spacing">
             <number>6</number>
      @@ -444,9 +451,7 @@
          <header>localeselector.h</header>
         </customwidget>
        </customwidgets>
      - <resources>
      -  <include location="validators.qrc"/>
      - </resources>
      + <resources/>
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dt Daniel Teske
            uvv Vyacheslav Yurkov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes