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

Qt *.ui files designer does not show resources of sibling subprojects.

    XMLWordPrintable

Details

    • Linux/Other display system, Windows
    • 736eef24ca9263339f4c576cba5d4b20fe188045 (qt-creator/qt-creator/4.10)

    Description

      Qt *.ui files designer does not show resources of sibling subprojects.

      The example of a project structure:

      For example when I open MainWindow.ui in User Interface designer, the "Select Resource" dialog does not have assess to the resources of sibling subproject Sub2.pro

      And all icons of buttons and actions which uses resources located in siblings projects are empty.

      But I can add icon in source code:

      #include "MainWindow.h"
      #include "ui_MainWindow.h"
      
      MainWindow::MainWindow(QWidget *parent)
          : QMainWindow(parent)
          , ui(new Ui::MainWindow)
      {
          ui->setupUi(this);
          ui->toolButton_2->setIcon(QIcon(":/icons/Add.svg"));
      }
      
      MainWindow::~MainWindow()
      {
          delete ui;
      }
      

      The bug appeared after update from 4.9.2 to 4.10.0

      Attachments

        1. MainPro.zip
          5 kB
        2. ExampleProjectStructure.png
          ExampleProjectStructure.png
          28 kB
        3. bug2.png
          bug2.png
          147 kB
        4. bug.jpg
          bug.jpg
          90 kB

        Activity

          People

            kandeler Christian Kandeler
            tetsuzin72 Pavel Efimov
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: