Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7594 in orxonox.OLD for branches/qt_gui/src/lib


Ignore:
Timestamp:
May 11, 2006, 11:30:52 AM (19 years ago)
Author:
bensch
Message:

Image displayed

Location:
branches/qt_gui/src/lib/gui/qt_gui
Files:
2 added
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/lib/gui/qt_gui/Makefile.am

    r7593 r7594  
    1919                qt_gui_elements.cc \
    2020                qt_gui_elements_moc.cc \
     21                q_image_widget.cc \
     22                q_image_widget_moc.cc \
    2123                \
    2224                gui_video.cc \
     
    2931                qt_gui.h \
    3032                qt_gui_elements.h \
     33                q_image_widget.h \
    3134                \
    3235                gui_video.h \
  • branches/qt_gui/src/lib/gui/qt_gui/qt_gui.cc

    r7585 r7594  
    2626#include "gui_audio.h"
    2727#include "gui_general.h"
     28#include "banner.xpm"
     29#include <QtGui/QPainter>
     30#include "q_image_widget.h"
    2831
    2932namespace OrxGui
     
    3437
    3538    this->mainWindow = new QMainWindow();
    36 
     39    this->mainWindow->setMinimumSize(500, 200);
    3740
    3841    QGroupBox* groupBox = new QGroupBox(this->mainWindow);
    3942    QGridLayout* mainLayout = new QGridLayout(groupBox);
    4043    {
     44      QImageWidget* bannerWidget = new QImageWidget();
     45      QImage bannerImage(banner_xpm);
     46      bannerImage.save("test.bmp", "bmp");
     47      bannerWidget->setImage(bannerImage);
     48      mainLayout->addWidget(bannerWidget, 0,0, 3, 1);
     49
     50
    4151      QToolBox* toolBox = new QToolBox(groupBox);
    4252      {
Note: See TracChangeset for help on using the changeset viewer.