Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Linking library1 to library2 prevents library2 from loading into QtDesigner
Qt 6.11 is out! See what's new in the release blog

Linking library1 to library2 prevents library2 from loading into QtDesigner

Scheduled Pinned Locked Moved C++ Gurus
1 Posts 1 Posters 869 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.
  • A Offline
    A Offline
    ASxa86
    wrote on last edited by
    #1

    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
    0

    • Login

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