Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Code hints and help manual API are inconsistent !
Qt 6.11 is out! See what's new in the release blog

Code hints and help manual API are inconsistent !

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 459 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nan Feng
    wrote on last edited by
    #1

    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 )

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      3
      • N Offline
        N Offline
        Nan Feng
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @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.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved