Skip to content

Special Interest Groups

Forums connected to various groups live here
2.0k Topics 12.6k Posts

Subcategories


  • QtonPi
    405 Topics
    2k Posts
    N

    Found it. For future viewers, on Debian-based systems the package one needs to install is waylandpp-dev. This will install all dev dependencies for Wayland.

  • Qt Contribution
    84 Topics
    518 Posts
    PerdrixP

    It is all working now - I had to do some finagling using git remote to correct the entries for gerrit to use my userid rather than the email.

  • Qt Medical

    13 Topics
    39 Posts
    aha_1980A

    @Pinho Yes that sounds reasonable to me.

  • Qt on BlackBerry and QNX
    103 Topics
    587 Posts
    cristian-adamC

    See https://www.reddit.com/r/QNX/comments/1gl76uy/qnx_everywhere_the_latest_qnx_is_free_now/

  • The forum for all discussions in C++ land.
    1k Topics
    9k Posts
    S

    @Redman said in reinterpret_cast for received tcp packets:

    01:00:00:00:01:00:01:00:00:00:01:00:00:00:00:00:00:00:01:00:00:00

    This is what you'd expect for a packed struct (as you have figures out). It worked before because both sides were using C++ and so both sides were not using packed structs (so much about the "well defined protocol").

    In order to not have that problem @J-Hilk is right to write a constructor expecting a QByteArray. For sending you should also pack the members into a QByteArray yourself. This also makes you immune to the order of the members (which is only guaranteed by a very, very recent C++ standard). It is also common practice to order members from biggest to smallest, so you can adhere to alignment rules and still get the most compact representation. This would also solve your problem (on the C++ side; I don't know Python) that you don't have to explicitly pack the struct.

  • A forum for independent Developers and freelancers
    79 Topics
    622 Posts
    JonBJ

    @Sachin-Bhatt
    It's not a problem, you can ask whatever you wish. And sometimes you will get answers if it's not Qt. Just (a) you didn't get any! and (b) I think your question is so specific/detailed that you need/might be better in a specialist, dedicated forum for this one.

  • 2 Topics
    3 Posts
    N

    @ClaraMarieLueders I think you should describe it more specifically