Skip to content

Qt Development

Everything development. From desktop and mobile to cloud. Games, tools, 3rd party libraries. Everything.
144.3k Topics 721.5k Posts

Subcategories


  • This is where all the desktop OS and general Qt questions belong.
    83k 456k
    83k Topics
    456k Posts
    SGaistS
    Hi, In addition to the questions of my fellows, one thing to consider for the tests is to write the file to a known read/write path rather than relying on system defaults.
  • The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
    14k 62k
    14k Topics
    62k 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.
  • Looking for The Bling Thing(tm)? Post here!
    20k 77k
    20k Topics
    77k Posts
    msauer751M
    Hi, I my C++ / QML project I want to add a ChartView LineSeries with with data from my QAbstractTableModel class. I can view this data in a QML TableView object. How can I present this data in a line chart? Thank you for your help. BR martin
  • Have a question about Qt Creator, our cross-platform IDE, or any of the other tools? Ask here!
    8k 35k
    8k Topics
    35k Posts
    SMF-QtS
    @SMF-Qt Ok thanks for the suggestions I now have a working X86_64 emulator and an X86_64 apk build that deploys to the emulated phone. My next problem is that the deployed app crashes on startup, but to investigate that I think I will start a new thread and come back to the arm64-v8a problems when my test application is more usable. ... Installing Android package to device. Running command "/opt/android/sdk/platform-tools/adb -s emulator-5554 install -r /work/Qt-Android/QtTest/application/build/Android_Qt_6_9_1_qt_androidX86_Clang_x86_64-Debug/android-build//build/outputs/apk/debug/android-build-debug.apk" Performing Streamed Install Success Android package built successfully in 0.572 ms. -- It can now be run from the selected device/emulator. -- File: /work/Qt-Android/QtTest/application/build/Android_Qt_6_9_1_qt_androidX86_Clang_x86_64-Debug/android-build//build/outputs/apk/debug/android-build-debug.apk 14:18:06: The process "/opt/qt6/bin/androiddeployqt" exited normally. 14:18:06: Package deploy: Running command "/opt/android/sdk/platform-tools/adb -s emulator-5554 pull /system/bin/app_process64 /work/Qt-Android/QtTest/application/build/Android_Qt_6_9_1_qt_androidX86_Clang_x86_64-Debug/android-app-process/app_process". 14:18:06: Package deploy: Running command "/opt/android/sdk/platform-tools/adb -s emulator-5554 pull /system/bin/linker64 /work/Qt-Android/QtTest/application/build/Android_Qt_6_9_1_qt_androidX86_Clang_x86_64-Debug/android-app-process/linker64". 14:18:06: Package deploy: Running command "/opt/android/sdk/platform-tools/adb -s emulator-5554 pull /system/lib64/libc.so /work/Qt-Android/QtTest/application/build/Android_Qt_6_9_1_qt_androidX86_Clang_x86_64-Debug/android-app-process/libc.so". 14:18:06: Elapsed time: 00:05.
  • Your Qt just doesn't want to build? Your compiler can't find the libs? Here's where you find comfort and understanding. And help.
    10k 51k
    10k Topics
    51k Posts
    Christian EhrlicherC
    Please write in english or use the appropriate subforum.
  • What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
    871 4k
    871 Topics
    4k Posts
    8Observer88
    Transformed triangle in OpenGL 3.3 and Qt 6.9 Video: https://www.youtube.com/watch?v=AGHZsOrazEU Source: https://github.com/8Observer8/basics-of-opengl33-and-qt6 [image: 32a44a09-d509-44f9-8c89-6c481c990a91.png]
  • Questions about Qt WebKit and related topics? Post here!
    2k 6k
    2k Topics
    6k Posts
    JonBJ
    @Vbrg So in a word Qt only offers integrated browser with chromium/Qt web engine.
  • Discussions and questions on QtWebEngine
    1k 4k
    1k Topics
    4k Posts
    PerdrixP
    js: A parser-blocking, cross site (i.e. different eTLD+1) script, http://www.google-analytics.com/ga.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details. js: A parser-blocking, cross site (i.e. different eTLD+1) script, http://www.google-analytics.com/ga.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details. It is possible that the application I am using the uses WebEngine is responsible, but I suspect it's the Chromium code that's doing this.
  • You're using Qt with other languages than C++, eh? Post here!
    865 3k
    865 Topics
    3k Posts
    PedromixP
    Brand new release QtJambi 6.9.1 is out now🥂. Create sophisticated Java apps for Desktop and Mobile or refactor your legacy code using Qt as UI framework! https://www.qtjambi.io [image: cb78556c-b761-467b-b005-119e3643175c.png]
  • Combining Qt with 3rd party libraries or components? Ask here!
    1k 6k
    1k Topics
    6k Posts
    Axel SpoerlA
    @Dream_Helium said in Using Qt Program as a Module, but constantly get critical message: using GModule to load a Qt module just that thought scares me! Which Qt module are you loading and why with GModule? What is the expected result? g_main_context_pop_thread_default: assertion 'stack != NULL' failed As rightfully said: That error message comes from glib, not from Qt. Maybe consult the gtk forum.
  • For discussion and questions about Qt for Python (PySide & Shiboken)

    3k 15k
    3k Topics
    15k Posts
    P
    @jsulm Probably Project screenshot will also be helpful [image: a61b54a7-05a5-43fb-90bc-4f777306a77f.png]
  • Specific issues when using Qt for WebAssembly

    455 2k
    455 Topics
    2k Posts
    D
    OK I just thought it was deprecated because starting my Qt Widgets-based application gives me the following errors: FATAL [0] - Cannot create window: no screens available Uncaught RuntimeError: Aborted(native code called abort()) at abort (custoservicecenter.js:844:41) at __abort_js (custoservicecenter.js:6355:3) at custoservicecenter.wasm.abort (custoservicecenter.wasm:0x3f81359) at custoservicecenter.wasm.qAbort() (http://localhost:6931/custoservicecenter.wasm) at invoke_v (custoservicecenter.js:15156:29) at custoservicecenter.wasm.qt_message(QtMsgType, QMessageLogContext const&, char const*, void*) (http://localhost:6931/custoservicecenter.wasm) at invoke_viiii (custoservicecenter.js:15011:29) at custoservicecenter.wasm.QMessageLogger::fatal(char const*, ...) const (http://localhost:6931/custoservicecenter.wasm) at custoservicecenter.wasm.QWindowPrivate::init(QWindow*, QScreen*) (http://localhost:6931/custoservicecenter.wasm) at custoservicecenter.wasm.QWindow::QWindow(QWindowPrivate&, QWindow*) (http://localhost:6931/custoservicecenter.wasm)
  • Discussions and questions about Qt Quick Ultralite and using Qt on microcontrollers in general

    142 445
    142 Topics
    445 Posts
    jsulmJ
    @Vishal-Biradar said in Code is getting reset.: But after certain period code is resting means display is getting off again restart Do you mean your app is crashing? The OS is restarting? Please say exactly what happens. Regarding your code: using an endless loop in an event driven application is a no-go...
  • The forum for discussing the Qt Digital Advertising Platform

    17 41
    17 Topics
    41 Posts
    E
    @nayka Can I use QtDigitalAdvertising on PC applications? Or is it only allowed for use on Android or iOS mobile devices?
  • For discussion and questions about Qt Insight

    10 19
    10 Topics
    19 Posts
    jsulmJ
    @Alejandro_qt_ Here is an example how to build qtbase module: https://stackoverflow.com/questions/50022325/building-qt-module-from-source