Results 1 to 11 of 11

Thread: QCheckBox Item In QDropdown

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2015
    Location
    India
    Posts
    185
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 14 Times in 14 Posts

    Default Re: QCheckBox Item In QDropdown

    Even I am not sure, The quick check you can do is, Just try to build same code on another version (It worked for me on Qt4.8.6 & 5.4.0) It works fine with these versions then there is an issue with your version.
    One more thing you can try is use QItemDelegate instead of QStyledItemDelegate (Of course there is no much diff b/w them apart from QStyledItemDelegate uses current style to draw items, But it may get solved if there is a bug in QStyledItemDelegate).
    Thanks :-)

  2. #2
    Join Date
    Jun 2007
    Location
    Louisiana
    Posts
    77
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Re: QCheckBox Item In QDropdown

    prasad_N

    Thanks for the replay. I did compile with QItemDelegate instead of the QStyledItemDelegate and no change in result.

    I am beginning to believe there is some kind of bug in the Item Delegate classes. I will try to run your test on Windows and see if it exists there as well. If so, I will post a bug report.


    UPDATE:

    I moved the code to my Windows XP SP3 platform and it runs as advertised. This tends to point to my Linux Mint installation. I am going to try a re-install of Qt 5.5 and see if that makes a difference. I have checked the dependencies and all are installed on my system so if the re-install produces the same result, I will have to post a bug report.
    Last edited by ad5xj; 5th November 2015 at 16:34.

Similar Threads

  1. QCheckBox
    By sajis997 in forum Qt Programming
    Replies: 1
    Last Post: 2nd May 2012, 15:15
  2. QCheckBox as item of QComboBox
    By Grinchman in forum Newbie
    Replies: 6
    Last Post: 23rd June 2011, 14:44
  3. About QCheckBox
    By liushuo0826 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 16th April 2010, 07:14
  4. QCheckBox value
    By Koas in forum Qt Programming
    Replies: 2
    Last Post: 19th January 2009, 14:33
  5. QCheckbox
    By sonuani in forum Qt Programming
    Replies: 1
    Last Post: 19th February 2008, 14:12

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
  •  
Qt is a trademark of The Qt Company.