Skip to content
  • Unexpected output qt c++ function

    Unsolved General and Desktop
    11
    0 Votes
    11 Posts
    536 Views
    JonBJ

    Making the for counter static will definitely make the behaviour go wrong if the function is called more than once. If it is the case that there are "compiler warnings that you eliminate by making i static in your for loop" I too would like to see the original warnings.

    Separately there are incorrect assumptions about what you can afford to do to i in the loop. For example, in a loop which limits it to i < xml_edit.length() one cannot afford to go:

    i++; if (xml_edit[i] != '/')

    and other similar cases.

  • 0 Votes
    3 Posts
    491 Views
    M

    @jsulm Thanks for your suggestion.

    I solved that, as i understand it, the problem is Qt 6.0.

    In Qt setup folder, android architectures(armv7, v8, x86 etc.) are in directory seperately. But Qt Version 5.14.2 merge all android architectures in one folder. Now, i can create common single kit for all android archs.

    And it helped to me: https://stackoverflow.com/questions/67291379/unable-to-create-android-kits-using-qt-creator

    Qt 5.14.2
    Qt Creator 4.11.1
    Android Sdk 26.1.1
    Ndk 21.3.6528147

  • Serial port for Qt 6

    Solved Qt 6
    7
    0 Votes
    7 Posts
    7k Views
    P

    @SGaist Thank you very much, that saved me a lot of disk space!