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 8169115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:45:00+00:00 2026-06-06T20:45:00+00:00

I am currently working on a small C++ Qt 4.8 (and 5.0 when it

  • 0

I am currently working on a small C++ Qt 4.8 (and 5.0 when it will be released) scientific application, and I would like to know if it is possible to embed Python+Numpy+Maptplotlib (and to have a portable app even for people without Python installed) in a C++ Qt application in order to make beautiful plots inside my application ?

Is there any tutorial / example available of a such thing ?

Thank you very much.

P.S. : it is not a problem for me to have to generate temporary files, but it is important that the user doesn’t have to have already python installed.

  • 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-06-06T20:45:02+00:00Added an answer on June 6, 2026 at 8:45 pm

    The common way to deal with Python from C++ is with Boost.Python, but it is possible to get along without it.

    What you need to remember is that the “Python interpreter” consists of two parts: The Python DLL/SO and the Python stdlib, both of which you will need to provide. The only things a Python installation adds is configuration and an executable which is only a thin wrapper around the other three parts.

    Since you don’t have a configuration, once the interpreter is initialized you will need to use PySys_SetPath() to set sys.path to point to the stdlib and any additional packages. From there you can use the rest of the C API to manipulate the interpreter as you would with a native installation.

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

Sidebar

Related Questions

I'm currently working on a small project and would like some help on it.
I am currently working on a small desktop Java application which will track various
I am currently working on a small sponsorship application(PHP/MySql) for my personal blog, and
I am currently working on a small app engine project with python, jquery. I
I am currently working on a project that will act like a Online selling
I am new in android and currently working on small application that works on
I am currently working on a small extension for Chrome. I need same websql
I am currently working on a small ecommerce project. I want to show a
I am currently working on a small personal multiplayer game project. I am using
I'm currently working on a small project to learn Linq where I want to

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.