QGIS API Documentation
3.4.15-Madeira (e83d02e274)
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
gui
qgspixmaplabel.h
Go to the documentation of this file.
1
/***************************************************************************
2
3
----------------------------------------------------
4
date : 7.9.2015
5
copyright : (C) 2015 by Matthias Kuhn
6
email : matthias (at) opengis.ch
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSPIXMAPLABEL_H
17
#define QGSPIXMAPLABEL_H
18
19
#include <QLabel>
20
#include "
qgis.h
"
21
#include "qgis_gui.h"
22
28
class
GUI_EXPORT
QgsPixmapLabel
:
public
QLabel
29
{
30
Q_OBJECT
31
32
public
:
33
35
explicit
QgsPixmapLabel
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
36
43
int
heightForWidth(
int
width )
const override
;
44
50
QSize sizeHint()
const override
;
51
52
public
slots:
53
void
setPixmap(
const
QPixmap & );
54
void
resizeEvent( QResizeEvent * )
override
;
55
private
:
56
QPixmap mPixmap;
57
};
58
59
#endif // QGSPIXMAPLABEL_H
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition:
qgis_sip.h:46
qgis.h
QgsPixmapLabel
The QgsPixmapLabel class shows a pixmap and adjusts its size to the space given to the widget by the ...
Definition:
qgspixmaplabel.h:28
Generated on Sun Jan 19 2020 15:27:13 for QGIS API Documentation by
1.8.11