Results 1 to 2 of 2

Thread: QTreeWidget curious expanding bug

  1. #1
    Join Date
    Oct 2011
    Posts
    27
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QTreeWidget curious expanding bug

    Hi all,

    I've got a quite huge treewidget (subclassed) with always one unique root.

    When all children of this root are collapsed, I can't expand them any more using the expand button. I still can expand them with the keyboard (keys as '+', '->' or '*') but the expand button stays static. (On windows 7, the button should get a blue color on mouse hover but it remains black ...)

    I can't give an example code but :

    I've got a SLOT wich receives the itemClicked signal wich is used to auto select other items in the tree
    I've got a SLOT wich receives the itemSelectionChanged signal to update a toolbar
    And two slots connected to the signals itemExpanded/collapsed to add/remove thread tasks but which do not change anything in the tree state.

    When everything is working (when at least one child of the root is expanded), I receive the itemExpanded/Collapsed signals accordingly when I expand/collapse an item but when the bug occurs, I receive the itemClicked signal.

    Does anyone have an idea on what I'm doing wrong ? I'm totally lost (especially on the fact that the expand button stays black and is not animated anymore).

    I don't reimplement any paint event.

    Thanks in advance !

  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: QTreeWidget curious expanding bug

    Please provide a minimal compilable example reproducing the problem.
    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.


Similar Threads

  1. Curious bug
    By larsendt in forum Qwt
    Replies: 2
    Last Post: 1st May 2010, 21:10
  2. Replies: 2
    Last Post: 16th April 2009, 07:51
  3. Useless but curious compiler warning question
    By Raccoon29 in forum General Programming
    Replies: 4
    Last Post: 30th July 2008, 20:46
  4. Qt 4.5 , just curious
    By aamer4yu in forum General Discussion
    Replies: 8
    Last Post: 8th July 2008, 14:53
  5. curious: where all is Qtopia deployed??
    By nupul in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 9th April 2006, 23:14

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.