Results 1 to 5 of 5

Thread: QMenu indicator style sheet undesired behaviour

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2019
    Posts
    7
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default QMenu indicator style sheet undesired behaviour

    Hello there,
    In one of my projects, I used to define my own application theme (via style sheets).

    Everything worked fine except when I tried to set an image for the QMenu::indicator:exclusive:checked state.
    In fact, it works fine for the checked item but it generates collateral undesired behaviour over unchecked items.
    Indeed, if I define an image for the checked indicator, the unchecked indicators become sunk and I don't understand why (and nothing worked to remove it: removing borders, changing border-style, setting an empty image, setting a not empty image, ... nothing seems to affect this ugly sunken border).

    You can find the details (context, screenshots, ...) of the problem in the original question here.

    If someone has an idea of how to get rid of it, I would be very grateful.

    Thanks in advance for those who will spend some time to help me.

    EDIT: After performing additional tests, it seems to be a bug. I reported it on the Qt bug tracker, you can find it here.
    Last edited by Fareanor; 6th August 2019 at 14:40.

Similar Threads

  1. Strange behaviour of hovering in QMenu
    By CassandraD in forum Qt Programming
    Replies: 0
    Last Post: 12th May 2014, 16:49
  2. QProgress bar - Busy Indicator - Strange behaviour
    By johnnyturbo3 in forum Newbie
    Replies: 4
    Last Post: 27th April 2011, 13:56
  3. Problems with Gradient style used through Style sheet on ARM platform
    By puneet.narsapur in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 25th January 2010, 12:48
  4. QMenu style sheet: works in dev env, breaks in release
    By JimDaniel in forum Qt Programming
    Replies: 1
    Last Post: 6th October 2008, 19:18
  5. [Style Sheet] QMenu::item:hover bug
    By spud in forum Qt Programming
    Replies: 3
    Last Post: 11th May 2007, 14:11

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.