[Qt-interest] Doubt about WId received of the QWidget::winId()
Oswaldo F. Filho
oswaldo.f.filho at uol.com.br
Mon Feb 1 22:54:02 CET 2010
Alex,
I tried "frame->setAttribute(Qt::WA_NativeWindow, true)", but don't work.
I used QApplication::setAttribute() with attribute Qt:AA_NativeWindows
in main.cpp and now it work.
Thanks!
Oswaldo F. Filho.
Malyushytsky, Alex wrote:
> Try to set Qt::WA_NativeWindow attribute on the window you want to use WId.
>
> Regards,
> Alex
>
>
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Oswaldo F. Filho
> Sent: Thursday, January 28, 2010 4:01 PM
> To: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] Doubt about WId received of the QWidget::winId()
>
> oswaldo.f.filho wrote:
>> Hi!
>>
>> I just tested with MIL-Lite 9.0, one proprietary library for computer
>> vision, and I have a problem.
>>
>> I grab sequence of image through of the frame grabber and I store on a
>> buffer. I tried to show the images through of the function above:
>>
>> /* Display the buffers. */
>> MdispSelectWindow(MilDisplay, MilImage, frame->winId());
>>
>> When I compile the application with qt-4.3.4 I don't have any problem,
>> and application work, but when I compile the app lication with qt-4.4.1
>> the function MdispSelectWindow() return error and indicate that return
>> "frame->winId()" isn't validate.
>>
>> I tried to find some difference when I execute "xwininfo -int -tree"
>> above application compiled with qt-4.3.4 and qt-4.4.1, but I did't see
>> difference.
>>
>> What is it happened?
>>
>> Regards,
>>
>> Oswaldo F. Filho
>>
>
> Following message in text format.
>
> =======================================================================
>
> Hi!
>
> I just tested with MIL-Lite 9.0, one proprietary library for computer
> vision, and I have a problem.
>
> I grab sequence of image through of the frame grabber and I store on a
> buffer. I tried to show the images through of the function above:
>
> /* Display the buffers. */
> MdispSelectWindow(MilDisplay, MilImage, frame->winId());
>
> When I compile the application with qt-4.3.4 I don't have any problem,
> and application work, but when I compile the app lication with qt-4.4.1
> the function MdispSelectWindow() return error and indicate that return
> "frame->winId()" isn't validate.
>
> I tried to find some difference when I execute "xwininfo -int -tree"
> above application compiled with qt-4.3.4 and qt-4.4.1, but I did't see
> difference.
>
> What is it happened?
>
> Regards,
>
> Oswaldo F. Filho
>
> =======================================================================
>
> Help me, please!
>
> Oswaldo F. Filho
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
> ---------------------------------------------------------------------------------------------------
> Weidlinger Associates, Inc. made the following annotations.
>
> "This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."
>
> "Please consider our environment before printing this email."
More information about the Qt-interest-old
mailing list