Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
e8aad754
Commit
e8aad754
authored
Jul 31, 2010
by
Yannick Verdie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bugs on Qt
parent
49f1a9c3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
2 deletions
+12
-2
highgui.hpp
modules/highgui/include/opencv2/highgui/highgui.hpp
+1
-0
highgui_c.h
modules/highgui/include/opencv2/highgui/highgui_c.h
+1
-1
window.cpp
modules/highgui/src/window.cpp
+6
-1
window_QT.cpp
modules/highgui/src/window_QT.cpp
+0
-0
window_QT.h
modules/highgui/src/window_QT.h
+4
-0
No files found.
modules/highgui/include/opencv2/highgui/highgui.hpp
View file @
e8aad754
...
...
@@ -66,6 +66,7 @@ CV_EXPORTS double getWindowProperty(const string& winname, int prop_id);//YV
//Only for Qt
//------------------------
CV_EXPORTS
CvFont
fontQt
(
const
string
&
nameFont
,
int
pointSize
CV_DEFAULT
(
-
1
),
Scalar
color
CV_DEFAULT
(
Scalar
::
all
(
0
)),
int
weight
CV_DEFAULT
(
CV_FONT_NORMAL
),
int
style
CV_DEFAULT
(
CV_STYLE_NORMAL
),
int
spacing
CV_DEFAULT
(
0
));
CV_EXPORTS
void
addText
(
const
Mat
&
img
,
const
char
*
text
,
Point
org
,
CvFont
font
);
CV_EXPORTS
void
displayOverlay
(
const
string
&
winname
,
const
string
&
text
,
int
delayms
);
...
...
modules/highgui/include/opencv2/highgui/highgui_c.h
View file @
e8aad754
...
...
@@ -74,7 +74,7 @@ enum { CV_STYLE_NORMAL = 0,//QFont::StyleNormal,
//for color cvScalar(blue_component, green_component, red\_component[, alpha_component])
//and alpha= 0 <-> 0xFF (not transparent <-> transparent)
CVAPI
(
CvFont
)
cvFont
_
Qt
(
const
char
*
nameFont
,
int
pointSize
CV_DEFAULT
(
-
1
),
CvScalar
color
CV_DEFAULT
(
cvScalarAll
(
0
)),
int
weight
CV_DEFAULT
(
CV_FONT_NORMAL
),
int
style
CV_DEFAULT
(
CV_STYLE_NORMAL
),
int
spacing
CV_DEFAULT
(
0
));
CVAPI
(
CvFont
)
cvFontQt
(
const
char
*
nameFont
,
int
pointSize
CV_DEFAULT
(
-
1
),
CvScalar
color
CV_DEFAULT
(
cvScalarAll
(
0
)),
int
weight
CV_DEFAULT
(
CV_FONT_NORMAL
),
int
style
CV_DEFAULT
(
CV_STYLE_NORMAL
),
int
spacing
CV_DEFAULT
(
0
));
CVAPI
(
void
)
cvAddText
(
const
CvArr
*
img
,
const
char
*
text
,
CvPoint
org
,
CvFont
*
arg2
);
...
...
modules/highgui/src/window.cpp
View file @
e8aad754
...
...
@@ -190,10 +190,15 @@ int startWindowThread()
#if defined (HAVE_QT)
CvFont
fontQt
(
const
string
&
nameFont
,
int
pointSize
,
Scalar
color
,
int
weight
,
int
style
,
int
spacing
)
{
return
cvFontQt
(
nameFont
.
c_str
(),
pointSize
,
color
,
weight
,
style
);
}
void
addText
(
const
Mat
&
img
,
const
string
&
text
,
Point
org
,
CvFont
font
)
{
CvMat
_img
=
img
;
cvAddText
(
&
_img
,
text
.
c_str
(),
CvPoint
(
org
)
,
&
font
);
cvAddText
(
&
_img
,
text
.
c_str
(),
org
,
&
font
);
}
void
displayStatusBar
(
const
string
&
name
,
const
string
&
text
,
int
delayms
)
...
...
modules/highgui/src/window_QT.cpp
View file @
e8aad754
This diff is collapsed.
Click to expand it.
modules/highgui/src/window_QT.h
View file @
e8aad754
...
...
@@ -304,6 +304,10 @@ private:
void
icvLoadTrackbars
(
QSettings
*
settings
);
void
icvSaveTrackbars
(
QSettings
*
settings
);
void
icvLoadControlPanel
();
void
icvSaveControlPanel
();
void
icvLoadButtonbar
(
CvButtonbar
*
t
,
QSettings
*
settings
);
void
icvSaveButtonbar
(
CvButtonbar
*
t
,
QSettings
*
settings
);
void
createShortcuts
();
void
createActions
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment