Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWidget::winEvent, QApplication::winEventFilter, and qFindChild<QWidget*>(this)
Qt 6.12 LTS is out! See what's new in the release blog

QWidget::winEvent, QApplication::winEventFilter, and qFindChild<QWidget*>(this)

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 2 Posters 3.0k Views 1 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
    carljoerger
    wrote on last edited by
    #1

    Hello,
    We have a large MFC application that we would like to port to Qt 5. I'm starting through the "MFC to Qt Migration - Walkthrough". The first step is to build qtdll, which seems to be written using Qt 4.

    1. Is
      QWidget::nativeEvent("windows_generic_MSG", msg, result);
      equivalent to
      QWidget::winEvent(msg, result);

    2. How do I convert
      return QApplication::winEventFilter(msg, result);

    3. How do I convert
      const QWidget child = qFindChild<QWidget>(this);

    Thank you,
    Carl

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Which guide are you referring to ?

      You might also be interested by QTBUG-40881.

      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
      0
      • C Offline
        C Offline
        carljoerger
        wrote on last edited by
        #3

        https://sites.google.com/site/nttrungmtwiki/home/it/programming/gui-programming/mfc-to-qt-migration---walkthrough

        1 Reply Last reply
        0
        • C Offline
          C Offline
          carljoerger
          wrote on last edited by
          #4

          Is there another MFC to Qt guide?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Did you took a look at the bug report and the QtWinMigrate solution ?

            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
            0
            • C Offline
              C Offline
              carljoerger
              wrote on last edited by
              #6

              I'd like to. When I click on

              https://qt.gitorious.org/qt-solutions

              I get

              This site can’t be reached

              qt.gitorious.org’s server DNS address could not be found.
              DNS_PROBE_FINISHED_NXDOMAIN

              Any ideas?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                The repositories have been moved to code.qt.io

                The one you are looking for is at https://code.qt.io/cgit/qt-solutions/qt-solutions.git/

                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
                0
                • C Offline
                  C Offline
                  carljoerger
                  wrote on last edited by
                  #8

                  Thank you - I will download the project.

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    carljoerger
                    wrote on last edited by
                    #9

                    I'm doing a SVN checkout at
                    https://code.qt.io/cgit/qt-solutions/qt-solutions.git/tree/
                    and I'm getting
                    Unable to connect to a repository at URL
                    What am I doing wrong? Thanks.

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      carljoerger
                      wrote on last edited by
                      #10

                      Ok - I figured it out - I used "Git GUI Here"

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        carljoerger
                        wrote on last edited by
                        #11

                        Thank you for your help!

                        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
                        • Unsolved