Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Linking library1 to library2 prevents library2 from loading into QtDesigner

    C++ Gurus
    1
    1
    586
    Loading More Posts
    • 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.
    • A
      ASxa86 last edited by

      I have 2 widget libraries. Each library contains about 4 or 5 custom widgets.

      Library1.dll
      Library2.dll

      Individually, these libraries load just fine into QtDesigner and I can use my widgets as expected.

      But, one of my widgets inside Library2.dll requires a widget from Library1.dll. So I add Library1.dll as a dependency.

      Now Library2.dll does not load into QtDesigner. Says it cannot find the procedure point.

      Code example:
      @
      // library2/tableWidget.cpp
      #include <library1/cbWidget.h>

      void tableWidget::addTableRow()
      {
      const auto newRow = this->rowCount();
      this->insertRow(newRow);

       this->setCellWidget(newRow, Column::ComboBox, new cbWidget(this)));
      

      }
      @

      Note: I change nothing in my header files or my custom interface collection files. I just include my dependency and use it in one line of code. Doing so prevent QtDesigner from loading Library2.dll

      Any suggestions?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post