[solved] Fullscreen confirm button
-
the semi transparent top level widget covers the screen, so it looks like it is "darkened". It could also be top most (then raise is not needed).
The dialog you put on top is a dialog. So it will not cover the whole screen by default. You need the parent to put it on top of the semi transparent widget.
-
the semi transparent top level widget covers the screen, so it looks like it is “darkened”. It could
also be top most (then raise is not needed).But how do ignore the transparency on the actual buttons? (referring to the vista example, where the background is greyed but the buttons are "bright and solid".) Or do you mean that I show a orphan transparent widget as fullscreen as well as a dialog (meaning there are actually three layers)? Can I somehow control the position of the dialog?
-
[quote author="ThaRez" date="1319034845"]Or do you mean that I show a orphan transparent widget as fullscreen as well as a dialog (meaning there are actually three layers)? Can I somehow control the position of the dialog?[/quote]
Yes, the dialog is on top of that widget, so you have 3 layers.
-
I wonder if all window managers allow non-fullscreen dialogs on top of a full-screen widget. Worth a try for sure, but I think this is not guaranteed to work. Also, you should wonder if you really, really need such an intrusive UI feature. You may think that your application is the most important in the world and that it deserves the users undivided attention, but your user may beg to differ. I, for one, do not like applications that try to force me to attend to them first before I do anything else.
-
I understand your concern for such a intrusive feature, and in most cases I'd agree. However in this case the UI is in an embedded device with limited functionality and at certain instances there will be situations were the full focus of the user is required, and this should be "intrusive". In my case the window manager in use is qws. My concern is, will I be able to place the top layer widget at a certain location? and completely remove the window frame? Note that there's no mouse nor keyboard attached to the system, but instead only five buttons with which the system is navigated.
-
In such constraint environments, there may indeed be very valid use cases for such a feature. You are posting in the General and Desktop forum though, so that was not immediately obvious to me.
I have no idea if Qwt allows for this stuff. Just try and see :-)
If you want to remove the window frame, you can either use window flags on your dialog or just not use a dialog at all but a normal widget parented to the semi-transparent base layer.
-
you're so right about the forum, didn't cross my mind that there was a more suitable one.. Anyway, thank you for your advice! Just one more thing, is it possible to control the location where the widget is opened? so that it could be placed at a certain point?
Richard