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. Want to include MFC dialog in Qt application

Want to include MFC dialog in Qt application

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 6.6k 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.
  • S Offline
    S Offline
    SeedOfLife
    wrote on last edited by
    #1

    I have an MFC dialog defined in a library which I want to use in my new Qt application. I followed the "MFC to Qt migration walkthrough":http://doc.trolltech.com/solutions/qtwinmigrate/winmigrate-walkthrough.html but still couldn't figure out how to proceed to include the MFC dialog.
    In the "QMfcApp":http://doc.trolltech.com/solutions/qtwinmigrate/qmfcapp.html class documentation it doesnt specify how the MFC dialog must be instantiated in Qt code. As the name suggest the class is only for an app and not for a dialog.

    I'm really confused here as to how I can include the MFC dialog in my Qt code with using this migration framework.

    Pls if somebody with experience of having done such a thing suggest to me where I should start from wud be very much appreciated.

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

      I too am interested in getting the answer to this question. I am responsible for finding out if it is possible for an MFC form to be shown in a QT dialog. The reasoning behind it is schedule constraints. I have a QT application with a simple dialog and want to display a MFC form inside of it. Is this even possible?

      A quick reply would be greatly appreciated.

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Franzk
        wrote on last edited by
        #3

        On QtCentre someone has been answering this same question:
        http://www.qtcentre.org/threads/24035-how-create-CWnd-and-use-it-in-Qt

        "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • A Offline
          A Offline
          agaudreau
          wrote on last edited by
          #4

          Thanks a bunch for the link. Will look into it.

          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