Results 1 to 9 of 9

Thread: HWND on Win32 API to Qt widget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: HWND on Win32 API to Qt widget

    You can embed a native window using QWindow::fromWinId(). This is called the "foreign window" capability. The QPA (Qt Platform Adapter) for Windows has that capability.

    Cheers,

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: HWND on Win32 API to Qt widget

    Quote Originally Posted by anda_skoa View Post
    You can embed a native window using QWindow::fromWinId(). This is called the "foreign window" capability. The QPA (Qt Platform Adapter) for Windows has that capability.
    I think OP wants to embed Qt widgets into his non-Qt app.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. hwnd to qwidget setparent error
    By cic in forum Qwt
    Replies: 1
    Last Post: 27th August 2013, 14:40
  2. Converting from Qt's WId to Windows HWND?
    By ComServant in forum Newbie
    Replies: 3
    Last Post: 27th December 2012, 18:26
  3. Get HWND of QGLWidget
    By pl01 in forum Newbie
    Replies: 2
    Last Post: 19th December 2010, 21:18
  4. Reparenting widget to Win32 application
    By RThaden in forum Qt Programming
    Replies: 0
    Last Post: 23rd February 2009, 18:21
  5. Can I paint on Qt widget by invoking win32 sdk api?
    By mendynew in forum Qt Programming
    Replies: 2
    Last Post: 25th March 2008, 01:33

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.