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. Why is QSqlField::type() deprecated in Qt6

Why is QSqlField::type() deprecated in Qt6

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 428 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.
  • M Offline
    M Offline
    mq-loser
    wrote on last edited by
    #1

    While browsing through the documentation, I noticed that the functions QSqlField::type() and QSqlField::setType() existed in Qt 5, but I couldn't find them in Qt 6. Instead, there are two new functions QSqlField::metaType() and QSqlField::setMetaType().

    I'd like to ask, is it just changing the function names here? Why the name change?

    Attached document address

    Qt5.15
    Qt6.2

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

      type() and metaType() are two different things. And type() is of no use for the user.

      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
      0
      • M Offline
        M Offline
        mq-loser
        wrote on last edited by
        #3

        All right, thanks.

        1 Reply Last reply
        0
        • M mq-loser has marked this topic as solved on
        • MasterBLBM Offline
          MasterBLBM Offline
          MasterBLB
          wrote on last edited by
          #4

          For future references @mq-loser - in Qt documentation for a class, below "List of all members, including inherited members" there is section "Deprecated", and here are mentioned not only what has been deprecated, but also what from now on to use instead.

          1 Reply Last reply
          1
          • M Offline
            M Offline
            mq-loser
            wrote on last edited by
            #5

            @MasterBLB Thanks.

            1 Reply Last reply
            0

            • Login

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