I have an application with some windows, and one of them is modal. On Windows OS, when I minimize the modal window all other windows minimize as well. On Linux (I’m using Astra Linux) only the modal window minimizes and all other windows state doesn’t change, and they are not available for any action, like if they were disabled. What’s
Tag: qt
Qt application autorun on linux embedded – “xcb” error
I develop software in Qt for a microcomputer based on Cortex imx6. On this platform, I have installed Linux prepared for this uP and Qt. uname -a Linux colibri-imx6 4.1.35-v2.7b1+gc1177831f5a1 #11 SMP Tue Jun 20 13:05:01 CEST 2017 armv7l armv7l armv7l GNU/Linux I want to run my app during system startup and I have a problem with this. I wrote
Is it necessary to flush a QTextStream before closing a QFile?
I need to log some text messages to a file with following requirements : Each text messages is written in a new line at the end of the file. Be reasonably sure that each message was correctly written to the file. So far, the function is using QTextStream and QFile: Point 1 is satisfied but i have doubts about Point
CMAKE_PREFIX_PATH doesn’t help CMake in finding Qt5
From here: https://stackoverflow.com/a/28327499/462608 I tried this: Here is the output of cmake . This is to show that /opt/Qt5.9.1/ does exist. Here I run the cmake with -DCMAKE option, but the output is still same: Contents of the directory: Answer I installed the following missing packages: Attaching any kind of prefix is not required now: CMakeList: New output: Errors are
How to compile opencv with gtk 2.x rather than gtk3.x
I’m using tensorflow 1.4 & qt in ubuntu 16.04. The problem is when I include tensorflow(version: 1.4) and opencv (version: 3.2.0) simultaneously, protobuf is conflicted. The error msg is as follows: [libprotobuf FATAL external/protobuf_archive/src/google/protobuf/stubs/common.cc:79] This program was compiled against version 2.6.1 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.4.0). Contact the program author
Using a signal handler to process datas received from a fifo
I am writing a simple client/server communication with fifo but i am stuck at using a signal handler to process client request. The server open a fifo in readonly and non blocking mode, read datas received and writes back some datas to the client fifo. And this actually works fine when there is no signal handler on the server side.
How do I run a Python Qt file in Ubuntu?
Here’s the sample code that I want to run: The file is saved as sample.py. The following command isn’t working: Answer You need to start the Qt event loop by calling app.exec_() once you have initialised the widgets and called show() on your main window.
How to check if process is running on Red Hat Linux?
I’ve been using a modified class I found to check if another instance of the same process is already running, the problem is that the method of checking for the process adds another instance of the same process. When my application starts, a new process ID is created and is visible with: With this I get a since entry returned,
Get disk type in QT
I want to get disk type (SSD or HDD) in QT. I’ve checked QStorageInfo but I could not find anything useful for my purpose. By the way I need a solution that’s work on both Windows and Linux. Answer For linux, you can tell whether the kernel has detected a SSD disk by reading special file For instance, cat /sys/block/sda/queue/rotational
After installing Qt 5.8 all qt applications stopped working
everyone! I have got a bit of a problem. My OS is Ubuntu 16.04 LTS x64. Apt provide only Qt 5.5.1 as the latest version, but I needed to install Qt above 5.6 (I have gone with Qt 5.8) because I needed to compile one of the in-house tools (which require Qt >=5.6). But after installing Qt 5.8 (unfortunately, I