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
QtWS25 Last Chance

I have two questions about converting MFC to QT

Scheduled Pinned Locked Moved General and Desktop
qt5mfcconversion
4 Posts 3 Posters 1.9k 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.
  • H Offline
    H Offline
    Halo_Hao
    wrote on 13 Jul 2015, 01:06 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!
    J 1 Reply Last reply 13 Jul 2015, 10:13
    0
    • H Halo_Hao
      13 Jul 2015, 01:06
      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!
      J Offline
      J Offline
      JKSH
      Moderators
      wrote on 13 Jul 2015, 10:13 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

      H 1 Reply Last reply 14 Jul 2015, 02:16
      0
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 13 Jul 2015, 10:38 last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • J JKSH
          13 Jul 2015, 10:13

          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.

          H Offline
          H Offline
          Halo_Hao
          wrote on 14 Jul 2015, 02:16 last edited by
          #4

          @JKSH Copy that. Thanks a lot for your kind help.

          1 Reply Last reply
          0

          2/4

          13 Jul 2015, 10:13

          • Login

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