Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved Must one use QBuffer and memcpy for QSharedMemory?

    General and Desktop
    2
    2
    291
    Loading More Posts
    • 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.
    • S
      summerfang last edited by

      Hello, I am new to IPC. I found that most of the examples for QSharedMemory use QBuffer and memcpy() to read from and write to the QSharedMemory. However, that is very time-consuming if the data is large (e.g. a large image). I would like to ask if there is a way to use the data directly in the QSharedMemory as a variable? Thanks!

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Use memcpy directly on your image data.

        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 Reply Quote 0
        • First post
          Last post