install4j: splash screen doesn't go away - splash-screen

I have a splash screen for my launcher, but it doesn't go away. It only disappear when I exit the program.
I want it to go away when the program starts, how can I do that?

This can happen if no AWT window is shown. You can call
com.install4j.api.launcher.SplashScreen.hide()
from your application.

Related

How to show exteranal window in qml-based application

I have an application that gui is made up with QML. The task is to start an external program (LibreOffice) "inside" my application. It means that when you press the button on the app's face, external program must be shown in the same window as the main program is. And also it can be closed by app's button that is drown under the external window.
The only thing that I could do for the moment is to start lowriter with QProcess using this article. But it is still shown in separate window and I don't know how to make a button that will close lowriter.
If somebody have any thoughts about how to do this, it would be great if you share it.. Thanks!

freezing or locking a screen on the apple watch

I have a certain screen in an apple watch application that I would like to lock or freeze, so that it displays when I rotate my wrist
Right now when I go to this screen and turn or move my wrist, the watch shuts off. Is there a way to prevent this from happening for a particular screen?
Unfortunately, there is no WatchKit method that allows you to control the app suspension behavior.

hide system cursor in system wide

I want to hide system cursor for 10s for some reason ,but I found
cursor.setShape(Qt.BlankCursor)
can only hide mouse cursor that is associated with QWidgets ,not in system wide ,i.e. when mouse cursor is hovering on QWidgets, it is invisible ,otherwise it is visible ,so is there any way to hide system cursor in system wide?
The win32 system call ShowCursor works per-window only. You can access this from either ctypes or pywin32's win32api. But apparently the cursor drawing is controlled by display driver and can only be affected by specific windows. You can't force another window to hide its cursor. Two options:
use ShowCursor(False) on your window, and for the display background, create a root window application that you spawn from your GUI app, it hides cursor; your app would cause it to exit after 10 seconds, but again if user moves mouse over other app windows they will see cursor.
make your application a root window application; then while in view, ShowCursor(False) will make cursor disappear everywhere on screen except system toolbar (which is a good thing).
I don't think it is a good idea anyways; what if your app crashes while the mouse is hidden? Then user can't use their desktop easily. Definitely good reason that this is not allowed.
Best approach is to think of a different solution to whatever problem led you to try cursor hiding.

In some windows, ctrl key will exit Flex app full screen mode

I have one flex app which supports full screen mode. In some machine, it looks fine, click "Esc" could quit the full screen mode. And I could use "Ctrl-C" to copy some text.
But in some machine, pressing "ctrl" key will exit the full screen mode. Then the mouse action become sticky, when I move popup screen via drag popup title, it keep moving even after I release mouse.
The problem sometime happen in the same machine which used to work fine. I am feeling that could be a flex defect.
Any suggestion?

Bring a window to the front in Maemo

I've got a Maemo (Qt) app that does some integration with the built-in media player via D-Bus. All the control functionality I need is complete, but I've got a requirement to show my application window (which gets backgrounded when playback starts) instead of the media player when the playback window is closed (it's a stacked window).
It should go like this: user clicks item in my Qt application, which launches the media file in the native media player. User watches media file, exits by clicking the arrow on the playback window. I'd like to somehow catch this event and bring my application to the front instead of showing the media player's main window.
Is it even possible on Maemo? I'm thinking that some low-level X coding might be required.
Answer was painfully obvious, I can catch a state_changed signal from D-Bus- state=0 when the window is closed.
You can also use the raise() method of Qt windows.

Resources