手机版
你好,游客 登录 注册
背景:
阅读新闻

使用Qt和OpenCV做的图片平滑器

[日期:2013-04-22] 来源:Linux社区  作者:nimingzhe [字体:大 中 小]

mainwindow.ui文件

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
 
<property name="geometry">
 
<rect>
   
<x>0</x>
   
<y>0</y>
   
<width>400</width>
   
<height>300</height>
 
</rect>
 
</property>
 
<property name="windowTitle">
 
<string>MainWindow</string>
 
</property>
 
<widget class="QWidget" name="centralWidget">
 
<widget class="QPushButton" name="liulanButton">
   
<property name="geometry">
   
<rect>
     
<x>150</x>
     
<y>40</y>
     
<width>75</width>
     
<height>23</height>
   
</rect>
   
</property>
   
<property name="text">
   
<string>浏览</string>
   
</property>
 
</widget>
 
<widget class="QPushButton" name="xianshiButton">
   
<property name="geometry">
   
<rect>
     
<x>150</x>
     
<y>130</y>
     
<width>75</width>
     
<height>23</height>
   
</rect>
   
</property>
   
<property name="text">
   
<string>处理</string>
   
</property>
 
</widget>
 
<widget class="QPushButton" name="baocunButton">
   
<property name="geometry">
   
<rect>
     
<x>150</x>
     
<y>200</y>
     
<width>75</width>
     
<height>23</height>
   
</rect>
   
</property>
   
<property name="text">
   
<string>保存文件</string>
   
</property>
 
</widget>
 
</widget>
 
<widget class="QMenuBar" name="menuBar">
 
<property name="geometry">
   
<rect>
   
<x>0</x>
   
<y>0</y>
   
<width>400</width>
   
<height>23</height>
   
</rect>
 
</property>
 
</widget>
 
<widget class="QToolBar" name="mainToolBar">
 
<attribute name="toolBarArea">
   
<enum>TopToolBarArea</enum>
 
</attribute>
 
<attribute name="toolBarBreak">
   
<bool>false</bool>
 
</attribute>
 
</widget>
 
<widget class="QStatusBar" name="statusBar"/>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>

main.cpp文件

#include <QtGui/QApplication>
#include
"mainwindow.h"
int main(int argc, char*argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
   
   
return a.exec();
}
linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款