rock_widget_collection  0.1
multimain.cc
Go to the documentation of this file.
1 /*
2  * File: multimain.cc
3  * Author: blueck
4  *
5  * Created on 10. Februar 2011, 14:02
6  */
7 
8 #include <cstdlib>
9 #include <iostream>
10 #include "QtGui/qapplication.h"
11 #include <QtGui/qwidget.h>
12 
13 #include "MultiViewWidget.h"
15 
16 #include <limits>
17 
18 using namespace std;
19 
20 /*
21  *
22  */
23 int main(int argc, char** argv)
24 {
25  QApplication* app = new QApplication(argc, argv);
26  MultiViewWidget* widget = new MultiViewWidget(NULL);
27 // widget->setThumbnailPosition(0);
28  widget->setThumbnailSize(100, 100);
29  ImageViewOld* imageView = new ImageViewOld();
30  QImage* image = new QImage();
31  image->load("/home/blueck/pics/testimage.jpg");
32  imageView->addImage(*image);
33 // imageView->setMaximumSize(image->width(), image->height());
34 
35  widget->addWidget(QString("Image"), imageView);
36  widget->show();
37  app->exec();
38  return 0;
39 }
40 
int main(int argc, char **argv)
Definition: multimain.cc:23
void setThumbnailSize(int width=150, int height=150)
void addImage(const QImage &image)
void addWidget(const QString &name, QWidget *widget, const QIcon &icon=QIcon(), bool useOnlyIcon=false, int position=0)