[Kde-bindings] C#, Qyoto, Qt - Accessing QTextEdit from another program

Dimitar Dobrev dpldobrev at yahoo.com
Wed Jan 22 23:25:54 UTC 2014



    Hi, Ariel,


    I think the easiest way would be adding a C function which returns the desired text and then P/Invoke this function. You'd best return QString::utf16() because .NET strings are encoded with UTF-16. You have to only make sure the returned pointer (ushort*) points to valid memory.

Regards,
Dimitar




On Thursday, January 23, 2014 1:18 AM, Ariel Rodriguez <arod2025mia at hotmail.com> wrote:
 
I have a program written in C++ using a QTextEdit textbox. I have another program written in C#, which I need to access a QTextEdit that is in the C++ program. Is there a way possibly with using the QProcess class and Qyoto to get the text from this textbox? FindWindow/FindWindowEx windows api did not work.

Thanks Before Hand


Posting at KDE:

http://forum.kde.org/viewtopic.php?f=22&t=119334                           
_______________________________________________
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/20140122/a4445353/attachment.html>


More information about the Kde-bindings mailing list