Replacing default app icon with custom icon in gradle build - icons

I ported a large legacy Java 8 application to modular openjdk 17 as a gradle build. It produces correctly running installs for the platforms of interest (https://github.com/Papa-26/GS_LV). But I am unable to replace the dodgy default icons with a custom icon, I designed for this application.
I tried modifying the Artifact, and it did it in 'out', but it didn't affect the package in jpackage. Also, I included plugin "de.inetsoftware.setupbuilder",, and I couldn't figure out, how to change the app icon.

Related

Messed Up Layout in Deployed Qt Application on Windows 10

When I launch my deployed application from the .exe file the layout is messed up. When I launch the app from Qt Creator, the layout is fine.
Here are the details about how I deployed my app. I am using Qt 5.5 and MinGW 32 bit 4.9.2. I am running Windows 10.
First in Qt Creator I built for release.
Next, I opened the Qt 5.5 for Desktop (MinGW 4.9.2 32 bit) console.
I navigated to my project folder and ran
windeployqt.exe --release ./APPNAME.exe
It copied all the necessary .dll and created some folders as expected.
Now when I run the app, it seems to work just fine. But the layouts are all wrong. Again, when launching the app from Qt Creator it looks great! Proper spacing and sizing of my widgets. When I launch the .exe every thing is smooshed, the ratios of my sliders are all wrong, and some text is hidden because of crowding.
What could cause this bad layout? Am I missing some dependency somehow?
I figured out my own question. The issue was not my build or my layout but that many sizePolicy parameters don't seem to take effect when launching the app from QtCreator. Not 100% sure on the explanation but I think that when launching the .exe the OS is managing interpreting some of those size policy parameters and it does it differently (perhaps more strictly it appears) than QtCreator does. (To be clear I'm not talking about how the app looks in the Design tab. I'm actually talking about launching the app from within QtCreator)
So to fix the appearance of the app I have to play around with the size policies and parameters, build, and then launch the app from the executable.

Is it possible to set icon for a custom file used by my app

I would like to create and app using Qt which will use custom files. The app will be available on Windows, OS X and Linux.
The idea is to have a custom icon for my file type (e.g. when you install Adobe's Master Collection, .as, .fla, .ps, etc. files have they own icons).
As far as I know Qt only helps you with app icon. I did not find any kind of support for this kind of problem.
This seems to be an OS problem. Do I need to create scripts to run on app install? (I will be using Bitrock's install builder to provide installers)
How can I achive this behaviour on all OSs?

Netbeans Platform Installer and JOGL

I'm trying to build an application that uses both Netbeans Platform and JOGL. So far, it runs fine from within Netbeans, but once I try to create an application that can run externally, I get some problems. The application will start (judging from the splash screen), but a window never displays, and I never get an error message. As soon as I remove the JOGL module (leaving only straight Swing code), everything works fine.
Project Setup:
1 Library Module for JOGL, including the dll's (for Windows 7 64 bit only), in the library/modules/lib folder
1 Module for a window displaying a GLJPanel, rendering a simple image with an animator
1 Module with a simple form in Swing
Has anybody seen this before?
Edit: apparently the trick in this case (using native libs when building Netbeans Platform executables) is placing the native libs in the project's root folder.
If this were not about netbean platform executables, a more generic comment is to make sure the native libs (dlls) are picked up correctly. Try adding the
-Djava.library.path=/path/to/libs option when you run it.

After deploying Qt app with macdeployqt (Qt 4.7.3) the app is broken

Until now deploying my Application with macdeployqt worked fine, but after upgrading to Qt 4.7.3 (Mac Qt SDK 1.1 Release Candidate) my program is broken after the deployment. This are the issues:
all icons and resource images are gone (do not show up in the toolbar)
windows don't open anymore
Cmd+Q does not quit the app
What buzzes me is that i don't understand what causes all these problems, since macdeployqt simply copies the frameworks (QtGui, QtCore, QtSql, QtNetwork in my case) into the app bundle and rewrites the links of the binary and the deployed frameworks by using otool and install_name_tool. All icons and images are compiled into the binary, so the only thing i can think of is that rewriting the links (stored as strings?) overwrites data in the data section of the binary and/or code section.
What can I do to make macdeployqt work again?
EDIT: This problem also appears in a very simple test app with just one tool button that contains an icon. After macdeployqt this icon is not visible anymore.
EDIT: If would be helpful to know if anyone can reproduce the problem.
The macdeployqt-version that comes shipped with QtSDK seems to be broken.
Remove QtSDK and install the libraries from the framework-only version (http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x). The macdeployqt included there should work.
A bug regarding this problem is already filed for that in the Qt-Bugtracker -> http://bugreports.qt-project.org/browse/QTBUG-17959

Creating custom taskbar icon in Flex application

I'm trying to create custom icons for my taskbar/desktop icons in my Flex WindowedApplication. So far, I've edited my -app.xml file to include the following:
icons/t_16.png
icons/t_32.png
icons/t_48.png
icons/t_128.png
When the application is run, however, the default flex/air icon is still showing. I have my systemChrome set to standard, and transparent to false, not that they have any relevance to this.
Any ideas?
Have you actually built a release version and installed your air app, or is just the debug version ?
UPDATE:
You have to deploy a release
version before the custom application
icon will be enabled.

Resources