Fixing wrong JSON data

I'm working with a JSON data that I download from web. Problem with this JSON is that it's contents are incorrect. To show the problem here is a simplified preview: [ { "id": 0, "name": "adsad" }, { "id": "123", "name": "aawew"...
more »

2017-08-26 00:08 (1) Answers

Qml XmlListModel with multiple SOURCES

I do have a bunch of xml files named "config_1.xml", "config_2.xml", "config_3.xml", and so on. Basically, I need to loop from first one to last one, appending in the SAME XmlListModel all the "id" that I find at the query context/info/parameters in...
more »

2017-08-01 18:08 (1) Answers

Extract number from Alphanumeric QString

I have a QString of "s150 d300". How can I get the numbers from the QString and convert it into integer. Simply using 'toInt' is not working. Let say, from the QString of "s150 d300", only the number after the alphabet 'd' is meaningful to me. So ho...
more »

2017-07-26 06:07 (3) Answers

Object stores itself into DataBase

I am new in C++ and Qt and I am developing a simple app that stores and gets different types of employees in a Database. I implemented a hierarchy, Employee is the base class and then I have three different sub-classes : Monthly_Paid_Employee, Hourly...
more »

2017-06-27 13:06 (1) Answers

How to synchronize ios device contact with qt app?

I want to sync up iOS device contacts with an application based on QT platform, I am in search of an API which can do this with qt I find workaround (QT-JNI-Java bridge) for android. http://doc.qt.io/qt-5/qandroidjniobject.html#details It is worki...
more »

2017-06-13 09:06 (0) Answers

QProcess passing (shell) arguments

I'm trying to read the output of a shell script in Qt. However, passing an argument to the shell script doesn't work, as it is ignored completely. What am I doing wrong in the following excerpt? QProcess *process = new QProcess; process->start("s...
more »

2017-06-10 11:06 (1) Answers

Qt user and system libraries

I'm trying to compile a set of libraries and programs with a custom Qt version (system: 5.5.1, user: 5.8.0). For the majority of them, everything works fine, except for only one. I have correctly set the environment variables needed (proved by the ...
more »

2017-03-06 11:03 (0) Answers

Ignoring warnings of a third-party library in GCC

In the software project I'm working on, we use certain 3rd party libraries which, sadly, produce annoying gcc warnings. I am using Qt Creator v 4.2.1 (based on Qt 5.8) as IDE and my OS and gcc version is Linux (mint distribution v 17.1) and 4.8.4 res...
more »

2017-02-19 13:02 (0) Answers

Qt Saving JSON and PDF file to Path

I have two file for application. One's is data file saving with QJSON the other one is pdf which is include app's info. I want to save this two file into path (selecting by users). How can I get user's selection file path? Fallowing code block has ...
more »

2017-01-17 11:01 (1) Answers

How to Deploy Qt Applications for Linux

I followed all the steps successfully as mention in the qt documentation, Qt for Linux/X11 - Building from Source Qt for Linux/X11 - Deployment but still cant make static qt application, the executable generated by the above doc...
more »

2017-01-16 11:01 (0) Answers

Unresolved Import QtGui in Eclipse

I'm importing QtGui in Eclipse. i.e. from PyQt4 import QtGui It is giving me error Unresolved Import QtGui. I'm unable to resolve this issue. Please give me solition to this problem. ...
more »

2016-12-27 06:12 (2) Answers