Results 1 to 2 of 2

Thread: A QFrame into a Window control

  1. #1
    Join Date
    Jun 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default A QFrame into a Window control

    Hello,

    I have an MFC control (I have not the choice of the start of my project), and I would like put a QFrame into my MFC control in order to fill the rest with Qt.

    I tried this :
    Qt Code:
    1. QFrame* fr = new QFrame();
    2. ::SetParent(hWndParent, fr->winId());
    To copy to clipboard, switch view to plain text mode 
    But QFrame launch an exception because no QApplication have been instancied.

    Also, I saw a QWinWidget class which seems to be what I need :
    The QWinWidget class is a Qt widget that can be child of a native Win32 widget
    But I have any qwinwidget.h file in my include directory...

    Can you help me please ?

    Thanks,

    Aurélien

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: A QFrame into a Window control

    Not sure if you can use Qt within MFC so directly.
    Like for using activeX components, Qt has QAxWidget..does MFC has similar kind of thing ?

Similar Threads

  1. Replies: 0
    Last Post: 16th December 2009, 09:45
  2. QFrame inner rectangle
    By Micawber in forum Qt Programming
    Replies: 6
    Last Post: 1st April 2009, 20:40
  3. Using css for all QFrame's except one.
    By babu198649 in forum Newbie
    Replies: 2
    Last Post: 10th July 2008, 08:05
  4. QFrame size
    By impeteperry in forum Qt Programming
    Replies: 3
    Last Post: 17th August 2007, 12:51
  5. Reg - QFrame
    By suresh in forum Qt Programming
    Replies: 1
    Last Post: 1st November 2006, 04:34

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.