I am having a QgraphicsView which contains multiple QGraphicsItem. I have some features like zoom-in, zoom-out, Hide - Unhide selected item, Undo-Redo. To imple
Im building an app on Linux in C++, and I find it convenient to move all periodic tasks to other threads. This is my first multi-threaded Linux app(and basicall
In the following program, struct B has two user-defined constructors: one from int and another from int&& (clearly this is not very practical). And an o
I have inherited a complicated (to me) toolbox from a PhD student before me and it uses python2 instead of 3 since it's older. The main file is in python2 and u
Problem: You are given an array of integers that contain numbers in random order. Write a program to find and return the number which occurs the maximum
i'm using this api: Pa_OpenStream() // Open line-in stream err = Pa_OpenStream(&m_stream, &m_inputParameters, &
I'm having trouble getting gtkmm-4.0 to work on Mac OS Monterey. Here is a simple C++ application that uses gtkmm4. // helloworld.cpp #include <gtkmm.h>
I need a way to identify a unique combination of template types that gives me an easily indexable identifier. I have the following class: #include <cstdint&g
Guys! I'm a new user of qt and I faced a problem with qml. This issue has already been discussed in this article, but for python. I write in C ++/Qt 6.1.1, QtCr
Here is a related C answer that doesn't work (as a zero initializer for a struct) in C++: Initializing a struct to 0. One of the solutions presented is this: my
I want to use some C++17 features that Mac's clang doesn't currently support, so I use brew install gcc --HEAD to install the g++ 10.0.1 version. Codes run w
Why is it that when I read SOFTWARE\Microsoft\Cryptography\MachineGuid from the registry, my program is detected by the Windows Defender as a virus?
On Ubuntu 20.04: sudo apt install libopencv-dev Result: kwu@Dev-KWu:/usr$ find . -name "*opencv_imgproc*" -o -name "*opencv_core*" ./lib/x86_64-linux-gnu/libope
I am working on defender/space invaders game. I have drawn bug sprite and a bullet sprite. I shoot at the bug with a bullet but when the bullet hits the bug it
Lately I've been learning something about blockchain and I decided to try to make one in c++, without libraries that were made specifically for that, just with
What are undefined reference/unresolved external symbol errors? What are common causes and how to fix/prevent them?
I tried to write a custom type from a book, my compiler gives an error E0393 using a pointer to an incomplete type of the "String" class::Srep" is not allowed i
I want to Update an integer multiple times in frame so that the fragment-shader can access the right index of a texture array for different objects. I first tri
I implemented Poco in my C++ application for Windows in VS 2019 using tips from this post: How to use Poco::ZIP to compress/decompress zip file I have figured o
bool check(const char *text) { char c; while (c = *text++) { if ((c & 0x80) && ((*text) & 0x80)) { return true;