Qt does not use system font settings - qt

I installed musescore (Qt) but it does not seem to use the system font. I tried setting it via QtConfig but that does not work. How can I get system fonts to be used by Qt? I am on Ubuntu 15.10 Gnome.

Related

Visual Studio Code CSS Hover Missing on Mac

On my Windows machine, I noticed that when I hover my CSS class name in a .jsx file I'm able to see a hover menu to show me what the actual CSS is. However, I'm unable to recreate this on my Macbook Pro. I also don't have this capability for .html files.
On my Windows, I have the HTML CSS Support extension, but I also have it on my Mac. I tried looking at other suggestions that said to use CSS Peek as well, but I installed it and it didn't do anything.
Here is my Windows VS Code version:
Version: 1.63.2 (system setup)
OS: Windows_NT x64 10.0.19044
Here is my Mac VS Code version:
Version: 1.65.2
OS: Darwin x64 18.7.0
Is there an extension I need to install or is there a setting I need to use?
I had Tailwind CSS IntelliSense installed on my Windows machine without realizing it and that did the trick.

Where is QtWebView / WebView in QtDesigner?

I'm trying to find out where the WebView widget in QtDesigner is. I've installed it (QtDesigner 5.11.1) on OSX Catalina and Win 10. I've installed XCode/C++ libraries along with the open-source QTCreator (all options). I still can't find it.
QWebView unfortunately is not part of the official Qt installers since Qt 5.6, because it has been obsoleted by QWebEngineView (https://doc.qt.io/qt-5/qwebengineview.html).
Several 3rdparty Qt installers (like most of the Linux distributions, msys2 on Windows) still ship the QWebView module as well. This leaves you with 2 options: either migrating to QWebEngineView, or installing Qt from one of these 3rdparty installers.

Qt 5.9.5 in Ubuntu 18.04.1 LTS Error "GtkDialog mapped without a transient parent. This is discouraged"

I've just installed Ubuntu 18.04.1 LTS and have just installed and am trying to run Qt but whenever I open a dialog box within Qt, such as when I want to Open an existing Project or File, it causes Qt Creator to freeze until I terminate it. Creating a new Project or File does not cause this to happen (different kind of window I imagine).
The version I have is Qt Creator 4.5.2 based on Qt 5.9.5.
I tried running qtcreator from the command line and when I go to open a file or folder from within the GUI the command line returns the following (and the GUI freezes):
$ qtcreator
Gtk-Message: 01:33:28.712: GtkDialog mapped without a transient parent. This is discouraged
Note, the Gtk-Message only occurs when I do something in Qt that would bring up a dialog box such as to navigate to and select a file. The Qt GIU freezes at this point.
I hope someone knows how to fix this or if it's a compatibility issues between Ubuntu 18.04 and the versions of Qt Creator and Qt that I am using.

Fonts not antialiased under Ubuntu with Qt4 static build

I needed to port a Windows Qt app to Linux and Mac. Under Mac all is fine but with Ubuntu (tried both 16.04.1 and 14.04 on 2 different machines) the fonts are not antialised. See this picture:
With the dynamic Qt libs all is fine. It only happens when I'm using the Qt static libs. Here's how I'm building Qt statically:
./configure -static -prefix /home/.../Desktop/Qt-4.8.7-static -no-sql-sqlite -no-sql-sqlite2 --platform=linux-g++-32
make
make install
The output above is generated with the standard Qt Widgets template from Qt Creator to which I'm adding:
QMessageBox::information(this, "Horrendous font", "This is one fugly font");
There is no additional code that could be responsible for this. Any idea why this is happening?

Deployment of statically linked Qt application backward compatibility

This is my first attempt at making a Qt Application work on different systems.
I have opted for static linking method.I have already compiled the sources of Qt 5.5 and compiled my application with the static Qt. The executable is working fine on my computer.
My operating system is Ubuntu 15.04. But when I tried to run the same executable on Ubuntu 14.04 then I ran into trouble. The key details of the error message are given below.
libstdc++.so.6 cxxabi_1.3.8 not found
I did a standard Google search and realised it was because I had a newer version of it on my machine, the machine where I had created the executable. There were so many different approaches to handle this problem. One of the solutions I saw involved shipping your own copy of libstdc++.so with the executable. But when I tried to copy the .so file to a pen drive, there was a warning saying that the file system does not support such files.
My question is , what am I doing wrong ? Also if I wanted to make the executable target Ubuntu 10.04, what would be the correct procedure handling the backward compatibility issues. I know that one method would be to install the same OS on my machine and then create the executable , is there any other way?
libstd++ is backward compatible but not forward compatible, which means you can run a program with a newer version of libstdc++ than the one you compiled it with but not vice-versa. This is what you experienced.
One way to deal with this issue is using older OS versions as the build machine. When you for example use Ubuntu 14.04 LTS, you'll get this list of compatible target systems.
The build system you're using will probably limit available compilers. On Ubuntu 14.04 you get GCC 4.8, which is good for most C++11 and packages for clang 3.6 are available, which will give you full C++14 support.
Targeting Ubuntu 10.04 will be challenging if you do not want to use a stone age compiler.
The idea of shipping libstdc++ will not help you much because you'll run into the same problem with libc.

Resources