简体   繁体   中英

Binding in C++ like in C#

Is it possible to bind variables in C++ like in C#(converting values ... auto updating ... etc)??

I had a short experience with C++ a few years ago and have been programming in C# for about a year and a half now. Now I want to go back to C++ and that question came to mind. Can anybody help me?

There is no direct IDE-level schema for C++ to bind a model to a view. Languages like C# and Obj-C were designed with this in mind, as were the frameworks built around them. So even though you can't use an interface builder to bind your model to view, maybe code a little boilerplate code and BAM application works... you can still get the same effect but you'll need to understand the boilerplate code behind this pattern more directly.

Qt is a fine example as always: http://doc.qt.nokia.com/4.7-snapshot/model-view-programming.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM