Skip to content
  • Importing Multiple QML Files into main.qml

    Solved QML and Qt Quick qml qt6.4.1 multi-screen
    7
    0 Votes
    7 Posts
    2k Views
    J
    @jweb1 Resolved! Note: it was a resources folder problem. Thanks all
  • 0 Votes
    1 Posts
    222 Views
    No one has replied
  • How to disable mouse events for LineSeries?

    Unsolved QML and Qt Quick qt6.5 qml qcharts chartview
    1
    0 Votes
    1 Posts
    258 Views
    No one has replied
  • qml app crashed with opengl

    Unsolved QML and Qt Quick qml opengl windows 10
    1
    0 Votes
    1 Posts
    268 Views
    No one has replied
  • Fully offscreen QML rendering

    Unsolved Mobile and Embedded qml eglfs dummy offscreen
    4
    0 Votes
    4 Posts
    925 Views
    S
    @skinkie said in Fully offscreen QML rendering: Is it possible (like with a raspberry pi) to specify in the Linux cmdline directly that a certain HDMI-output must be always available, even when no screen is connected, to prevent the "No screens available" errors. Something like a non-hardware based dummy output would do too. I can answer the first question. You can specify video=HDMI-A-1:1280x720-24@50D to force the digital output on (notice the D in the end, e will work too). My current system makes that interlaced output, so it has some particularities. If you want interlacing in Qt, on EGLFS that would still need this bug+patch to be applied. Sadly... For question two. Still stumbling.
  • 0 Votes
    8 Posts
    2k Views
    JoeCFDJ
    @Tiny-Leaf Try the following code. The length of three segments should be same. drawLine(ctx, 50, 50, 150, 50); drawLine(ctx, 150, 50, 50, 50); drawLine(ctx, 150, 100, 50, 100); function drawLine(ctx, x1, y1, x2, y2) { ctx.beginPath() ctx.moveTo(x1, y1) ctx.lineTo(x2, y2) ctx.stroke() } BTW: you may somehow avoid to draw a line twice if possible. It is not efficient.
  • How to use KeyboardStyle with InputPanel.

    Unsolved QML and Qt Quick qml virtualkeyboard
    1
    0 Votes
    1 Posts
    210 Views
    No one has replied
  • 0 Votes
    1 Posts
    230 Views
    No one has replied
  • Memory leak in QML example project

    Unsolved QML and Qt Quick qml valgrind memory leak c++ qml qt5.12.x
    6
    0 Votes
    6 Posts
    2k Views
    JonBJ
    @vicky_mac said in Memory leak in QML example project: Is there anyway we can prevent that? No, as already replied in your other thread asking exactly the same, which you have not referenced from this topic. But you can keep asking the same. Or, you can look through the source code, find the exact point of the leak you claim, and fix it. Apologies, that was https://forum.qt.io/topic/152049/stackview-is-cause-of-memory-leak, you do not seem to be the same author, though they look similar. I also notice you are using Qt 5.12. Qt Company is not going to be addressing anything in that version.
  • 0 Votes
    1 Posts
    377 Views
    No one has replied
  • 0 Votes
    8 Posts
    2k Views
    SGaistS
    One possible alternative could be to use a Docker container to build your application with a suitably old Ubuntu or maybe a VM which would be even simpler,
  • 0 Votes
    1 Posts
    175 Views
    No one has replied
  • 0 Votes
    5 Posts
    980 Views
    D
    Problem solved. The issue was the default seat inside of the compositor was unset. Means the keymap attributes were emtpy. I have set it manually and now it works. [image: 17695744-788a-46e5-928e-d342b7238507.jpeg]
  • Qml application closing issue

    Unsolved QML and Qt Quick qt 5.4 qml c++
    3
    0 Votes
    3 Posts
    749 Views
    dheerendraD
    As suggested by @JKSH Simple sample code to handled the same Window { width: 640 height: 480 visible: true title: qsTr("Hello World") Rectangle{ anchors.fill : parent color: "blue" radius : test.val1 } onClosing : { console.log("Window is closed") } }
  • Play Video using Gstreamer and QML

    Unsolved QML and Qt Quick qt5.13.2 qml quick2 gstreamer1.0 video output
    3
    0 Votes
    3 Posts
    772 Views
    JoeCFDJ
    @vicky_mac The old gstreamer versions have memory leaks. Which gstreamer version are you using? Try to upgrade to the latest gstreamer. Your Qt is old as well. Upgrade your Qt to at least 5.15.2.
  • Module URI different than folder structure in cmake

    Unsolved General and Desktop cmake qml qt6 modules
    1
    0 Votes
    1 Posts
    310 Views
    No one has replied
  • 0 Votes
    3 Posts
    1k Views
    B
    @JKSH Seems you were correct : QML debugging is enabled. Only use this in a safe environment. Info: Starting QML Puppet ((null):0, (null)) Info: Could not load the Qt platform plugin "xcb" in "" even though it was found. ((null):0, (null)) Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: wayland, offscreen, minimal, wayland-egl, xcb, linuxfb, minimalegl, vnc, vkkhrdisplay, eglfs. ((null):0, (null)) ldd returns : linux-vdso.so.1 (0x00007ffed5dfb000) libQt6XcbQpa.so.6 => /home/user/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/plugins/platforms/./../../lib/libQt6XcbQpa.so.6 (0x00007f3bda977000) libxkbcommon-x11.so.0 => /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 (0x00007f3bda955000) libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f3bda90f000) libxcb-cursor.so.0 => not found libxcb-icccm.so.4 => /lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007f3bda908000) libxcb-image.so.0 => /lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007f3bda900000) libxcb-keysyms.so.1 => /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x00007f3bda8fb000) libxcb-randr.so.0 => /lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007f3bda8e9000) libxcb-render-util.so.0 => /lib/x86_64-linux-gnu/libxcb-render-util.so.0 (0x00007f3bda8e2000) libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f3bda8dd000) libxcb-sync.so.1 => /lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f3bda8d4000) libxcb-xfixes.so.0 => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007f3bda8c9000) libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f3bda8bb000) libxcb-shape.so.0 => /lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007f3bda8b6000) libxcb-xkb.so.1 => /lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007f3bda898000) libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f3bda86e000) libQt6OpenGL.so.6 => /home/user/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/plugins/platforms/./../../lib/libQt6OpenGL.so.6 (0x00007f3bda7cc000) libQt6Gui.so.6 => /home/user/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/plugins/platforms/./../../lib/libQt6Gui.so.6 (0x00007f3bd9e00000) libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f3bd9d79000) libQt6Core.so.6 => /home/user/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/plugins/platforms/./../../lib/libQt6Core.so.6 (0x00007f3bd9600000) libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f3bda7c5000) libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f3bd94c2000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3bd9d72000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3bd9d6d000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f3bd9200000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3bd9117000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f3bd9d49000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3bd8e00000) libxcb-cursor.so.0 => not found libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f3bd8cb9000) libgthread-2.0.so.0 => /lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f3bd9d42000) libxcb-util.so.1 => /lib/x86_64-linux-gnu/libxcb-util.so.1 (0x00007f3bd9d39000) libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f3bd9d33000) libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f3bd9d29000) libEGL.so.1 => /lib/x86_64-linux-gnu/libEGL.so.1 (0x00007f3bd9d16000) libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f3bd9cc8000) libQt6DBus.so.6 => /home/user/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/plugins/platforms/./../../lib/libQt6DBus.so.6 (0x00007f3bd9051000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f3bd9caa000) libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f3bd8bef000) libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f3bd8b37000) libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f3bd9490000) libicui18n.so.56 => /home/user/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/plugins/platforms/./../../lib/libicui18n.so.56 (0x00007f3bd8600000) libicuuc.so.56 => /home/user/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/plugins/platforms/./../../lib/libicuuc.so.56 (0x00007f3bd8200000) libicudata.so.56 => /home/user/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/plugins/platforms/./../../lib/libicudata.so.56 (0x00007f3bd6800000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f3bd9ca1000) /lib64/ld-linux-x86-64.so.2 (0x00007f3bdaa32000) libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007f3bd8a9d000) libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f3bd9c8c000) libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f3bd9026000) libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f3bd67b2000) libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f3bd85c8000) libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f3bd9483000) libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f3bd9476000) libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f3bd66e2000) libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f3bd66bf000) libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f3bd901a000) libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f3bd6577000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f3bd6545000) libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f3bd6491000) liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f3bd646e000) libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f3bd6448000) I installed libxcb-cursor and the problem is solved, thanks a lot !