<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C1749C.8EF5D400">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;
        text-underline:single;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:windowtext;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi, I am relatively new to the KDE/Qt scene, but do have
already some experience with programming. Currently I am <span class=SpellE>kinda</span>
stuck in my project trying to do the following:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>(Btw I am using <span class=SpellE>Kdevelop</span> 2.0 on
8.1 <span class=SpellE>mdk</span> <span class=SpellE>linux</span>, and have
designed front-end with the Qt designer)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am working on an app that will have <span class=GramE>a</span>
audio playback transport control (i.e. play, stop, <span class=SpellE>rew</span>,
ff etc.) and a led-lamp which comes on when playback is happening, off when it’s
not and blinking when the playback is paused. <span class=GramE>Simple enough.</span><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I’ve created a separate <span class=SpellE>pthread</span>
which deals with accurate timing and feeds the main widget class with updated
timer values when needed, so that when the playback is paused, it triggers the
particular class slot every second in order to make the led lamp blink. So what
happens is that since the <span class=SpellE>pixmap</span> has been originally
declared as <span class=SpellE>Qlabel</span> <span class=SpellE>pixmap</span>
by Qt designer, I decided to change its contents by calling <span class=SpellE>PlayIndicator</span>-><span
class=SpellE><span class=GramE>setPixmap</span></span><span class=GramE>(</span>
image1 ); (where <span class=SpellE>playindicator</span> is the <span
class=SpellE>Qlabel</span>, and image1 is an image converted from a file) and
have an if statement and a control variable that toggles the appearance between
two images in a timely fashion, so that it appears to be blinking. The problem
is that when the program is set into motion, the lamp “blinks” ONLY
while I move the mouse, press stuff on keyboard, or click with the mouse (I do
not have to click on anything particular, but just have to keep moving/clicking
anywhere on the desktop). Otherwise the image does not change. I’ve tried
<span class=GramE>update(</span>) and repaint(<span class=SpellE>x,y,w,h</span>)
methods, but none worked.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Could someone please tell me why does the <span
class=SpellE>Qlabel</span> <span class=SpellE>pixmap</span> fail to update
image contents when asked to do so if there is no mouse/keyboard activity and
how can I make it update itself without being dependent on mouse/keyboard? <span
class=SpellE>QMovie</span> really does not seem practical for this kind of
situation, since this led-lamp has multifunction purpose and most of them
pertain to non-animated states.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The second question refers to a fact that LCD Number widget
does not support mouse events on it, but I am trying to implement that due to
my need to create as user-friendly of an interface as possible, so that user by
clicking onto the <span class=SpellE>lcd</span> number’s digit would with
LEFT click INCREASE value by one, while with RIGHT click decrease by one. Could
someone please explain me how can I go about achieving this? Do I need to put
the LCD on top of the hidden button widget or something, and then indirectly
control the <span class=SpellE><span class=GramE>lcd</span></span> value through
secondary mouse-aware widget, or is there a more elegant way of solving this
problem?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Finally, is there a way in Qt to differentiate between the
left and right clicks? If so could you please tell me how?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thank you for your assistance! Sincerely,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Ivica</span></font></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> <span
class=SpellE>Bukvic</span></span></font><o:p></o:p></p>

</div>

</body>

</html>