I want to disable the alt+tab combination, that's, the user can't bring another application on the top instead of my application, so my application remains on the top.
how to do that?
I want to disable the alt+tab combination, that's, the user can't bring another application on the top instead of my application, so my application remains on the top.
how to do that?
Wouldn't it be better to ask the following question?
"How do I make my application stay on top?"
Alt+tab is not the only way to switch applications, you know...
http://catb.org/esr/faqs/smart-questions.html
it's ok, how to make my application stay on top ?
(btw. I asked the specific question to simplify my problem to gather as much as answers it can, coz a few people tried to make apps always on top, but sure, more people tried to listen to and disable events, which isn't necessarily (alt+tab) )
Set a Qt::WindowStaysOnTopHint flag on your window. Setting the window to full screen mode might be helpful too.
Asking about alt+tab does not simplify your problem. The fact that you know a solution that does "more or less what you want" doesn't make your actual problem any simpler.(btw. I asked the specific question to simplify my problem to gather as much as answers it can, coz a few people tried to make apps always on top, but sure, more people tried to listen to and disable events, which isn't necessarily (alt+tab) )
Note, also, that giving a hint for a window to stay on top won't always work; such behavior is dependent on the underlying window manager, and not all of them support such things.
Note too that an application that can't be gotten out of the way has the potential to be incredibly annoying to many users. Think very hard about whether you want to pursue this approach; it runs counter to most UI guidelines.
Secondly, on Windows XP and above, pressing the "Windows Key" will automatically remove your applications "stay on top" flag and allow access to the task bar and start menu. On Windows 7 you can also forcibly resize any application to stop it hogging the entire desktop by using the task bar.
In other words, install an X11 system and run your app without a window manager And seriously what we are looking for here is 'kiosk mode'.
In another topic where he asks more or less the same question (topic:"Lock screen") his target OS is Windows, so I don't think he wants to install X11
If he wants to annex the whole system for his app, then what difference does the OS make?
How he's going, he's going to need a system level driver to hook into the input stream and prevent certain events from reaching the OS, so he'll need to decide on an OS first. Unless of course he decides to rewrite the BIOS and stop everything there
Indeed. I've tried to push him in the right direction, but maybe he doesn't like doing research.
mmm, so .. alot of discussions here
and the result that you all agreed is that I am fool
ok, let's ask a shorter (encapsulated) question:
I want a method that pushes my application on the top of all applications when it's called any time .. just it, and I will use it to achieve my goal by quick periodical calls.
If you do that, you risk that the first thing your users will do after launching your program will be to quit and uninstall it. Especially that you'll be wasting CPU power (besides the app being annoying). What is the point of what you are doing?
The user will be pleased if this feature succeeds. It's a lock screen, friend.
This flag is working unless the OS forced the application to be behind. It cannot be used here.
1- immitating a screen saver will not allow me to add a password edit field, I found an action that runs a secured screen saver but it doesn't work on xp .
2- This requires admin access.
3- will break the portabily even if my current target is Windows.
1- if he clicked Ctl+Alt+Del , my application will quickly get over the task manager, and prevents him from even seeing the processes list,
2- if he reboots the computer, my application should run on the start-up and check the time, and lock the screen if it's not an allowed time.
It's all an arcade, I'm sure the kid will be able to find a way to use the task manager. As for the second step each autostart entry can be disabled prior to your application launching. Not forgetting that it can simply be killed before the deadline comes and the screen is "locked". Why can't you use regular parental control facilities (be it built into the system or provided by a 3rd party)?
Bookmarks