Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. SetStyleSheet给QPushButton设置样式的问题
Forum Updated to NodeBB v4.3 + New Features

SetStyleSheet给QPushButton设置样式的问题

Scheduled Pinned Locked Moved Chinese
2 Posts 2 Posters 2.2k Views 1 Watching
  • 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.
  • H Offline
    H Offline
    huajin
    wrote on last edited by
    #1

    我通过setStyleSheet给一个QPushButton设置样式,其中引用了图片的url,我的图片是外部引用的,我是用了短路径否则空路径传不进来,发现setStyleSheet既然不支持短路径,而我直接在QPixmap上使用这个路径却可以正常使用

    1 Reply Last reply
    0
    • IamSumitI Offline
      IamSumitI Offline
      IamSumit
      wrote on last edited by
      #2

      您好,请通过下面的链接

      "这里":http://qt-project.org/doc/qt-4.8/stylesheet-examples.html

      Be Cute

      1 Reply Last reply
      0

      • Login

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