标题:用qwidget做了一个fontawesome预览的小程序
作者:futureq
日期:2019-01-20 23:29
内容:
没有设置颜色和图片,主要目的是熟悉一下QGraphicsxx相关的类,代码还没怎么整理,fontawesome的code和name用QMap存的,用的是最新的fontawesome版本,先把这个QMap贴出来,免得有人想试,又觉得这个map麻烦:
#include "famap.h"
FaMap::FaMap()
{
m_map.insert("500px", 0xf26e);
m_map.insert("address_book", 0xf2b9);
m_map.insert("address_book_o", 0xf2ba);
m_map.insert("address_card", 0xf2bb);
m_map.insert("address_card_o", 0xf2bc);
m_map.insert("adjust", 0xf042);
m_map.insert("adn", 0xf170);
m_map.insert("align_center", 0xf037);
m_map.insert("align_justify", 0xf039);
m_map.insert("align_left", 0xf036);
m_map.insert("align_right", 0xf038);
m_map.insert("amazon", 0xf270);
m_map.insert("ambulance", 0xf0f9);
m_map.insert("american_sign_language_interpreting", 0xf2a3);
m_map.insert("anchor", 0xf13d);
m_map.insert("android", 0xf17b);
m_map.insert("angellist", 0xf209);
m_map.insert("angle_double_down", 0xf103);
m_map.insert("angle_double_left", 0xf100);
m_map.insert("angle_double_right", 0xf101);
m_map.insert("angle_double_up", 0xf102);
m_map.insert("angle_down", 0xf107);
m_map.insert("angle_left", 0xf104);
m_map.insert("angle_right", 0xf105);
  ..
#1 [futureq 01-21 06:03]
昨天太晚了
#2 [listen342325 01-21 09:35]
这么能熬夜
#3 [liuchangyin 01-21 10:18]
#4 [九重水 01-21 10:42]
写这么长,为什么不弄个列表或文件,然后for循环一下了?
#5 回 九重水 的帖子 [futureq 01-21 11:46]
九重水: 写这么长,为什么不弄个列表或文件,然后for循环一下了? (2019-01-21 10:42)
是从文件提取的,不想把提取的代码放到这个工程里,改了一下代码,这个map是代码生成