Skip to content
  • 144k Topics
    721k Posts
    SMF-QtS
    Ref: [https://forum.qt.io/topic/162533/testing-android-apk-with-qtcreator-fails-with-an-error] The Qt Version is 6.9.1 and my test app builds and deploys ok, but when I start the debugger it crashes before reaching my main(): 15:47:41: Checking available ports... 15:47:41: Found 31 free ports. Art: Clearing App Profiles failed. I/.example.QtTes: Late-enabling -Xcheck:jni W/.example.QtTes: Unexpected CPU variant for X86 using defaults: x86_64 D/CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10106; state: ENABLED W/ActivityThread: Application org.qtproject.example.QtTest is waiting for the debugger on port 8100... I/System.out: Sending WAIT chunk Art: Compiled App Profiles. I/System.out: Debugger has connected I/System.out: waiting for debugger to settle... 15:47:42: Debugging ... I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: debugger has settled (1419) V/GraphicsEnvironment: ANGLE Developer option for 'org.qtproject.example.QtTest' set to: 'default' V/GraphicsEnvironment: Neither updatable production driver nor prerelease driver is supported. D/NetworkSecurityConfig: No Network Security Config specified, using platform default D/NetworkSecurityConfig: No Network Security Config specified, using platform default D/libEGL : loaded /vendor/lib64/egl/libEGL_emulation.so D/libEGL : loaded /vendor/lib64/egl/libGLESv1_CM_emulation.so D/libEGL : loaded /vendor/lib64/egl/libGLESv2_emulation.so E/.example.QtTes: No implementation found for boolean org.qtproject.qt.android.QtNative.updateNativeActivity() (tried Java_org_qtproject_qt_android_QtNative_updateNativeActivity and Java_org_qtproject_qt_android_QtNative_updateNativeActivity__) W/.example.QtTes: ClassLoaderContext parent mismatch. (PCL[] | PCL[];PCL[/data/app/~~4kyuH4zPo5erZKIsLXVh1A==/org.qtproject.example.QtTest-VONq6ntAgy2Oe3-2YSpADg==/base.apk368318496:/data/app/~~4kyuH4zPo5erZKIsLXVh1A==/org.qtproject.example.QtTest-VONq6ntAgy2Oe3-2YSpADg==/base.apk!classes2.dex2927964329:/data/app/~~4kyuH4zPo5erZKIsLXVh1A==/org.qtproject.example.QtTest-VONq6ntAgy2Oe3-2YSpADg==/base.apk!classes3.dex*547663153]) I/QtLoader: Sleeping for 3000ms, helping the native debugger to settle. Use the env QT_ANDROID_DEBUGGER_MAIN_THREAD_SLEEP_MS variable to change this value. I/QtCore : Start I/Qt : qt started I/Choreographer: Skipped 234 frames! The application may be doing too much work on its main thread. D/HostConnection: createUnique: call D/HostConnection: HostConnection::get() New Host Connection established 0x78d2b929bd90, tid 11162 D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_vulkan_async_qsri ANDROID_EMU_read_color_buffer_dma GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_1 W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... W/OpenGLRenderer: Failed to initialize 101010-2 format, error = EGL_NOT_INITIALIZED F/OpenGLRenderer: Failed to create context, error = EGL_NOT_INITIALIZED 15:47:47: Debugging of has finished. 15:47:47: Android target "org.qtproject.example.QtTest" died. Qt 6.9.1 was configured as follows: configure -prefix /opt/qt-androidX86/ -qt-host-path /opt/qt6/ -android-abis x86_64 -android-sdk /opt/android/sdk/ -android-ndk /opt/android/sdk/ndk/27.2.12479018 -skip qtwebengine -openssl-linked -- -D OPENSSL_ROOT_DIR="/work/Qt-Android/android_openssl/ssl_3/x86_64" Suggestions welcome.
  • Jobs, project showcases, announcements - anything that isn't directly development
    4k 23k
    4k Topics
    23k Posts
    JKSHJ
    @raulgd It helps to identify the purpose and composition of each channel. This forum is a community forum for Qt users to help each other to use the existing Qt API. Questions are mainly answered by community volunteers in their spare time. The Development mailing list (https://lists.qt-project.org/listinfo/development) is where stakeholders discuss the details of implementing new features in the Qt framework itself (such as Apple Liquid Glass styling). The Support Center (https://account.qt.io/s/support-center) is where commercial license holders can talk to support engineers whose job is to provide technical support for Qt Company customers. getting replies from someone from Qt @jsulm is a community member who is unaffiliated with the Qt Company. Anyway, as for your original question, please see https://forum.qt.io/topic/162394/qt-and-apple-glass-ui-in-macos-26/9 (Tor Arne is an engineer from the Qt Company)
  • Everything related to designing and design tools

    127 382
    127 Topics
    382 Posts
    R
    I see this is an old thread and I see several unresolved threads on this topic. I'm leaving this incase it helps someone else who ends up here. The solution was twofold for me. Go to File > Export Project and select Enable Python Generator. This will create a main.py. Make sure you pip install PySide6-DS Hope this helps someone.
  • Everything related to the QA Tools

    76 212
    76 Topics
    212 Posts
    A
    Hello, we're using the squish teamcity plugin and were wondering whether it was possible to configure the test report a bit more to our liking. We'd like the JUnit XML report and disable the other reports. It seems that in the TC build step it isn't possible to add/override the --reportgen option: [image: 8219c95e-dd8d-4dd6-93e9-72024cd65943.png] What are our options? Cheers, Adam
  • Everything related to learning Qt.

    379 2k
    379 Topics
    2k Posts
    T
    I can't edit my previous message now but I finally managed to run the program. It seems that the file path was too long, and by renaming my project to "Challenge1" (it was previously called "QML-for-Beginners-Challenges-Intro-to-QML"), it worked.
  • 2k Topics
    13k Posts
    SGaistS
    Hi, I think you went the too complicated road: quint16 calculateCrc16Arc(const QByteArray &data) { quint16 crc = 0x0000; const quint16 poly = 0xA001; for (char byte : data) { crc ^= (static_cast<quint8>(byte)); for (int i = 0; i < 8; i++) { crc = (crc & 0x0001) > 0 ? (crc >> 1) ^ poly : (crc >> 1); } } return crc; }
  • 4k Topics
    18k Posts
    P
    bonjour il n'y a pas besoin doc c'est facile a tester désolé en python app = QApplication([]) font = QFont() font.setPixelSize(10) print("font:", font) print(font.pointSize(), "pt", font.pixelSize(), "px") font = QFont() font.setPointSize(18) print("font:", font) print(font.pointSize(), "pt", font.pixelSize(), "px") j'obtiens : font: <PySide6.QtGui.QFont(Noto Sans,-1,10,0,400,0,0,0,0,0,0,0,0,0,0,1) at 0x7f75c5f53040> -1 pt 10 px font: <PySide6.QtGui.QFont(Noto Sans,18,-1,0,400,0,0,0,0,0,0,0,0,0,0,1) at 0x7f75c5f53080> 18 pt -1 px doc (traduite): int QFont::pixelSize() const Returns the pixel size of the font if it was set with setPixelSize(). Returns -1 if the size was set with setPointSize() or setPointSizeF().
  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k 10k
    1k Topics
    10k Posts
    SGaistS
    @RokeJulianLockhart to the best of my knowledge, no. The first release of Discourse was in 2014 and the forum is several years older than that.