Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Pyside2 is missing binding of QSharedMemory. I want to know if there is a good alternative to QSharedMemory? Python3.7.5
Qt 6.11 is out! See what's new in the release blog

Pyside2 is missing binding of QSharedMemory. I want to know if there is a good alternative to QSharedMemory? Python3.7.5

Scheduled Pinned Locked Moved Solved Qt for Python
2 Posts 2 Posters 850 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.
  • I Offline
    I Offline
    ideaplus
    wrote on last edited by ideaplus
    #1

    Pyside2 is missing binding of QSharedMemory. I want to know if there is a good alternative to QSharedMemory? Python3.7.5
    I want to share bytearray between two processes.

    https://github.com/baoboa/pyqt5/blob/master/examples/ipc/sharedmemory/sharedmemory.py

    JonBJ 1 Reply Last reply
    0
    • I ideaplus

      Pyside2 is missing binding of QSharedMemory. I want to know if there is a good alternative to QSharedMemory? Python3.7.5
      I want to share bytearray between two processes.

      https://github.com/baoboa/pyqt5/blob/master/examples/ipc/sharedmemory/sharedmemory.py

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @ideaplus
      I haven't compared what's on offer in QSharedMemory vs in Python libraries, but presumably the easiest way to go is via a Python module. You don't need to use QSharedMemory just because you're using Qt.

      The apparent shame is that what you seem to want is https://docs.python.org/3/library/multiprocessing.shared_memory.html, but that says

      New in version 3.8.

      :( And it seems to be the main new feature of 3.8.

      Can you move to 3.8? In any case have a read around 3.7's https://docs.python.org/3.7/library/multiprocessing.html.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved