关于Qt与Matlab绘图的问题
1.我知道怎么调用Matlab生成的dll来画图,但它是单独在一个新窗口打开,论坛的高手们知不知道怎么将图形嵌入到主程序窗口?
2.能使用Matlab函数对窗口中的图形进行操作吗?如果能,那些Matlab接口函数我该去哪儿找? matlab qt 图形
[解决办法]
貌似你客一看看这个函数:
WId QWidget::winId() const
Returns the window system identifier of the widget.
Portable in principle, but if you use it you are probably about to do something non-portable. Be careful.
If a widget is non-native (alien) and winId() is invoked on it, that widget will be provided a native handle.
On Mac OS X, the type returned depends on which framework Qt was linked against. If Qt is using Carbon, the {WId} is actually an HIViewRef. If Qt is using Cocoa, {WId} is a pointer to an NSView.
This value may change at run-time. An event with type QEvent::WinIdChange will be sent to the widget following a change in window system identifier.
我曾经做过一个视频监控应用。使用RJ45端口的网络摄像机。也是把视屏嵌入Qt的window