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

QPushButton修改背景失效

    XMLWordPrintable

Details

    • All

    Description

      QPushButton修改背景失效 修改悬停背景及按下背景不起作用 Google translate: "Modifying the background does not work. Modifying the hover background and pressing the background does not work."

      setStyleSheet("QPushButton:pressed { background-color:  red; color: black;}"
                               "QPushButton:hover { background-color: blue; color: black;}")

       

      不管修改什么背景颜色都不起作用,字体可以正常修改 Google translate: No matter what background color you modify, it does not work. The font can be modified normally.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jasen Jasen Lee
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes