Can Qt achieve a kiosk-like mode that does not display any error message windows (except for crashes and hardware errors) without using various APIs to capture error messages?
-
Hello esteemed experts,
Is it possible to use Qt to achieve a kiosk-like mode where no error message windows are displayed (except for crashes and hardware errors), without relying on QMessageBox, QDebug, or other Win32 Message APIs?
I am currently researching the development of touch software using Qt based on windows operation system
One of the requirements is to achieve functionality similar to Windows' kiosk mode, where no error message windows (except for crashes and hardware errors) are displayed or popped up regardless of what errors the software encounters.
Based on the information I've gathered and the tests I've conducted so far, it seems possible but not entirely certain.
Vance Wang
-
Hi @VanceWang
Is it possible ... where no error message windows are displayed (except for crashes and hardware errors), without relying on QMessageBox, QDebug, or other Win32 Message APIs?
Yes. I have written such kiosk apps previously. All you need to do in install your own message handler via qInstallMessageHandler(). Then your handler can do whatever you like with the messages, eg log to a file, write to a ring buffer and display on a debug/diagnostic tab, show on an status bar, etc
Of course there will still be the occasional message, such as from the OS itself, but that will catch the vast majority.
Cheers.
-
Hi @Paul-Colby,
It's glad to hear that. Very appreciate.
But I have another question need your help
I already installed visual studio 2022, the latest version Qt and Qt creator and UWP x64 (MSVC 2019) components.
But I can't choose and don't know how to set the Qt for UWP 64bit (MSVC 2019) compiler when I create a Qt Widgets ApplicationI am wondering confirm more details about kiosk apps with Qt :
- How do I install & set the UWP 64bit (MSVC 2019) compiler correctly to make it enable to be selected ????
- you also written and run a kiosk apps on windows operation system ???
- What's your Qt & Qt creator version ?
- What's the visual studio 20xx version you install ?? (ex: 2019 or 2017...)
- You develop a UWP project with Qt or a Qt general project and convert it into .msix or .appx bundle with visual studio 20xx???
- Do you have any available social media or contact information so that I can ask you in private ???
-
@VanceWang said in Can Qt achieve a kiosk-like mode that does not display any error message windows (except for crashes and hardware errors) without using various APIs to capture error messages?:
I already installed visual studio 2022
Including UWP support (see https://learn.microsoft.com/en-us/windows/uwp/cpp-and-winrt-apis/intro-to-using-cpp-with-winrt#visual-studio-support-for-cwinrt-xaml-the-vsix-extension-and-the-nuget-package)?
-
-
@VanceWang said in Can Qt achieve a kiosk-like mode that does not display any error message windows (except for crashes and hardware errors) without using various APIs to capture error messages?:
But I prefer to use Qt to develop UWP app directly instead of using Visual Studio 20xx.....
That is already clear.
"It still can't work" - that is why I gave you a link explaining what needs to be installed (default Visual Studio installation is not necessarily enough) - did you check it?!
And "It still can't work" is not a proper problem description...