Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
1
answers
2373
views
upgrade qt 5.6 to 5.9 in centos 7
CentOS 7 ships with Qt 5.6, is there a way of upgrading to Qt 5.9?. current version. QMake version 3.0 Using Qt version 5.6.2 in /usr/lib64 I dont want to install Qt from [qt.io][1], as I am not going to develop applications, the application I'm trying to run requires `QtQuick version 2.9` which is...
CentOS 7 ships with Qt 5.6, is there a way of upgrading to Qt 5.9?.
current version.
QMake version 3.0
Using Qt version 5.6.2 in /usr/lib64
I dont want to install Qt from qt.io , as I am not going to develop applications, the application I'm trying to run requires
QtQuick version 2.9
which is available in Qt 5.9.
Junius L
(71 rep)
Jan 1, 2018, 01:16 PM
• Last activity: Apr 21, 2025, 11:03 PM
0
votes
1
answers
135
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.ts
file:-
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
0
votes
1
answers
772
views
QSqlDatabase: QMYSQL driver not loaded error in zorin os
Recently I have installed Zorin os and qt creator from [enter link description here][1] [1]: https://flathub.org. I need to connect the lamp server which I have installed. I am using qt creator and here is my sample code to connect the MySQL database. QSqlDatabase db = QSqlDatabase::addDatabase("QMY...
Recently I have installed Zorin os and qt creator from enter link description here
I am using qt creator and here is my sample code to connect the MySQL database.
QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
db.setHostName("localhost");
db.setDatabaseName("csms");
db.setUserName("root");
db.setPassword("");
bool ok = db.open();
if(ok) {
qDebug() << "Database connected." << Qt::endl;
} else {
qDebug() << "Database connection error." << db.lastError ()<< Qt::endl;
}
But failed. I am googling the last two days but no luck. Now I am here. I need help.
coder_hasib
(11 rep)
Sep 10, 2022, 10:57 AM
• Last activity: Sep 10, 2022, 04:27 PM
32
votes
10
answers
130437
views
How do I change which version of Qt is used for qmake?
I feel like there should be a simple way of doing this, but my googlefu is failing so I'd really appreciate some info on how to switch (or even permanently change) which version of Qt is used when doing qmake. If I ask which version I get the following: ~ $ qmake --version QMake version 3.0 Using Qt...
I feel like there should be a simple way of doing this, but my googlefu is failing so I'd really appreciate some info on how to switch (or even permanently change) which version of Qt is used when doing qmake. If I ask which version I get the following:
~ $ qmake --version
QMake version 3.0
Using Qt version 5.0.1 in /usr/lib/x86_64-linux-gnu
I've install QtCreator, but I'm not sure where to go from here.
Tamsyn Michael
(453 rep)
Feb 21, 2014, 10:27 AM
• Last activity: Jul 25, 2022, 10:14 PM
0
votes
0
answers
350
views
Valgrind crashes in Qt Creator, related to video card?
I am using a Core i7 PC with NVIDIA GM107 GeForce GTX 750 Ti video card running Linux Mint 18.3. "Valgrind Memory Analyzer" crashes when running a blank "Qt Widgets Application" project in Qt Creator 4.10.1 with the "external error" message: 286,959 bytes in 1 blocks are possibly lost in loss record...
I am using a Core i7 PC with NVIDIA GM107 GeForce GTX 750 Ti video card running Linux Mint 18.3.
"Valgrind Memory Analyzer" crashes when running a blank "Qt Widgets Application" project in Qt Creator 4.10.1 with the "external error" message:
286,959 bytes in 1 blocks are possibly lost in loss record 78 of 78
in calloc in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
1: calloc in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
2: /usr/lib/nvidia-384/libGL.so.384.130
3: /usr/lib/nvidia-384/libnvidia-glcore.so.384.130
4: /usr/lib/nvidia-384/libnvidia-glcore.so.384.130
5: /usr/lib/nvidia-384/libGL.so.384.130
6: /usr/lib/nvidia-384/libGL.so.384.130
7: /usr/lib/nvidia-384/libGL.so.384.130
8: call_init.part.0 in /build/glibc-LK5gWL/glibc-2.23/elf/dl-init.c:58
9: call_init in /build/glibc-LK5gWL/glibc-2.23/elf/dl-init.c:30
10: _dl_init in /build/glibc-LK5gWL/glibc-2.23/elf/dl-init.c:120
11: /lib/x86_64-linux-gnu/ld-2.23.so
Here's the run log:
19:17:40: valgrind --child-silent-after-fork=yes --xml-
socket=127.0.0.1:41595 --log-socket=127.0.0.1:37293 --xml=yes --smc-
check=stack --tool=memcheck --gen-suppressions=all --track-origins=yes
--leak-check=summary --num-callers=25 /home/daniel/Documents/QtNew/build-
TestWidgets-Desktop_Qt_5_12_5_GCC_64bit-Debug/TestWidgets
19:17:44: The program has unexpectedly finished.
19:17:44: Process exited with return value Process crashed
19:17:44: Analyzing finished.
I don't get any warning / error if I run the program normally i.e. without Valgrind.
**Update**
I upgraded Valgrind from source to version "3.15.0" and the crash problem went away.
gornvix
(483 rep)
Oct 25, 2019, 06:28 PM
• Last activity: Oct 28, 2019, 03:17 PM
1
votes
0
answers
232
views
Fonts look pixelated in some applications
I use KDE, I have a HiDPI display, so I made changes to `~/.Xresources` to change the system DPI. After that, the fonts in some applications began to look pixelated. [![enter image description here][1]][1] [![enter image description here][2]][2] [![enter image description here][3]][3] In QtCreator,...
I use KDE, I have a HiDPI display, so I made changes to
In QtCreator, with
How to fix this problem?
My
Operating System: Arch Linux
KDE Plasma Version: 5.16.3
KDE Frameworks Version: 5.60.0
Qt Version: 5.13.0
Kernel Version: 5.2.1-arch1-1-ARCH
~/.Xresources
to change the system DPI. After that, the fonts in some applications began to look pixelated.



QT_SCALE_FACTOR=1.2
, icons become pixelated.

~/.Xresources
:
Xft.dpi: 120
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
Output of xrdb -q
:
Xft.antialias: 1
Xft.dpi: 120
Xft.hinting: -1
Xft.hintstyle: hintslight
Xft.rgba: none
**UPD:** My system:
Operating System: Arch Linux
KDE Plasma Version: 5.16.3
KDE Frameworks Version: 5.60.0
Qt Version: 5.13.0
Kernel Version: 5.2.1-arch1-1-ARCH
congard
(121 rep)
Jul 20, 2019, 08:41 AM
• Last activity: Jul 21, 2019, 11:23 AM
1
votes
2
answers
2189
views
Is $PATH environment variable of a desktop environment different from that in a shell?
I am trying to find the `.desktop` file for qtcreator, so I write this: $ for p in ${XDG_DATA_DIRS//:/ }; do grep -rni 'qtcreator' $p; done And here is the most relevant lines: /usr/share/app-install/desktop/qtcreator-plugin-ubuntu:ubuntusdk.desktop:2:X-AppInstall-Package=qtcreator-plugin-ubuntu /us...
I am trying to find the
.desktop
file for qtcreator, so I write this:
$ for p in ${XDG_DATA_DIRS//:/ }; do
grep -rni 'qtcreator' $p;
done
And here is the most relevant lines:
/usr/share/app-install/desktop/qtcreator-plugin-ubuntu:ubuntusdk.desktop:2:X-AppInstall-Package=qtcreator-plugin-ubuntu
/usr/share/app-install/desktop/qtcreator-plugin-ubuntu:ubuntusdk.desktop:6:Exec=qtcreator %F
/usr/share/app-install/desktop/qtcreator-plugin-ubuntu:ubuntusdk.desktop:7:Icon=ubuntu-qtcreator
/usr/share/app-install/desktop/qtcreator:qtcreator.desktop:2:X-AppInstall-Package=qtcreator
/usr/share/app-install/desktop/qtcreator:qtcreator.desktop:6:Exec=qtcreator %F
/usr/share/app-install/desktop/qtcreator:qtcreator.desktop:7:Icon=QtProject-qtcreator
/usr/share/app-install/desktop/qhimdtransfer:qhimdtransfer.desktop:12:#Icon=qtcreator_logo_32
I think the qtcreator:qtcreator.desktop
is the desktop entry for QtCreator, so I open it and find out:
[Desktop Entry]
X-AppInstall-Package=qtcreator
X-AppInstall-Popcon=292
X-AppInstall-Section=universe
Exec=qtcreator %F
Icon=QtProject-qtcreator
Type=Application
Terminal=false
Name=Qt Creator
GenericName=Integrated Development Environment
MimeType=text/x-c++src;text/x-c++hdr;text/x-xsrc;application/x-designer;application/vnd.nokia.qt.qmakeprofile;application/vnd.nokia.xml.qt.resource;
Categories=Qt;Development;IDE;
InitialPreference=9
X-Ubuntu-Gettext-Domain=app-install-data
**qtcreator is not in the variable $PATH of the shell**. But I can still launch QtCreator in gnome unity.
From the [freedesktop-exec-variables](https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables) I noticed
> If no full path is provided the executable is looked up in the $PATH environment variable used by the desktop environment.
### Question
Is $PATH environment variable of a desktop environment different from that is a shell?
If so, where is the config file containing the $PATH variable for desktop environment?
I install a newer version of QtCreator then launch QtCreator in desktop and find out it references to the newer version without changing the qtcreator:qtcreator.desktop
file. I think there is something to with the path of qt?
Desktop environment: gnome
OS: ubuntu16.04
**Edit**
The actual problem I encountered was not about $PATH(see my answer blow). Gilles' answer is actually the answer to `Is $PATH environment variable of a desktop environment different from that in a shell?' so I accepted it in case that someone has the same doubt as me.
z.h.
(1084 rep)
Jul 1, 2018, 12:36 AM
• Last activity: Jul 1, 2018, 10:33 AM
0
votes
1
answers
1497
views
Using QtCreator with konsole instead of xterm
I tried to use KDE's Konsole to start console applications from QtCreator. The application works as intended, but any new instance of Konsole started during or after the execution just shows this: Cannot read creator env file /tmp/QtCreator.UiK966: No such file or directory Press to close this windo...
I tried to use KDE's Konsole to start console applications from QtCreator.
The application works as intended, but any new instance of Konsole started during or after the execution just shows this:
Cannot read creator env file /tmp/QtCreator.UiK966: No such file or directory
Press to close this window...
or a similar error
Cannot connect creator comm socket Qt Creator console
The second one is not complete because it didn't occur anymore and I can't find the text anymore.
Closing ALL instances of Konsole fixes the problem until I start any console project from QtCreator again.
QtCreator Tools/Options/Environment/System/Terminal is set to /usr/bin/konsole -e
QtCreator appends the following to the command set in Terminal:
/usr/bin/../libexec/qtcreator/qtcreator_process_stub run /tmp/QtCreator.GJt966/stub-socket "Press to close this window..." /home/zzt/.build/untitled-Desktop-Debug /tmp/QtCreator.UiK966 966 /home/zzt/.build/untitled-Desktop-Debug/untitled
There was a known bug in QtCreator that resulted in the described behaviour, but only in the Konsole instance that was started by QtCreator and that is supposedly fixed.
The problem occurs on a Oracle VirtualBox VM running Arch, but does not occur on my laptop running the same OS and the same Konsole&QtCreator versions. Configuration is similar on both systems but can definitely differ.
$ konsole --version
konsole 16.08.3
$ qtcreator -version
Qt Creator 4.1.0 based on Qt 5.7.0
...
$ uname -a
Linux archvm 4.8.8-2-ARCH #1 SMP PREEMPT Thu Nov 17 14:51:03 CET 2016 x86_64 GNU/Linux
eike
(548 rep)
Nov 17, 2016, 04:14 PM
• Last activity: Sep 6, 2017, 11:26 PM
0
votes
1
answers
771
views
Why can I run this locally and not over X?
I am trying to run qtcreator. It powers up fine on the local (Ubuntu 16.4) box, but when I try to run it over X to a Mac I get this: (qtcreator:3893): GConf-WARNING **: Client failed to connect to the D-BUS daemon: Failed to connect to socket /tmp/dbus-LglOS2bxyZ: Connection refused libGL error: No...
I am trying to run qtcreator. It powers up fine on the local (Ubuntu 16.4) box, but when I try to run it over X to a Mac I get this:
(qtcreator:3893): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Failed to connect to socket /tmp/dbus-LglOS2bxyZ: Connection refused
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Unrecognized OpenGL version
Unrecognized OpenGL version
Searching these messages usually suggests that this is a driver problem and suggest a fix on the (local) box, but that doesn't seem relevant here. Any ideas as to how I might fix this so I can run it remotely?
(NB: the qtcreator process is still running when this happens, just 'headless' and useless)
adrianmcmenamin
(373 rep)
Jul 1, 2017, 11:34 AM
• Last activity: Jul 1, 2017, 01:20 PM
2
votes
1
answers
4598
views
Syntax error: word unexpected (expecting ")") when running remotely but no problem running locally
I've read plenty of discussions on various possibilities why such a thing can happen however all are about some missing library on the system where the binaries are deployed. This is not my case. I have a Raspberry Pi 2 with latest Raspbian and a Debian 8 notebook with x86-64 Intel architecture and...
I've read plenty of discussions on various possibilities why such a thing can happen however all are about some missing library on the system where the binaries are deployed. This is not my case.
I have a Raspberry Pi 2 with latest Raspbian and a Debian 8 notebook with x86-64 Intel architecture and a Qt Creator 3.2.1 installed on the second, where I cross-compile my binaries using the **arm-linux-gnueabihf-g++** (using the Emdebian repository). I am not using the optimized compiler provided in the official RPi github repository .
Here is the prequal to my problem . After much sweat and swearing I managed to cross-compile and deploy my binary from the notebook onto the RPi2. And here is the problem:
- When I try to run my binary from withing Qt Creator (which connects to the RPi2 via SSH, transfers files via SFTP and is logged in as my only RPi user (hence "access issue" is excluded here for sure)) on **my notebook** I get:
Syntax error: word unexpected (expecting ")")
- When I try to run my binary **directly on my RPi** it runs without a single issue.
As I've posted on stackoverflow my code contains only pure C++ writing a text file to the directory where the binary is upon execution. Nothing weird going on there.
So the main question here is is this a Qt Creator related issue or something that goes much deeper? I have no idea how exactly Qt Creator internally **runs** the binary on the remote system. If I connect via SSH to my RPi via terminal and execute the binary it works fine. So it has to do something with the way Qt Creator executes it. Note that executing the ARM binary on my notebook returns what we all expect (RPiCrossCompileRemoteTest is the name of my binary):
bash: ./RPiCrossCompileRemoteTest: cannot execute binary file: Exec format error
So Qt Creator neither starts the binary straight onto the RPi nor tries to start it on my notebook (otherwise it would have given me the format error from above).
Any ideas how I can proceed towards resolving this? I have been fighting with this issue for a couple of days all in vain. :-/
**EDIT:** As suggested by @steve running
ldd
on both executables:
- On the RPi:
/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so (0x76f84000)
libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0x76ea3000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x76e32000)
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x76e0a000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76cda000)
/lib/ld-linux-armhf.so.3 (0x76f91000)
- On the notebook:
not a dynamic executable
The second one is correct. I don't know that to think about the first one though.
Also I used the g++-arm-linux-gnueabihf that is in my Raspbian to compile a new binary in order to compare both. The **output of ldd
is literally the same** with the small exception that I have different memory addresses (the HEX numbers in brackets) where the libs will be loaded.
**EDIT 2:**
As @gogoud suggested:
- Changed to key authentification
- Checked shell on my RPi - it is bash
- Added RequestTTY=force
to a newly created **~/.ssh/config**
No change at all. Same old story. I did however notice the actual exit code: **2**. From TLDP :
> 2: Misuse of shell builtins (according to Bash documentation)
> Example: empty_function() {}
> Comments: Missing keyword or command, or permission problem (and diff return code on a failed binary file comparison).
This doesn't make sense for my binary (I think). I have also checked the permissions on it: drwxr-xr-x
. This means that all can execute and read it.
rbaleksandar
(512 rep)
Aug 18, 2015, 06:20 PM
• Last activity: Mar 4, 2017, 08:52 AM
0
votes
2
answers
4208
views
Qt installed in two places; wrong one takes precedence
My system is running Ubuntu 16.04 LTS. I seem to have installed Qt in two places. 4.8.7 is installed in `/usr` and 5.5.1 is installed in my home directory for reasons which probably seemed sensible at the time. $ /usr/bin/qmake -v QMake version 2.01a Using Qt version 4.8.7 in /usr/lib/x86_64-linux-g...
My system is running Ubuntu 16.04 LTS.
I seem to have installed Qt in two places. 4.8.7 is installed in
/usr
and 5.5.1 is installed in my home directory for reasons which probably seemed sensible at the time.
$ /usr/bin/qmake -v
QMake version 2.01a
Using Qt version 4.8.7 in /usr/lib/x86_64-linux-gnu
$ ~/Qt/5.5/gcc_64/bin/qmake -v
QMake version 3.0
Using Qt version 5.5.1 in /home/jsd/Qt/5.5/gcc_64/lib
$ which qmake
/usr/bin/qmake
Qt Creator sees the home-directory version and thinks it's running 5.5.1, but when it runs qmake
in the build process it runs the 4.8.7 version and minor annoyances follow.
How can I clean this up? Also, is it normal for Qt to be installed in my home directory?
**Edit:** The reason this was an issue is Qt Creator was ignoring CONFIG += c++14
and refusing to allow C++14 syntax like auto foo = [](const a, const b){return a when compiling with Clang 3.7, which should support C++14. qmake
only supported CONFIG += c++14
since 5.4 hence I thought the problem was my old qmake
version.
Jack Deeth
(97 rep)
Dec 6, 2016, 04:19 AM
• Last activity: Dec 13, 2016, 05:15 AM
1
votes
0
answers
780
views
Qt Creator not launching in OpenSUSE
After a few years using Ubuntu, I decided to go back to OpenSUSE. I installed Qt Creator using the online installer from Qt, along with all the framework versions I wanted. Qt Creator refuses to launch. When run from command line, is gives the following error: static QPlatformTheme* QKdeTheme::creat...
After a few years using Ubuntu, I decided to go back to OpenSUSE. I installed Qt Creator using the online installer from Qt, along with all the framework versions I wanted. Qt Creator refuses to launch. When run from command line, is gives the following error:
static QPlatformTheme* QKdeTheme::createKdeTheme(): Unable to determine KDE dirs
I managed to install Qt 5 Creator from repositories on OpenSUSE, and this one runs. I can't tell the difference between it and the one from Qt (which I used on Ubuntu).
This version of Qt Creator gives the same error as above, but in the Application Output window every time I run an application.
Any idea what causes this? Or how to resolve it?
Thanks in advance for any help given.
Louis Parkin
(121 rep)
Mar 9, 2016, 06:41 AM
2
votes
0
answers
1331
views
Installing Qt Creator on Debian
I'm following this guide http://exploringbeaglebone.com/chapter11/ and I am stuck at part > Click on the “Qt Versions” tab and click on “Add…” and browse to > /usr/bin/ where you should see the qmake and qmake-qt4 entries. Click > on qmake and then click Open. You should then see that a manual Qt >...
I'm following this guide http://exploringbeaglebone.com/chapter11/ and I am stuck at part
> Click on the “Qt Versions” tab and click on “Add…” and browse to
> /usr/bin/ where you should see the qmake and qmake-qt4 entries. Click
> on qmake and then click Open. You should then see that a manual Qt
> version has appeared as in Figure 2 below.
in step 3.
I have not these two files, I installed qmake with sudo apt-get install qmake and followed all these steps from the start, but no files, what can be wrong?
Laki
(565 rep)
Oct 19, 2015, 10:31 AM
0
votes
1
answers
2791
views
Qt Creator crashes on startup, but it worked before
I installed the latest Qt version (5.5.1), and Qt creator worked fine, I could build programs with it. However, after I installed cmake, downloaded opencv from source, and built it, Qt creator no longer works. It silently crashes on startup, and if I start it from the console, it just says "Segmenta...
I installed the latest Qt version (5.5.1), and Qt creator worked fine, I could build programs with it.
However, after I installed cmake, downloaded opencv from source, and built it, Qt creator no longer works. It silently crashes on startup, and if I start it from the console, it just says "Segmentation fault", nothing more.
I didn't put cmake and opencv in the title of this question, because I'm not sure if they are really the culprits. The following happened after I successfully used Qt:
- I tried to install a Radeon driver to use a second screen, by following https://wiki.debian.org/ATIProprietary , but it didn't work. (the installation was apparently successful, but my secondary video card is still not detected)
- I installed cmake, together with its gui (called cmake-gui)
- I downloaded the opencv source, and successfully built it, by specifying the 5.5.1 Qt folders as the location of Qt
- During all of the above, one update was performed on the system. (
apt-get update
and apt-get upgrade
)
I'm suspecting cmake, because its gui uses Qt4, so it might have installed some stuff from Qt4 which might be causing conflicts - however, it seems that Qt4 was already installed with KDE, because I've seen it in the "software management".
I tried deleting and installing Qt5.5.1 again, with no effect.
I'm using KDE, and I cannot even uninstall Qt5.5.1 properly. It doesn't appear in the Software management - System settings
, and when I right-click on its shortcut in the "start menu", I get the option to uninstall, but I'm greeted with The file could not be found in any installed package
- so apparently my system doesn't seem to see Qt at all. (I can't even find any way to remove the shortcut, or even find where the executable is by right clicking, I had to locate the application manually - either there are serious UX issues, or I'm not experienced enough with the UI of KDE)
I'm using debian 8 (jessie)
vsz
(547 rep)
Oct 16, 2015, 01:01 PM
• Last activity: Oct 19, 2015, 10:11 AM
3
votes
0
answers
682
views
Can't start qtcreator
I'm trying to start `qtcreator`, but here is what i get: $ qtcreator libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: i965 libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast QQuickWidget: Failed to make context curren...
I'm trying to start
qtcreator
, but here is what i get:
$ qtcreator
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: i965
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
QQuickWidget: Failed to make context current
QQuickWidget::resizeEvent() no OpenGL context
Manjaro Linux x64, Cinnamon DE, installed newest Qt libraries.
Another Qt applications working fine.
Efog
(159 rep)
Sep 10, 2015, 10:58 PM
2
votes
0
answers
733
views
How to prevent Qt Applications from using GTK+ theme
Whenever I want to use custom QML components in my apps it makes them use GTK+ theme. How can I prevent this? Why am I asking here? Because I believe it has something to do with files like: ``~/.config/qt.conf`` or whatever. And I have to do something like: [Qt] GTK-theme: false Or something in this...
Whenever I want to use custom QML components in my apps it makes them use GTK+ theme. How can I prevent this?
Why am I asking here? Because I believe it has something to do with files like: `
~/.config/qt.conf
` or whatever. And I have to do something like:
[Qt]
GTK-theme: false
Or something in this "style", but I don't know what/how exactly should I do it. Can you help me with this?
**I'm using ArchLinux and GNOME as DE if it can help.**
pushandpop
(1446 rep)
Jun 12, 2015, 12:57 PM
• Last activity: Jun 12, 2015, 01:26 PM
1
votes
1
answers
4269
views
Ubuntu Qmake is not an executable
after installing new version of QtCreator in Ubuntu and tux-world@alachiq:~ > sudo apt-get install qt5-qmake build-essential g++ gcc Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version. g++ is already the newest versi...
after installing new version of QtCreator in Ubuntu and
tux-world@alachiq:~ > sudo apt-get install qt5-qmake build-essential g++ gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
g++ is already the newest version.
g++ set to manually installed.
gcc is already the newest version.
qt5-qmake is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 247 not upgraded.
in option of
Build & Run
and choose qmake in /usr/bin/qmake
i get this error :
The qmake executable /usr/lib/i386-linux-gnu/qt4/bin/qmake could not be added: qmake '/usr/lib/i386-linux-gnu/qt4/bin/qmake' is not an executable.
in Home system i don't have any problem after installing those packages and setting Qmake in option
Other information:
tux-world@alachiq:~ > apt-cache search qt5-qmake
qt5-qmake - Qt 5 qmake Makefile generator tool
tux-world@alachiq:~ > ldd /opt/qtForArm/bin/qmake
ldd: /opt/qtForArm/bin/qmake: No such file or directory
tux-world@alachiq:~ > sudo chmod +x /usr/lib/i386-linux-gnu/qt4/bin/qmake
[sudo] password for tux-world:
chmod: cannot access ‘/usr/lib/i386-linux-gnu/qt4/bin/qmake’: No such file or directory
**UPDATE**:
tux-world@alachiq:~ > apt-cache policy qt5-qmake
qt5-qmake:
Installed: 5.2.1+dfsg-1ubuntu14.2
Candidate: 5.2.1+dfsg-1ubuntu14.2
Version table:
*** 5.2.1+dfsg-1ubuntu14.2 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main i386 Packages
100 /var/lib/dpkg/status
5.2.1+dfsg-1ubuntu14 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main i386 Packages
tux-world@alachiq:~ > ls -a -l /usr/bin/qmake
lrwxrwxrwx 1 root root 9 فوریه 19 15:53 /usr/bin/qmake -> qtchooser
tux-world@alachiq:~ > qtchooser
Usage:
qtchooser { -l | -list-versions | -print-env }
qtchooser -run-tool= [-qt=] [program arguments]
[-qt=] [program arguments]
Environment variables accepted:
QTCHOOSER_RUNTOOL name of the tool to be run (same as the -run-tool argument)
QT_SELECT version of Qt to be run (same as the -qt argument)
tux-world@alachiq:~ >
DolDurma
(195 rep)
Jul 27, 2014, 06:00 AM
• Last activity: Aug 9, 2014, 08:03 PM
4
votes
1
answers
9253
views
Finding dependencies for a compiled C++ program
I wrote and compiled a C++ program using Qt Creator in Ubuntu 13.10 (32 bit). I tried to run the compiled program in a newly installed Ubuntu 13.10 (64 bit). But it is not run. I think the problem is with dependencies. How can I find (=know the name and version of) necessary dependencies?
I wrote and compiled a C++ program using Qt Creator in Ubuntu 13.10 (32 bit). I tried to run the compiled program in a newly installed Ubuntu 13.10 (64 bit). But it is not run.
I think the problem is with dependencies. How can I find (=know the name and version of) necessary dependencies?
Minimus Heximus
(2537 rep)
May 8, 2014, 03:51 PM
• Last activity: May 8, 2014, 10:37 PM
4
votes
3
answers
3015
views
How to find out what's wrong on all of my Qt programs?
I'm using Arch Linux (Linux 3.13), when I run `qtcreator`, it crashes, and the same happens for other Qt based software: $ qtcreator "Qt Warning - invalid keysym: dead_actute" Segmentation fault (core dumped) $ qtalarm "Qt Warning - invalid keysym: dead_actute" Segmentation fault (core dumped) all m...
I'm using Arch Linux (Linux 3.13), when I run
qtcreator
, it crashes, and the same happens for other Qt based software:
$ qtcreator
"Qt Warning - invalid keysym: dead_actute"
Segmentation fault (core dumped)
$ qtalarm
"Qt Warning - invalid keysym: dead_actute"
Segmentation fault (core dumped)
all my "qt" installed packages are:
gambas3-gb-qt4 3.5.2-1
gambas3-gb-qt4-ext 3.5.2-1
gambas3-gb-qt4-opengl 3.5.2-1
gambas3-gb-qt4-webkit 3.5.2-1
kdebindings-qtruby 4.12.1-1
kdebindings-smokeqt 4.12.1-1
libdbusmenu-qt 0.9.2-2
phonon-qt4 4.7.1-1
polkit-qt 0.103.0-2
poppler-qt4 0.24.5-1
pyqt4-common 4.10.3-1
python2-pyqt4 4.10.3-1
qt4 4.8.5-7
qt5-base 5.2.0-3
qt5-declarative 5.2.0-3
qt5-graphicaleffects 5.2.0-3
qt5-imageformats 5.2.0-3
qt5-jsbackend 5.1.1-5
qt5-location 5.2.0-3
qt5-multimedia 5.2.0-3
qt5-qtsystems-git 20130509-1
qt5-quick1 5.2.0-3
qt5-quickcontrols 5.2.0-3
qt5-script 5.2.0-3
qt5-sensors 5.2.0-3
qt5-serialport 5.2.0-3
qt5-svg 5.2.0-3
qt5-tools 5.2.0-3
qt5-translations 5.2.0-3
qt5-webkit 5.2.0-3
qt5-x11extras 5.2.0-3
qt5-xmlpatterns 5.2.0-3
qtalarm 4700237.6-1
qtchooser 39-1
qtcreator 3.0.0-2
qtwebkit 2.3.3-1
telepathy-qt 0.9.3-7
How can I find out what's wrong (what the cause of the problem is) on my system?
Kokizzu
(10481 rep)
Jan 27, 2014, 06:22 PM
• Last activity: Apr 8, 2014, 01:49 AM
1
votes
1
answers
1568
views
How to make Qt Creator use KDEs color scheme
I have krita-darker color scheme as my KDE color scheme, but the text area in Qt Creator is still white. How can I force Qt Creator to use KDE color scheme (like Kate)?
I have krita-darker color scheme as my KDE color scheme, but the text area in Qt Creator is still white. How can I force Qt Creator to use KDE color scheme (like Kate)?
Alko
(930 rep)
Dec 17, 2013, 10:02 AM
• Last activity: Dec 17, 2013, 10:06 AM
Showing page 1 of 20 total questions