Commit 551b118b authored by roangel's avatar roangel
Browse files

added image to project. Need to adjust size, offset, etc. Need also to...

added image to project. Need to adjust size, offset, etc. Need also to investigate CMAKE resource adding
parent 452612ee
......@@ -14,6 +14,8 @@ TEMPLATE = app
INCLUDEPATH += $$PWD/include
CONFIG += c++11
RESOURCES = CrazyFlyGUI.qrc
SOURCES += \
src/cornergrabber.cpp \
......
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>images/drone.png</file>
</qresource>
</RCC>
\ No newline at end of file
......@@ -108,6 +108,7 @@ private:
void _init();
std::vector<Marker*> markers_vector;
QGraphicsPixmapItem* drone_image;
#ifdef CATKIN_MAKE
rosNodeThread* _rosNodeThread;
......
......@@ -9,6 +9,7 @@
#include <QTextEdit>
#include <QString>
#include <QMetaType>
#include <QDir>
#include <string>
......@@ -69,6 +70,11 @@ void MainGUIWindow::_init()
ui->graphicsView->setScene(scene);
QPixmap pixmap(":/images/drone.png");
drone_image = new QGraphicsPixmapItem(pixmap);
drone_image->setPos(0,0);
scene->addItem(drone_image);
QObject::connect(ui->tabWidget, SIGNAL(tabCloseRequested(int)), scene, SLOT(removeCrazyFlyZone(int)));
QObject::connect(scene, SIGNAL(numCrazyFlyZonesChanged(int)), this, SLOT(set_tabs(int)));
QObject::connect(ui->tabWidget, SIGNAL(currentChanged(int)), scene, SLOT(setSelectedCrazyFlyZone(int)));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment