I am trying to make a list of QFiles, I went for the QList approach but am not sure if it is good approach or not. I write this code but it fails to b ...
I am trying to make a list of QFiles, I went for the QList approach but am not sure if it is good approach or not. I write this code but it fails to b ...
I want to be able to print a QList to a TextBox with setText(“ “), but I need to convert that list to a string. This may be trivial, but I’m new to cp ...
I need to read some text files that contain a huge amount of data, say 4 files each of about 500MB. Each file contains several lines and each line ha ...
I have a QDialog where I can enter a Text and add it to a ListWidget inside the MainWindow after I clicked OK. Therefore I created a Method in the Mai ...
As in the title, I would like to ask what is the best way to split a QString on spaces and - where relevant - keep the spaces as parts of the resultin ...
Do someone know a solution to do get properties of a QPushButton placed in a QList<QWidget *> ? Thx ...
I'm allocating memory in a member function like below: where the mpeople object is declared as Everything works fine until i try to remove items ...
First of all i'm a complete beginner in C++ and Qt and i'm using Qt 6.2 and C++11. This is the code that i have problem with: I was expecting that ...
I'm facing issue with the following code where I want to access a qstringlist from q_property of the class pointer containing the qstringlist. I have ...
I have a QList qList, I want to sort this based on the property "playerRank" in Players class. The Players class is as shown below. How can I do th ...
Why can't I access the elements of the container? ...
I am trying to delete (free memory) of all QByteArrays in QList of pointers to the QByteArrays. Here's my code: in my .h file in my .cpp file H ...
I need to retrieve the text in the order in which they appear on the user form. I am trying as below: I get the following compile error from the ab ...
I ran a test to compare QVector and QList insertions/sorting performance with this code: #include <algorithm> #include <iostream> #inclu ...
I have a class to save the ID of customer and his name. After saving I'm inserting the object into a QList and viewing them on table. What I need: I ...
I have this project where I use a QList to store instances of a class called RespirationTest. Accessing RespirationTest members is easy when using dyn ...
I'm trying to use a QList, a custom class (class Edge:public QGraphicsLineItem), but when I use .append or anything else I got compilation errors G ...
Apologies if the title is incorrectly phrased - I am not too sure what is causing the problem I am testing QList array access and came across this. I ...
I'm trying to return QList with two values in it, but each value should have different type. First value in QString, second value in integer or short ...
My template function: I tried to call setIndex<>(list, selectedId); But this call makes an error. So I tried setIndex<QList<It ...