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
3e8a8f79
Commit
3e8a8f79
authored
Aug 19, 2010
by
Yannick Verdie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt weird bug with QLabel (is it really fixed ?)
parent
e693f4b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
17 deletions
+6
-17
window_QT.cpp
modules/highgui/src/window_QT.cpp
+5
-3
window_QT.h
modules/highgui/src/window_QT.h
+1
-14
No files found.
modules/highgui/src/window_QT.cpp
View file @
3e8a8f79
...
...
@@ -345,7 +345,8 @@ CvWindow* icvFindWindowByName( const char* arg )
CvWindow
*
w
;
CvWinModel
*
temp
;
//This is not a very clean way to do the stuff. Indeed, QAction automatically generate toolTil (QLabel)
//that can be grabbed here and crash the code at 'w->param_name==name'.
foreach
(
QWidget
*
widget
,
QApplication
::
topLevelWidgets
())
{
...
...
@@ -355,7 +356,7 @@ CvWindow* icvFindWindowByName( const char* arg )
if
(
temp
->
type
==
type_CvWindow
)
{
w
=
(
CvWindow
*
)
temp
;
if
(
w
->
param_name
==
name
)
if
(
name
.
compare
(
w
->
param_name
)
==
0
)
{
window
=
w
;
break
;
...
...
@@ -1685,7 +1686,8 @@ void CvWindow::createShortcuts()
void
CvWindow
::
createToolBar
()
{
myToolBar
=
new
QToolBar
(
this
);
myToolBar
->
setFloatable
(
false
);
//is not a window
myToolBar
->
blockSignals
(
true
);
//myToolBar->setFloatable(false);//is not a window
myToolBar
->
setMaximumHeight
(
28
);
foreach
(
QAction
*
a
,
vect_QActions
)
...
...
modules/highgui/src/window_QT.h
View file @
3e8a8f79
...
...
@@ -256,7 +256,7 @@ private:
//Both are top level window, so that a way to differenciate them.
//if (obj->metaObject ()->className () == "CvWindow") does not give me robust result
enum
typeWindow
{
type_CvWindow
=
0
,
type_CvWinProperties
=
1
};
enum
typeWindow
{
type_CvWindow
=
1
,
type_CvWinProperties
=
2
};
class
CvWinModel
:
public
QWidget
{
...
...
@@ -280,17 +280,6 @@ private:
};
class
GlobalLayout
:
public
QBoxLayout
{
Q_OBJECT
public
:
GlobalLayout
(
QWidget
*
parent
)
:
QBoxLayout
(
QBoxLayout
::
TopToBottom
,
parent
){};
bool
hasHeightForWidth
()
{
return
true
;};
int
heightForWidth
(
int
w
)
{
qDebug
()
<<
"yopyopypp"
;
return
w
;};
};
class
CvWindow
:
public
CvWinModel
{
Q_OBJECT
...
...
@@ -383,8 +372,6 @@ public:
void
setOpenGLCallback
(
CvOpenGLCallback
func
,
void
*
userdata
,
double
arg3
,
double
arg4
,
double
arg5
);
int
getRatio
();
void
setRatio
(
int
arg
);
int
heightForWidth
(
int
w
);
// {qDebug()<<"yopyopypp";return w;};
bool
hasHeightForWidth
(){
qDebug
()
<<
"ask"
;
return
true
;};
//parameters (will be save/load)
QTransform
param_matrixWorld
;
...
...
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