Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Icon

An item for displaying icons from an icon font. More...

Import Statement: import Felgo 3.0
Inherits:

Item

Properties

Detailed Description

Felgo application components come with a set of commonly used icons which can be used in AppListView rows, TabControl items or standalone within your custom user interface.

By default, the icons are drawn using an icon font called Font Awesome. For a list of available icons, see IconType. To see a categorized view of all available icons with interactive search, see here. Alternatively, a different icon font can be used by setting the Theme::iconFont property.

To add an icon to your user interface add a code snippet like the following:

 import Felgo 3.0

 App {
   Page {
      // A camera icon
     Icon {
       icon: IconType.camera
     }
   }
 }

Property Documentation

color : color

Sets the icon's color. The default color is Theme::textColor.


icon : IconType

Sets the icon type. One of the IconType constants.


size : real

Sets the icon's size (height), in pixels.


textItem : Text

The internally used Text item.


Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded