Relocating the Chromium unpacking directory - jxbrowser

As the title states, is it possible to relocate where JXBrowser unpacks its Chromium package, and have it reference from there?
SSD concerns and all that.

You can change binaries directory using system property jxbrowser.chromium.dir as described here: https://jxbrowser.support.teamdev.com/support/solutions/articles/9000015146-chromium-binaries

Related

Distributing JxBrowser and demo

I have downloaded the JxBrowser-6.23.1 demo and note that the demonstration browser, jxbrowserdemo.jar, within the \demo\ directory still works even after removing all the platform-specific libraries from the \lib\ directory and just leaving the 1,116KB jxbrowser-6.23.1.jar.
I assume the platform-specific files within the \lib\ folder are the CEF binaries, so I'm wondering how JxBrowser has managed to distribute CEF in two files that are just over 1 megabyte in size? (1,116KB - jxbrowser-6.23.1.jar (in \lib\) and 104KB - jxbrowserdemo.jar (in \Demo\))
Obviously I must be missing something here, but how does the demonstration browser work without a reference to the platform-specific CEF libraries?
(I am on a Windows 10 64-bit machine)
Edit
Creating a test project in IntelliJ also yields the same results, removing the specific cross-platform libraries has no impact on the browser working and all I need are two small libraries...?
Seems like Chromium binary files have been already unpacked to some folder, for example, ~\AppData\Local\JxBrowser\browsercore-69.0.3497.12.6.23.1\
You should be able to see that folder listed in the JxBrowser log messages INFO: Chromium binaries dir: ... (to enable logging, please pass the JVM parameter -Djxbrowser.logging.level=ALL)
JxBrowser checks this location first, and only if files are not found there, tries to extract them from the platform-specific JAR files.
Also, JxBrowser does not use CEF binaries. The jxbrowser-win32.jar, jxbrowser-win64.jar, jxbrowser-mac.jar, jxbrowser-linux64.jar libraries are part of JxBrowser library. They contain Chromium binaries for the corresponding platform.

GitHub fails to determine the repository language

I use GitHub for a C++ / Qt project. GitHub automatically determines the languages of the project from the file extentions. Problem: Qt has a file name ProjectName.pro, which is interpreted to be Prolog by GitHub.
How can I indicate it is NOT Prolog, but C++ ?
It is actually a known issue: https://github.com/github/linguist/issues/394
It's been submitted 6 month ago but GitHub still doesn't bother fixing it... Do you think of any workaround ?
As said in the original issue (https://github.com/github/linguist/issues/394):
Linguist now supports custom overrides for language definitions and
custom vendor paths
So in order to finally have Qt project files properly recognized as C++ in language statistics, you can add this line in your .gitattributes file.
*.pro linguist-language=C++
See https://github.com/github/linguist#overrides for more details.

Qt - QImage works on one computer and not on another [duplicate]

I set a background image(JPEG) on a Qt widget using setStyleSheet(). This is perfectly shown on my computer, but not on another computer.
I am not getting a link error on the other computer -- the feature just doesn't work. Is there something I am missing in the distribution or build of my app, something that the Qt dev tools installs or is otherwise available, that isn't present on other machines? How can I distribute a Qt app that uses JPEG functionality?
JPEG support in Qt comes as a plugin. Make sure you have also deployed the plugin to your non-development machine. If you haven't, it will simply silently fail and you'll end up not seeing any of the JPEG images. Have a look at the official documentation for more detailed information: http://qt-project.org/doc/qt-4.8/deployment-windows.html
In short (and as a quick solution, but have a look at the documentation as well) you could create a directory named "imageformats" as a subdirectory of the folder containing your exe, into which you copy QJPEG4.dll.

Qt5 reference documentation: qch files

I want to view Qt reference documentation inside QtAssistant, but the installation of Qt5 did not come with .qch documentation files for Qt libraries.
I have tried to find them on the http://qt-project.org but could not find them anywhere.
How do I get the Qt5 documentation files ?
I am using Ubuntu 12.10, I have installed the new qt-library sdk from the qt-project website.
Open Assistant (5.0.1/gcc/bin/assistant) and then go to Edit -> Preferences menu.
There's a Documentation tab. If the list is empty, add the .qch files found in the 5.0.1/gcc/doc/ directory.
This is how it looks. This is Ubuntu 12.10 as well.
Qt 5.0.1 installed with the qt-linux-opensource-5.0.1-x86-offline.run package (388Mb).
Yes, the official Ubuntu-documentation for Qt5 is very incomplete. You don't have information about nearly any class.
If you want to use the QtCreator/QtAssistant build from Ubuntu you have to acquire the docs yourself. I did and uploaded these on my personal Mega-account. Here are the docs. I installed the Qt framework with the installer from qt-project.org, grabbed the documentation and inserted it into the software-center-version.
I don't use QtAssistant as a stand-alone program but integrated in QtCreator. To add the docs to QtCreator go to Tools>Options>Help>Documentation and click add. Then select all .qch files, click apply and enjoy. Maybe try the way as mentioned above.
After all, you can just download the necessary *.deb file from the store of the Ubuntu packages, and install it on your system. As they wrote here, this package will install the *.qch files in /usr/share/qt5/doc. The pitfall is that you will have to remember that you have done that, since your Ubuntu will not take any records for you.

Qt and files in shared folders

Can I use Qt to pick/open files on shared folder?
I've tried to use QFileDialog, but it seems that there is no "network" category, as in standrd windows explorer.
You need to specify which version of Qt you are using. Versions 4.7+ have support for native file dialogs and use them by default. See the accepted answer here:
QFileDialog alternative that uses default file dialog defined by OS?
In previous versions, there was no easy way to show network shares in the QFileDialog on Windows.

Resources