QT(큐티)로 구현한 이미지뷰어(Image Viewer) + 소스
*경*
다운로드
장바구니
*해당 문서는 미리보기가 지원되지 않습니다.
소개글
QT(큐티)로 구현한 이미지뷰어(Image Viewer) + 소스입니다. 100% 본인이 구현하였고 최대한 초보자가 알아볼수 있도록
고차원적인 함수를 피했습니다.
저장 기능
출력기능
이미지 회전기능
슬라이드쇼 기능
페이지 전환 기능
추가기능 의뢰하실분은 쪽지 보내시길 바랍니다.
컴파일 실행환경
QT toolkit본문내용
#ifndef MAINWINDOW_H#define MAINWINDOW_H
#include <QMainWindow>
#include <QString>
#include <QDir>
#include <QFileDialog>
#include <QListWidget>
#include <QGridLayout>
#include <QWidget>
#include <QTimer>
class QActionGroup;
class QLabel;
class QMenu;
class QButton;
class QEditText;
class ListEdit;
class QAction;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow();
private slots:
void save();
void open();
void print();
void reverse();
void next_page();
void prev_page();
void slide_show();
void rotate_add();
void rotate_min();
void slide_stop();
void current_page(QListWidgetItem* Item);
bool saveFile(const QByteArray &fileFormat);
bool saveImage(const QString &fileName, const char *fileFormat);
private:
void Create_Action();
void Create_Menus();
//menu
int index;
double angle;
QMenu* File;
QMenu *saveAsMenu;
QMenu* Imaged;
QMenu* Help;
//menu act
QList<QAction *> saveAsActs;
QAction* openAct;
QAction* printAct;
QAction* rotateAct;
QAction* reverseAct;
QAction* rotate_plusAct;
QAction* rotate_minusAct;
QAction* next_PageAct;
QAction* prev_PageAct;
QAction* slide_showAct;
QStringList Image_List;
QLabel* print_image;
QPixmap Buffer;
QString current_Path;
//QString open_Path;
QString save_Path;
QListWidget* path_List;
QPushButton* prev_Image_btn;
QPushButton* next_Image_btn ;
QPushButton* save_Image_btn ;
QPushButton* slide_Show_btn ;
QPushButton* slide_Stop_btn ;
QPushButton* rotate_Plus;
QPushButton* rotate_minus;
QTimer* timer;
};
#endif // MAINWINDOW_H
압축파일 내 파일목록
Debug/BuildLog.htm
Debug/main.obj
Debug/mainwindow.exe
Debug/mainwindow.exe.intermediate.manifest
Debug/mainwindow.ilk
Debug/mainwindow.obj
Debug/mainwindow.pdb
Debug/moc_mainwindow.obj
Debug/mt.dep
Debug/qrc_mainwindow.obj
Debug/QtCored4.dll
Debug/QtGui4.dll
Debug/QtGuid4.dll
Debug/vc90.idb
Debug/vc90.pdb
Debug.zip
mainwindow/GeneratedFiles/Debug/moc_mainwindow.cpp
mainwindow/GeneratedFiles/qrc_mainwindow.cpp
mainwindow/GeneratedFiles/Release/moc_mainwindow.cpp
mainwindow/GeneratedFiles/ui_mainwindow.h
mainwindow/main.cpp
mainwindow/mainwindow.cpp
mainwindow/mainwindow.h
mainwindow/mainwindow.qrc
mainwindow/mainwindow.ui
mainwindow/mainwindow.vcproj
mainwindow/mainwindow.vcproj.kyungrokpark-PC.kyungrok park.user
mainwindow/Resources/
mainwindow.ncb
mainwindow.sln
mainwindow.suo
Release/BuildLog.htm
Release/main.obj
Release/mainwindow.exe
Release/mainwindow.exe.intermediate.manifest
Release/mainwindow.obj
Release/moc_mainwindow.obj
Release/mt.dep
Release/qrc_mainwindow.obj
Release/QtCore4.dll
Release/QtCored4.dll
Release/QtGui4.dll
Release/QtGuid4.dll
Release/vc90.idb
Release (2).zip
Release.zip
Debug/main.obj
Debug/mainwindow.exe
Debug/mainwindow.exe.intermediate.manifest
Debug/mainwindow.ilk
Debug/mainwindow.obj
Debug/mainwindow.pdb
Debug/moc_mainwindow.obj
Debug/mt.dep
Debug/qrc_mainwindow.obj
Debug/QtCored4.dll
Debug/QtGui4.dll
Debug/QtGuid4.dll
Debug/vc90.idb
Debug/vc90.pdb
Debug.zip
mainwindow/GeneratedFiles/Debug/moc_mainwindow.cpp
mainwindow/GeneratedFiles/qrc_mainwindow.cpp
mainwindow/GeneratedFiles/Release/moc_mainwindow.cpp
mainwindow/GeneratedFiles/ui_mainwindow.h
mainwindow/main.cpp
mainwindow/mainwindow.cpp
mainwindow/mainwindow.h
mainwindow/mainwindow.qrc
mainwindow/mainwindow.ui
mainwindow/mainwindow.vcproj
mainwindow/mainwindow.vcproj.kyungrokpark-PC.kyungrok park.user
mainwindow/Resources/
mainwindow.ncb
mainwindow.sln
mainwindow.suo
Release/BuildLog.htm
Release/main.obj
Release/mainwindow.exe
Release/mainwindow.exe.intermediate.manifest
Release/mainwindow.obj
Release/moc_mainwindow.obj
Release/mt.dep
Release/qrc_mainwindow.obj
Release/QtCore4.dll
Release/QtCored4.dll
Release/QtGui4.dll
Release/QtGuid4.dll
Release/vc90.idb
Release (2).zip
Release.zip