【发布时间】:2013-03-05 09:21:54
【问题描述】:
我想在参数为 QString 的 LineEdit 中显示 10x10 窗口 CV_IMAGE_ELEM 的结果。
我应该考虑以下几点:
for (int y=0;y<10;y++)
{
for (int x=0;x<10;x++) //width
{
QString qstr= CV_IMAGE_ELEM(img_crop_mat, uchar, y, x*3+ 2);
QString ctot= qstr + ctot;
lineEdit_mat->setText(ctot + " ");
}
lineEdit_mat->setText("\n");
}
谢谢。
【问题讨论】:
-
你得到了什么?有效吗?
-
不,它什么也没有。空行编辑!
-
您将文本设置为“/n”,您期望什么?
-
@Roku 好的,如果我想插入一个结束行并向 LineEdit 添加一些其他文本怎么办?可能吗?
-
你能告诉我吗?
标签: c++ visual-studio-2010 qt opencv