[Kde-bindings] [bindings] [Bug 324061] New: QWidget.WinId property in Qyoto throws AccessViolationException

Dimitar Dobrev dpldobrev at yahoo.com
Mon Aug 26 10:59:20 UTC 2013



    Could you please specify on which OS you get this error?


________________________________
 From: "num.ani.cloud at gmail.com" <num.ani.cloud at gmail.com>
To: kde-bindings at kde.org 
Sent: Monday, August 26, 2013 1:51 PM
Subject: [Kde-bindings] [bindings] [Bug 324061] New: QWidget.WinId property in Qyoto throws AccessViolationException
 

https://bugs.kde.org/show_bug.cgi?id=324061

            Bug ID: 324061
           Summary: QWidget.WinId property in Qyoto throws
                    AccessViolationException
    Classification: Unclassified
           Product: bindings
           Version: 4.9
          Platform: unspecified
                OS: MS Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kde-bindings at kde.org
          Reporter: num.ani.cloud at gmail.com

(I'm Japanese, and I hope you to tolerate poor English.)

Hi, I'm using Qyoto. I tried to get window handle of instance of my widget
class inherited from QWidget, but when I access QWidget.WinId Property it threw
AccessViolationException.
My program is as follows:

using QtGui;

class Program
{
    public static void Main( string[] args )
    {
        var app = new QApplication( args );
        var window = new MyWidget( null );
        window.Show();

        ulong id = window.WinId.Value;    // The exception was thrown from here

        QApplication.Exec();
    }
}

class MyWidget : QWidget
{
    public MyWidget( QWidget parent )
        : base( parent )
    {
    }
}

Is this a bug made by Qyoto? Or Is there something mistake in my program?

Reproducible: Always

Steps to Reproduce:
1. Set up project for using Qyoto.
2. Put source code into project and run.
Actual Results:  
The exception thrown from access for window.WinId

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Kde-bindings mailing list
Kde-bindings at kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20130826/35e4b324/attachment-0001.html>


More information about the Kde-bindings mailing list