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. [SOLVED]Qt C++ App and embedded Python
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Qt C++ App and embedded Python

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.5k 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.
  • J Offline
    J Offline
    Jake007
    wrote on last edited by
    #1

    Hi!

    I'm embedding Python in my application, but I stumbled upon a problem.
    slots is a reserved keyword by Qt.
    But it's also used in one of the Python header files (object.h, line 433).

    @typedef struct{
    const char* name;
    int basicsize;
    int itemsize;
    int flags;
    PyType_Slot slots; / terminated by slot==0. */
    } PyType_Spec;@

    How can I get through this problem?
    Seconds thing that I don't really get, is why is #define slots without value?

    Thanks in advance.

    Regards,
    Jake

    EDIT:
    If it matters:
    VS 2012 IDE.
    MSVC 2010 compiler (I'm stuck with it because of some libraries).
    Qt 5.1 for MSVC 2010 OpenGL version (provided ad qt-project downloads area)
    Win 8 x64 OS


    Code is poetry

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

      Hi,

      Have a look at "this":http://qt-project.org/doc/qt-4.8/signalsandslots.html#using-qt-with-3rd-party-signals-and-slots

      Because it's one of the keywords used by moc to generate the magic that's behind Qt

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

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jake007
        wrote on last edited by
        #3

        Thanks!
        I missed that.
        Do you maybe know where this can be configured in VS?


        Code is poetry

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

          Sorry I don't...

          I have essentially used QtCreator has an IDE for Qt on windows.

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

          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