MIRA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
QtUtils.h File Reference

Declaration of helper functions related to Qt. More...

#include <image/Img.h>
#include <transform/RigidTransform.h>
#include <widgets/GuiWidgetsExports.h>
#include <QString>
#include <QFileDialog>
Include dependency graph for QtUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mira
 specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
 
 mira::QtUtils
 

Functions

MIRA_GUI_WIDGETS_EXPORT QImage toQImage (const Img<> &img, double s_min, double s_max)
 Convert an image to QImage. More...
 
MIRA_GUI_WIDGETS_EXPORT void fromQImage (const QImage &qimage, Img<> &oImg)
 Convert a QImage to an image. More...
 
MIRA_GUI_WIDGETS_EXPORT void setTransform (QGraphicsItem *item, const RigidTransform2f &t)
 Applies a transform (translation and rotation) to a graphics scene item. More...
 
MIRA_GUI_WIDGETS_EXPORT QString getOpenFileName (QWidget *parent=NULL, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=NULL, QFileDialog::Options options=QFileDialog::DontUseNativeDialog)
 Enforce the use of non-native FileDialog-methods to prevent platform depending behavior differences. More...
 
MIRA_GUI_WIDGETS_EXPORT QString getSaveFileName (QWidget *parent=NULL, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=NULL, QFileDialog::Options options=QFileDialog::DontUseNativeDialog, const QStringList &enforceExtension=QStringList())
 Enforce the use of non-native FileDialog-methods to prevent platform depending behavior differences. More...
 
MIRA_GUI_WIDGETS_EXPORT QString getExistingDirectory (QWidget *parent=NULL, const QString &caption=QString(), const QString &dir=QString(), QFileDialog::Options options=QFileDialog::DontUseNativeDialog|QFileDialog::ShowDirsOnly)
 Enforce the use of non-native FileDialog-methods to prevent platform depending behavior differences. More...
 
MIRA_GUI_WIDGETS_EXPORT void initPainterFrom (QPainter &painter, const QWidget &widget)
 Init painter's pen, background and font from widget. More...
 

Detailed Description

Declaration of helper functions related to Qt.

Author
Tim Langner
Date
2011/02/06