<div>Hi !</div>
<div> </div>
<div>Porting the "windowflags" example, I had a problem comparing two QtCore.Qt.WindowFlags.</div>
<div> </div>
<div>Example:</div>
<div> </div>
<div>In previewwindow.py i had the following code:</div>
<div><font size="2">
<p>flag_type = (flags & QtCore.Qt.WindowType_Mask)</p>
<p></p>
<p>if (flag_type == QtCore.Qt.Window):</p>
<p>But when i try to make the flag_type comparisons it is always false.</p>
<p>To solve the problem, i had to put this line of code below before of the other two lines of code:</p>
<p>flags = int(flags)</p>
<p>I dont know if i could explain it well, can you take a look at previewwindow.py from the "windowflags" example, please ?</p>
<p>Is this the correct behaviour ? Do we have to explicit convert the QtCore.Qt.WindowFlags object to a "int" ?</p>
<p>Another thing, looking at QtCore i did not found QFlags, is it there ?</p>
<p>See ya</p></font><br></div>
<div><span class="gmail_quote">2005/12/9, Phil Thompson <<a href="mailto:phil@riverbankcomputing.co.uk">phil@riverbankcomputing.co.uk</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Friday 09 December 2005 11:17 pm, you wrote:<br>> Here goes the "wiggly" example.<br><br>Thanks,
<br>Phil<br></blockquote></div><br>