Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QToolButton and InstantPopup mode icon issue (large black down arrow across entire icon face)
QtWS25 Last Chance

QToolButton and InstantPopup mode icon issue (large black down arrow across entire icon face)

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 667 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JohnGa
    wrote on 2 Mar 2022, 22:55 last edited by
    #1

    Hello,
    I have a toolbar, to which I add a QToolButton to show a menu. Prior to Qt 6.2.3, this used to display the tiny arrow menu indicator in the bottom right corner of the button. I think Qt 6.2.3 either introduced a bug or some setting that needs to be specified. Now, there is a large down arrow being displayed like this on top of the whole icon. Both DelayedPopup and InstantPopup show this problem :

    InstantPopup.png

    But MenuButtonPopup seems to work correctly:
    .MenubuttonPopup.png

    This is a code snippet to recreate the problem:

      QToolButton* button = new QToolButton();
      button->setPopupMode(QToolButton::InstantPopup);
      QMenu* menu = new QMenu();
    
      button->setMenu(menu);
      button->setIcon(QIcon(":/stop.png"));
      menu->addAction("test1");
      toolbar->addWidget(button);
    

    I can't seem to fix with stylesheets or with any other settings. Is this a bug? Anybody have suggestions that can fix this problem?

    Thanks

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Axel Spoerl
      Moderators
      wrote on 3 Mar 2022, 13:17 last edited by
      #2

      Hi John,
      indeed, this is a bug. See here for details and fixed Qt versions.
      Brgds
      Axel

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      2
      • J Offline
        J Offline
        JohnGa
        wrote on 3 Mar 2022, 14:14 last edited by
        #3

        Thanks @Axel-Spoerl.

        1 Reply Last reply
        0

        3/3

        3 Mar 2022, 14:14

        • Login

        • Login or register to search.
        3 out of 3
        • First post
          3/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved