Results 1 to 8 of 8

Thread: QtWinExtras TaskbarButton Progress not turning red

  1. #1
    Join Date
    Apr 2010
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default QtWinExtras TaskbarButton Progress not turning red

    Hi,

    For some reason I can't set the programs taskbar progress indicator red as documented here and here. Setting paused to true
    works fine by turning the color yellow.

    Qt Code:
    1. import QtWinExtras 1.0
    2.  
    3. ApplicationWindow{
    4. ...
    5. TaskbarButton{
    6. id: taskbar
    7. progress.visible: true
    8. progress.stopped: true // should turn it red
    9. progress.value: 95
    10. }
    11. ...
    12. }
    To copy to clipboard, switch view to plain text mode 

    The runtime output is: qrc:/main.qml:8 Invalid property assignment: "stopped" is a read-only property

    How can I see inside the QtWinExtras module to make sure how it is defined?

    The Qt version I am using is: 5.4.1

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtWinExtras TaskbarButton Progress not turning red

    It is defined as a read only (const bool) value (QWinTaskbarProgress::stopped).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Apr 2010
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: QtWinExtras TaskbarButton Progress not turning red

    I see.

    Then there's also the
    Qt Code:
    1. void QWinTaskbarProgress::stop()
    To copy to clipboard, switch view to plain text mode 
    in C++

    Can I call this from QML somehow?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtWinExtras TaskbarButton Progress not turning red

    No idea I would probably report a bug about an incomplete API (in my opinion stopped in QML shouldn't be read-only).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Apr 2010
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: QtWinExtras TaskbarButton Progress not turning red

    Thanks for confirming. I'll report it.

  6. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QtWinExtras TaskbarButton Progress not turning red

    stop() is a slot, it should be callable from QML.

    Cheers,
    _

  7. #7
    Join Date
    Apr 2010
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: QtWinExtras TaskbarButton Progress not turning red

    Yep. It works. It's not documented still (yet).

    Also the other slots seem to be there actually.

  8. #8
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QtWinExtras TaskbarButton Progress not turning red

    What do you mean it is not documented?

    I see stop() being documented right here: http://doc.qt.io/qt-5/qwintaskbarprogress.html#stop

    Cheers,
    _

Similar Threads

  1. Replies: 3
    Last Post: 30th March 2010, 15:04
  2. turning widgets to original state
    By helvin in forum Qt Programming
    Replies: 2
    Last Post: 21st September 2009, 08:35
  3. Replies: 4
    Last Post: 11th March 2008, 11:44
  4. Turning off ToolTips
    By steg90 in forum Qt Programming
    Replies: 11
    Last Post: 16th May 2007, 17:00
  5. QTableWidget (resizing rows, turning off selection, etc.)
    By kiss-o-matic in forum Qt Programming
    Replies: 6
    Last Post: 11th January 2007, 01:57

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.