Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

3 votes
3 answers
745 views
No longer able to input circumflex or diaeresis accented characters (qt5 apps only !)
Currently running KDE-Plasma-5.23.5 (X backend)/ KDE-Frameworks-5.90.0 / QT-5.15.3 I can assert that this used to work perfectly but am unfortunately unable to assert from which version of what the problem started to occur systematically. ---------- Whatever the qt5 application I launch (kmail, kate...
Currently running KDE-Plasma-5.23.5 (X backend)/ KDE-Frameworks-5.90.0 / QT-5.15.3
I can assert that this used to work perfectly but am unfortunately unable to assert from which version of what the problem started to occur systematically. ---------- Whatever the qt5 application I launch (kmail, kate, konsole, dolphin, qtdesigner…) I am no longer able to key in the â ä ë ê î ï ô ö ü û (as well as corresponding uppercase) characters. (usually possible via hitting the dedicated dead key then the desired vowel) Keying any other directly accessible accentuated character works fine. I suspect this problem to be restrained to qt5-ed apps since it does not impact non qt5-ed applications such as The-Gimp, Firefox, Chromium, Yoshimi (fltk), my Arduino prototyping platform, audacity… all launched from the same user under the same DE. ---------- **UPDATE 1 / XMODIFIERS :** Curiously enough, If I export XMODIFIERS= before launching my DE, or even within some konsole session, then, if I launch kate *manually* (via bash), the problem does not occur.
It however still occurs when starting kate from the KDE menu or clicking on its icon.
Therefore my problem would become, how should I set XMODIFIERS so that whatever qt5 app could automagically honour it ?
BTW, unless I export it explicitly, this variable is not part of the environment when my DE is running.
MC68020 (8557 rep)
Jun 14, 2022, 02:08 PM • Last activity: May 9, 2024, 04:52 AM
11 votes
3 answers
56268 views
How to add QT_QPA_PLATFORMTHEME=qt5ct environment variable in Arch Linux?
I am using a standalone tiling window manager QTile. In QTile I want to organize my GTK and QT Themes. For GTK theme I used a program named "lzappearance" and it works perfectly fine. But, for Qt I am using a program named as "qt5ct". On the top it is written this application is not configured corre...
I am using a standalone tiling window manager QTile. In QTile I want to organize my GTK and QT Themes. For GTK theme I used a program named "lzappearance" and it works perfectly fine. But, for Qt I am using a program named as "qt5ct". On the top it is written this application is not configured correctly and when I click on the information button it says: The QT_QPA_PLATFORMTHEME environment variable is not set(required value: qt5ct). Please help and guide me on how to set qt5ct and environment variables.
Anuj Tambe (339 rep)
Dec 7, 2021, 11:10 AM • Last activity: Mar 12, 2024, 05:46 PM
0 votes
1 answers
134 views
QT Linguist tool not picking up right translation
I am trying to use Translation feature in QT. There are more than 4000 translation needed to be done for one language. And I have to do this for more than 15 different languages. So, I decide to write `language.ts` files by shell scripts. After generating my `language.ts` succesfully, I open the fil...
I am trying to use Translation feature in QT. There are more than 4000 translation needed to be done for one language. And I have to do this for more than 15 different languages. So, I decide to write language.ts files by shell scripts. After generating my language.ts succesfully, I open the file in notepad++ (in windows) and I can see the expected translation in the file. For example, in Brazilian language, following is the translation code is language.tsfile:- Cancel Отказ Now when I try open the file in QT Linguist tool, I got following error:- Parse error at lang_Brazil.ts:1:38:Encountered incorrectly encoded content. As details provided in this website , I replace encoding value utf-8 with ISO-8859-1 . Now I can open the file in QT Linguist but the translation is showing wrong characters, ex:- for Cancel it is showing Îòêàç (expected translation is Отказ). Please confirm why it is not taking right translation in QT linguist while I can see it if I open language.ts file in notepad++.
tabish (510 rep)
Nov 9, 2023, 09:55 AM • Last activity: Nov 9, 2023, 03:49 PM
1 votes
3 answers
843 views
Integrate a younger qt version in an older yocto release
Our project is based on the meanwhile outdated yocto *warrior*, which was first modified by the vendor of our SoM. Then we integrated the FreeScale/NXP kernel into it because the mainline kernel did not support GPU functionality we needed. It has been quite a ride to get this working, but now there...
Our project is based on the meanwhile outdated yocto *warrior*, which was first modified by the vendor of our SoM. Then we integrated the FreeScale/NXP kernel into it because the mainline kernel did not support GPU functionality we needed. It has been quite a ride to get this working, but now there is need to switch from qt 5.12 as included in our *warrior* to qt 5.15 (LTS). We want to avoid switching to a new yocto release, but only changing the checkout of the meta-qt5 layer leads to bitbake problems like ERROR: ParseError at meta-qt5/recipes-qt/qt5/qtwebengine_git.bb:83: Could not inherit file classes/features_check.bbclass and I expect this to be only the first of a series of incompatibilities, so I'm asking myself what would be the best approach to the problem. Should I start my own meta-qt5 branch, changing the recipes to use qt 5.15.8 and only cherry-pick commits from current meta-qt5 branches?
Philippos (13680 rep)
Feb 24, 2022, 10:49 AM • Last activity: Nov 9, 2023, 02:22 PM
2 votes
0 answers
297 views
auto-patchelf could not satisfy dependency libQt5SerialPort.so.5
I am trying to run Qt Design Studio 2.3.1 Community on NixOS. **My nix derivation code:** flake.nix: ```nix { description = "Qt Design Studio"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, flake-utils }: flake-utils.li...
I am trying to run Qt Design Studio 2.3.1 Community on NixOS. **My nix derivation code:** flake.nix:
{
  description = "Qt Design Studio";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, flake-utils }:
    flake-utils.lib.eachDefaultSystem (system: 
    let
      pname = "qtdesignstudio";
      version = "v2.3.1";

      pkgs = import nixpkgs { inherit system; config.pulseaudio=true;};

    in { 
        packages.default = pkgs.qt6Packages.callPackage ./. {inherit pname version; };
    }
  );
}
default.nix:
{ pname, version, stdenv, pkgs, qtbase, wrapQtAppsHook, qt5compat, qtpositioning, qtserialport }: 

let
   zip_name = "qtdesignstudio-2.3.1.zip";
in
stdenv.mkDerivation {
  
  inherit pname version; 

  src = ./.;

  buildInputs = with pkgs; [

    gcc-unwrapped
    cairo
    pango
    gtk3
    atk
    gdk-pixbuf
    pulseaudio
    alsa-lib

    gst_all_1.gstreamer
    gst_all_1.gst-plugins-base
    gst_all_1.gst-plugins-bad

    xorg.libxkbfile
    xorg.libxshmfence

    nss_latest
    mysql80

  ] ++ [ 

    qt5compat
    qtbase
    qtpositioning
    qtserialport 

  ];

  unpackPhase = "true";

  nativeBuildInputs = with pkgs; [ 
    autoPatchelfHook 
    unzip
  ] ++ 
  [ wrapQtAppsHook ]; 

  installPhase = ''
    mkdir -p $out
    unzip $src/${zip_name} -d $out
  '';

}
However while building it, I get the following error:
...
 > auto-patchelf: 1 dependencies could not be satisfied
       > error: auto-patchelf could not satisfy dependency libQt5SerialPort.so.5 wanted by /nix/store/bih1ngcz4h0w01i875iys83lcfjksp2m-qtdesignstudio-v2.3.1/qt5_design_studio_reduced_version/plugins/position/libqtposition_serialnmea.so
       > auto-patchelf failed to find all the required dependencies.
...
is there anyway to resolve it? I tried [this answer](https://discourse.nixos.org/t/qt-development-environment-on-a-flake-system/23707/3) from NixOS discourse but it is for Qt5, not for Qt6. Would be great if you could help me as I am totally stuck on it.
satk0 (161 rep)
Aug 25, 2023, 12:30 PM
0 votes
1 answers
57 views
How should I modify the Qt5 source code if I want to add back SSLv3 support in the libqt5network5 module?
I am on an Intel x86_64 CPU architecture platform running a Debian Bullseye Linux distro. On that platform runs a custom application. This application is a 32-bit software running as a systemd service and has many dependencies, some of them being libraries from Qt5 v5.15.2 (such as libqt5network5 mo...
I am on an Intel x86_64 CPU architecture platform running a Debian Bullseye Linux distro. On that platform runs a custom application. This application is a 32-bit software running as a systemd service and has many dependencies, some of them being libraries from Qt5 v5.15.2 (such as libqt5network5 module) and openssl1.1. On the new versions of openssl and Qt5, SSLv3 protocol is deprecated. However, the custom application only supports SSLv3 protocol for network communication. I have added back SSLv3 support in openssl1.1 and whenever I try to use the following command:
# openssl s_client -connect :
I get a warning in the custom application journal logs:
::startServerEncryption Attempted to use an unsupported protocol
My goal now is to add back the support for SSLv3 protocol in the libqt5network module in order to remove that warning and have a proper connection. In addition, I need to have libqt5network5 module in a 32 bit architecture to be compatible with the custom application. The steps I have done so far are: I have downloaded Qt5 source code I tried to revert the commit (OpenSSL: drop support for SSLv2 and SSLv3, commit hash ID: 455951f59074d6457fd2d10720ac3cbdaa966076.) After many hours of battling with compilation and makefile errors, I have successfully built Qt5 libraries. I created a .deb package of Qt5 and installed it in the platform's root file system However, I keep getting the warning as if nothing has changed. I might have not reverted correctly the commit or there may be more things to do. I tried to modify the source code further but this dives me into more compilation errors. My question is what should I change in the Qt5 source code in order to achieve my goal? I've been racking my brain over this problem for 3 weeks now and can't find a solution. PS: Sorry if there is any confusion or lack of information in my question. I am ready to give you all the necessary information. PS-2: I know SSLv3 is deprecated for security reasons but it is a requirement and I cannot change that. Thank you for your time.
Chris Haddad (1 rep)
Aug 25, 2023, 10:13 AM • Last activity: Aug 25, 2023, 12:21 PM
0 votes
2 answers
115 views
Set key with value on a line in a file, if not exists between specific lines, or set specific value
Given the following configuration file: shape { visible: true type: rectangle ... } shape { type: circle visible: isRound === "true" ... } shape { // comment: "visible" not set, default "true" } How to set using `bash` all the values for `visible` key (property) to `false`, without touching the comm...
Given the following configuration file: shape { visible: true type: rectangle ... } shape { type: circle visible: isRound === "true" ... } shape { // comment: "visible" not set, default "true" } How to set using bash all the values for visible key (property) to false, without touching the comments, but keeping the old value as a comment? The new content should be: shape { visible: false type: rectangle ... } shape { type: circle visible: false // visible: isRound === "true" // ideally, above, the old value is kept as a comment... ... } shape { visible: false // comment: "visible" not set, default "true" } The file is not just a list of shape structures, may contain other entries too. This should be **QML** compliant. awk shows: awk --version GNU Awk 5.2.1, API 3.2 Copyright (C) 1989, 1991-2022 Free Software Foundation. **Edit** I think I can use this PCRE regex: (\s*shape\s*\{\n)(\s*)(.*?)(visible\:.*\n?)?(.*?)(\n\s*\}) with replace expression as: $1$2visible: false // $4\n$2$5$6 or \1\2visible: false // \4\n\2\5\6 but I need a tool to apply it. It is not perfect, still needs to not comment twice.
mike (123 rep)
Feb 19, 2023, 03:42 PM • Last activity: Feb 26, 2023, 11:41 AM
2 votes
1 answers
1522 views
Bad font antialiasing for Qt6 applications
Environment: OS: Fedora 36 DE: XFCE Font: Windows Tahoma [Font config][1] `$XDG_CURRENT_DESKTOP=XFCE` Qt6-6.2.3-2.fc36 Problem: Qt6 applications seemingly do *not* use my fontconfig settings (which are used for everything else, including XFCE, GTK2/3/4 and Qt3/4/5 applications, and web browsers). I'...
Environment: OS: Fedora 36
DE: XFCE
Font: Windows Tahoma
Font config
$XDG_CURRENT_DESKTOP=XFCE
Qt6-6.2.3-2.fc36 Problem: Qt6 applications seemingly do *not* use my fontconfig settings (which are used for everything else, including XFCE, GTK2/3/4 and Qt3/4/5 applications, and web browsers). I've used strace -e file and $HOME/.config/fontconfig/fonts.conf is indeed being read but it's not seemingly used correctly. I do not see any error messages in console from Qt6 applications. I have a suspicion something in terms of fonts support in Qt6 has changed drastically but I haven't been able to find anything. Here's how Qt5 applications look like. Here's how Qt6 applications look like. I've filed a bug repor t because I haven't been able to find anything relevant.
Artem S. Tashkinov (32730 rep)
May 14, 2022, 01:29 PM • Last activity: Dec 3, 2022, 08:45 AM
0 votes
0 answers
321 views
qt5 program with "-platform linuxfb" does not reset framebuffer when crashing
We have a qt5 program running under Alpine Linux v3.14 which uses a fragile legacy library which may cause the entire program to crash. Alpine Linux switches to framebuffer mode during start up. We compile the library from source but do not have the time to harden the code. Our program runs in a Lin...
We have a qt5 program running under Alpine Linux v3.14 which uses a fragile legacy library which may cause the entire program to crash. Alpine Linux switches to framebuffer mode during start up. We compile the library from source but do not have the time to harden the code. Our program runs in a Linux framebuffer device using qtprogram -platform linuxfb which works well, except that when the program crashes and returns to the shell, the framebuffer is not reset properly giving the incorrect impression that the program is still running but is non-responsive. I would like to at least blank out the framebuffer and preferably switch back to the Linux console mode so we can see output from the invoking shell script. How should I approach this?
Thorbjørn Ravn Andersen (1064 rep)
Oct 6, 2021, 03:35 PM
Showing page 1 of 9 total questions