Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can't compile with plugin I created
Qt 6.11 is out! See what's new in the release blog

Can't compile with plugin I created

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 328 Views
  • 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.
  • K Offline
    K Offline
    KbTeam
    wrote on last edited by
    #1

    Hello,

    I followed the instructions to build the WorldTimeClock Plugin (https://doc.qt.io/qt-6/qtdesigner-worldtimeclockplugin-example.html) to have that Element available in my Toolbox afterwards. So far this works and in my main project I can see and drag&drop it onto the GUI. But when compiling I get an error that "worldtimeclock.h" does not exist:

    Kompilerfehler 2023-01-04.PNG

    I made a simple sample to demonstrate the problem here, you can download the zip file: https://daten.xyz/f/fbe25dcd55014ad18324/

    What is it that I am missing?

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Your project is missing worldtimeclock.cpp and worldtimeclock.h

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • K Offline
        K Offline
        KbTeam
        wrote on last edited by
        #3

        but why do I need to put them in when I compiled the plugin with Export and can clearly see and use the plugin out of the Widgets toolbox?

        1 Reply Last reply
        0
        • Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Just because you create a plugin for the Qt Designer / QtCreator doesn't mean you need the sources (or the library) with the plugins widget.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          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