I have an application with multiple "input widgets" written as inpependent classes, that all store a shared pointer of the respective class that's dat ...
I have an application with multiple "input widgets" written as inpependent classes, that all store a shared pointer of the respective class that's dat ...
Hello and good morning together, I have two questions concerning QVector and its usage. I have an own custom class. It is necessary to use QVector< ...
I have a problem with signal-slot mechanism, may be that it's actually a problem with QSharedPointer as smart pointers are new to me. A little expla ...
What works In Qt 5.12.4, I try to dynamically create QSharedPointer<QMap<int,bool>>. I know that I can do as well as dynamically with ...
I have the following class which calls some HTTP API request to a server: I use the class in this way: Now this clearly involves some manual mem ...
Good Morning everyone, I am using QSharedPointer with my classes derived from QObject. Since they use the signal/slot mechanism, I must use the QObje ...
I need to use Qt 4.8.7 for Embedded Linux to create a very simple project for testing. Project includes 2 forms - Dialog (consists of QTextEdit and bu ...
I am prity new on Qt an got some issues with QSharedPointer passing around within signals. I am working with two threads (UI and a worker). The worker ...
I have a class MyClass that should be able to return this wrapped in QSharedPointer<MyClass>. It is my understanding (and experience) that simp ...
When I run my main methods the functions makeEmpty and remove do not work. I am converting this code from using pointers to using shared pointers and ...
Is there any good practice or regulation on how to use a QSharedPointer object as method parameter or return value of a method ? By value: or bett ...
One question about use of QSharedPointer in following scenario: I have a class with two QSharedPointers private class members: In the code I send ...
I'm using qt5.5.1 with qt-creator 3.5.1 and am trying to set a style on a GeoDataPlacemark with a GeoDataStyle. It used to work fine, but after the Ma ...
in my application I've a MainWindow (which is a QtMainWindow class) and a Acquisiton class (which is a QThread class) Here my very simplified Acquis ...
I have a tree-node like class called Message which looks like this: This class can have a parent and a set of children. I have a problem when I imp ...
I have written a wrapper around QTextEdit to use it like a QIODevice. I want to be able to use multiple wrapper with the same QTextEdit, so I may use ...
If I write this code: The number of references pointing to the integer is 1. But when I call data() like this: Is the number of references 1 o ...
I need to use a QSharedPointer for the reference counting, but I'll use it in a single-thread application so I don't want the thread-safety overhead ( ...
I'm quite new to programming as I'm still learning how to code efficiently so my question may seem a little bit strange. As I'm learning how to code ...
I have following code example: The output for the above code is: But if I uncomment the line with std::make_shared the output is following: S ...