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. I have two questions about converting MFC to QT
Forum Updated to NodeBB v4.3 + New Features

I have two questions about converting MFC to QT

Scheduled Pinned Locked Moved General and Desktop
qt5mfcconversion
4 Posts 3 Posters 2.0k 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.
  • Halo_HaoH Offline
    Halo_HaoH Offline
    Halo_Hao
    wrote on last edited by
    #1
    1. I’m working on a VC project using MFC framework, but I need to use Qt anyway. I’m wondering whether there is a tool that can convert MFC to Qt.
    2. Does Qt contains functions like PostMessage and SendMessage used in MFC.
      Thanks in advance!
    JKSHJ 1 Reply Last reply
    0
    • Halo_HaoH Halo_Hao
      1. I’m working on a VC project using MFC framework, but I need to use Qt anyway. I’m wondering whether there is a tool that can convert MFC to Qt.
      2. Does Qt contains functions like PostMessage and SendMessage used in MFC.
        Thanks in advance!
      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by JKSH
      #2

      Hi,

      @Halo_Hao said:

      1. I’m working on a VC project using MFC framework, but I need to use Qt anyway. I’m wondering whether there is a tool that can convert MFC to Qt.

      Welcome to the world of Qt! I don't think there is a tool like that, unfortunately.

      1. Does Qt contains functions like PostMessage and SendMessage used in MFC.

      Yes. QCoreApplication::sendEvent() and QCoreApplication::postEvent() are conceptually similar to MFC's SendMessage and PostMessage.

      However, there's something even better: Signals and Slots. This is one of the most powerful parts of Qt. I recommend you study it in detail.

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

      Halo_HaoH 1 Reply Last reply
      0
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • JKSHJ JKSH

          Hi,

          @Halo_Hao said:

          1. I’m working on a VC project using MFC framework, but I need to use Qt anyway. I’m wondering whether there is a tool that can convert MFC to Qt.

          Welcome to the world of Qt! I don't think there is a tool like that, unfortunately.

          1. Does Qt contains functions like PostMessage and SendMessage used in MFC.

          Yes. QCoreApplication::sendEvent() and QCoreApplication::postEvent() are conceptually similar to MFC's SendMessage and PostMessage.

          However, there's something even better: Signals and Slots. This is one of the most powerful parts of Qt. I recommend you study it in detail.

          Halo_HaoH Offline
          Halo_HaoH Offline
          Halo_Hao
          wrote on last edited by
          #4

          @JKSH Copy that. Thanks a lot for your kind 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 Extensions
          • Unsolved