Skip to main content

All Questions

Tagged with
0 votes
1 answer
59 views

Pybind11 error: no matching function for call

I'm trying to build a DLL for Python, which uses Qt5 libraries; the below example defines a function, and mostly everything works - except I cannot make the method QString::toLocal8Bit available to ...
sdbbs's user avatar
  • 5,131
0 votes
1 answer
191 views

Qt 5 project won't compile in Qt 6 despite core5compat and QT_DISABLE_DEPRECATED_BEFORE

My computer has recently undergone a fresh install on Debian 12 after some mayhem in updating Ubuntu. I reinstalled Qt Creator and Qt6.6. I opened several old projects that used to work under Qt5....
Julien's user avatar
  • 1
0 votes
1 answer
35 views

could not convert 'str' from 'const QStringBuilder<QString,char[5]>' to 'std::string{ask std::basic_string<char>}'

could not convert 'str' from 'const QStringBuilder<QString,char[5]>' to 'std::string{ask std::basic_string}' code: template<class T> inline std::string toString(const T&str) { return ...
杨建国's user avatar
2 votes
1 answer
290 views

Fix QObject: Cannot create children for a parent that is in a different thread

I have noticed this message in my Application Output in Qt Creator: QObject: Cannot create children for a parent that is in a different thread. (Parent is QUdpSocket(0x557d126bb830), parent's thread ...
Veljko's user avatar
  • 97
0 votes
0 answers
28 views

How to add an hyperlink to a QImage in a QTextTableCell?

My application has a pdf report creator which displays a table with some information. One of the columns must display a location pin icon and when clicked this must open a link to a google maps ...
ZemoDev's user avatar
0 votes
1 answer
63 views

how to hide tracer and label on chart

I have one problem, i cant hide label and tracer after moving mouse cursor from one chart to another. My task is to make a tracer with a label appear when you move the mouse cursor over the chart, and ...
r4oot's user avatar
  • 3
1 vote
1 answer
84 views

Qt template function(or constructor) for signal (C++)

I wanted to create a class waiting for Signal so I could connect all the signals. But the template function doesn't seem to know the type of signal. I tried this code: SignalWaiter.h class ...
GomtheBear's user avatar
0 votes
1 answer
177 views

How detach my custom widget from Qt QWidgetList?

I have a container std::map<std::string, unique_ptr<ItemWidget>> widgets that contains pointers to my widgets, so all of my widgets exist separately and independend from QListWidget object....
user avatar
0 votes
0 answers
45 views

How does Qt 5.6 know the proper QObject address to post a keyboard event?

I'm currently making a software for an embedded system and we're using Qt 5.6. We have some generic physical buttons that I get the state of via a message over a serial port and this part is working ...
DieChopper's user avatar
0 votes
0 answers
25 views

how to switch the page of stackwidget by mouse's hover event?

how to switch the page of stackwidget by mouse's hover event? I try to use mouse'events and eventfilter on button, and successfully,but fail in this widget
jiahua wu's user avatar
-1 votes
1 answer
114 views

Windows property "SIZE ON DISK" How to get this size by qt C++ [duplicate]

I have a question on window folder property. When I'm checking property it's shows two size that is size and disk on size. So whenever I'm using qfileinfo it's show only size of folder. But i need &...
qwertyuiop's user avatar
0 votes
0 answers
45 views

QNetworkAccessManager send PUT request with JSON

I want to send a put request with JSON body, but with QNetworkAccessManager doesn't have the option to send a request with JSON so I converted it to QByteArray, the structure of the body, when ...
Gia Huy's user avatar
0 votes
0 answers
33 views

QGraphicsItem* conversion into long using reinterpret_cast

I am creating test cases for my code. For that, I am capturing my code ( functions ) in Capture Mode and in Run mode I am runnig that captured code. And if both are giving me same output, then my ...
tushar's user avatar
  • 477
0 votes
1 answer
438 views

How to erase specific row from QListWidget

I have a small ui with 1 QListWidget. In this uithere is a predefined row in the QListWidget called "Add New". I drag and drop several files from a folder into a QListWidget. So there are ...
EsoMars's user avatar
  • 357
1 vote
1 answer
311 views

How to read the headers of a .txt files and put them as headers of a QTableView

I have a small problem trying to propoerly parse a .txt files and show its content on a QTableView. Specifically how to extract the headers of the file and show them into a QTableView. The .txt file ...
EsoMars's user avatar
  • 357

15 30 50 per page
1
2 3 4 5
16