Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Cannot build Custom Widgets for iOS
Forum Updated to NodeBB v4.3 + New Features

Cannot build Custom Widgets for iOS

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 782 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.
  • armixA Offline
    armixA Offline
    armix
    wrote on last edited by armix
    #1

    Because Qt for iOS does not include QtUiPlugin module, so qmake cannot find designer and abort: error: Unknown module(s) in QT: designer

    My Qt version is : 5.10.1

    How can I build my Custom Widgets for iOS app?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Are you trying to create a plugin for Qt Designer ? If not then there's no need for that module at all. Just create your widget with Designer for your application and you can build it for all platforms.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      armixA 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Are you trying to create a plugin for Qt Designer ? If not then there's no need for that module at all. Just create your widget with Designer for your application and you can build it for all platforms.

        armixA Offline
        armixA Offline
        armix
        wrote on last edited by armix
        #3

        @SGaist

        I have solved this problem, thank you anyway.

        The solution is:

        Need to exclude desinger module in .pro file like this:

        win32 | mac {
          QT += desinger
        }
        

        Because the the custom widget plugins are only for desktop version, so the embedded version does not include the designer module.

        Then Qt will not try to find desinger module, and qmake the project will be ok.

        Then replace #include <QtUiPlugin> by #include <QtUiPlugin/QtUiPlugin>, and it works.


        BTW, you guys should point out the changes of header files for different platforms in the documents. Anyway, Qt is the best cross platform solution, thank you guys.

        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