Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 请问怎么用QString QIcon::name() const?
Forum Updated to NodeBB v4.3 + New Features

请问怎么用QString QIcon::name() const?

Scheduled Pinned Locked Moved Unsolved Chinese
1 Posts 1 Posters 700 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.
  • cloud21C Offline
    cloud21C Offline
    cloud21
    wrote on last edited by
    #1

    我在UI界面为按钮设置了icon,想在程序运行中取得按钮上icon的文件名。
    我试了QString QIcon::name() const方法,但是返回的是空串。
    各位哥哥怎么看?
    1_1541419128866_h.png 0_1541419128866_f.png

    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