Qt 矢量图标使用 FontAwesome Icon

1.效果

把这些图标全打出来,方便查找
在这里插入图片描述
Qt 图标

做个按钮试试

默认
在这里插入图片描述
悬浮 (改变字体色)
在这里插入图片描述
点击(字体斜体)
在这里插入图片描述
选中 (字体下划线)
在这里插入图片描述
简短代码示例

 QPushButton *pBtn= new QPushButton(this);
 pBtn->setText(CFaIcon::iconsQString(CFaIcon::Fa_list_alt));
 pBtn->setStyleSheet("QPushButton{background-color:transparent;color:#ffffff;font:22px FontAwesome;}" 
                                   "QPushButton::checked{color:#30A7F8;text-decoration:underline;}"
                                   "QPushButton::hover{color:#30A7F8;}" 
                                   "QPushButton::pressed{color:#30A7F8;font-style:italic;}"
                                   );
2.简述
图标很多软件都会用到,但是由于常用的png这种图标缩放之后会失真,还不能在程序中修改图标颜色,
所以就找了两种格式的图标,一种是svg矢量图标,可支持渐变,颜色设置等等。
还有就是ttf,这种格式是我们常用的字体格式,像微软雅黑这种,属性有字体色、斜体、粗体、下划线、顶划线、中间划线。
FontAwesome    就是一款开源免费可商用的字体,这个里边全是图标,
字体=图标,可以通过设置字体颜色、大小等,调整图标属性。

FontAwesome 官方网站

3.准备
方法1

下载字体,把字体加资源中
在这里插入图片描述
或者直接放在磁盘中也可

方法2

直接双击安装,就不用在代码里调用字体安装器往系统中安装了
在这里插入图片描述
在这里插入图片描述

4.代码

实例测试

void test2()
{

    CFontInstaller::fontInstaller(":/font/image/font/fontawesome-webfont.ttf");

    QFont fontFaIcon("FontAwesome");
    fontFaIcon.setPixelSize(20);

    QFont fontt("SimHei");
    fontt.setPixelSize(10);

    QWidget *pWidgetBg = new QWidget;
    QGridLayout *pGLayout = new QGridLayout(pWidgetBg);

     QMetaEnum enmState = QMetaEnum::fromType<CFaIcon::EnmFaIcon>();

    for(int i = 0; i < enmState.keyCount(); i++){
        QPushButton *pBtn = new QPushButton(pWidgetBg);
        pBtn->setText(QString::number(i)+ "." + CFaIcon::iconsQString(CFaIcon::EnmFaIcon(enmState.value(i))));
        pBtn->setFont(fontFaIcon);
        pBtn->setMinimumSize(10,10);
        pBtn->setStyleSheet("color:#1aa3ff;background:#ffffff;border-radius:3px;");
        pBtn->show();

        QLabel *pLabel = new QLabel(pWidgetBg);
        QString strText = QString(enmState.key(i));
        if(strText.size() > 18){
            strText.insert(18,"\n");
        }
        pLabel->setText(strText);
        pLabel->setFont(fontt);
        pLabel->setAlignment(Qt::AlignCenter);

        QVBoxLayout *pVLayout = new QVBoxLayout;
        pVLayout->addWidget(pBtn);
        pVLayout->addWidget(pLabel);

        pGLayout->addLayout(pVLayout,i/40,i%40,1,1);
    }

    pWidgetBg->show();

}

Font.h(没多少逻辑代码,只用了头文件)

#ifndef CFAICON_H
#define CFAICON_H

#include <QFontDatabase>
#include <QMetaEnum>
#include <QMetaObject>
#include <QObject>



//本安装器和双击***.ttf进行安装效果相同  安装一次即可
class CFontInstaller {
public:
    static QString fontInstaller(QString strFontUrl){
        int nFontId= QFontDatabase::addApplicationFont(strFontUrl);
        QStringList strListFont = QFontDatabase::applicationFontFamilies(nFontId);
        if(!strListFont.isEmpty()){
            return strListFont.first(); //字体安装成功
        }
        return "";
    }
};


//该类针对 FontAwesome 字体
class CFaIcon:public QObject{
    Q_OBJECT
public:
    enum EnmFaIcon{
        Fa_glass = 0xf000,
        Fa_music = 0xf001,
        Fa_search = 0xf002,
        Fa_envelope_o = 0xf003,
        Fa_heart = 0xf004,
        Fa_star = 0xf005,
        Fa_star_o = 0xf006,
        Fa_user = 0xf007,
        Fa_film = 0xf008,
        Fa_th_large = 0xf009,
        Fa_th = 0xf00a,
        Fa_th_list = 0xf00b,
        Fa_check = 0xf00c,
        Fa_times = 0xf00d,
        Fa_search_plus = 0xf00e,
        Fa_search_minus = 0xf010,
        Fa_power_off = 0xf011,
        Fa_signal = 0xf012,
        Fa_cog = 0xf013,
        Fa_trash_o = 0xf014,
        Fa_home = 0xf015,
        Fa_file_o = 0xf016,
        Fa_clock_o = 0xf017,
        Fa_road = 0xf018,
        Fa_download = 0xf019,
        Fa_arrow_circle_o_down = 0xf01a,
        Fa_arrow_circle_o_up = 0xf01b,
        Fa_inbox = 0xf01c,
        Fa_play_circle_o = 0xf01d,
        Fa_repeat = 0xf01e,
        Fa_refresh = 0xf021,
        Fa_list_alt = 0xf022,
        Fa_lock = 0xf023,
        Fa_flag = 0xf024,
        Fa_headphones = 0xf025,
        Fa_volume_off = 0xf026,
        Fa_volume_down = 0xf027,
        Fa_volume_up = 0xf028,
        Fa_qrcode = 0xf029,
        Fa_barcode = 0xf02a,
        Fa_tag = 0xf02b,
        Fa_tags = 0xf02c,
        Fa_book = 0xf02d,
        Fa_bookmark = 0xf02e,
        Fa_print = 0xf02f,
        Fa_camera = 0xf030,
        Fa_font = 0xf031,
        Fa_bold = 0xf032,
        Fa_italic = 0xf033,
        Fa_text_height = 0xf034,
        Fa_text_width = 0xf035,
        Fa_align_left = 0xf036,
        Fa_align_center = 0xf037,
        Fa_align_right = 0xf038,
        Fa_align_justify = 0xf039,
        Fa_list = 0xf03a,
        Fa_outdent = 0xf03b,
        Fa_indent = 0xf03c,
        Fa_video_camera = 0xf03d,
        Fa_picture_o = 0xf03e,
        Fa_pencil = 0xf040,
        Fa_map_marker = 0xf041,
        Fa_adjust = 0xf042,
        Fa_tint = 0xf043,
        Fa_pencil_square_o = 0xf044,
        Fa_share_square_o = 0xf045,
        Fa_check_square_o = 0xf046,
        Fa_arrows = 0xf047,
        Fa_step_backward = 0xf048,
        Fa_fast_backward = 0xf049,
        Fa_backward = 0xf04a,
        Fa_play = 0xf04b,
        Fa_pause = 0xf04c,
        Fa_stop = 0xf04d,
        Fa_forward = 0xf04e,
        Fa_fast_forward = 0xf050,
        Fa_step_forward = 0xf051,
        Fa_eject = 0xf052,
        Fa_chevron_left = 0xf053,
        Fa_chevron_right = 0xf054,
        Fa_plus_circle = 0xf055,
        Fa_minus_circle = 0xf056,
        Fa_times_circle = 0xf057,
        Fa_check_circle = 0xf058,
        Fa_question_circle = 0xf059,
        Fa_info_circle = 0xf05a,
        Fa_crosshairs = 0xf05b,
        Fa_times_circle_o = 0xf05c,
        Fa_check_circle_o = 0xf05d,
        Fa_ban = 0xf05e,
        Fa_arrow_left = 0xf060,
        Fa_arrow_right = 0xf061,
        Fa_arrow_up = 0xf062,
        Fa_arrow_down = 0xf063,
        Fa_share = 0xf064,
        Fa_expand = 0xf065,
        Fa_compress = 0xf066,
        Fa_plus = 0xf067,
        Fa_minus = 0xf068,
        Fa_asterisk = 0xf069,
        Fa_exclamation_circle = 0xf06a,
        Fa_gift = 0xf06b,
        Fa_leaf = 0xf06c,
        Fa_fire = 0xf06d,
        Fa_eye = 0xf06e,
        Fa_eye_slash = 0xf070,
        Fa_exclamation_triangle = 0xf071,
        Fa_plane = 0xf072,
        Fa_calendar = 0xf073,
        Fa_random = 0xf074,
        Fa_comment = 0xf075,
        Fa_magnet = 0xf076,
        Fa_chevron_up = 0xf077,
        Fa_chevron_down = 0xf078,
        Fa_retweet = 0xf079,
        Fa_shopping_cart = 0xf07a,
        Fa_folder = 0xf07b,
        Fa_folder_open = 0xf07c,
        Fa_arrows_v = 0xf07d,
        Fa_arrows_h = 0xf07e,
        Fa_bar_chart = 0xf080,
        Fa_twitter_square = 0xf081,
        Fa_facebook_square = 0xf082,
        Fa_camera_retro = 0xf083,
        Fa_key = 0xf084,
        Fa_cogs = 0xf085,
        Fa_comments = 0xf086,
        Fa_thumbs_o_up = 0xf087,
        Fa_thumbs_o_down = 0xf088,
        Fa_star_half = 0xf089,
        Fa_heart_o = 0xf08a,
        Fa_sign_out = 0xf08b,
        Fa_linkedin_square = 0xf08c,
        Fa_thumb_tack = 0xf08d,
        Fa_external_link = 0xf08e,
        Fa_sign_in = 0xf090,
        Fa_trophy = 0xf091,
        Fa_github_square = 0xf092,
        Fa_upload = 0xf093,
        Fa_lemon_o = 0xf094,
        Fa_phone = 0xf095,
        Fa_square_o = 0xf096,
        Fa_bookmark_o = 0xf097,
        Fa_phone_square = 0xf098,
        Fa_twitter = 0xf099,
        Fa_facebook = 0xf09a,
        Fa_github = 0xf09b,
        Fa_unlock = 0xf09c,
        Fa_credit_card = 0xf09d,
        Fa_rss = 0xf09e,
        Fa_hdd_o = 0xf0a0,
        Fa_bullhorn = 0xf0a1,
        Fa_bell = 0xf0f3,
        Fa_certificate = 0xf0a3,
        Fa_hand_o_right = 0xf0a4,
        Fa_hand_o_left = 0xf0a5,
        Fa_hand_o_up = 0xf0a6,
        Fa_hand_o_down = 0xf0a7,
        Fa_arrow_circle_left = 0xf0a8,
        Fa_arrow_circle_right = 0xf0a9,
        Fa_arrow_circle_up = 0xf0aa,
        Fa_arrow_circle_down = 0xf0ab,
        Fa_globe = 0xf0ac,
        Fa_wrench = 0xf0ad,
        Fa_tasks = 0xf0ae,
        Fa_filter = 0xf0b0,
        Fa_briefcase = 0xf0b1,
        Fa_arrows_alt = 0xf0b2,
        Fa_users = 0xf0c0,
        Fa_link = 0xf0c1,
        Fa_cloud = 0xf0c2,
        Fa_flask = 0xf0c3,
        Fa_scissors = 0xf0c4,
        Fa_files_o = 0xf0c5,
        Fa_paperclip = 0xf0c6,
        Fa_floppy_o = 0xf0c7,
        Fa_square = 0xf0c8,
        Fa_bars = 0xf0c9,
        Fa_list_ul = 0xf0ca,
        Fa_list_ol = 0xf0cb,
        Fa_strikethrough = 0xf0cc,
        Fa_underline = 0xf0cd,
        Fa_table = 0xf0ce,
        Fa_magic = 0xf0d0,
        Fa_truck = 0xf0d1,
        Fa_pinterest = 0xf0d2,
        Fa_pinterest_square = 0xf0d3,
        Fa_google_plus_square = 0xf0d4,
        Fa_google_plus = 0xf0d5,
        Fa_money = 0xf0d6,
        Fa_caret_down = 0xf0d7,
        Fa_caret_up = 0xf0d8,
        Fa_caret_left = 0xf0d9,
        Fa_caret_right = 0xf0da,
        Fa_columns = 0xf0db,
        Fa_sort = 0xf0dc,
        Fa_sort_desc = 0xf0dd,
        Fa_sort_asc = 0xf0de,
        Fa_envelope = 0xf0e0,
        Fa_linkedin = 0xf0e1,
        Fa_undo = 0xf0e2,
        Fa_gavel = 0xf0e3,
        Fa_tachometer = 0xf0e4,
        Fa_comment_o = 0xf0e5,
        Fa_comments_o = 0xf0e6,
        Fa_bolt = 0xf0e7,
        Fa_sitemap = 0xf0e8,
        Fa_umbrella = 0xf0e9,
        Fa_clipboard = 0xf0ea,
        Fa_lightbulb_o = 0xf0eb,
        Fa_exchange = 0xf0ec,
        Fa_cloud_download = 0xf0ed,
        Fa_cloud_upload = 0xf0ee,
        Fa_user_md = 0xf0f0,
        Fa_stethoscope = 0xf0f1,
        Fa_suitcase = 0xf0f2,
        Fa_bell_o = 0xf0a2,
        Fa_coffee = 0xf0f4,
        Fa_cutlery = 0xf0f5,
        Fa_file_text_o = 0xf0f6,
        Fa_building_o = 0xf0f7,
        Fa_hospital_o = 0xf0f8,
        Fa_ambulance = 0xf0f9,
        Fa_medkit = 0xf0fa,
        Fa_fighter_jet = 0xf0fb,
        Fa_beer = 0xf0fc,
        Fa_h_square = 0xf0fd,
        Fa_plus_square = 0xf0fe,
        Fa_angle_double_left = 0xf100,
        Fa_angle_double_right = 0xf101,
        Fa_angle_double_up = 0xf102,
        Fa_angle_double_down = 0xf103,
        Fa_angle_left = 0xf104,
        Fa_angle_right = 0xf105,
        Fa_angle_up = 0xf106,
        Fa_angle_down = 0xf107,
        Fa_desktop = 0xf108,
        Fa_laptop = 0xf109,
        Fa_tablet = 0xf10a,
        Fa_mobile = 0xf10b,
        Fa_circle_o = 0xf10c,
        Fa_quote_left = 0xf10d,
        Fa_quote_right = 0xf10e,
        Fa_spinner = 0xf110,
        Fa_circle = 0xf111,
        Fa_reply = 0xf112,
        Fa_github_alt = 0xf113,
        Fa_folder_o = 0xf114,
        Fa_folder_open_o = 0xf115,
        Fa_smile_o = 0xf118,
        Fa_frown_o = 0xf119,
        Fa_meh_o = 0xf11a,
        Fa_gamepad = 0xf11b,
        Fa_keyboard_o = 0xf11c,
        Fa_flag_o = 0xf11d,
        Fa_flag_checkered = 0xf11e,
        Fa_terminal = 0xf120,
        Fa_code = 0xf121,
        Fa_reply_all = 0xf122,
        Fa_star_half_o = 0xf123,
        Fa_location_arrow = 0xf124,
        Fa_crop = 0xf125,
        Fa_code_fork = 0xf126,
        Fa_chain_broken = 0xf127,
        Fa_question = 0xf128,
        Fa_info = 0xf129,
        Fa_exclamation = 0xf12a,
        Fa_superscript = 0xf12b,
        Fa_subscript = 0xf12c,
        Fa_eraser = 0xf12d,
        Fa_puzzle_piece = 0xf12e,
        Fa_microphone = 0xf130,
        Fa_microphone_slash = 0xf131,
        Fa_shield = 0xf132,
        Fa_calendar_o = 0xf133,
        Fa_fire_extinguisher = 0xf134,
        Fa_rocket = 0xf135,
        Fa_maxcdn = 0xf136,
        Fa_chevron_circle_left = 0xf137,
        Fa_chevron_circle_right = 0xf138,
        Fa_chevron_circle_up = 0xf139,
        Fa_chevron_circle_down = 0xf13a,
        Fa_html5 = 0xf13b,
        Fa_css3 = 0xf13c,
        Fa_anchor = 0xf13d,
        Fa_unlock_alt = 0xf13e,
        Fa_bullseye = 0xf140,
        Fa_ellipsis_h = 0xf141,
        Fa_ellipsis_v = 0xf142,
        Fa_rss_square = 0xf143,
        Fa_play_circle = 0xf144,
        Fa_ticket = 0xf145,
        Fa_minus_square = 0xf146,
        Fa_minus_square_o = 0xf147,
        Fa_level_up = 0xf148,
        Fa_level_down = 0xf149,
        Fa_check_square = 0xf14a,
        Fa_pencil_square = 0xf14b,
        Fa_external_link_square = 0xf14c,
        Fa_share_square = 0xf14d,
        Fa_compass = 0xf14e,
        Fa_caret_square_o_down = 0xf150,
        Fa_caret_square_o_up = 0xf151,
        Fa_caret_square_o_right = 0xf152,
        Fa_eur = 0xf153,
        Fa_gbp = 0xf154,
        Fa_usd = 0xf155,
        Fa_inr = 0xf156,
        Fa_jpy = 0xf157,
        Fa_rub = 0xf158,
        Fa_krw = 0xf159,
        Fa_btc = 0xf15a,
        Fa_file = 0xf15b,
        Fa_file_text = 0xf15c,
        Fa_sort_alpha_asc = 0xf15d,
        Fa_sort_alpha_desc = 0xf15e,
        Fa_sort_amount_asc = 0xf160,
        Fa_sort_amount_desc = 0xf161,
        Fa_sort_numeric_asc = 0xf162,
        Fa_sort_numeric_desc = 0xf163,
        Fa_thumbs_up = 0xf164,
        Fa_thumbs_down = 0xf165,
        Fa_youtube_square = 0xf166,
        Fa_youtube = 0xf167,
        Fa_xing = 0xf168,
        Fa_xing_square = 0xf169,
        Fa_youtube_play = 0xf16a,
        Fa_dropbox = 0xf16b,
        Fa_stack_overflow = 0xf16c,
        Fa_instagram = 0xf16d,
        Fa_flickr = 0xf16e,
        Fa_adn = 0xf170,
        Fa_bitbucket = 0xf171,
        Fa_bitbucket_square = 0xf172,
        Fa_tumblr = 0xf173,
        Fa_tumblr_square = 0xf174,
        Fa_long_arrow_down = 0xf175,
        Fa_long_arrow_up = 0xf176,
        Fa_long_arrow_left = 0xf177,
        Fa_long_arrow_right = 0xf178,
        Fa_apple = 0xf179,
        Fa_windows = 0xf17a,
        Fa_android = 0xf17b,
        Fa_linux = 0xf17c,
        Fa_dribbble = 0xf17d,
        Fa_skype = 0xf17e,
        Fa_foursquare = 0xf180,
        Fa_trello = 0xf181,
        Fa_female = 0xf182,
        Fa_male = 0xf183,
        Fa_gratipay = 0xf184,
        Fa_sun_o = 0xf185,
        Fa_moon_o = 0xf186,
        Fa_archive = 0xf187,
        Fa_bug = 0xf188,
        Fa_vk = 0xf189,
        Fa_weibo = 0xf18a,
        Fa_renren = 0xf18b,
        Fa_pagelines = 0xf18c,
        Fa_stack_exchange = 0xf18d,
        Fa_arrow_circle_o_right = 0xf18e,
        Fa_arrow_circle_o_left = 0xf190,
        Fa_caret_square_o_left = 0xf191,
        Fa_dot_circle_o = 0xf192,
        Fa_wheelchair = 0xf193,
        Fa_vimeo_square = 0xf194,
        Fa_try = 0xf195,
        Fa_plus_square_o = 0xf196,
        Fa_space_shuttle = 0xf197,
        Fa_slack = 0xf198,
        Fa_envelope_square = 0xf199,
        Fa_wordpress = 0xf19a,
        Fa_openid = 0xf19b,
        Fa_university = 0xf19c,
        Fa_graduation_cap = 0xf19d,
        Fa_yahoo = 0xf19e,
        Fa_google = 0xf1a0,
        Fa_reddit = 0xf1a1,
        Fa_reddit_square = 0xf1a2,
        Fa_stumbleupon_circle = 0xf1a3,
        Fa_stumbleupon = 0xf1a4,
        Fa_delicious = 0xf1a5,
        Fa_digg = 0xf1a6,
        Fa_pied_piper_pp = 0xf1a7,
        Fa_pied_piper_alt = 0xf1a8,
        Fa_drupal = 0xf1a9,
        Fa_joomla = 0xf1aa,
        Fa_language = 0xf1ab,
        Fa_fax = 0xf1ac,
        Fa_building = 0xf1ad,
        Fa_child = 0xf1ae,
        Fa_paw = 0xf1b0,
        Fa_spoon = 0xf1b1,
        Fa_cube = 0xf1b2,
        Fa_cubes = 0xf1b3,
        Fa_behance = 0xf1b4,
        Fa_behance_square = 0xf1b5,
        Fa_steam = 0xf1b6,
        Fa_steam_square = 0xf1b7,
        Fa_recycle = 0xf1b8,
        Fa_car = 0xf1b9,
        Fa_taxi = 0xf1ba,
        Fa_tree = 0xf1bb,
        Fa_spotify = 0xf1bc,
        Fa_deviantart = 0xf1bd,
        Fa_soundcloud = 0xf1be,
        Fa_database = 0xf1c0,
        Fa_file_pdf_o = 0xf1c1,
        Fa_file_word_o = 0xf1c2,
        Fa_file_excel_o = 0xf1c3,
        Fa_file_powerpoint_o = 0xf1c4,
        Fa_file_image_o = 0xf1c5,
        Fa_file_archive_o = 0xf1c6,
        Fa_file_audio_o = 0xf1c7,
        Fa_file_video_o = 0xf1c8,
        Fa_file_code_o = 0xf1c9,
        Fa_vine = 0xf1ca,
        Fa_codepen = 0xf1cb,
        Fa_jsfiddle = 0xf1cc,
        Fa_life_ring = 0xf1cd,
        Fa_circle_o_notch = 0xf1ce,
        Fa_rebel = 0xf1d0,
        Fa_empire = 0xf1d1,
        Fa_git_square = 0xf1d2,
        Fa_git = 0xf1d3,
        Fa_hacker_news = 0xf1d4,
        Fa_tencent_weibo = 0xf1d5,
        Fa_qq = 0xf1d6,
        Fa_weixin = 0xf1d7,
        Fa_paper_plane = 0xf1d8,
        Fa_paper_plane_o = 0xf1d9,
        Fa_history = 0xf1da,
        Fa_circle_thin = 0xf1db,
        Fa_header = 0xf1dc,
        Fa_paragraph = 0xf1dd,
        Fa_sliders = 0xf1de,
        Fa_share_alt = 0xf1e0,
        Fa_share_alt_square = 0xf1e1,
        Fa_bomb = 0xf1e2,
        Fa_futbol_o = 0xf1e3,
        Fa_tty = 0xf1e4,
        Fa_binoculars = 0xf1e5,
        Fa_plug = 0xf1e6,
        Fa_slideshare = 0xf1e7,
        Fa_twitch = 0xf1e8,
        Fa_yelp = 0xf1e9,
        Fa_newspaper_o = 0xf1ea,
        Fa_wifi = 0xf1eb,
        Fa_calculator = 0xf1ec,
        Fa_paypal = 0xf1ed,
        Fa_google_wallet = 0xf1ee,
        Fa_cc_visa = 0xf1f0,
        Fa_cc_mastercard = 0xf1f1,
        Fa_cc_discover = 0xf1f2,
        Fa_cc_amex = 0xf1f3,
        Fa_cc_paypal = 0xf1f4,
        Fa_cc_stripe = 0xf1f5,
        Fa_bell_slash = 0xf1f6,
        Fa_bell_slash_o = 0xf1f7,
        Fa_trash = 0xf1f8,
        Fa_copyright = 0xf1f9,
        Fa_at = 0xf1fa,
        Fa_eyedropper = 0xf1fb,
        Fa_paint_brush = 0xf1fc,
        Fa_birthday_cake = 0xf1fd,
        Fa_area_chart = 0xf1fe,
        Fa_pie_chart = 0xf200,
        Fa_line_chart = 0xf201,
        Fa_lastfm = 0xf202,
        Fa_lastfm_square = 0xf203,
        Fa_toggle_off = 0xf204,
        Fa_toggle_on = 0xf205,
        Fa_bicycle = 0xf206,
        Fa_bus = 0xf207,
        Fa_ioxhost = 0xf208,
        Fa_angellist = 0xf209,
        Fa_cc = 0xf20a,
        Fa_ils = 0xf20b,
        Fa_meanpath = 0xf20c,
        Fa_buysellads = 0xf20d,
        Fa_connectdevelop = 0xf20e,
        Fa_dashcube = 0xf210,
        Fa_forumbee = 0xf211,
        Fa_leanpub = 0xf212,
        Fa_sellsy = 0xf213,
        Fa_shirtsinbulk = 0xf214,
        Fa_simplybuilt = 0xf215,
        Fa_skyatlas = 0xf216,
        Fa_cart_plus = 0xf217,
        Fa_cart_arrow_down = 0xf218,
        Fa_diamond = 0xf219,
        Fa_ship = 0xf21a,
        Fa_user_secret = 0xf21b,
        Fa_motorcycle = 0xf21c,
        Fa_street_view = 0xf21d,
        Fa_heartbeat = 0xf21e,
        Fa_venus = 0xf221,
        Fa_mars = 0xf222,
        Fa_mercury = 0xf223,
        Fa_transgender = 0xf224,
        Fa_transgender_alt = 0xf225,
        Fa_venus_double = 0xf226,
        Fa_mars_double = 0xf227,
        Fa_venus_mars = 0xf228,
        Fa_mars_stroke = 0xf229,
        Fa_mars_stroke_v = 0xf22a,
        Fa_mars_stroke_h = 0xf22b,
        Fa_neuter = 0xf22c,
        Fa_genderless = 0xf22d,
        Fa_facebook_official = 0xf230,
        Fa_pinterest_p = 0xf231,
        Fa_whatsapp = 0xf232,
        Fa_server = 0xf233,
        Fa_user_plus = 0xf234,
        Fa_user_times = 0xf235,
        Fa_bed = 0xf236,
        Fa_viacoin = 0xf237,
        Fa_train = 0xf238,
        Fa_subway = 0xf239,
        Fa_medium = 0xf23a,
        Fa_y_combinator = 0xf23b,
        Fa_optin_monster = 0xf23c,
        Fa_opencart = 0xf23d,
        Fa_expeditedssl = 0xf23e,
        Fa_battery_full = 0xf240,
        Fa_battery_three_quarters = 0xf241,
        Fa_battery_half = 0xf242,
        Fa_battery_quarter = 0xf243,
        Fa_battery_empty = 0xf244,
        Fa_mouse_pointer = 0xf245,
        Fa_i_cursor = 0xf246,
        Fa_object_group = 0xf247,
        Fa_object_ungroup = 0xf248,
        Fa_sticky_note = 0xf249,
        Fa_sticky_note_o = 0xf24a,
        Fa_cc_jcb = 0xf24b,
        Fa_cc_diners_club = 0xf24c,
        Fa_clone = 0xf24d,
        Fa_balance_scale = 0xf24e,
        Fa_hourglass_o = 0xf250,
        Fa_hourglass_start = 0xf251,
        Fa_hourglass_half = 0xf252,
        Fa_hourglass_end = 0xf253,
        Fa_hourglass = 0xf254,
        Fa_hand_rock_o = 0xf255,
        Fa_hand_paper_o = 0xf256,
        Fa_hand_scissors_o = 0xf257,
        Fa_hand_lizard_o = 0xf258,
        Fa_hand_spock_o = 0xf259,
        Fa_hand_pointer_o = 0xf25a,
        Fa_hand_peace_o = 0xf25b,
        Fa_trademark = 0xf25c,
        Fa_registered = 0xf25d,
        Fa_creative_commons = 0xf25e,
        Fa_gg = 0xf260,
        Fa_gg_circle = 0xf261,
        Fa_tripadvisor = 0xf262,
        Fa_odnoklassniki = 0xf263,
        Fa_odnoklassniki_square = 0xf264,
        Fa_get_pocket = 0xf265,
        Fa_wikipedia_w = 0xf266,
        Fa_safari = 0xf267,
        Fa_chrome = 0xf268,
        Fa_firefox = 0xf269,
        Fa_opera = 0xf26a,
        Fa_internet_explorer = 0xf26b,
        Fa_television = 0xf26c,
        Fa_contao = 0xf26d,
        Fa_500px = 0xf26e,
        Fa_amazon = 0xf270,
        Fa_calendar_plus_o = 0xf271,
        Fa_calendar_minus_o = 0xf272,
        Fa_calendar_times_o = 0xf273,
        Fa_calendar_check_o = 0xf274,
        Fa_industry = 0xf275,
        Fa_map_pin = 0xf276,
        Fa_map_signs = 0xf277,
        Fa_map_o = 0xf278,
        Fa_map = 0xf279,
        Fa_commenting = 0xf27a,
        Fa_commenting_o = 0xf27b,
        Fa_houzz = 0xf27c,
        Fa_vimeo = 0xf27d,
        Fa_black_tie = 0xf27e,
        Fa_fonticons = 0xf280,
        Fa_reddit_alien = 0xf281,
        Fa_edge = 0xf282,
        Fa_credit_card_alt = 0xf283,
        Fa_codiepie = 0xf284,
        Fa_modx = 0xf285,
        Fa_fort_awesome = 0xf286,
        Fa_usb = 0xf287,
        Fa_product_hunt = 0xf288,
        Fa_mixcloud = 0xf289,
        Fa_scribd = 0xf28a,
        Fa_pause_circle = 0xf28b,
        Fa_pause_circle_o = 0xf28c,
        Fa_stop_circle = 0xf28d,
        Fa_stop_circle_o = 0xf28e,
        Fa_shopping_bag = 0xf290,
        Fa_shopping_basket = 0xf291,
        Fa_hashtag = 0xf292,
        Fa_bluetooth = 0xf293,
        Fa_bluetooth_b = 0xf294,
        Fa_percent = 0xf295,
        Fa_gitlab = 0xf296,
        Fa_wpbeginner = 0xf297,
        Fa_wpforms = 0xf298,
        Fa_envira = 0xf299,
        Fa_universal_access = 0xf29a,
        Fa_wheelchair_alt = 0xf29b,
        Fa_question_circle_o = 0xf29c,
        Fa_blind = 0xf29d,
        Fa_audio_description = 0xf29e,
        Fa_volume_control_phone = 0xf2a0,
        Fa_braille = 0xf2a1,
        Fa_assistive_listening_systems = 0xf2a2,
        Fa_american_sign_language_interpreting = 0xf2a3,
        Fa_deaf = 0xf2a4,
        Fa_glide = 0xf2a5,
        Fa_glide_g = 0xf2a6,
        Fa_sign_language = 0xf2a7,
        Fa_low_vision = 0xf2a8,
        Fa_viadeo = 0xf2a9,
        Fa_viadeo_square = 0xf2aa,
        Fa_snapchat = 0xf2ab,
        Fa_snapchat_ghost = 0xf2ac,
        Fa_snapchat_square = 0xf2ad,
        Fa_pied_piper = 0xf2ae,
        Fa_first_order = 0xf2b0,
        Fa_yoast = 0xf2b1,
        Fa_themeisle = 0xf2b2,
        Fa_google_plus_official = 0xf2b3,
        Fa_font_awesome = 0xf2b4,
        Fa_handshake_o = 0xf2b5,
        Fa_envelope_open = 0xf2b6,
        Fa_envelope_open_o = 0xf2b7,
        Fa_linode = 0xf2b8,
        Fa_address_book = 0xf2b9,
        Fa_address_book_o = 0xf2ba,
        Fa_address_card = 0xf2bb,
        Fa_address_card_o = 0xf2bc,
        Fa_user_circle = 0xf2bd,
        Fa_user_circle_o = 0xf2be,
        Fa_user_o = 0xf2c0,
        Fa_id_badge = 0xf2c1,
        Fa_id_card = 0xf2c2,
        Fa_id_card_o = 0xf2c3,
        Fa_quora = 0xf2c4,
        Fa_free_code_camp = 0xf2c5,
        Fa_telegram = 0xf2c6,
        Fa_thermometer_full = 0xf2c7,
        Fa_thermometer_three_quarters = 0xf2c8,
        Fa_thermometer_half = 0xf2c9,
        Fa_thermometer_quarter = 0xf2ca,
        Fa_thermometer_empty = 0xf2cb,
        Fa_shower = 0xf2cc,
        Fa_bath = 0xf2cd,
        Fa_podcast = 0xf2ce,
        Fa_window_maximize = 0xf2d0,
        Fa_window_minimize = 0xf2d1,
        Fa_window_restore = 0xf2d2,
        Fa_window_close = 0xf2d3,
        Fa_window_close_o = 0xf2d4,
        Fa_bandcamp = 0xf2d5,
        Fa_grav = 0xf2d6,
        Fa_etsy = 0xf2d7,
        Fa_imdb = 0xf2d8,
        Fa_ravelry = 0xf2d9,
        Fa_eercast = 0xf2da,
        Fa_microchip = 0xf2db,
        Fa_snowflake_o = 0xf2dc,
        Fa_superpowers = 0xf2dd,
        Fa_wpexplorer = 0xf2de,
        Fa_meetup = 0xf2e0,
    };
    Q_ENUM(EnmFaIcon)

    static QString iconsQString(EnmFaIcon enmIcon){return QString(enmIcon);}
    static QChar iconsQChar(EnmFaIcon enmIcon){return QChar(enmIcon);}
};

#endif // CFAICON_H

  • 3
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

我是唐

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值