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 there no description of QRegExpValidator in qt6.0.1? Is it abandoned?
Forum Updated to NodeBB v4.3 + New Features

Why is there no description of QRegExpValidator in qt6.0.1? Is it abandoned?

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 6 Posters 2.5k Views 2 Watching
  • 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.
  • C Offline
    C Offline
    canid
    wrote on last edited by canid
    #1

    hello,why is there no description of QRegExpValidator in qt6.0.1? Is it abandoned?
    qt3.JPG

    jsulmJ JKSHJ 2 Replies Last reply
    0
    • C canid

      hello,why is there no description of QRegExpValidator in qt6.0.1? Is it abandoned?
      qt3.JPG

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @canid said in Why is there no description of QRegExpValidator in qt6.0.1? Is it abandoned?:

      Is it abandoned?

      Yes
      https://doc.qt.io/qt-5/qregularexpressionvalidator.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      4
      • C canid

        hello,why is there no description of QRegExpValidator in qt6.0.1? Is it abandoned?
        qt3.JPG

        JKSHJ Online
        JKSHJ Online
        JKSH
        Moderators
        wrote on last edited by
        #3

        @canid said in Why is there no description of QRegExpValidator in qt6.0.1? Is it abandoned?:

        Is it abandoned?

        Yes. QRegExp was deprecated in Qt 5, replaced by QRegularExpression.

        Similarly, QRegExpValidator was replaced by QRegularExpressionValidator.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        J.HilkJ B 2 Replies Last reply
        4
        • JKSHJ JKSH

          @canid said in Why is there no description of QRegExpValidator in qt6.0.1? Is it abandoned?:

          Is it abandoned?

          Yes. QRegExp was deprecated in Qt 5, replaced by QRegularExpression.

          Similarly, QRegExpValidator was replaced by QRegularExpressionValidator.

          J.HilkJ Online
          J.HilkJ Online
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @JKSH It's getting more verbose with each iteration. Still better to use than std::regex ! 😉


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          JKSHJ 1 Reply Last reply
          0
          • J.HilkJ J.Hilk

            @JKSH It's getting more verbose with each iteration. Still better to use than std::regex ! 😉

            JKSHJ Online
            JKSHJ Online
            JKSH
            Moderators
            wrote on last edited by JKSH
            #5

            @J-Hilk said in Why is there no description of QRegExpValidator in qt6.0.1? Is it abandoned?:

            It's getting more verbose with each iteration.

            This change makes it consistent with one of Qt's API design principles ("Avoid abbreviations"): https://wiki.qt.io/API_Design_Principles#The_Art_of_Naming

            Still better to use than std::regex ! 😉

            Well... "better than std" is not that hard to achieve, really... 😉

            The STL and other std:: APIs seem to be designed for raw performance and compatibility with general templates; they don't seem to be designed for readability and ease-of-use (although things have been improving lots from C++11 onwards)

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            0
            • JKSHJ JKSH

              @canid said in Why is there no description of QRegExpValidator in qt6.0.1? Is it abandoned?:

              Is it abandoned?

              Yes. QRegExp was deprecated in Qt 5, replaced by QRegularExpression.

              Similarly, QRegExpValidator was replaced by QRegularExpressionValidator.

              B Offline
              B Offline
              Bo-Katan
              wrote on last edited by
              #6

              @JKSH So, renamed. Replaced is not incorrect, but sounds like a bigger change than renamed.

              SGaistS 1 Reply Last reply
              0
              • B Bo-Katan

                @JKSH So, renamed. Replaced is not incorrect, but sounds like a bigger change than renamed.

                SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Bo-Katan Hi and welcome to devnet,

                No, it's not a renaming, QRegExp and friend classes have been deprecated in Qt 5 and removed in Qt 6. QRegularExpression and friends are new classes built on top of PCRE.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                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