I tried to accept touch events in Qt6 like this, in main.cpp:
QApplication::setAttribute(Qt::ApplicationAttribute::WA_AcceptTouchEvents); error: no member named 'WA_AcceptTouchEvents' in 'Qt::ApplicationAttribute'
I have .sln with two projects: library (.lib) and project (.exe), which use this library.
Library uses external header and has path to it in Additional Include Directories, but I confused that I also should add path to this header to Project's...
I want to display an image within a scroll area. The view port of the scroll area shall have a defined initial size. That means, if the image's size is bigger than the initial size of the view port, scroll bars will be visible, otherwise not.
full error message: terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.9.0-dev) /home/princess-ellie/opencv/modules/highgui/src/window.cpp:1255: error: (-2:Unspecified error) The function is not implemented. Rebuild the...
I am currently working on a project involving property handlers, specifically targeting .txt files. As a newcomer to this field, I have encountered an issue that I'm struggling to resolve and would greatly appreciate your guidance.
I am trying to make a simple tool that requires some lookup on a fixed key-value dataset, so I try to lazily throw all data to a hashmap in the header file:
/** main.h */ #include #include using namespace std; const unordered_map test = {...
Our class was challenged by a professor at uni that if we were able to find a algorithm that fittingly describes the following Big-O-Notation, we'd instantly pass his class. I wanted to ask if any of you know how this could be done since I've been...
When I run the google benchmark I get a WARNING saying that cpu scaling is enabled. Is that a feature that I can toggle at build via flags or at runtime via arguments or is it a system setting?
I want to write an integer to a stringstream in another thread. I tried to do that in a jthread, but the stringstream seems not getting anything. If I turn to use thread, everything works well. Would you please help me about why this problem...
I want to make switch for string in my c++ code but i cant do it please help me for exapmle I want to switch for my enemy name that they have diffrent name
I try the Switch but I have error for switch string and compile dont let me do it please...
I have been trying to do some basic function call and function in C++, and got wrong output as 0 in calculation of simple interest. Need help with this.
using namespace std; int SI(int principle, int rate, int time){ int result = (principle * rate *...
I am currently working on a project involving property handlers, specifically targeting .txt files. As a newcomer to this field, I have encountered an issue that I'm struggling to resolve and would greatly appreciate your guidance.
Я пытался выполнить какой-то базовый вызов функции и функцию на C++, но при вычислении простых процентов получил неверный результат — 0. Нужна помощь с этим.
с использованием пространства имен std; int SI(int принцип, int скорость, int время){ int...
Я работаю с COM-сервером на Python, используя win32com.client, и мне нужно передать массив строк методу, который ожидает POINTER на SAFEARRAY. Я попытался создать ВАРИАНТ, содержащий массив, но не знаю, как правильно преобразовать его в...
Я пытаюсь передать конструктор класса в функцию подписки ros. Можно ли вызвать конструктор при публикации темы?
класс udpMsg { публика: станд::строка UDP; size_t posOfDelim; std::строковый токен; udpMsg(){}; udpMsg(const...
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения