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. MFC dialogs in Qt Application
Forum Update on Monday, May 27th 2025

MFC dialogs in Qt Application

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 2.7k 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.
  • A Offline
    A Offline
    avidamic
    wrote on last edited by
    #1

    I have an existing Qt application that needs to (temporarily) include MFC dialogs. I downloaded the Qt Solutions code for QtWinMigrate and have been looking at the "MFC to Qt Migration" example. That example is from the standpoint of incorporating Qt dialogs/widgets in an existing MFC application, which seems pretty straightforward and easy to do.

    However, if I want to incorporate a MFC dialog in an existing Qt, it seems that a lot more has to change on the application side (need to flag my vcxproj to include MFC shared libraries, need to change the entry point to not use "main" but be a CWinApp). Is there an easier way to get MFC to work in Qt or do I need to basically mimic the "MFC to Qt Migration" example and change my current application to be a CWinApp?

    Thanks for any insight.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      avidamic
      wrote on last edited by
      #2

      Sorry, when I can be a "CWinApp", I really mean have the entry be WinMain instead of plain ol' main.

      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