I have a working qt application. It is not a MainWindow application and has no GUI elements at all so far. It runs on startup of the linux box (as a background service). However, it has to wait for ~40-60 seconds until it can start while the IP/DHCP sorts its self out. So I wanted to give the user some
Tag: qt
Qt5 Change Softlink of Currently Running Executable
I created 2 simple Qt5.5 test apps on Linux, “red” and “green”. I setup an initial soft link in the current directory that looks like this: I want to be able to launch the gui app at any time and have it switch the softlink to the other ‘color’ app. So when I run gui and it points to red,
How to get the returned stdout of a program called with QProcess?
I am writing a program in Qt and currently using popen to run a linux command and read the output into a string: So I’d like to throw the above code away as I’d prefer to use higher level facilities provided by Qt if possible. Does anyone have an example of how to do this with QProcess or atleast a
Multiple Qt versions on Linux
I am currenyly using Debian Jessie and I have Qt Creator installed with Qt 5.3.3. It works fine, however there are some issues like QSystemTrayIcon not appearing properly, which I understand doesn’t occur on versions earlier than 5.0.0, so I would like to be able to switch which version I am building with. Where can I download the necessary files
Building Qt apps for Windows Phone on Linux
Related to this I’m planning to develop an app for Android using Qt Quick Controls and an Android Emulator. The same set of components is said to work on Windows Phone. Thus I’d like to build the app for Windows Phone as well. Unfortunately, Qt for Windows Phone is only available for Windows. I don’t own any Windows phone. I’m
Executable file didn’t work correctly [Linux]
I write a program on Qt C++ GUI, that from given user input generates three .cpp files with proper syntax (C++). When I start my program from Qt Creator directly or run it from console like a script its creates the files in executable directory correctly: When I double click executable file, the program starts and work fine, but It
How to distinguish between pressed, released and long press when using QAbstractButton::autoRepeat
I am using Qt 4.8.X on Linux with X11 and/or Qt-QWS with custom buttons derived from QAbstractButton. Now I have to distinguish between a button press, release and the user holding down the button. To do so, I would like to use QAbstractButton::autoRepeat as described in this question. As the QT Documentation states If autoRepeat is enabled, then the pressed(),
can’t get tslib to work with FT5x06
I have a arm based board with embedded linux on it and I believe it has a FT5x06 touch screen controller but seems like tslib has some problems with multitouch capacitive touch screen controllers. I cross compiled tslib with arm-linux-gcc4.5.1 and when after copying necessary files and setting necassary environmental variables for tslib on the target when I ran ts_calibrate
Why does QCoreApplication call `setlocale(LC_ALL, “”)` by default on Unix/Linux?
I think that it’s safe to say that C locales are universally recognized as a bad idea. Writing an application that tries to parse or write text-based machine formats (which happens quite often) with C standard library functions gets near-impossible if you have to account for locale being set to anything different than “C”. Since locale is normally per-process (and
Build Qt application for Linux in Windows using Qt Creator
I want to run a Qt application in Linux which is compiled on Windows using Qt Creator. I tried googling but I did not get any answers regarding Qt creator. I found for Visual studio. Can anyone please let me know if this can be done in Qt Creator in Windows7 ? Do I need to install any other compilers