QGIS API Documentation
3.43.0-Master (c67cf405802)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Functions
a
b
c
d
f
g
h
i
l
m
n
o
p
r
s
t
w
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
e
f
g
h
i
l
n
o
p
q
r
s
t
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
Loading...
Searching...
No Matches
src
gui
qgsscalemethodwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsscalemethodwidget.h
3
------------------------
4
begin : March 2025
5
copyright : (C) 2025 by Nyall Dawson
6
email : nyall.dawson@gmail.com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSSCALEMETHODWIDGET_H
19
#define QGSSCALEMETHODWIDGET_H
20
21
#include "
qgis.h
"
22
#include "
qgis_sip.h
"
23
#include "qgis_gui.h"
24
#include <QWidget>
25
26
class
QLabel;
27
class
QComboBox;
28
34
class
GUI_EXPORT
QgsScaleMethodWidget
:
public
QWidget
35
{
36
Q_OBJECT
37
public
:
38
Q_PROPERTY(
Qgis::ScaleCalculationMethod
scaleMethod READ scaleMethod WRITE setScaleMethod NOTIFY methodChanged )
39
40
41
QgsScaleMethodWidget
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
42
48
Qgis::ScaleCalculationMethod
scaleMethod()
const
;
49
55
void
setScaleMethod(
Qgis::ScaleCalculationMethod
method );
56
57
signals:
58
62
void
methodChanged
();
63
64
private
:
65
QComboBox *mCombo =
nullptr
;
66
QWidget *mWarningLabelContainer =
nullptr
;
67
QLabel *mWarningLabel =
nullptr
;
68
69
private
slots:
70
void
updateWarning();
71
};
34
class
GUI_EXPORT
QgsScaleMethodWidget
:
public
QWidget {
…
};
72
73
#endif
// QGSSCALEMETHODWIDGET_H
Qgis::ScaleCalculationMethod
ScaleCalculationMethod
Scale calculation logic.
Definition
qgis.h:5080
QgsScaleMethodWidget
A widget which lets the user select from scale calculation methods.
Definition
qgsscalemethodwidget.h:35
QgsScaleMethodWidget::methodChanged
void methodChanged()
Emitted when the selected method is changed.
qgis.h
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:53
Generated on Tue Apr 8 2025 15:57:40 for QGIS API Documentation by
1.9.8