Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As quark said, the functionality is not in Qt 4.5, but you can call the windows API directly from Qt. Its a little bit of work though.</p> <ol> <li><p>The new taskbar API is exposed through COM, so you can't use ctypes.windll . You need to create a .tlb file to access the functions. Get the interface definition for ITaskbarList from <a href="http://www.neowin.net/forum/index.php?s=6352ade29ce66f2b51506c64e455d2f4&amp;showtopic=716968&amp;st=0&amp;p=590434472&amp;#entry590434472" rel="noreferrer">this forum post</a> , or from the windows SDK. Save it to a file called e.g. TaskbarLib.idl .</p></li> <li><p>Create the .tlb file. You'll probably need the Windows SDK, or get an IDL compiler from somewhere else.</p> <pre><code>midl TaskbarLib.idl /tlb TaskbarLib.tlb </code></pre></li> <li><p>Load the .tlb (you need the Win32 Extensions for Python, <a href="http://python.net/crew/skippy/win32/Downloads.html" rel="noreferrer">http://python.net/crew/skippy/win32/Downloads.html</a>):</p> <pre><code>import comtypes.client as cc cc.GetModule("TaskbarLib.tlb") </code></pre></li> <li><p>Create the TaskbarList object. The function for setting the progress bar is in the interface ITaskbarList3:</p> <pre><code>import comtypes.gen.TaskbarLib as tbl taskbar = cc.CreateObject( "{56FDF344-FD6D-11d0-958A-006097C9A090}", interface=tbl.ITaskbarList3) </code></pre></li> <li><p>Now you can call the API functions:</p> <pre><code>taskbar.HrInit() taskbar.SetProgressValue(self.winId(),40,100) </code></pre></li> </ol> <p>Here's a <a href="http://pastebin.com/f7ed294a8" rel="noreferrer">complete example script</a>. Sources: <a href="http://aspn.activestate.com/ASPN/Mail/Message/python-win32/3757531" rel="noreferrer">1</a> <a href="http://www.neowin.net/forum/index.php?s=6352ade29ce66f2b51506c64e455d2f4&amp;showtopic=716968&amp;st=0&amp;p=590434472&amp;#entry590434472" rel="noreferrer">2</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload