Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7191693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:47:01+00:00 2026-05-28T19:47:01+00:00

As I understand it Qt provides 2 main plugin mechanisms: Plugins that extend Qt

  • 0

As I understand it Qt provides 2 main plugin mechanisms:

  1. Plugins that extend Qt “Qt Extensions”
  2. Plugins that extend applications developed with Qt

I’m interested in developing plugins for my application (2).

I use PySide but can’t find any resources about developing application plugins using PySide/PyQt.

Following the C++ Qt documentation I understand that the application has to use the Q_DECLARE_INTERFACE() macro and the plugins have to use both Q_INTERFACES() and Q_EXPORT_PLUGIN2() macros but I don’t know the code they represent to try and translate it to python. Or is there another way I’ve missed?

Update:

The closest thing to a solution I could find so far is Alex Martelli’s answer to a similar question. Although it looks like it would work I’d rather use an official Qt approach to avoid any cross-platform issues.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T19:47:03+00:00Added an answer on May 28, 2026 at 7:47 pm

    I think Qt’s plugin system is intended to allow people to write C++ plugins compiled as binaries. I don’t even know if it’s theoretically possible to write plugins in Python that will use a C++ binary interface like that.

    If you want to support Python plugins your best bet would be to use one of the many pure python plugin systems out there. I have written a PySide app that uses YAPSY to load plugin scripts. YAPSY is a very simple, compact plugin module. It’s very easy to include directly in your app as it’s a single file, and is BSD licensed so you can use it commercially. Just search for it on Google. I was even able to package my app using py2exe and still retain the ability to import python source file plugins from a plugin directory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just read Factory Method. I understand that it provides a way to delegate
I fully appreciate the atomicity that the Threading.Interlocked class provides; I don't understand, though,
What I have understand about passing arguments to main() from command line is that
A have a problem with PHP application, that I'm working on. Main page which
I understand that some countries have laws regarding website accessibility. In general, what are
I understand the main function of the lock key word from MSDN lock Statement
I understand that there are several ways to blend XNA and WPF within the
I understand that functions can have attributes. So I can do the following: def
The Receptionist Pattern is a design pattern that provides a way to redirect an
I'm developing a PHP framework; it started off as application-specific, however it has moved

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.