Unsolved Code hints and help manual API are inconsistent !
-
see the picture! ! In the code, there are still two types of QSpinBox's valueChanged signal code prompts, which are the overloaded form of the lower version (5.8), and the signal overload must be handled by function pointers. However, the signal overload is not shown in the help manual. I am using version 5.15.2. what's going on? In addition. Place QMovie on QLable, and do not call the start() method in 5.15.2, and the content will not be displayed on the Label. In Qt5.8, it is automatically displayed without calling start(). Is this a bug or the result of an improvement?
![alt text](Link: https://pan.baidu.com/s/11W5HFzsNGYvAw5tQ7Za7Sg
Extraction code: 0000 ) -
I don't understand your problem.
That you need QOverload is properly documented in QSpinBox::valueChanged():
"Note: Signal valueChanged is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:"
The overload is deprecated since Qt5.14 so it's only documented in the deprecated section: https://doc.qt.io/qt-5/qspinbox-obsolete.html#valueChanged-1 -
I mean, the signal is overloaded. The 5.15.2 version I use, there is no signal overload in the help manual. But there is in the grammar hint. Why is this? In order for Qtreator to be compatible with lower versions?
-
@Nan-Feng said in Code hints and help manual API are inconsistent !:
The 5.15.2 version I use, there is no signal overload in the help manual.
As I said it is - in the deprecated section. I gave you the link in my previous post.