Skip to content

ask for help #208

Description

@gaosh97

Can I run python file in c++ function with PythonQt, my python file like this
test.txt

Activity

  1. usiems commented on May 6, 2024

    @usiems
    Contributor

    Sorry I didn't answer earlier: You can run a Python file with PythonQt, but you don't need PythonQt for that.
    You can initialize a normal Python interpreter in your code and tell it to compile and execute your code. PythonQt doesn't make it that much easier to do that. What PythonQt is good at is making your own C++ objects available in Python. What it is very good at is making QObjects (the standard interface object of the Qt framework) available in Python.

  2. locked and limited conversation to collaborators on May 7, 2024
  3. converted this issue into a discussion #213 on May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions