Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-100401

QToolbutton with popupMode QToolButton::InstantPopup and stylesheet have 2 arrows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.3, 6.2
    • 6.2.3
    • GUI: Look'n'Feel
    • None

    Description

      QToolbutton with popup mode QToolButton::InstantPopup and a stylesshet have 2 arrows.

      The normal arrow, and a big arrow drown in the center of the button

      .

       It's the same problem of QTBUG-98286. Perhaps the patch done to correct this bug have introduce this one.

       

      QToolbutton with QToolButton::MenuButtonPopup also have the problem + the menu part seems always highlighted

      with stylesheet: — without:

      qApp->setStyleSheet("QMenu::item:selected { color: white; }");
      QToolButton* tb = new QToolButton;
      QMenu* mnu = new QMenu(tb);
      tb->setMenu(mnu);
      tb->setPopupMode(QToolButton::InstantPopup);
      tb->show();
      

      Attachments

        1. image-2022-02-04-15-26-38-751.png
          image-2022-02-04-15-26-38-751.png
          0.7 kB
        2. MenuButtonPopup_bad.png
          MenuButtonPopup_bad.png
          0.7 kB
        3. MenuButtonPopup_good.png
          MenuButtonPopup_good.png
          0.6 kB
        4. pb_arrow_tb.png
          pb_arrow_tb.png
          1 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              axelspoerl Axel Spoerl
              alban_go2 Alban Pellet
              Votes:
              15 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes