Results 1 to 2 of 2

Thread: Create a QWidget as child of a Win32 window

  1. #1
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    13
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Create a QWidget as child of a Win32 window

    Hi,

    I want to create a QWidget that is shown on the today screen. For now I search the HWND of the today screen app (and find the correct one), but when I try to create the QWidget as a child it always crashes my windows mobile phone.

    I use the following code to create the child widget:
    Qt Code:
    1. MyChildWidget::MyChildWidget(WId parent)
    2. : QWidget( 0, Qt::SubWindow )
    3. {
    4. create( parent, true, true );
    5. }
    To copy to clipboard, switch view to plain text mode 

    Thanks for any help

  2. #2
    Join Date
    Mar 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Create a QWidget as child of a Win32 window

    look at QwinWidget
    It allows to create a bridge between the win32 app and your Qapp
    http://doc.trolltech.com/solutions/q...ate/index.html

    Cheers

Similar Threads

  1. Embed QWebView into non-QT Win32 window (whole window)
    By sonusingh in forum Qt Programming
    Replies: 0
    Last Post: 29th January 2010, 12:40
  2. Replies: 8
    Last Post: 7th May 2009, 15:38
  3. How to close parent window from child window?
    By montylee in forum Qt Programming
    Replies: 5
    Last Post: 14th October 2008, 12:40
  4. Replies: 11
    Last Post: 4th June 2008, 08:22
  5. can't create qmake when installing at windows XP with win32-g++
    By owen_263 in forum Installation and Deployment
    Replies: 4
    Last Post: 31st March 2008, 08:39

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.