Skip to content
  • 0 Votes
    4 Posts
    262 Views
    Andy314A
    Hi carlinski, I struggle on the same problem. Have you solved it ?
  • help

    Unsolved Mobile and Embedded
    4
    0 Votes
    4 Posts
    54 Views
    Andy314A
    What means responsive in this context ? Besides, you should specify your post title better than only "help".
  • Unable to comment / create bug reports on Jira

    Unsolved General and Desktop
    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • 0 Votes
    1 Posts
    8 Views
    No one has replied
  • Qt Creator can't create new project

    Unsolved Qt Creator and other tools
    3
    0 Votes
    3 Posts
    41 Views
    SGaistS
    Hi and welcome to devnet, Beside the suggestion of @JonB, another thing you can try is to start Qt Creator with -temporarycleansettings to see if there might be something off with the settings.
  • How to change qvncserver pixel format from client

    Unsolved General and Desktop
    9
    0 Votes
    9 Posts
    194 Views
    SGaistS
    You should take a look at the vnc platform plugin implementation. I remember seeing there something related to adjustment.
  • Build errors in QGC for android due to JDK.

    Moved Unsolved Mobile and Embedded
    4
    0 Votes
    4 Posts
    624 Views
    K
    I too have this same error. I using QT 6.8.3 and QGC stable V5.0. [image: ec3e2a4f-06af-443e-b98a-8a844bbb7dfb.png] did any one fix this issue, because in the GitHub https://github.com/mavlink/qgroundcontrol/tree/Stable_V5.0/src/QmlControls/QGroundControl/UTMSP the qml files are removed, now how to fix this??
  • Development about Head-Up Display (HUD)

    Unsolved Mobile and Embedded
    2
    0 Votes
    2 Posts
    45 Views
    X
    @zhengrq Hi! We don't an example in Creator or Design Studio but you can take a look at Mobility Experience demo that Qt showcased at CES 2025 https://www.qt.io/resources/videos/qt-world-summit-2025-mobility-experience?hsLang=en. If you have a commercial license, contact your assigned Account Manager and state your use case and Qt can probably share the demo with you. Feel free to reference this conversation with me :)
  • Download Qt Style Sheet files

    General and Desktop
    8
    1 Votes
    8 Posts
    42k Views
    jsulmJ
    @Plan-C You should consider posting this here: https://forum.qt.io/category/8/showcase
  • Why is QT so expensive? 5000+ dollar a year

    Unsolved General and Desktop
    34
    0 Votes
    34 Posts
    14k Views
    T
    and add 100$ for each sold device
  • Android open Keyboard in a loop for QDialogs

    Unsolved Mobile and Embedded
    4
    0 Votes
    4 Posts
    50 Views
    Andy314A
    I have rebuilt it in async mode. No fixed loop - QDialog sends Ok signal -> close the QDialog -> open the next dialog. Same effect as before: If I click on my Ok-Button, next call of my dialog opens not the Keyboard. Then I have tested some more and got a much more strange effect. If I set a timer in init code of the QDialog, what triggers the OK-Button (same code as manual click) all works. Next call opens the Keyboard again. What is the diffence of Clicking the Button manual to call the same Button-click-code via timer ??? I tried in the button-click-code send a singel-shot to trigger the code. No change. Only click via finger destory the funktion. With as separte button on the dialog I can open the keyboard -> the code works ! Only automatic at open does not work. Besides the solution of this problem is very important for me. The main task is not the simple textedit-Dialog, but I must receive the scanner results from the Zebra scanner. Therefore the Keyboard must be open for some milliseconds.
  • 0 Votes
    1 Posts
    26 Views
    No one has replied
  • 0 Votes
    1 Posts
    39 Views
    No one has replied
  • 0 Votes
    1 Posts
    15 Views
    No one has replied
  • 0 Votes
    6 Posts
    1k Views
    M
    I think Mesrine is right, this is telling you that your web server isnt configured correctly. In apache you'd add a configuration file like this: <Directory /var/www/html> Order Allow,Deny AllowOverride None Header set Access-Control-Allow-Origin "*" Header set Cross-Origin-Opener-Policy: same-origin Header set Cross-Origin-Embedder-Policy: require-corp </Directory>
  • Comment créer une application responsive?

    Unsolved Mobile and Embedded
    4
    0 Votes
    4 Posts
    46 Views
    SGaistS
    Donc c'est bien ça le problème, il faut les mettre dans un layout comme expliqué dans ce chapitre de la documentation de Designer.
  • Wasm apparently doesn't handle keyboard shortcuts

    Unsolved Qt for WebAssembly
    12
    0 Votes
    12 Posts
    2k Views
    M
    I figured out some more stuff, including a workaround for Qt 6.9.0 that doesnt require rebuilding the webassembly module from source. I'm able to reproduce this "bug" using just the calendarwidget example, so it at seems to happen in relatively simple situations. Hopefully this is helpful to other people with this same problem. I suspect there are easier ways to accomplish all of this... First off, i discovered that qt-shadow-container is defined in the file qwasmwindow.cpp which you can find in \Src\qtbase\src\plugins\platforms\wasm. From looking at that file I figured out that this div is used to display a "shadow dom" that contains the real Qt content. The importance of this is that when an element in the shadow dom has focus, document.activeElement shows the shadow root (qt-shadow-container) as the activeElement even though it isn't really. So, in fact, it's not true that qt-shadow-container has/needs focus in order for you to receive keyboard events. I discovered that when you press "Tab", the focus ACTUALLY goes to an invisible button element whose class is "hidden-visually-read-by-screen-reader". I think this is actually something of a coincidence: buttons are inherently able to receive tab focus and so this just happens to be what receives the focus when you press tab. And it's part of the shadow dom hierarchy in such a way that, when it has focus, Qt will process the keypress events that it receives. So, what does this all mean? Long story short, you can use javascript to programmatically force the "hidden-visually-read-by-screen-reader" to always have focus, which will ensure that Qt processes all of your keypress events. First problem: when you open your website, no object has focus, so we need an initial action that sets the focus. (Note, i think in Qt 6.10 it DOES initially have focus so you may not need this step) You can do this by pressing "Tab", or you can set it programmatically with javascript. It's a little difficult because the button we want to focus on doesn't exist when you first open the page (it doesnt exist until Qt creates it). So you need to delay focusing on it until you're sure it exists. I solved this by modifying the "onLoaded" callback function in generated html file to look like this: onLoaded: () => { showUi(screen); setTimeout(function() { console.log('setting initial focus'); const shadowContainer = document.getElementById('qt-shadow-container'); if(shadowContainer) { const shadowRoot = document.getElementById('qt-shadow-container').shadowRoot; if (shadowRoot) { console.log('shadow root found'); console.log(document.getElementById('qt-shadow-container')); const targetElement = shadowRoot.querySelector('.hidden-visually-read-by-screen-reader'); console.log(targetElement); targetElement.focus(); } else { console.log('Shadow Root not found or is closed.'); } } }, 1000); }, So, it waits 1 second and then sets the focus. If I dont have it wait then it fails to find the required objects. Second problem: Restore focus to this object any time no object has focus. For this I added another script to the html file that looks like this: <script> document.addEventListener('focusout', function (event) { console.log('Element lost focus:', event.target); console.log('Element gaining focus:', event.relatedTarget); if (event.relatedTarget === null) { const shadowRoot = document.getElementById('qt-shadow-container').shadowRoot; if (shadowRoot) { const targetElement = shadowRoot.querySelector('.hidden-visually-read-by-screen-reader'); console.log(targetElement); targetElement.focus(); } else { console.log('Shadow Root not found or is closed.'); } } }); </script> So, basically the same function but this time it runs when an element loses focus and no new element is gaining focus. Third problem: This one is probably a lot more obscure, but i was running into problems implementing a custom "createEditor" function on QAbstractItemDelegate where the html INPUT object corresponding to the editor never lost focus, even once "destroyEditor" ran (notably, my destroyEditor function did not delete the editor but only hid it). To solve, this, I implemented a javascript function to be called by Qt to force the input to lose focus: #ifdef Q_OS_WASM #include "emscripten.h" EM_JS(void, resetFocus, (), { console.log('removing focus from INPUT'); document.activeElement.blur(); //This takes focus away from the active element, which may be an INPUT, and returns it to the BODY element }); #endif ...then you can just call resetFocus() in any situation where you find the INPUT is keeping focus. This will trigger a focusout even and then the above function takes over. (How do you know if INPUT is keeping focus? FOr debugging i set up a QTimer that runs another javascript function that just does "console.log(document.activeElement)" every few seconds. Then you can watch the console to see what object in the DOM has keyboard focus as you test)
  • Run on remote device doesn't apply LD_LIBRARY_PATH

    Unsolved Installation and Deployment
    4
    0 Votes
    4 Posts
    52 Views
    Axel SpoerlA
    @liteyear I have no remote configuration here at the moment. But IIRC, you can select it in the combo box just above the env variables. I would, however, try not to depend on LD_LIBRARY_PATH. I kitten dies, when you use it. I'd rather compile the application with a run path in CMake, pointing to the right libraries. I use LD_LIBRARY_PATH just for local experiments, when I want to load e.g. a development version of a public library.
  • how to make a tablewidget like this?

    Unsolved General and Desktop
    6
    0 Votes
    6 Posts
    127 Views
    GrecKoG
    Doing this in QWidgets looks like a pain in the ass. It would be pretty easy to do in Qt Quick.
  • 0 Votes
    1 Posts
    34 Views
    No one has replied