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. shiboken failing with analog clock QtWidget example

shiboken failing with analog clock QtWidget example

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 4 Posters 1.2k 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.
  • E Offline
    E Offline
    easythrees
    wrote on last edited by
    #1

    I'm using Shiboken on the Analog Clock QtWidget example seen here:

    http://doc.qt.io/qt-5/qtwidgets-widgets-analogclock-example.html

    with a handwritten typesystem xml file:

    ---- SNIP ----
    <?xml version="1.0"?>
    <typesystem package="AnalogClock">
    <load-typesystem name="typesystem_core.xml" generate="no" />
    <load-typesystem name="typesystem_gui.xml" generate="no"/>
    <load-typesystem name="typesystem_templates.xml" generate="no"/>
    </typesystem>
    ---- SNIP ----

    I'm using Shiboken like this:

    shiboken2.exe analogclock.h typesystem_analogclock.xml

    and I'm getting this error:

    qt.shiboken: Can't find typesystem_core.xml, typesystem paths:
    Cannot parse file: typesystem_analogclock.xmlshiboken: Error running ApiExtractor.
    Command line: analogclock.h typesystem_analogclock.xml

    Any ideas how I can fix this?

    JKSHJ 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Can i ask what you are trying ?
      Making a python version of the clock plugin?
      or just try to use the clock in own python app?

      E 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        Can i ask what you are trying ?
        Making a python version of the clock plugin?
        or just try to use the clock in own python app?

        E Offline
        E Offline
        easythrees
        wrote on last edited by
        #3

        @mrjj Hi there, I'm trying to make a Python version of the clock widget to use in another app like Houdini or Maya.

        jsulmJ 1 Reply Last reply
        0
        • E easythrees

          @mrjj Hi there, I'm trying to make a Python version of the clock widget to use in another app like Houdini or Maya.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @easythrees Is your question really related to Qt?
          Would it make more sence to ask Shiboken project?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          E 1 Reply Last reply
          0
          • jsulmJ jsulm

            @easythrees Is your question really related to Qt?
            Would it make more sence to ask Shiboken project?

            E Offline
            E Offline
            easythrees
            wrote on last edited by
            #5

            @jsulm You're probably right. This is all very new to me, I'm still learning. Thank you.

            1 Reply Last reply
            0
            • E easythrees

              I'm using Shiboken on the Analog Clock QtWidget example seen here:

              http://doc.qt.io/qt-5/qtwidgets-widgets-analogclock-example.html

              with a handwritten typesystem xml file:

              ---- SNIP ----
              <?xml version="1.0"?>
              <typesystem package="AnalogClock">
              <load-typesystem name="typesystem_core.xml" generate="no" />
              <load-typesystem name="typesystem_gui.xml" generate="no"/>
              <load-typesystem name="typesystem_templates.xml" generate="no"/>
              </typesystem>
              ---- SNIP ----

              I'm using Shiboken like this:

              shiboken2.exe analogclock.h typesystem_analogclock.xml

              and I'm getting this error:

              qt.shiboken: Can't find typesystem_core.xml, typesystem paths:
              Cannot parse file: typesystem_analogclock.xmlshiboken: Error running ApiExtractor.
              Command line: analogclock.h typesystem_analogclock.xml

              Any ideas how I can fix this?

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by JKSH
              #6

              @easythrees said in shiboken failing with analog clock QtWidget example:

              I'm using Shiboken on the Analog Clock QtWidget example seen here:

              Shiboken is used to generate language bindings. This means it produces a Python library that wraps a C++ library, so that you can write Python code that calls the C++ library.

              Note: A library file is a *.dll, *.so, or *.dylib file.

              The AnalogClock class is not inside a library, so Shiboken won't work on it. You cannot use Shiboken to convert a C++ app into a Python app.

              @jsulm said in shiboken failing with analog clock QtWidget example:

              Would it make more sence to ask Shiboken project?

              Shiboken is part of the official Qt for Python: http://blog.qt.io/blog/2018/05/31/write-python-bindings/

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              jsulmJ 1 Reply Last reply
              2
              • JKSHJ JKSH

                @easythrees said in shiboken failing with analog clock QtWidget example:

                I'm using Shiboken on the Analog Clock QtWidget example seen here:

                Shiboken is used to generate language bindings. This means it produces a Python library that wraps a C++ library, so that you can write Python code that calls the C++ library.

                Note: A library file is a *.dll, *.so, or *.dylib file.

                The AnalogClock class is not inside a library, so Shiboken won't work on it. You cannot use Shiboken to convert a C++ app into a Python app.

                @jsulm said in shiboken failing with analog clock QtWidget example:

                Would it make more sence to ask Shiboken project?

                Shiboken is part of the official Qt for Python: http://blog.qt.io/blog/2018/05/31/write-python-bindings/

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @JKSH said in shiboken failing with analog clock QtWidget example:

                Shiboken is part of the official Qt for Python

                Didn't know that. Thanks for the info!

                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