33333
2nd July 2012, 02:59
Hi,
All the code Im looking at does this:
x.setWindowFlags( Qt::SomeFlag )
but shouldnt the correct usage in most cases be to specifically set or unset specific flags rather than presumably clobbering all of them. As in general you dont know which flags might be set on a given type of widget? E.g.:
x.setWindowFlags( x.windowFlags() | Qt::SomeFlag )
Thanks.
All the code Im looking at does this:
x.setWindowFlags( Qt::SomeFlag )
but shouldnt the correct usage in most cases be to specifically set or unset specific flags rather than presumably clobbering all of them. As in general you dont know which flags might be set on a given type of widget? E.g.:
x.setWindowFlags( x.windowFlags() | Qt::SomeFlag )
Thanks.