天嵌 ARM开发社区

 找回密码
 注册
查看: 2571|回复: 3

用qtopia写图片浏览器遇到了好多错误

[复制链接]
大墩子 发表于 2012-9-4 22:28:13 | 显示全部楼层 |阅读模式
以下是错误信息:
ShowPicture.h:11:23: 错误:QtGui/QtGui:没有那个文件或目录
ShowPicture.h:12:34: 错误:ui_ShowPictureDialog.h:没有那个文件或目录
ShowPicture.h:39: 错误:expected primary-expression before ‘picturePixmap’
ShowPicture.h:39: 错误:ISO C++ 不允许声明无类型的 ‘priviate’
ShowPicture.h:39: 错误:expected ‘;’ before ‘picturePixmap’
ShowPicture.h:40: 错误:字段 ‘scaledPicturePixmap’ 类型不完全
ShowPicture.h:41: 错误:‘QDir’ 没有命名一个类型
/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include/qtooltip.h:87: 警告:‘class QToolTip’ 有虚函数却没有虚析构函数
ShowPicture.cpp: In constructor ‘ShowPicture::ShowPicture(QWidget*, const char*, uint)’:
ShowPicture.cpp:59: 错误:‘dir’ 在此作用域中尚未声明
ShowPicture.cpp:60: 错误:‘QDir’ 未声明
ShowPicture.cpp:62: 错误:‘QDir’ 未声明
ShowPicture.cpp:63: 错误:‘picturePixmap’ 在此作用域中尚未声明
ShowPicture.cpp: In member function ‘virtual void ShowPicture::doNext()’:
ShowPicture.cpp:100: 错误:‘class QStringList’ 没有名为 ‘size’ 的成员
ShowPicture.cpp:101: 错误:‘picturePixmap’ 在此作用域中尚未声明
ShowPicture.cpp:101: 错误:‘dir’ 在此作用域中尚未声明
ShowPicture.cpp:108: 错误:a function-definition is not allowed here before ‘{’ token
ShowPicture.cpp:151: 错误:expected `}' at end of input
-----------------------------------------------------------

我看了下错误信息,没有QtGui这个文件夹 ,我想是不是Qtopia本身 就没有这个库 从而少了这些类。 QDir也没有这样的类,是不是必须得用Qt4.5才可以?,求助不胜感激
 楼主| 大墩子 发表于 2012-9-4 22:31:29 | 显示全部楼层
以下是主程序的头文件
------------------

#ifndef SHOWPICTURE_HH
#define SHOWPICTURE_HH

#include <QtGui/QtGui>
#include "ui_ShowPictureDialog.h"

class ShowPicture:public QDialog, public Ui_ShowPictureDialog
{
Q_OBJECT
public:
ShowPicture(QWidget* parent = 0);

private:
QPixmap picturePixmap;            //original picture's pixmap
QPixmap scaledPicturePixmap;    //scaled picture's pixmap
QDir dir;
QStringList picturefilters;
QStringList picturelist;
int ithPicture;                    //the picture is showing is the ith
QSize scaledsize;

void showPicture();
void doScale();

public slots:
void doPrevious();
void doNext();
void doEnlarge();
void doReduce();
void doOpen();
};

#endif

请问这个程序是基于什么平台上实现的?
 楼主| 大墩子 发表于 2012-9-4 22:32:14 | 显示全部楼层
qtopia是不是实现不了,必须得搭建Qt4.5?
 楼主| 大墩子 发表于 2012-9-6 15:55:26 | 显示全部楼层
。。。为什么挽尊的人都没有。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-9-28 05:45 , Processed in 1.020547 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表