qtcore

package
v0.0.0-...-36af009 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2018 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const GL_3DFX_multisample = 1 // num10 @ gui
View Source
const GL_3DFX_tbuffer = 1 // num10 @ gui
View Source
const GL_3DFX_texture_compression_FXT1 = 1 // num10 @ gui
View Source
const GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS = 0x8E47 // num16 @ gui
View Source
const GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH = 0x8E49 // num16 @ gui
View Source
const GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH = 0x8A35 // num16 @ gui
View Source
const GL_ALPHA_TO_COVERAGE_DITHER_DEFAULT_NV = 0x934 // num16 @ gui
View Source
const GL_ALPHA_TO_COVERAGE_DITHER_DISABLE_NV = 0x934F // num16 @ gui
View Source
const GL_ALPHA_TO_COVERAGE_DITHER_ENABLE_NV = 0x934E // num16 @ gui
View Source
const GL_ALPHA_TO_COVERAGE_DITHER_MODE_NV = 0x92BF // num16 @ gui
View Source
const GL_AMD_blend_minmax_factor = 1 // num10 @ gui
View Source
const GL_AMD_conservative_depth = 1 // num10 @ gui
View Source
const GL_AMD_debug_output = 1 // num10 @ gui
View Source
const GL_AMD_depth_clamp_separate = 1 // num10 @ gui
View Source
const GL_AMD_draw_buffers_blend = 1 // num10 @ gui
View Source
const GL_AMD_framebuffer_sample_positions = 1 // num10 @ gui
View Source
const GL_AMD_gcn_shader = 1 // num10 @ gui
View Source
const GL_AMD_gpu_shader_half_float = 1 // num10 @ gui
View Source
const GL_AMD_gpu_shader_int64 = 1 // num10 @ gui
View Source
const GL_AMD_interleaved_elements = 1 // num10 @ gui
View Source
const GL_AMD_multi_draw_indirect = 1 // num10 @ gui
View Source
const GL_AMD_name_gen_delete = 1 // num10 @ gui
View Source
const GL_AMD_occlusion_query_event = 1 // num10 @ gui
View Source
const GL_AMD_performance_monitor = 1 // num10 @ gui
View Source
const GL_AMD_pinned_memory = 1 // num10 @ gui
View Source
const GL_AMD_query_buffer_object = 1 // num10 @ gui
View Source
const GL_AMD_sample_positions = 1 // num10 @ gui
View Source
const GL_AMD_seamless_cubemap_per_texture = 1 // num10 @ gui
View Source
const GL_AMD_shader_atomic_counter_ops = 1 // num10 @ gui
View Source
const GL_AMD_shader_ballot = 1 // num10 @ gui
View Source
const GL_AMD_shader_explicit_vertex_parameter = 1 // num10 @ gui
View Source
const GL_AMD_shader_stencil_export = 1 // num10 @ gui
View Source
const GL_AMD_shader_trinary_minmax = 1 // num10 @ gui
View Source
const GL_AMD_sparse_texture = 1 // num10 @ gui
View Source
const GL_AMD_stencil_operation_extended = 1 // num10 @ gui
View Source
const GL_AMD_texture_texture4 = 1 // num10 @ gui
View Source
const GL_AMD_transform_feedback3_lines_triangles = 1 // num10 @ gui
View Source
const GL_AMD_transform_feedback4 = 1 // num10 @ gui
View Source
const GL_AMD_vertex_shader_layer = 1 // num10 @ gui
View Source
const GL_AMD_vertex_shader_tessellator = 1 // num10 @ gui
View Source
const GL_AMD_vertex_shader_viewport_index = 1 // num10 @ gui
View Source
const GL_ANY_SAMPLES_PASSED_CONSERVATIVE = 0x8D6 // num16 @ gui
View Source
const GL_APPLE_aux_depth_stencil = 1 // num10 @ gui
View Source
const GL_APPLE_client_storage = 1 // num10 @ gui
View Source
const GL_APPLE_element_array = 1 // num10 @ gui
View Source
const GL_APPLE_fence = 1 // num10 @ gui
View Source
const GL_APPLE_float_pixels = 1 // num10 @ gui
View Source
const GL_APPLE_flush_buffer_range = 1 // num10 @ gui
View Source
const GL_APPLE_object_purgeable = 1 // num10 @ gui
View Source
const GL_APPLE_rgb_422 = 1 // num10 @ gui
View Source
const GL_APPLE_row_bytes = 1 // num10 @ gui
View Source
const GL_APPLE_specular_vector = 1 // num10 @ gui
View Source
const GL_APPLE_texture_range = 1 // num10 @ gui
View Source
const GL_APPLE_transform_hint = 1 // num10 @ gui
View Source
const GL_APPLE_vertex_array_object = 1 // num10 @ gui
View Source
const GL_APPLE_vertex_array_range = 1 // num10 @ gui
View Source
const GL_APPLE_vertex_program_evaluators = 1 // num10 @ gui
View Source
const GL_APPLE_ycbcr_422 = 1 // num10 @ gui
View Source
const GL_ARB_ES2_compatibility = 1 // num10 @ gui
View Source
const GL_ARB_ES3_1_compatibility = 1 // num10 @ gui
View Source
const GL_ARB_ES3_2_compatibility = 1 // num10 @ gui
View Source
const GL_ARB_ES3_compatibility = 1 // num10 @ gui
View Source
const GL_ARB_arrays_of_arrays = 1 // num10 @ gui
View Source
const GL_ARB_base_instance = 1 // num10 @ gui
View Source
const GL_ARB_bindless_texture = 1 // num10 @ gui
View Source
const GL_ARB_blend_func_extended = 1 // num10 @ gui
View Source
const GL_ARB_buffer_storage = 1 // num10 @ gui
View Source
const GL_ARB_cl_event = 1 // num10 @ gui
View Source
const GL_ARB_clear_buffer_object = 1 // num10 @ gui
View Source
const GL_ARB_clear_texture = 1 // num10 @ gui
View Source
const GL_ARB_clip_control = 1 // num10 @ gui
View Source
const GL_ARB_color_buffer_float = 1 // num10 @ gui
View Source
const GL_ARB_compatibility = 1 // num10 @ gui
View Source
const GL_ARB_compressed_texture_pixel_storage = 1 // num10 @ gui
View Source
const GL_ARB_compute_shader = 1 // num10 @ gui
View Source
const GL_ARB_compute_variable_group_size = 1 // num10 @ gui
View Source
const GL_ARB_conditional_render_inverted = 1 // num10 @ gui
View Source
const GL_ARB_conservative_depth = 1 // num10 @ gui
View Source
const GL_ARB_copy_buffer = 1 // num10 @ gui
View Source
const GL_ARB_copy_image = 1 // num10 @ gui
View Source
const GL_ARB_cull_distance = 1 // num10 @ gui
View Source
const GL_ARB_debug_output = 1 // num10 @ gui
View Source
const GL_ARB_depth_buffer_float = 1 // num10 @ gui
View Source
const GL_ARB_depth_clamp = 1 // num10 @ gui
View Source
const GL_ARB_depth_texture = 1 // num10 @ gui
View Source
const GL_ARB_derivative_control = 1 // num10 @ gui
View Source
const GL_ARB_direct_state_access = 1 // num10 @ gui
View Source
const GL_ARB_draw_buffers = 1 // num10 @ gui
View Source
const GL_ARB_draw_buffers_blend = 1 // num10 @ gui
View Source
const GL_ARB_draw_elements_base_vertex = 1 // num10 @ gui
View Source
const GL_ARB_draw_indirect = 1 // num10 @ gui
View Source
const GL_ARB_draw_instanced = 1 // num10 @ gui
View Source
const GL_ARB_enhanced_layouts = 1 // num10 @ gui
View Source
const GL_ARB_explicit_attrib_location = 1 // num10 @ gui
View Source
const GL_ARB_explicit_uniform_location = 1 // num10 @ gui
View Source
const GL_ARB_fragment_coord_conventions = 1 // num10 @ gui
View Source
const GL_ARB_fragment_layer_viewport = 1 // num10 @ gui
View Source
const GL_ARB_fragment_program = 1 // num10 @ gui
View Source
const GL_ARB_fragment_program_shadow = 1 // num10 @ gui
View Source
const GL_ARB_fragment_shader = 1 // num10 @ gui
View Source
const GL_ARB_fragment_shader_interlock = 1 // num10 @ gui
View Source
const GL_ARB_framebuffer_no_attachments = 1 // num10 @ gui
View Source
const GL_ARB_framebuffer_object = 1 // num10 @ gui
View Source
const GL_ARB_framebuffer_sRGB = 1 // num10 @ gui
View Source
const GL_ARB_geometry_shader4 = 1 // num10 @ gui
View Source
const GL_ARB_get_program_binary = 1 // num10 @ gui
View Source
const GL_ARB_get_texture_sub_image = 1 // num10 @ gui
View Source
const GL_ARB_gl_spirv = 1 // num10 @ gui
View Source
const GL_ARB_gpu_shader5 = 1 // num10 @ gui
View Source
const GL_ARB_gpu_shader_fp64 = 1 // num10 @ gui
View Source
const GL_ARB_gpu_shader_int64 = 1 // num10 @ gui
View Source
const GL_ARB_half_float_pixel = 1 // num10 @ gui
View Source
const GL_ARB_half_float_vertex = 1 // num10 @ gui
View Source
const GL_ARB_indirect_parameters = 1 // num10 @ gui
View Source
const GL_ARB_instanced_arrays = 1 // num10 @ gui
View Source
const GL_ARB_internalformat_query = 1 // num10 @ gui
View Source
const GL_ARB_internalformat_query2 = 1 // num10 @ gui
View Source
const GL_ARB_invalidate_subdata = 1 // num10 @ gui
View Source
const GL_ARB_map_buffer_alignment = 1 // num10 @ gui
View Source
const GL_ARB_map_buffer_range = 1 // num10 @ gui
View Source
const GL_ARB_matrix_palette = 1 // num10 @ gui
View Source
const GL_ARB_multi_bind = 1 // num10 @ gui
View Source
const GL_ARB_multi_draw_indirect = 1 // num10 @ gui
View Source
const GL_ARB_multisample = 1 // num10 @ gui
View Source
const GL_ARB_occlusion_query = 1 // num10 @ gui
View Source
const GL_ARB_occlusion_query2 = 1 // num10 @ gui
View Source
const GL_ARB_parallel_shader_compile = 1 // num10 @ gui
View Source
const GL_ARB_pipeline_statistics_query = 1 // num10 @ gui
View Source
const GL_ARB_pixel_buffer_object = 1 // num10 @ gui
View Source
const GL_ARB_point_parameters = 1 // num10 @ gui
View Source
const GL_ARB_point_sprite = 1 // num10 @ gui
View Source
const GL_ARB_post_depth_coverage = 1 // num10 @ gui
View Source
const GL_ARB_program_interface_query = 1 // num10 @ gui
View Source
const GL_ARB_provoking_vertex = 1 // num10 @ gui
View Source
const GL_ARB_query_buffer_object = 1 // num10 @ gui
View Source
const GL_ARB_robust_buffer_access_behavior = 1 // num10 @ gui
View Source
const GL_ARB_robustness = 1 // num10 @ gui
View Source
const GL_ARB_robustness_isolation = 1 // num10 @ gui
View Source
const GL_ARB_sample_locations = 1 // num10 @ gui
View Source
const GL_ARB_sample_shading = 1 // num10 @ gui
View Source
const GL_ARB_sampler_objects = 1 // num10 @ gui
View Source
const GL_ARB_seamless_cube_map = 1 // num10 @ gui
View Source
const GL_ARB_seamless_cubemap_per_texture = 1 // num10 @ gui
View Source
const GL_ARB_separate_shader_objects = 1 // num10 @ gui
View Source
const GL_ARB_shader_atomic_counter_ops = 1 // num10 @ gui
View Source
const GL_ARB_shader_atomic_counters = 1 // num10 @ gui
View Source
const GL_ARB_shader_ballot = 1 // num10 @ gui
View Source
const GL_ARB_shader_bit_encoding = 1 // num10 @ gui
View Source
const GL_ARB_shader_clock = 1 // num10 @ gui
View Source
const GL_ARB_shader_draw_parameters = 1 // num10 @ gui
View Source
const GL_ARB_shader_group_vote = 1 // num10 @ gui
View Source
const GL_ARB_shader_image_load_store = 1 // num10 @ gui
View Source
const GL_ARB_shader_image_size = 1 // num10 @ gui
View Source
const GL_ARB_shader_objects = 1 // num10 @ gui
View Source
const GL_ARB_shader_precision = 1 // num10 @ gui
View Source
const GL_ARB_shader_stencil_export = 1 // num10 @ gui
View Source
const GL_ARB_shader_storage_buffer_object = 1 // num10 @ gui
View Source
const GL_ARB_shader_subroutine = 1 // num10 @ gui
View Source
const GL_ARB_shader_texture_image_samples = 1 // num10 @ gui
View Source
const GL_ARB_shader_texture_lod = 1 // num10 @ gui
View Source
const GL_ARB_shader_viewport_layer_array = 1 // num10 @ gui
View Source
const GL_ARB_shading_language_100 = 1 // num10 @ gui
View Source
const GL_ARB_shading_language_420pack = 1 // num10 @ gui
View Source
const GL_ARB_shading_language_include = 1 // num10 @ gui
View Source
const GL_ARB_shading_language_packing = 1 // num10 @ gui
View Source
const GL_ARB_shadow = 1 // num10 @ gui
View Source
const GL_ARB_shadow_ambient = 1 // num10 @ gui
View Source
const GL_ARB_sparse_buffer = 1 // num10 @ gui
View Source
const GL_ARB_sparse_texture = 1 // num10 @ gui
View Source
const GL_ARB_sparse_texture2 = 1 // num10 @ gui
View Source
const GL_ARB_sparse_texture_clamp = 1 // num10 @ gui
View Source
const GL_ARB_stencil_texturing = 1 // num10 @ gui
View Source
const GL_ARB_sync = 1 // num10 @ gui
View Source
const GL_ARB_tessellation_shader = 1 // num10 @ gui
View Source
const GL_ARB_texture_barrier = 1 // num10 @ gui
View Source
const GL_ARB_texture_border_clamp = 1 // num10 @ gui
View Source
const GL_ARB_texture_buffer_object = 1 // num10 @ gui
View Source
const GL_ARB_texture_buffer_object_rgb32 = 1 // num10 @ gui
View Source
const GL_ARB_texture_buffer_range = 1 // num10 @ gui
View Source
const GL_ARB_texture_compression = 1 // num10 @ gui
View Source
const GL_ARB_texture_compression_bptc = 1 // num10 @ gui
View Source
const GL_ARB_texture_compression_rgtc = 1 // num10 @ gui
View Source
const GL_ARB_texture_cube_map = 1 // num10 @ gui
View Source
const GL_ARB_texture_cube_map_array = 1 // num10 @ gui
View Source
const GL_ARB_texture_env_add = 1 // num10 @ gui
View Source
const GL_ARB_texture_env_combine = 1 // num10 @ gui
View Source
const GL_ARB_texture_env_crossbar = 1 // num10 @ gui
View Source
const GL_ARB_texture_env_dot3 = 1 // num10 @ gui
View Source
const GL_ARB_texture_filter_minmax = 1 // num10 @ gui
View Source
const GL_ARB_texture_float = 1 // num10 @ gui
View Source
const GL_ARB_texture_gather = 1 // num10 @ gui
View Source
const GL_ARB_texture_mirror_clamp_to_edge = 1 // num10 @ gui
View Source
const GL_ARB_texture_mirrored_repeat = 1 // num10 @ gui
View Source
const GL_ARB_texture_multisample = 1 // num10 @ gui
View Source
const GL_ARB_texture_non_power_of_two = 1 // num10 @ gui
View Source
const GL_ARB_texture_query_levels = 1 // num10 @ gui
View Source
const GL_ARB_texture_query_lod = 1 // num10 @ gui
View Source
const GL_ARB_texture_rectangle = 1 // num10 @ gui
View Source
const GL_ARB_texture_rg = 1 // num10 @ gui
View Source
const GL_ARB_texture_rgb10_a2ui = 1 // num10 @ gui
View Source
const GL_ARB_texture_stencil8 = 1 // num10 @ gui
View Source
const GL_ARB_texture_storage = 1 // num10 @ gui
View Source
const GL_ARB_texture_storage_multisample = 1 // num10 @ gui
View Source
const GL_ARB_texture_swizzle = 1 // num10 @ gui
View Source
const GL_ARB_texture_view = 1 // num10 @ gui
View Source
const GL_ARB_timer_query = 1 // num10 @ gui
View Source
const GL_ARB_transform_feedback2 = 1 // num10 @ gui
View Source
const GL_ARB_transform_feedback3 = 1 // num10 @ gui
View Source
const GL_ARB_transform_feedback_instanced = 1 // num10 @ gui
View Source
const GL_ARB_transform_feedback_overflow_query = 1 // num10 @ gui
View Source
const GL_ARB_transpose_matrix = 1 // num10 @ gui
View Source
const GL_ARB_uniform_buffer_object = 1 // num10 @ gui
View Source
const GL_ARB_vertex_array_bgra = 1 // num10 @ gui
View Source
const GL_ARB_vertex_array_object = 1 // num10 @ gui
View Source
const GL_ARB_vertex_attrib_64bit = 1 // num10 @ gui
View Source
const GL_ARB_vertex_attrib_binding = 1 // num10 @ gui
View Source
const GL_ARB_vertex_blend = 1 // num10 @ gui
View Source
const GL_ARB_vertex_buffer_object = 1 // num10 @ gui
View Source
const GL_ARB_vertex_program = 1 // num10 @ gui
View Source
const GL_ARB_vertex_shader = 1 // num10 @ gui
View Source
const GL_ARB_vertex_type_10f_11f_11f_rev = 1 // num10 @ gui
View Source
const GL_ARB_vertex_type_2_10_10_10_rev = 1 // num10 @ gui
View Source
const GL_ARB_viewport_array = 1 // num10 @ gui
View Source
const GL_ARB_window_pos = 1 // num10 @ gui
View Source
const GL_ATI_draw_buffers = 1 // num10 @ gui
View Source
const GL_ATI_element_array = 1 // num10 @ gui
View Source
const GL_ATI_envmap_bumpmap = 1 // num10 @ gui
View Source
const GL_ATI_fragment_shader = 1 // num10 @ gui
View Source
const GL_ATI_map_object_buffer = 1 // num10 @ gui
View Source
const GL_ATI_meminfo = 1 // num10 @ gui
View Source
const GL_ATI_pixel_format_float = 1 // num10 @ gui
View Source
const GL_ATI_pn_triangles = 1 // num10 @ gui
View Source
const GL_ATI_separate_stencil = 1 // num10 @ gui
View Source
const GL_ATI_text_fragment_shader = 1 // num10 @ gui
View Source
const GL_ATI_texture_env_combine3 = 1 // num10 @ gui
View Source
const GL_ATI_texture_float = 1 // num10 @ gui
View Source
const GL_ATI_texture_mirror_once = 1 // num10 @ gui
View Source
const GL_ATI_vertex_array_object = 1 // num10 @ gui
View Source
const GL_ATI_vertex_attrib_array_object = 1 // num10 @ gui
View Source
const GL_ATI_vertex_streams = 1 // num10 @ gui
View Source
const GL_ATOMIC_COUNTER_BARRIER_BIT_EXT = 0x00001000 // num16 @ gui
View Source
const GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS = 0x92C5 // num16 @ gui
View Source
const GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES = 0x92C6 // num16 @ gui
View Source
const GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE = 0x92C4 // num16 @ gui
View Source
const GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER = 0x90E // num16 @ gui
View Source
const GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER = 0x92CB // num16 @ gui
View Source
const GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER = 0x92 // num16 @ gui
View Source
const GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER = 0x92C8 // num16 @ gui
View Source
const GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x92C9 // num16 @ gui
View Source
const GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER = 0x92C7 // num16 @ gui
View Source
const GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV = 0x909 // num16 @ gui
View Source
const GL_BUFFER_SERIALIZED_MODIFY_APPLE = 0x8A12 // num16 @ gui
View Source
const GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT = 0x00004000 // num16 @ gui
View Source
const GL_CLIPPING_OUTPUT_PRIMITIVES_ARB = 0x82F7 // num16 @ gui
View Source
const GL_COLOR_ARRAY_BUFFER_BINDING_ARB = 0x8898 // num16 @ gui
View Source
const GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F7 // num16 @ gui
View Source
const GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI = 0x8835 // num16 @ gui
View Source
const GL_COLOR_TABLE_INTENSITY_SIZE_SGI = 0x80DF // num16 @ gui
View Source
const GL_COLOR_TABLE_LUMINANCE_SIZE_SGI = 0x80DE // num16 @ gui
View Source
const GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT = 0x884E // num16 @ gui
View Source
const GL_COMPRESSED_LUMINANCE_ALPHA_ARB = 0x84EB // num16 @ gui
View Source
const GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C72 // num16 @ gui
View Source
const GL_COMPRESSED_LUMINANCE_LATC1_EXT = 0x8C70 // num16 @ gui
View Source
const GL_COMPRESSED_RED_GREEN_RGTC2_EXT = 0x8DB // num16 @ gui
View Source
const GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9276 // num16 @ gui
View Source
const GL_COMPRESSED_RGBA_ASTC_10x10_KHR = 0x93BB // num16 @ gui
View Source
const GL_COMPRESSED_RGBA_ASTC_12x10_KHR = 0x93B // num16 @ gui
View Source
const GL_COMPRESSED_RGBA_ASTC_12x12_KHR = 0x93B // num16 @ gui
View Source
const GL_COMPRESSED_RGBA_BPTC_UNORM_ARB = 0x8E8 // num16 @ gui
View Source
const GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT = 0x8E8E // num16 @ gui
View Source
const GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB = 0x8E8E // num16 @ gui
View Source
const GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT = 0x8E8F // num16 @ gui
View Source
const GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB = 0x8E8F // num16 @ gui
View Source
const GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C73 // num16 @ gui
View Source
const GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT = 0x8C71 // num16 @ gui
View Source
const GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT = 0x8DBE // num16 @ gui
View Source
const GL_COMPRESSED_SIGNED_RED_RGTC1_EXT = 0x8DB // num16 @ gui
View Source
const GL_COMPRESSED_SLUMINANCE_ALPHA_EXT = 0x8C4B // num16 @ gui
View Source
const GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR = 0x93DB // num16 @ gui
View Source
const GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR = 0x93D8 // num16 @ gui
View Source
const GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR = 0x93D9 // num16 @ gui
View Source
const GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR = 0x93 // num16 @ gui
View Source
const GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR = 0x93 // num16 @ gui
View Source
const GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR = 0x93 // num16 @ gui
View Source
const GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR = 0x93D0 // num16 @ gui
View Source
const GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR = 0x93D1 // num16 @ gui
View Source
const GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR = 0x93D2 // num16 @ gui
View Source
const GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR = 0x93D3 // num16 @ gui
View Source
const GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR = 0x93D4 // num16 @ gui
View Source
const GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR = 0x93D5 // num16 @ gui
View Source
const GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR = 0x93D6 // num16 @ gui
View Source
const GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR = 0x93D7 // num16 @ gui
View Source
const GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 0x9279 // num16 @ gui
View Source
const GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9277 // num16 @ gui
View Source
const GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM = 0x8E8 // num16 @ gui
View Source
const GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB = 0x8E8 // num16 @ gui
View Source
const GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 0x8C4 // num16 @ gui
View Source
const GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 0x8C4E // num16 @ gui
View Source
const GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 0x8C4F // num16 @ gui
View Source
const GL_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A3 // num16 @ gui
View Source
const GL_COMPUTE_PROGRAM_PARAMETER_BUFFER_NV = 0x90F // num16 @ gui
View Source
const GL_COMPUTE_SHADER_INVOCATIONS_ARB = 0x82F5 // num16 @ gui
View Source
const GL_CONSERVATIVE_RASTERIZATION_INTEL = 0x83FE // num16 @ gui
View Source
const GL_CONSERVATIVE_RASTER_DILATE_GRANULARITY_NV = 0x937B // num16 @ gui
View Source
const GL_CONSERVATIVE_RASTER_DILATE_RANGE_NV = 0x937 // num16 @ gui
View Source
const GL_CONSERVATIVE_RASTER_MODE_POST_SNAP_NV = 0x954E // num16 @ gui
View Source
const GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_NV = 0x954F // num16 @ gui
View Source
const GL_CONTEXT_COMPATIBILITY_PROFILE_BIT = 0x00000002 // num16 @ gui
View Source
const GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = 0x00000001 // num16 @ gui
View Source
const GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT = 0x00000004 // num16 @ gui
View Source
const GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB = 0x00000004 // num16 @ gui
View Source
const GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH = 0x82F // num16 @ gui
View Source
const GL_COVERAGE_MODULATION_TABLE_SIZE_NV = 0x9333 // num16 @ gui
View Source
const GL_CULL_VERTEX_OBJECT_POSITION_EXT = 0x81 // num16 @ gui
View Source
const GL_CURRENT_MATRIX_STACK_DEPTH_ARB = 0x8640 // num16 @ gui
View Source
const GL_CURRENT_RASTER_SECONDARY_COLOR = 0x845F // num16 @ gui
View Source
const GL_DEBUG_CATEGORY_APPLICATION_AMD = 0x914F // num16 @ gui
View Source
const GL_DEBUG_CATEGORY_DEPRECATION_AMD = 0x914B // num16 @ gui
View Source
const GL_DEBUG_CATEGORY_PERFORMANCE_AMD = 0x914 // num16 @ gui
View Source
const GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD = 0x914E // num16 @ gui
View Source
const GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD = 0x914 // num16 @ gui
View Source
const GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD = 0x914 // num16 @ gui
View Source
const GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH = 0x8243 // num16 @ gui
View Source
const GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB = 0x8243 // num16 @ gui
View Source
const GL_DEBUG_SOURCE_SHADER_COMPILER_ARB = 0x8248 // num16 @ gui
View Source
const GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB = 0x8247 // num16 @ gui
View Source
const GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR = 0x824 // num16 @ gui
View Source
const GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB = 0x824 // num16 @ gui
View Source
const GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB = 0x824E // num16 @ gui
View Source
const GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV = 0x885 // num16 @ gui
View Source
const GL_DETAIL_TEXTURE_2D_BINDING_SGIS = 0x8096 // num16 @ gui
View Source
const GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS = 0x809 // num16 @ gui
View Source
const GL_DISPATCH_INDIRECT_BUFFER_BINDING = 0x90EF // num16 @ gui
View Source
const GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV = 0x885 // num16 @ gui
View Source
const GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV = 0x86F3 // num16 @ gui
View Source
const GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV = 0x86F1 // num16 @ gui
View Source
const GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV = 0x86F2 // num16 @ gui
View Source
const GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV = 0x86F0 // num16 @ gui
View Source
const GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV = 0x864E // num16 @ gui
View Source
const GL_DRAW_ARRAYS_INSTANCED_COMMAND_NV = 0x0007 // num16 @ gui
View Source
const GL_DRAW_ELEMENTS_INSTANCED_COMMAND_NV = 0x0006 // num16 @ gui
View Source
const GL_DRAW_ELEMENTS_STRIP_COMMAND_NV = 0x0004 // num16 @ gui
View Source
const GL_EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B // num16 @ gui
View Source
const GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB = 0x889B // num16 @ gui
View Source
const GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM = 103085 // num10 @ gui
View Source
const GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB = 0x8895 // num16 @ gui
View Source
const GL_EVAL_FRACTIONAL_TESSELLATION_NV = 0x86C5 // num16 @ gui
View Source
const GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD = 0x9160 // num16 @ gui
View Source
const GL_EXT_422_pixels = 1 // num10 @ gui
View Source
const GL_EXT_abgr = 1 // num10 @ gui
View Source
const GL_EXT_bgra = 1 // num10 @ gui
View Source
const GL_EXT_bindable_uniform = 1 // num10 @ gui
View Source
const GL_EXT_blend_color = 1 // num10 @ gui
View Source
const GL_EXT_blend_equation_separate = 1 // num10 @ gui
View Source
const GL_EXT_blend_func_separate = 1 // num10 @ gui
View Source
const GL_EXT_blend_logic_op = 1 // num10 @ gui
View Source
const GL_EXT_blend_minmax = 1 // num10 @ gui
View Source
const GL_EXT_blend_subtract = 1 // num10 @ gui
View Source
const GL_EXT_clip_volume_hint = 1 // num10 @ gui
View Source
const GL_EXT_cmyka = 1 // num10 @ gui
View Source
const GL_EXT_color_subtable = 1 // num10 @ gui
View Source
const GL_EXT_compiled_vertex_array = 1 // num10 @ gui
View Source
const GL_EXT_convolution = 1 // num10 @ gui
View Source
const GL_EXT_coordinate_frame = 1 // num10 @ gui
View Source
const GL_EXT_copy_texture = 1 // num10 @ gui
View Source
const GL_EXT_cull_vertex = 1 // num10 @ gui
View Source
const GL_EXT_debug_label = 1 // num10 @ gui
View Source
const GL_EXT_debug_marker = 1 // num10 @ gui
View Source
const GL_EXT_depth_bounds_test = 1 // num10 @ gui
View Source
const GL_EXT_direct_state_access = 1 // num10 @ gui
View Source
const GL_EXT_draw_buffers2 = 1 // num10 @ gui
View Source
const GL_EXT_draw_instanced = 1 // num10 @ gui
View Source
const GL_EXT_draw_range_elements = 1 // num10 @ gui
View Source
const GL_EXT_fog_coord = 1 // num10 @ gui
View Source
const GL_EXT_framebuffer_blit = 1 // num10 @ gui
View Source
const GL_EXT_framebuffer_multisample = 1 // num10 @ gui
View Source
const GL_EXT_framebuffer_multisample_blit_scaled = 1 // num10 @ gui
View Source
const GL_EXT_framebuffer_object = 1 // num10 @ gui
View Source
const GL_EXT_framebuffer_sRGB = 1 // num10 @ gui
View Source
const GL_EXT_geometry_shader4 = 1 // num10 @ gui
View Source
const GL_EXT_gpu_program_parameters = 1 // num10 @ gui
View Source
const GL_EXT_gpu_shader4 = 1 // num10 @ gui
View Source
const GL_EXT_histogram = 1 // num10 @ gui
View Source
const GL_EXT_index_array_formats = 1 // num10 @ gui
View Source
const GL_EXT_index_func = 1 // num10 @ gui
View Source
const GL_EXT_index_material = 1 // num10 @ gui
View Source
const GL_EXT_index_texture = 1 // num10 @ gui
View Source
const GL_EXT_light_texture = 1 // num10 @ gui
View Source
const GL_EXT_misc_attribute = 1 // num10 @ gui
View Source
const GL_EXT_multi_draw_arrays = 1 // num10 @ gui
View Source
const GL_EXT_multisample = 1 // num10 @ gui
View Source
const GL_EXT_packed_depth_stencil = 1 // num10 @ gui
View Source
const GL_EXT_packed_float = 1 // num10 @ gui
View Source
const GL_EXT_packed_pixels = 1 // num10 @ gui
View Source
const GL_EXT_paletted_texture = 1 // num10 @ gui
View Source
const GL_EXT_pixel_buffer_object = 1 // num10 @ gui
View Source
const GL_EXT_pixel_transform = 1 // num10 @ gui
View Source
const GL_EXT_pixel_transform_color_table = 1 // num10 @ gui
View Source
const GL_EXT_point_parameters = 1 // num10 @ gui
View Source
const GL_EXT_polygon_offset = 1 // num10 @ gui
View Source
const GL_EXT_polygon_offset_clamp = 1 // num10 @ gui
View Source
const GL_EXT_post_depth_coverage = 1 // num10 @ gui
View Source
const GL_EXT_provoking_vertex = 1 // num10 @ gui
View Source
const GL_EXT_raster_multisample = 1 // num10 @ gui
View Source
const GL_EXT_rescale_normal = 1 // num10 @ gui
View Source
const GL_EXT_secondary_color = 1 // num10 @ gui
View Source
const GL_EXT_separate_shader_objects = 1 // num10 @ gui
View Source
const GL_EXT_separate_specular_color = 1 // num10 @ gui
View Source
const GL_EXT_shader_image_load_formatted = 1 // num10 @ gui
View Source
const GL_EXT_shader_image_load_store = 1 // num10 @ gui
View Source
const GL_EXT_shader_integer_mix = 1 // num10 @ gui
View Source
const GL_EXT_shadow_funcs = 1 // num10 @ gui
View Source
const GL_EXT_shared_texture_palette = 1 // num10 @ gui
View Source
const GL_EXT_sparse_texture2 = 1 // num10 @ gui
View Source
const GL_EXT_stencil_clear_tag = 1 // num10 @ gui
View Source
const GL_EXT_stencil_two_side = 1 // num10 @ gui
View Source
const GL_EXT_stencil_wrap = 1 // num10 @ gui
View Source
const GL_EXT_subtexture = 1 // num10 @ gui
View Source
const GL_EXT_texture = 1 // num10 @ gui
View Source
const GL_EXT_texture3D = 1 // num10 @ gui
View Source
const GL_EXT_texture_array = 1 // num10 @ gui
View Source
const GL_EXT_texture_buffer_object = 1 // num10 @ gui
View Source
const GL_EXT_texture_compression_latc = 1 // num10 @ gui
View Source
const GL_EXT_texture_compression_rgtc = 1 // num10 @ gui
View Source
const GL_EXT_texture_compression_s3tc = 1 // num10 @ gui
View Source
const GL_EXT_texture_cube_map = 1 // num10 @ gui
View Source
const GL_EXT_texture_env_add = 1 // num10 @ gui
View Source
const GL_EXT_texture_env_combine = 1 // num10 @ gui
View Source
const GL_EXT_texture_env_dot3 = 1 // num10 @ gui
View Source
const GL_EXT_texture_filter_anisotropic = 1 // num10 @ gui
View Source
const GL_EXT_texture_filter_minmax = 1 // num10 @ gui
View Source
const GL_EXT_texture_integer = 1 // num10 @ gui
View Source
const GL_EXT_texture_lod_bias = 1 // num10 @ gui
View Source
const GL_EXT_texture_mirror_clamp = 1 // num10 @ gui
View Source
const GL_EXT_texture_object = 1 // num10 @ gui
View Source
const GL_EXT_texture_perturb_normal = 1 // num10 @ gui
View Source
const GL_EXT_texture_sRGB = 1 // num10 @ gui
View Source
const GL_EXT_texture_sRGB_decode = 1 // num10 @ gui
View Source
const GL_EXT_texture_shared_exponent = 1 // num10 @ gui
View Source
const GL_EXT_texture_snorm = 1 // num10 @ gui
View Source
const GL_EXT_texture_swizzle = 1 // num10 @ gui
View Source
const GL_EXT_timer_query = 1 // num10 @ gui
View Source
const GL_EXT_transform_feedback = 1 // num10 @ gui
View Source
const GL_EXT_vertex_array = 1 // num10 @ gui
View Source
const GL_EXT_vertex_array_bgra = 1 // num10 @ gui
View Source
const GL_EXT_vertex_attrib_64bit = 1 // num10 @ gui
View Source
const GL_EXT_vertex_shader = 1 // num10 @ gui
View Source
const GL_EXT_vertex_weighting = 1 // num10 @ gui
View Source
const GL_EXT_window_rectangles = 1 // num10 @ gui
View Source
const GL_EXT_x11_sync_object = 1 // num10 @ gui
View Source
const GL_FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8 // num16 @ gui
View Source
const GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV = 0x8 // num16 @ gui
View Source
const GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889 // num16 @ gui
View Source
const GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB = 0x889 // num16 @ gui
View Source
const GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM = 103086 // num10 @ gui
View Source
const GL_FOG_COORDINATE_ARRAY_POINTER_EXT = 0x8456 // num16 @ gui
View Source
const GL_FOG_COORDINATE_ARRAY_STRIDE_EXT = 0x8455 // num16 @ gui
View Source
const GL_FOG_COORD_ARRAY_BUFFER_BINDING = 0x889 // num16 @ gui
View Source
const GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV = 0x02000000 // num16 @ gui
View Source
const GL_FONT_UNDERLINE_POSITION_BIT_NV = 0x04000000 // num16 @ gui
View Source
const GL_FONT_UNDERLINE_THICKNESS_BIT_NV = 0x08000000 // num16 @ gui
View Source
const GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX = 0x8402 // num16 @ gui
View Source
const GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX = 0x8403 // num16 @ gui
View Source
const GL_FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5 // num16 @ gui
View Source
const GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX = 0x840 // num16 @ gui
View Source
const GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX = 0x8408 // num16 @ gui
View Source
const GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX = 0x840B // num16 @ gui
View Source
const GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX = 0x8409 // num16 @ gui
View Source
const GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV = 0x8E5 // num16 @ gui
View Source
const GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA4 // num16 @ gui
View Source
const GL_FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B // num16 @ gui
View Source
const GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB = 0x8B8B // num16 @ gui
View Source
const GL_FRAGMENT_SHADER_INVOCATIONS_ARB = 0x82F4 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 0x8215 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 0x8214 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 0x8211 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 0x8216 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 0x8213 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_LAYERED = 0x8DA7 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB = 0x8DA7 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT = 0x8DA7 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT = 0x8CD1 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT = 0x8CD0 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE = 0x8212 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 0x8217 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT = 0x8CD4 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR = 0x9632 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT = 0x8CD3 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8CD4 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = 0x8CD4 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT = 0x8CD2 // num16 @ gui
View Source
const GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR = 0x9630 // num16 @ gui
View Source
const GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS = 0x9314 // num16 @ gui
View Source
const GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6 // num16 @ gui
View Source
const GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT = 0x8CD6 // num16 @ gui
View Source
const GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT = 0x8CD9 // num16 @ gui
View Source
const GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = 0x8CDB // num16 @ gui
View Source
const GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT = 0x8CDB // num16 @ gui
View Source
const GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT = 0x8 // num16 @ gui
View Source
const GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB = 0x8DA9 // num16 @ gui
View Source
const GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT = 0x8DA9 // num16 @ gui
View Source
const GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS = 0x8DA8 // num16 @ gui
View Source
const GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB = 0x8DA8 // num16 @ gui
View Source
const GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT = 0x8DA8 // num16 @ gui
View Source
const GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7 // num16 @ gui
View Source
const GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT = 0x8CD7 // num16 @ gui
View Source
const GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8D56 // num16 @ gui
View Source
const GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT = 0x8D56 // num16 @ gui
View Source
const GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER = 0x8 // num16 @ gui
View Source
const GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT = 0x8 // num16 @ gui
View Source
const GL_FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR = 0x9633 // num16 @ gui
View Source
const GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_ARB = 0x9342 // num16 @ gui
View Source
const GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV = 0x9342 // num16 @ gui
View Source
const GL_FRAMEBUFFER_RENDERABLE_LAYERED = 0x828 // num16 @ gui
View Source
const GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_ARB = 0x9343 // num16 @ gui
View Source
const GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV = 0x9343 // num16 @ gui
View Source
const GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA3 // num16 @ gui
View Source
const GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB = 0x82F3 // num16 @ gui
View Source
const GL_GLEXT_VERSION = 20170325 // num10 @ gui
View Source
const GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV = 0x10 // num16 @ gui
View Source
const GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV = 0x04 // num16 @ gui
View Source
const GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV = 0x08 // num16 @ gui
View Source
const GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV = 0x80 // num16 @ gui
View Source
const GL_GLYPH_VERTICAL_BEARING_X_BIT_NV = 0x20 // num16 @ gui
View Source
const GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV = 0x40 // num16 @ gui
View Source
const GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX = 0x9049 // num16 @ gui
View Source
const GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX = 0x9047 // num16 @ gui
View Source
const GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX = 0x904B // num16 @ gui
View Source
const GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX = 0x904 // num16 @ gui
View Source
const GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX = 0x9048 // num16 @ gui
View Source
const GL_GREMEDY_frame_terminator = 1 // num10 @ gui
View Source
const GL_GREMEDY_string_marker = 1 // num10 @ gui
View Source
const GL_HP_convolution_border_modes = 1 // num10 @ gui
View Source
const GL_HP_image_transform = 1 // num10 @ gui
View Source
const GL_HP_occlusion_test = 1 // num10 @ gui
View Source
const GL_HP_texture_lighting = 1 // num10 @ gui
View Source
const GL_IBM_cull_vertex = 1 // num10 @ gui
View Source
const GL_IBM_multimode_draw_arrays = 1 // num10 @ gui
View Source
const GL_IBM_rasterpos_clip = 1 // num10 @ gui
View Source
const GL_IBM_static_data = 1 // num10 @ gui
View Source
const GL_IBM_texture_mirrored_repeat = 1 // num10 @ gui
View Source
const GL_IBM_vertex_array_lists = 1 // num10 @ gui
View Source
const GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9056 // num16 @ gui
View Source
const GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS = 0x90C9 // num16 @ gui
View Source
const GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE = 0x90C8 // num16 @ gui
View Source
const GL_IMAGE_FORMAT_COMPATIBILITY_TYPE = 0x90C7 // num16 @ gui
View Source
const GL_IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B // num16 @ gui
View Source
const GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES = 0x8B9B // num16 @ gui
View Source
const GL_IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9 // num16 @ gui
View Source
const GL_IMPLEMENTATION_COLOR_READ_TYPE_OES = 0x8B9 // num16 @ gui
View Source
const GL_INDEX_ARRAY_BUFFER_BINDING_ARB = 0x8899 // num16 @ gui
View Source
const GL_INGR_blend_func_separate = 1 // num10 @ gui
View Source
const GL_INGR_color_clamp = 1 // num10 @ gui
View Source
const GL_INGR_interlace_read = 1 // num10 @ gui
View Source
const GL_INSTRUMENT_BUFFER_POINTER_SGIX = 0x8180 // num16 @ gui
View Source
const GL_INTEL_conservative_rasterization = 1 // num10 @ gui
View Source
const GL_INTEL_fragment_shader_ordering = 1 // num10 @ gui
View Source
const GL_INTEL_framebuffer_CMAA = 1 // num10 @ gui
View Source
const GL_INTEL_map_texture = 1 // num10 @ gui
View Source
const GL_INTEL_parallel_arrays = 1 // num10 @ gui
View Source
const GL_INTEL_performance_query = 1 // num10 @ gui
View Source
const GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x9061 // num16 @ gui
View Source
const GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9061 // num16 @ gui
View Source
const GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910 // num16 @ gui
View Source
const GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900E // num16 @ gui
View Source
const GL_INVALID_FRAMEBUFFER_OPERATION_EXT = 0x0506 // num16 @ gui
View Source
const GL_KHR_blend_equation_advanced = 1 // num10 @ gui
View Source
const GL_KHR_blend_equation_advanced_coherent = 1 // num10 @ gui
View Source
const GL_KHR_context_flush_control = 1 // num10 @ gui
View Source
const GL_KHR_debug = 1 // num10 @ gui
View Source
const GL_KHR_no_error = 1 // num10 @ gui
View Source
const GL_KHR_robust_buffer_access_behavior = 1 // num10 @ gui
View Source
const GL_KHR_robustness = 1 // num10 @ gui
View Source
const GL_KHR_texture_compression_astc_hdr = 1 // num10 @ gui
View Source
const GL_KHR_texture_compression_astc_ldr = 1 // num10 @ gui
View Source
const GL_KHR_texture_compression_astc_sliced_3d = 1 // num10 @ gui
View Source
const GL_LAYOUT_LINEAR_CPU_CACHED_INTEL = 2 // num10 @ gui
View Source
const GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE = 0x85B0 // num16 @ gui
View Source
const GL_MATRIX_INDEX_ARRAY_POINTER_ARB = 0x8849 // num16 @ gui
View Source
const GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI = 0x00200000 // num16 @ gui
View Source
const GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS = 0x92 // num16 @ gui
View Source
const GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE = 0x92D8 // num16 @ gui
View Source
const GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX = 0x8178 // num16 @ gui
View Source
const GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI = 0x80B3 // num16 @ gui
View Source
const GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS = 0x92D1 // num16 @ gui
View Source
const GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES = 0x82F // num16 @ gui
View Source
const GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS = 0x8266 // num16 @ gui
View Source
const GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 0x8A33 // num16 @ gui
View Source
const GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = 0x8A32 // num16 @ gui
View Source
const GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS = 0x8F39 // num16 @ gui
View Source
const GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT = 0x8F39 // num16 @ gui
View Source
const GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES = 0x8F39 // num16 @ gui
View Source
const GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS = 0x90 // num16 @ gui
View Source
const GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E1E // num16 @ gui
View Source
const GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E1F // num16 @ gui
View Source
const GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4 // num16 @ gui
View Source
const GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB = 0x8B4 // num16 @ gui
View Source
const GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 0x8A31 // num16 @ gui
View Source
const GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS = 0x8264 // num16 @ gui
View Source
const GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB = 0x90EB // num16 @ gui
View Source
const GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB = 0x91BF // num16 @ gui
View Source
const GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS = 0x90DB // num16 @ gui
View Source
const GL_MAX_COMPUTE_SHARED_MEMORY_SIZE = 0x8262 // num16 @ gui
View Source
const GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS = 0x91B // num16 @ gui
View Source
const GL_MAX_COMPUTE_UNIFORM_COMPONENTS = 0x8263 // num16 @ gui
View Source
const GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB = 0x9344 // num16 @ gui
View Source
const GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB = 0x9345 // num16 @ gui
View Source
const GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS = 0x90EB // num16 @ gui
View Source
const GL_MAX_DEEP_3D_TEXTURE_WIDTH_HEIGHT_NV = 0x90D0 // num16 @ gui
View Source
const GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS = 0x92D0 // num16 @ gui
View Source
const GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT = 0x8DE3 // num16 @ gui
View Source
const GL_MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5 // num16 @ gui
View Source
const GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5 // num16 @ gui
View Source
const GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV = 0x8868 // num16 @ gui
View Source
const GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS = 0x90 // num16 @ gui
View Source
const GL_MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8B49 // num16 @ gui
View Source
const GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB = 0x8B49 // num16 @ gui
View Source
const GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS = 0x92CF // num16 @ gui
View Source
const GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT = 0x8DE4 // num16 @ gui
View Source
const GL_MAX_GEOMETRY_OUTPUT_COMPONENTS = 0x9124 // num16 @ gui
View Source
const GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB = 0x8DE0 // num16 @ gui
View Source
const GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT = 0x8DE0 // num16 @ gui
View Source
const GL_MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV = 0x8E5 // num16 @ gui
View Source
const GL_MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5 // num16 @ gui
View Source
const GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS = 0x90D7 // num16 @ gui
View Source
const GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS = 0x8C29 // num16 @ gui
View Source
const GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB = 0x8C29 // num16 @ gui
View Source
const GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT = 0x8C29 // num16 @ gui
View Source
const GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS = 0x8DE1 // num16 @ gui
View Source
const GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB = 0x8DE1 // num16 @ gui
View Source
const GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT = 0x8DE1 // num16 @ gui
View Source
const GL_MAX_GEOMETRY_UNIFORM_COMPONENTS = 0x8DDF // num16 @ gui
View Source
const GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB = 0x8DDF // num16 @ gui
View Source
const GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT = 0x8DDF // num16 @ gui
View Source
const GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB = 0x8 // num16 @ gui
View Source
const GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT = 0x8 // num16 @ gui
View Source
const GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB = 0x8841 // num16 @ gui
View Source
const GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV = 0x8E11 // num16 @ gui
View Source
const GL_MAX_NUM_COMPATIBLE_SUBROUTINES = 0x92F8 // num16 @ gui
View Source
const GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87 // num16 @ gui
View Source
const GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT = 0x87 // num16 @ gui
View Source
const GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT = 0x87CE // num16 @ gui
View Source
const GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87 // num16 @ gui
View Source
const GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT = 0x87CB // num16 @ gui
View Source
const GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8337 // num16 @ gui
View Source
const GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F1 // num16 @ gui
View Source
const GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B1 // num16 @ gui
View Source
const GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB = 0x880B // num16 @ gui
View Source
const GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8908 // num16 @ gui
View Source
const GL_MAX_PROGRAM_ENV_PARAMETERS_ARB = 0x88B5 // num16 @ gui
View Source
const GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV = 0x88F4 // num16 @ gui
View Source
const GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV = 0x8DA5 // num16 @ gui
View Source
const GL_MAX_PROGRAM_GENERIC_RESULTS_NV = 0x8DA6 // num16 @ gui
View Source
const GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 0x88B4 // num16 @ gui
View Source
const GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB = 0x862E // num16 @ gui
View Source
const GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B3 // num16 @ gui
View Source
const GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x880E // num16 @ gui
View Source
const GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AF // num16 @ gui
View Source
const GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A3 // num16 @ gui
View Source
const GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AB // num16 @ gui
View Source
const GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A7 // num16 @ gui
View Source
const GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x8810 // num16 @ gui
View Source
const GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x880F // num16 @ gui
View Source
const GL_MAX_PROGRAM_OUTPUT_VERTICES_NV = 0x8C27 // num16 @ gui
View Source
const GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV = 0x8DA0 // num16 @ gui
View Source
const GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV = 0x8DA1 // num16 @ gui
View Source
const GL_MAX_PROGRAM_RESULT_COMPONENTS_NV = 0x8909 // num16 @ gui
View Source
const GL_MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV = 0x8F44 // num16 @ gui
View Source
const GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB = 0x8F9F // num16 @ gui
View Source
const GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5F // num16 @ gui
View Source
const GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5F // num16 @ gui
View Source
const GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5F // num16 @ gui
View Source
const GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB = 0x880 // num16 @ gui
View Source
const GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB = 0x880 // num16 @ gui
View Source
const GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV = 0x8C28 // num16 @ gui
View Source
const GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB = 0x84F8 // num16 @ gui
View Source
const GL_MAX_SHADER_COMPILER_THREADS_ARB = 0x91B0 // num16 @ gui
View Source
const GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS = 0x90 // num16 @ gui
View Source
const GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD = 0x9199 // num16 @ gui
View Source
const GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB = 0x9199 // num16 @ gui
View Source
const GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS = 0x919 // num16 @ gui
View Source
const GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB = 0x919 // num16 @ gui
View Source
const GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV = 0x9349 // num16 @ gui
View Source
const GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS = 0x8DE8 // num16 @ gui
View Source
const GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS = 0x92D3 // num16 @ gui
View Source
const GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS = 0x92 // num16 @ gui
View Source
const GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS = 0x90CB // num16 @ gui
View Source
const GL_MAX_TESS_CONTROL_INPUT_COMPONENTS = 0x886 // num16 @ gui
View Source
const GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS = 0x8E83 // num16 @ gui
View Source
const GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS = 0x90D8 // num16 @ gui
View Source
const GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS = 0x8E81 // num16 @ gui
View Source
const GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS = 0x8E85 // num16 @ gui
View Source
const GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS = 0x8E89 // num16 @ gui
View Source
const GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E7F // num16 @ gui
View Source
const GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS = 0x92D4 // num16 @ gui
View Source
const GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS = 0x92CE // num16 @ gui
View Source
const GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS = 0x90 // num16 @ gui
View Source
const GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS = 0x886 // num16 @ gui
View Source
const GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS = 0x8E86 // num16 @ gui
View Source
const GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS = 0x90D9 // num16 @ gui
View Source
const GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS = 0x8E82 // num16 @ gui
View Source
const GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS = 0x8E8 // num16 @ gui
View Source
const GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E80 // num16 @ gui
View Source
const GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF // num16 @ gui
View Source
const GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV = 0x862E // num16 @ gui
View Source
const GL_MAX_TRANSFORM_FEEDBACK_BUFFERS = 0x8E70 // num16 @ gui
View Source
const GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 0x8C8 // num16 @ gui
View Source
const GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT = 0x8C8 // num16 @ gui
View Source
const GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV = 0x8C8 // num16 @ gui
View Source
const GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 0x8C8B // num16 @ gui
View Source
const GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT = 0x8C8B // num16 @ gui
View Source
const GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV = 0x8C8B // num16 @ gui
View Source
const GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 0x8C80 // num16 @ gui
View Source
const GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT = 0x8C80 // num16 @ gui
View Source
const GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV = 0x8C80 // num16 @ gui
View Source
const GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV = 0x8520 // num16 @ gui
View Source
const GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS = 0x92 // num16 @ gui
View Source
const GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D9 // num16 @ gui
View Source
const GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT = 0x8DE2 // num16 @ gui
View Source
const GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87C5 // num16 @ gui
View Source
const GL_MAX_VERTEX_SHADER_INVARIANTS_EXT = 0x87C7 // num16 @ gui
View Source
const GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87C8 // num16 @ gui
View Source
const GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS = 0x90D6 // num16 @ gui
View Source
const GL_MAX_VERTEX_SHADER_VARIANTS_EXT = 0x87C6 // num16 @ gui
View Source
const GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4 // num16 @ gui
View Source
const GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB = 0x8B4 // num16 @ gui
View Source
const GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB = 0x8B4 // num16 @ gui
View Source
const GL_MAX_VERTEX_VARYING_COMPONENTS_ARB = 0x8DDE // num16 @ gui
View Source
const GL_MAX_VERTEX_VARYING_COMPONENTS_EXT = 0x8DDE // num16 @ gui
View Source
const GL_MESAX_texture_stack = 1 // num10 @ gui
View Source
const GL_MESA_pack_invert = 1 // num10 @ gui
View Source
const GL_MESA_resize_buffers = 1 // num10 @ gui
View Source
const GL_MESA_shader_integer_functions = 1 // num10 @ gui
View Source
const GL_MESA_window_pos = 1 // num10 @ gui
View Source
const GL_MESA_ycbcr_texture = 1 // num10 @ gui
View Source
const GL_MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B // num16 @ gui
View Source
const GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5B // num16 @ gui
View Source
const GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5E // num16 @ gui
View Source
const GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5E // num16 @ gui
View Source
const GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5E // num16 @ gui
View Source
const GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NV = 0x932F // num16 @ gui
View Source
const GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NV = 0x9330 // num16 @ gui
View Source
const GL_MULTICAST_PROGRAMMABLE_SAMPLE_LOCATION_NV = 0x9549 // num16 @ gui
View Source
const GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB = 0x9382 // num16 @ gui
View Source
const GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB = 0x9381 // num16 @ gui
View Source
const GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT = 0x932B // num16 @ gui
View Source
const GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI = 0x1A203 // num16 @ gui
View Source
const GL_NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV = 0x9025 // num16 @ gui
View Source
const GL_NORMAL_ARRAY_BUFFER_BINDING_ARB = 0x8897 // num16 @ gui
View Source
const GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F6 // num16 @ gui
View Source
const GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A2 // num16 @ gui
View Source
const GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI = 0x8973 // num16 @ gui
View Source
const GL_NVX_blend_equation_advanced_multi_draw_buffers = 1 // num10 @ gui
View Source
const GL_NVX_conditional_render = 1 // num10 @ gui
View Source
const GL_NVX_gpu_memory_info = 1 // num10 @ gui
View Source
const GL_NVX_linked_gpu_multicast = 1 // num10 @ gui
View Source
const GL_NV_alpha_to_coverage_dither_control = 1 // num10 @ gui
View Source
const GL_NV_bindless_multi_draw_indirect = 1 // num10 @ gui
View Source
const GL_NV_bindless_multi_draw_indirect_count = 1 // num10 @ gui
View Source
const GL_NV_bindless_texture = 1 // num10 @ gui
View Source
const GL_NV_blend_equation_advanced = 1 // num10 @ gui
View Source
const GL_NV_blend_equation_advanced_coherent = 1 // num10 @ gui
View Source
const GL_NV_blend_square = 1 // num10 @ gui
View Source
const GL_NV_clip_space_w_scaling = 1 // num10 @ gui
View Source
const GL_NV_command_list = 1 // num10 @ gui
View Source
const GL_NV_compute_program5 = 1 // num10 @ gui
View Source
const GL_NV_conditional_render = 1 // num10 @ gui
View Source
const GL_NV_conservative_raster = 1 // num10 @ gui
View Source
const GL_NV_conservative_raster_dilate = 1 // num10 @ gui
View Source
const GL_NV_conservative_raster_pre_snap_triangles = 1 // num10 @ gui
View Source
const GL_NV_copy_depth_to_color = 1 // num10 @ gui
View Source
const GL_NV_copy_image = 1 // num10 @ gui
View Source
const GL_NV_deep_texture3D = 1 // num10 @ gui
View Source
const GL_NV_depth_buffer_float = 1 // num10 @ gui
View Source
const GL_NV_depth_clamp = 1 // num10 @ gui
View Source
const GL_NV_draw_texture = 1 // num10 @ gui
View Source
const GL_NV_draw_vulkan_image = 1 // num10 @ gui
View Source
const GL_NV_evaluators = 1 // num10 @ gui
View Source
const GL_NV_explicit_multisample = 1 // num10 @ gui
View Source
const GL_NV_fence = 1 // num10 @ gui
View Source
const GL_NV_fill_rectangle = 1 // num10 @ gui
View Source
const GL_NV_float_buffer = 1 // num10 @ gui
View Source
const GL_NV_fog_distance = 1 // num10 @ gui
View Source
const GL_NV_fragment_coverage_to_color = 1 // num10 @ gui
View Source
const GL_NV_fragment_program = 1 // num10 @ gui
View Source
const GL_NV_fragment_program2 = 1 // num10 @ gui
View Source
const GL_NV_fragment_program4 = 1 // num10 @ gui
View Source
const GL_NV_fragment_program_option = 1 // num10 @ gui
View Source
const GL_NV_fragment_shader_interlock = 1 // num10 @ gui
View Source
const GL_NV_framebuffer_mixed_samples = 1 // num10 @ gui
View Source
const GL_NV_framebuffer_multisample_coverage = 1 // num10 @ gui
View Source
const GL_NV_geometry_program4 = 1 // num10 @ gui
View Source
const GL_NV_geometry_shader4 = 1 // num10 @ gui
View Source
const GL_NV_geometry_shader_passthrough = 1 // num10 @ gui
View Source
const GL_NV_gpu_multicast = 1 // num10 @ gui
View Source
const GL_NV_gpu_program4 = 1 // num10 @ gui
View Source
const GL_NV_gpu_program5 = 1 // num10 @ gui
View Source
const GL_NV_gpu_program5_mem_extended = 1 // num10 @ gui
View Source
const GL_NV_gpu_shader5 = 1 // num10 @ gui
View Source
const GL_NV_half_float = 1 // num10 @ gui
View Source
const GL_NV_internalformat_sample_query = 1 // num10 @ gui
View Source
const GL_NV_light_max_exponent = 1 // num10 @ gui
View Source
const GL_NV_multisample_coverage = 1 // num10 @ gui
View Source
const GL_NV_multisample_filter_hint = 1 // num10 @ gui
View Source
const GL_NV_occlusion_query = 1 // num10 @ gui
View Source
const GL_NV_packed_depth_stencil = 1 // num10 @ gui
View Source
const GL_NV_parameter_buffer_object = 1 // num10 @ gui
View Source
const GL_NV_parameter_buffer_object2 = 1 // num10 @ gui
View Source
const GL_NV_path_rendering = 1 // num10 @ gui
View Source
const GL_NV_path_rendering_shared_edge = 1 // num10 @ gui
View Source
const GL_NV_pixel_data_range = 1 // num10 @ gui
View Source
const GL_NV_point_sprite = 1 // num10 @ gui
View Source
const GL_NV_present_video = 1 // num10 @ gui
View Source
const GL_NV_primitive_restart = 1 // num10 @ gui
View Source
const GL_NV_register_combiners = 1 // num10 @ gui
View Source
const GL_NV_register_combiners2 = 1 // num10 @ gui
View Source
const GL_NV_robustness_video_memory_purge = 1 // num10 @ gui
View Source
const GL_NV_sample_locations = 1 // num10 @ gui
View Source
const GL_NV_sample_mask_override_coverage = 1 // num10 @ gui
View Source
const GL_NV_shader_atomic_counters = 1 // num10 @ gui
View Source
const GL_NV_shader_atomic_float = 1 // num10 @ gui
View Source
const GL_NV_shader_atomic_float64 = 1 // num10 @ gui
View Source
const GL_NV_shader_atomic_fp16_vector = 1 // num10 @ gui
View Source
const GL_NV_shader_atomic_int64 = 1 // num10 @ gui
View Source
const GL_NV_shader_buffer_load = 1 // num10 @ gui
View Source
const GL_NV_shader_buffer_store = 1 // num10 @ gui
View Source
const GL_NV_shader_storage_buffer_object = 1 // num10 @ gui
View Source
const GL_NV_shader_thread_group = 1 // num10 @ gui
View Source
const GL_NV_shader_thread_shuffle = 1 // num10 @ gui
View Source
const GL_NV_stereo_view_rendering = 1 // num10 @ gui
View Source
const GL_NV_tessellation_program5 = 1 // num10 @ gui
View Source
const GL_NV_texgen_emboss = 1 // num10 @ gui
View Source
const GL_NV_texgen_reflection = 1 // num10 @ gui
View Source
const GL_NV_texture_barrier = 1 // num10 @ gui
View Source
const GL_NV_texture_compression_vtc = 1 // num10 @ gui
View Source
const GL_NV_texture_env_combine4 = 1 // num10 @ gui
View Source
const GL_NV_texture_expand_normal = 1 // num10 @ gui
View Source
const GL_NV_texture_multisample = 1 // num10 @ gui
View Source
const GL_NV_texture_rectangle = 1 // num10 @ gui
View Source
const GL_NV_texture_shader = 1 // num10 @ gui
View Source
const GL_NV_texture_shader2 = 1 // num10 @ gui
View Source
const GL_NV_texture_shader3 = 1 // num10 @ gui
View Source
const GL_NV_transform_feedback = 1 // num10 @ gui
View Source
const GL_NV_transform_feedback2 = 1 // num10 @ gui
View Source
const GL_NV_uniform_buffer_unified_memory = 1 // num10 @ gui
View Source
const GL_NV_vdpau_interop = 1 // num10 @ gui
View Source
const GL_NV_vertex_array_range = 1 // num10 @ gui
View Source
const GL_NV_vertex_array_range2 = 1 // num10 @ gui
View Source
const GL_NV_vertex_attrib_integer_64bit = 1 // num10 @ gui
View Source
const GL_NV_vertex_buffer_unified_memory = 1 // num10 @ gui
View Source
const GL_NV_vertex_program = 1 // num10 @ gui
View Source
const GL_NV_vertex_program1_1 = 1 // num10 @ gui
View Source
const GL_NV_vertex_program2 = 1 // num10 @ gui
View Source
const GL_NV_vertex_program2_option = 1 // num10 @ gui
View Source
const GL_NV_vertex_program3 = 1 // num10 @ gui
View Source
const GL_NV_vertex_program4 = 1 // num10 @ gui
View Source
const GL_NV_video_capture = 1 // num10 @ gui
View Source
const GL_NV_viewport_array2 = 1 // num10 @ gui
View Source
const GL_NV_viewport_swizzle = 1 // num10 @ gui
View Source
const GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB = 0x8B8 // num16 @ gui
View Source
const GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB = 0x8B87 // num16 @ gui
View Source
const GL_OBJECT_SHADER_SOURCE_LENGTH_ARB = 0x8B88 // num16 @ gui
View Source
const GL_OCCLUSION_QUERY_EVENT_MASK_AMD = 0x874F // num16 @ gui
View Source
const GL_OES_byte_coordinates = 1 // num10 @ gui
View Source
const GL_OES_compressed_paletted_texture = 1 // num10 @ gui
View Source
const GL_OES_fixed_point = 1 // num10 @ gui
View Source
const GL_OES_query_matrix = 1 // num10 @ gui
View Source
const GL_OES_read_format = 1 // num10 @ gui
View Source
const GL_OES_single_precision = 1 // num10 @ gui
View Source
const GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV = 0x8856 // num16 @ gui
View Source
const GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8857 // num16 @ gui
View Source
const GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV = 0x8855 // num16 @ gui
View Source
const GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV = 0x8850 // num16 @ gui
View Source
const GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV = 0x8851 // num16 @ gui
View Source
const GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8852 // num16 @ gui
View Source
const GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV = 0x8853 // num16 @ gui
View Source
const GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV = 0x864 // num16 @ gui
View Source
const GL_OML_interlace = 1 // num10 @ gui
View Source
const GL_OML_resample = 1 // num10 @ gui
View Source
const GL_OML_subsample = 1 // num10 @ gui
View Source
const GL_OVR_multiview = 1 // num10 @ gui
View Source
const GL_OVR_multiview2 = 1 // num10 @ gui
View Source
const GL_PATH_MAX_MODELVIEW_STACK_DEPTH_NV = 0x0D36 // num16 @ gui
View Source
const GL_PATH_MAX_PROJECTION_STACK_DEPTH_NV = 0x0D38 // num16 @ gui
View Source
const GL_PATH_PROJECTION_STACK_DEPTH_NV = 0x0BA4 // num16 @ gui
View Source
const GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV = 0x90B // num16 @ gui
View Source
const GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV = 0x90BE // num16 @ gui
View Source
const GL_PATH_TRANSPOSE_MODELVIEW_MATRIX_NV = 0x84E3 // num16 @ gui
View Source
const GL_PATH_TRANSPOSE_PROJECTION_MATRIX_NV = 0x84E4 // num16 @ gui
View Source
const GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL = 0x94F // num16 @ gui
View Source
const GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL = 0x94FB // num16 @ gui
View Source
const GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL = 0x94F // num16 @ gui
View Source
const GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL = 0x94F8 // num16 @ gui
View Source
const GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL = 0x94F9 // num16 @ gui
View Source
const GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL = 0x94FF // num16 @ gui
View Source
const GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL = 0x94F1 // num16 @ gui
View Source
const GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL = 0x94F2 // num16 @ gui
View Source
const GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL = 0x94FE // num16 @ gui
View Source
const GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL = 0x94F3 // num16 @ gui
View Source
const GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL = 0x94F5 // num16 @ gui
View Source
const GL_PERFQUERY_GLOBAL_CONTEXT_INTEL = 0x00000001 // num16 @ gui
View Source
const GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL = 0x9500 // num16 @ gui
View Source
const GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL = 0x94F // num16 @ gui
View Source
const GL_PERFQUERY_SINGLE_CONTEXT_INTEL = 0x00000000 // num16 @ gui
View Source
const GL_PGI_misc_hints = 1 // num10 @ gui
View Source
const GL_PGI_vertex_hints = 1 // num10 @ gui
View Source
const GL_PIXELS_PER_SAMPLE_PATTERN_X_AMD = 0x91AE // num16 @ gui
View Source
const GL_PIXELS_PER_SAMPLE_PATTERN_Y_AMD = 0x91AF // num16 @ gui
View Source
const GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS = 0x8355 // num16 @ gui
View Source
const GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS = 0x8354 // num16 @ gui
View Source
const GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX = 0x813E // num16 @ gui
View Source
const GL_PIXEL_TILE_CACHE_INCREMENT_SGIX = 0x813F // num16 @ gui
View Source
const GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8336 // num16 @ gui
View Source
const GL_PIXEL_UNPACK_BUFFER_BINDING_ARB = 0x88EF // num16 @ gui
View Source
const GL_PIXEL_UNPACK_BUFFER_BINDING_EXT = 0x88EF // num16 @ gui
View Source
const GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI = 0x87F7 // num16 @ gui
View Source
const GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI = 0x87F8 // num16 @ gui
View Source
const GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI = 0x87F6 // num16 @ gui
View Source
const GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI = 0x87F5 // num16 @ gui
View Source
const GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F4 // num16 @ gui
View Source
const GL_POINT_DISTANCE_ATTENUATION_ARB = 0x8129 // num16 @ gui
View Source
const GL_POINT_FADE_THRESHOLD_SIZE_SGIS = 0x8128 // num16 @ gui
View Source
const GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI = 0x80BB // num16 @ gui
View Source
const GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI = 0x80B7 // num16 @ gui
View Source
const GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI = 0x80B // num16 @ gui
View Source
const GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI = 0x80B6 // num16 @ gui
View Source
const GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI = 0x80D2 // num16 @ gui
View Source
const GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI = 0x80B9 // num16 @ gui
View Source
const GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI = 0x80B5 // num16 @ gui
View Source
const GL_POST_COLOR_MATRIX_RED_BIAS_SGI = 0x80B8 // num16 @ gui
View Source
const GL_POST_COLOR_MATRIX_RED_SCALE_SGI = 0x80B4 // num16 @ gui
View Source
const GL_POST_CONVOLUTION_ALPHA_BIAS_EXT = 0x8023 // num16 @ gui
View Source
const GL_POST_CONVOLUTION_ALPHA_SCALE_EXT = 0x801F // num16 @ gui
View Source
const GL_POST_CONVOLUTION_BLUE_BIAS_EXT = 0x8022 // num16 @ gui
View Source
const GL_POST_CONVOLUTION_BLUE_SCALE_EXT = 0x801E // num16 @ gui
View Source
const GL_POST_CONVOLUTION_COLOR_TABLE_SGI = 0x80D1 // num16 @ gui
View Source
const GL_POST_CONVOLUTION_GREEN_BIAS_EXT = 0x8021 // num16 @ gui
View Source
const GL_POST_CONVOLUTION_GREEN_SCALE_EXT = 0x801 // num16 @ gui
View Source
const GL_POST_CONVOLUTION_RED_SCALE_EXT = 0x801 // num16 @ gui
View Source
const GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP = 0x8162 // num16 @ gui
View Source
const GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX = 0x817B // num16 @ gui
View Source
const GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX = 0x817 // num16 @ gui
View Source
const GL_POST_TEXTURE_FILTER_SCALE_SGIX = 0x817 // num16 @ gui
View Source
const GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED = 0x8221 // num16 @ gui
View Source
const GL_PROGRAMMABLE_SAMPLE_LOCATION_ARB = 0x9341 // num16 @ gui
View Source
const GL_PROGRAMMABLE_SAMPLE_LOCATION_NV = 0x9341 // num16 @ gui
View Source
const GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB = 0x9340 // num16 @ gui
View Source
const GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV = 0x9340 // num16 @ gui
View Source
const GL_PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257 // num16 @ gui
View Source
const GL_PROGRAM_MATRIX_STACK_DEPTH_EXT = 0x8E2F // num16 @ gui
View Source
const GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B2 // num16 @ gui
View Source
const GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x8808 // num16 @ gui
View Source
const GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A2 // num16 @ gui
View Source
const GL_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A6 // num16 @ gui
View Source
const GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x880 // num16 @ gui
View Source
const GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x8809 // num16 @ gui
View Source
const GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB = 0x88B6 // num16 @ gui
View Source
const GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI = 0x80D5 // num16 @ gui
View Source
const GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI = 0x80D4 // num16 @ gui
View Source
const GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP = 0x8163 // num16 @ gui
View Source
const GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9103 // num16 @ gui
View Source
const GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB = 0x900B // num16 @ gui
View Source
const GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION = 0x8E4 // num16 @ gui
View Source
const GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT = 0x8E4 // num16 @ gui
View Source
const GL_QUERY_BY_REGION_NO_WAIT_INVERTED = 0x8E1 // num16 @ gui
View Source
const GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD = 0x00000008 // num16 @ gui
View Source
const GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD = 0x00000002 // num16 @ gui
View Source
const GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD = 0x00000001 // num16 @ gui
View Source
const GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD = 0x00000004 // num16 @ gui
View Source
const GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT = 0x932 // num16 @ gui
View Source
const GL_READ_PIXEL_DATA_RANGE_LENGTH_NV = 0x887B // num16 @ gui
View Source
const GL_READ_PIXEL_DATA_RANGE_POINTER_NV = 0x887 // num16 @ gui
View Source
const GL_REFERENCED_BY_TESS_CONTROL_SHADER = 0x9307 // num16 @ gui
View Source
const GL_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x9308 // num16 @ gui
View Source
const GL_RELATIVE_HORIZONTAL_LINE_TO_NV = 0x07 // num16 @ gui
View Source
const GL_RELATIVE_QUADRATIC_CURVE_TO_NV = 0x0B // num16 @ gui
View Source
const GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV = 0x11 // num16 @ gui
View Source
const GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV = 0x0F // num16 @ gui
View Source
const GL_RENDERBUFFER_COVERAGE_SAMPLES_NV = 0x8CAB // num16 @ gui
View Source
const GL_RENDERBUFFER_INTERNAL_FORMAT_EXT = 0x8D44 // num16 @ gui
View Source
const GL_REND_screen_coordinates = 1 // num10 @ gui
View Source
const GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN = 0x85C3 // num16 @ gui
View Source
const GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN = 0x85C2 // num16 @ gui
View Source
const GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN = 0x85C1 // num16 @ gui
View Source
const GL_RESET_NOTIFICATION_STRATEGY_ARB = 0x8256 // num16 @ gui
View Source
const GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV = 0x86D9 // num16 @ gui
View Source
const GL_S3_s3tc = 1 // num10 @ gui
View Source
const GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB = 0x900 // num16 @ gui
View Source
const GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_ARB = 0x933F // num16 @ gui
View Source
const GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV = 0x933F // num16 @ gui
View Source
const GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB = 0x933E // num16 @ gui
View Source
const GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV = 0x933E // num16 @ gui
View Source
const GL_SAMPLE_LOCATION_SUBPIXEL_BITS_ARB = 0x933 // num16 @ gui
View Source
const GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV = 0x933 // num16 @ gui
View Source
const GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV = 0x8F27 // num16 @ gui
View Source
const GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889 // num16 @ gui
View Source
const GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB = 0x889 // num16 @ gui
View Source
const GL_SECONDARY_COLOR_ARRAY_LENGTH_NV = 0x8F31 // num16 @ gui
View Source
const GL_SECONDARY_COLOR_ARRAY_LIST_IBM = 103077 // num10 @ gui
View Source
const GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM = 103087 // num10 @ gui
View Source
const GL_SECONDARY_COLOR_ARRAY_POINTER_EXT = 0x845 // num16 @ gui
View Source
const GL_SECONDARY_COLOR_ARRAY_SIZE_EXT = 0x845 // num16 @ gui
View Source
const GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT = 0x845 // num16 @ gui
View Source
const GL_SECONDARY_COLOR_ARRAY_TYPE_EXT = 0x845B // num16 @ gui
View Source
const GL_SGIS_detail_texture = 1 // num10 @ gui
View Source
const GL_SGIS_fog_function = 1 // num10 @ gui
View Source
const GL_SGIS_generate_mipmap = 1 // num10 @ gui
View Source
const GL_SGIS_multisample = 1 // num10 @ gui
View Source
const GL_SGIS_pixel_texture = 1 // num10 @ gui
View Source
const GL_SGIS_point_line_texgen = 1 // num10 @ gui
View Source
const GL_SGIS_point_parameters = 1 // num10 @ gui
View Source
const GL_SGIS_sharpen_texture = 1 // num10 @ gui
View Source
const GL_SGIS_texture4D = 1 // num10 @ gui
View Source
const GL_SGIS_texture_border_clamp = 1 // num10 @ gui
View Source
const GL_SGIS_texture_color_mask = 1 // num10 @ gui
View Source
const GL_SGIS_texture_edge_clamp = 1 // num10 @ gui
View Source
const GL_SGIS_texture_filter4 = 1 // num10 @ gui
View Source
const GL_SGIS_texture_lod = 1 // num10 @ gui
View Source
const GL_SGIS_texture_select = 1 // num10 @ gui
View Source
const GL_SGIX_async = 1 // num10 @ gui
View Source
const GL_SGIX_async_histogram = 1 // num10 @ gui
View Source
const GL_SGIX_async_pixel = 1 // num10 @ gui
View Source
const GL_SGIX_blend_alpha_minmax = 1 // num10 @ gui
View Source
const GL_SGIX_calligraphic_fragment = 1 // num10 @ gui
View Source
const GL_SGIX_clipmap = 1 // num10 @ gui
View Source
const GL_SGIX_convolution_accuracy = 1 // num10 @ gui
View Source
const GL_SGIX_depth_pass_instrument = 1 // num10 @ gui
View Source
const GL_SGIX_depth_texture = 1 // num10 @ gui
View Source
const GL_SGIX_flush_raster = 1 // num10 @ gui
View Source
const GL_SGIX_fog_offset = 1 // num10 @ gui
View Source
const GL_SGIX_fragment_lighting = 1 // num10 @ gui
View Source
const GL_SGIX_framezoom = 1 // num10 @ gui
View Source
const GL_SGIX_igloo_interface = 1 // num10 @ gui
View Source
const GL_SGIX_instruments = 1 // num10 @ gui
View Source
const GL_SGIX_interlace = 1 // num10 @ gui
View Source
const GL_SGIX_ir_instrument1 = 1 // num10 @ gui
View Source
const GL_SGIX_list_priority = 1 // num10 @ gui
View Source
const GL_SGIX_pixel_texture = 1 // num10 @ gui
View Source
const GL_SGIX_pixel_tiles = 1 // num10 @ gui
View Source
const GL_SGIX_polynomial_ffd = 1 // num10 @ gui
View Source
const GL_SGIX_reference_plane = 1 // num10 @ gui
View Source
const GL_SGIX_resample = 1 // num10 @ gui
View Source
const GL_SGIX_scalebias_hint = 1 // num10 @ gui
View Source
const GL_SGIX_shadow = 1 // num10 @ gui
View Source
const GL_SGIX_shadow_ambient = 1 // num10 @ gui
View Source
const GL_SGIX_sprite = 1 // num10 @ gui
View Source
const GL_SGIX_subsample = 1 // num10 @ gui
View Source
const GL_SGIX_tag_sample_buffer = 1 // num10 @ gui
View Source
const GL_SGIX_texture_add_env = 1 // num10 @ gui
View Source
const GL_SGIX_texture_coordinate_clamp = 1 // num10 @ gui
View Source
const GL_SGIX_texture_lod_bias = 1 // num10 @ gui
View Source
const GL_SGIX_texture_multi_buffer = 1 // num10 @ gui
View Source
const GL_SGIX_texture_scale_bias = 1 // num10 @ gui
View Source
const GL_SGIX_vertex_preclip = 1 // num10 @ gui
View Source
const GL_SGIX_ycrcb = 1 // num10 @ gui
View Source
const GL_SGIX_ycrcb_subsample = 1 // num10 @ gui
View Source
const GL_SGIX_ycrcba = 1 // num10 @ gui
View Source
const GL_SGI_color_matrix = 1 // num10 @ gui
View Source
const GL_SGI_color_table = 1 // num10 @ gui
View Source
const GL_SGI_texture_color_table = 1 // num10 @ gui
View Source
const GL_SHADER_BINARY_FORMAT_SPIR_V_ARB = 0x9551 // num16 @ gui
View Source
const GL_SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV = 0x00000010 // num16 @ gui
View Source
const GL_SHADER_IMAGE_ACCESS_BARRIER_BIT = 0x00000020 // num16 @ gui
View Source
const GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT = 0x00000020 // num16 @ gui
View Source
const GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT = 0x90DF // num16 @ gui
View Source
const GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS = 0x80B0 // num16 @ gui
View Source
const GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV = 0x870 // num16 @ gui
View Source
const GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST = 0x82 // num16 @ gui
View Source
const GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE = 0x82AE // num16 @ gui
View Source
const GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST = 0x82 // num16 @ gui
View Source
const GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE = 0x82AF // num16 @ gui
View Source
const GL_SPARE0_PLUS_SECONDARY_COLOR_NV = 0x8532 // num16 @ gui
View Source
const GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB = 0x91A9 // num16 @ gui
View Source
const GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI = 0x8802 // num16 @ gui
View Source
const GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI = 0x8803 // num16 @ gui
View Source
const GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV = 0x9347 // num16 @ gui
View Source
const GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV = 0x9348 // num16 @ gui
View Source
const GL_SUNX_constant_data = 1 // num10 @ gui
View Source
const GL_SUN_convolution_border_modes = 1 // num10 @ gui
View Source
const GL_SUN_global_alpha = 1 // num10 @ gui
View Source
const GL_SUN_mesh_array = 1 // num10 @ gui
View Source
const GL_SUN_slice_accum = 1 // num10 @ gui
View Source
const GL_SUN_triangle_list = 1 // num10 @ gui
View Source
const GL_SUN_vertex = 1 // num10 @ gui
View Source
const GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV = 0x8C74 // num16 @ gui
View Source
const GL_TESS_CONTROL_SHADER_PATCHES_ARB = 0x82F1 // num16 @ gui
View Source
const GL_TESS_CONTROL_SUBROUTINE_UNIFORM = 0x92EF // num16 @ gui
View Source
const GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV = 0x8C75 // num16 @ gui
View Source
const GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB = 0x82F2 // num16 @ gui
View Source
const GL_TESS_EVALUATION_SUBROUTINE_UNIFORM = 0x92F0 // num16 @ gui
View Source
const GL_TEXTURE_1D_STACK_BINDING_MESAX = 0x875 // num16 @ gui
View Source
const GL_TEXTURE_2D_STACK_BINDING_MESAX = 0x875E // num16 @ gui
View Source
const GL_TEXTURE_BINDING_2D_MULTISAMPLE = 0x9104 // num16 @ gui
View Source
const GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = 0x9105 // num16 @ gui
View Source
const GL_TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900 // num16 @ gui
View Source
const GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB = 0x900 // num16 @ gui
View Source
const GL_TEXTURE_BINDING_RENDERBUFFER_NV = 0x8E53 // num16 @ gui
View Source
const GL_TEXTURE_BUFFER_DATA_STORE_BINDING = 0x8C2 // num16 @ gui
View Source
const GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB = 0x8C2 // num16 @ gui
View Source
const GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT = 0x8C2 // num16 @ gui
View Source
const GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT = 0x919F // num16 @ gui
View Source
const GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX = 0x8175 // num16 @ gui
View Source
const GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX = 0x8174 // num16 @ gui
View Source
const GL_TEXTURE_COMPARE_FAIL_VALUE_ARB = 0x80BF // num16 @ gui
View Source
const GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT = 0x82B2 // num16 @ gui
View Source
const GL_TEXTURE_COMPRESSED_BLOCK_WIDTH = 0x82B1 // num16 @ gui
View Source
const GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB = 0x86A0 // num16 @ gui
View Source
const GL_TEXTURE_COORD_ARRAY_ADDRESS_NV = 0x8F25 // num16 @ gui
View Source
const GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889 // num16 @ gui
View Source
const GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB = 0x889 // num16 @ gui
View Source
const GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM = 103084 // num10 @ gui
View Source
const GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F8 // num16 @ gui
View Source
const GL_TEXTURE_COORD_ARRAY_POINTER_EXT = 0x8092 // num16 @ gui
View Source
const GL_TEXTURE_COORD_ARRAY_STRIDE_EXT = 0x808 // num16 @ gui
View Source
const GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = 0x8516 // num16 @ gui
View Source
const GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT = 0x8516 // num16 @ gui
View Source
const GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = 0x8518 // num16 @ gui
View Source
const GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT = 0x8518 // num16 @ gui
View Source
const GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = 0x851 // num16 @ gui
View Source
const GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT = 0x851 // num16 @ gui
View Source
const GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB = 0x8515 // num16 @ gui
View Source
const GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT = 0x8515 // num16 @ gui
View Source
const GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = 0x8517 // num16 @ gui
View Source
const GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT = 0x8517 // num16 @ gui
View Source
const GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = 0x8519 // num16 @ gui
View Source
const GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT = 0x8519 // num16 @ gui
View Source
const GL_TEXTURE_FIXED_SAMPLE_LOCATIONS = 0x9107 // num16 @ gui
View Source
const GL_TEXTURE_MATERIAL_PARAMETER_EXT = 0x8352 // num16 @ gui
View Source
const GL_TEXTURE_MULTI_BUFFER_HINT_SGIX = 0x812E // num16 @ gui
View Source
const GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV = 0x8E54 // num16 @ gui
View Source
const GL_TEXTURE_STORAGE_SPARSE_BIT_AMD = 0x00000001 // num16 @ gui
View Source
const GL_TEXTURE_UNSIGNED_REMAP_MODE_NV = 0x888F // num16 @ gui
View Source
const GL_TEXTURE_UPDATE_BARRIER_BIT_EXT = 0x00000100 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BARRIER_BIT = 0x00000800 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT = 0x00000800 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE = 0x8E24 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV = 0x8E24 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BUFFER_BINDING = 0x8C8F // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT = 0x8C8F // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8C8F // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BUFFER_INDEX = 0x934B // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BUFFER_MODE = 0x8C7F // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT = 0x8C7F // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV = 0x8C7F // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED = 0x8E23 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV = 0x8E23 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BUFFER_SIZE = 0x8C85 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT = 0x8C85 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV = 0x8C85 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BUFFER_START = 0x8C84 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT = 0x8C84 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BUFFER_START_NV = 0x8C84 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE = 0x934 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB = 0x82E // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 0x8C88 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT = 0x8C88 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV = 0x8C88 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB = 0x82E // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_VARYINGS_EXT = 0x8C83 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_VARYINGS_NV = 0x8C83 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH = 0x8C76 // num16 @ gui
View Source
const GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT = 0x8C76 // num16 @ gui
View Source
const GL_TRANSPOSE_MODELVIEW_MATRIX_ARB = 0x84E3 // num16 @ gui
View Source
const GL_TRANSPOSE_PROJECTION_MATRIX_ARB = 0x84E4 // num16 @ gui
View Source
const GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX = 0x92 // num16 @ gui
View Source
const GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8A43 // num16 @ gui
View Source
const GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER = 0x90E // num16 @ gui
View Source
const GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46 // num16 @ gui
View Source
const GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = 0x8A45 // num16 @ gui
View Source
const GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER = 0x84F0 // num16 @ gui
View Source
const GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x84F1 // num16 @ gui
View Source
const GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44 // num16 @ gui
View Source
const GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT = 0x8A34 // num16 @ gui
View Source
const GL_UNPACK_COMPRESSED_BLOCK_HEIGHT = 0x9128 // num16 @ gui
View Source
const GL_UNSIGNED_INT_10F_11F_11F_REV_EXT = 0x8C3B // num16 @ gui
View Source
const GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT = 0x9068 // num16 @ gui
View Source
const GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT = 0x9069 // num16 @ gui
View Source
const GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE = 0x906B // num16 @ gui
View Source
const GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x906 // num16 @ gui
View Source
const GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x906 // num16 @ gui
View Source
const GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT = 0x906B // num16 @ gui
View Source
const GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT = 0x9065 // num16 @ gui
View Source
const GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY = 0x906 // num16 @ gui
View Source
const GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x906 // num16 @ gui
View Source
const GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT = 0x8DD6 // num16 @ gui
View Source
const GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT = 0x8DD7 // num16 @ gui
View Source
const GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE = 0x910 // num16 @ gui
View Source
const GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910 // num16 @ gui
View Source
const GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT = 0x8DD5 // num16 @ gui
View Source
const GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD = 0x9003 // num16 @ gui
View Source
const GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT = 0x8DD8 // num16 @ gui
View Source
const GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900F // num16 @ gui
View Source
const GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900F // num16 @ gui
View Source
const GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV = 0x8E58 // num16 @ gui
View Source
const GL_VERSION_1_4 = 1 // num10 @ gui
View Source
const GL_VERSION_1_5 = 1 // num10 @ gui
View Source
const GL_VERSION_2_0 = 1 // num10 @ gui
View Source
const GL_VERSION_2_1 = 1 // num10 @ gui
View Source
const GL_VERSION_3_0 = 1 // num10 @ gui
View Source
const GL_VERSION_3_1 = 1 // num10 @ gui
View Source
const GL_VERSION_3_2 = 1 // num10 @ gui
View Source
const GL_VERSION_3_3 = 1 // num10 @ gui
View Source
const GL_VERSION_4_0 = 1 // num10 @ gui
View Source
const GL_VERSION_4_1 = 1 // num10 @ gui
View Source
const GL_VERSION_4_2 = 1 // num10 @ gui
View Source
const GL_VERSION_4_3 = 1 // num10 @ gui
View Source
const GL_VERSION_4_4 = 1 // num10 @ gui
View Source
const GL_VERSION_4_5 = 1 // num10 @ gui
View Source
const GL_VERTEX_ARRAY_BUFFER_BINDING_ARB = 0x8896 // num16 @ gui
View Source
const GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F5 // num16 @ gui
View Source
const GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE = 0x851E // num16 @ gui
View Source
const GL_VERTEX_ARRAY_RANGE_POINTER_APPLE = 0x8521 // num16 @ gui
View Source
const GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV = 0x8533 // num16 @ gui
View Source
const GL_VERTEX_ARRAY_STORAGE_HINT_APPLE = 0x851F // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV = 0x8F20 // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT = 0x00000001 // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT = 0x00000001 // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB = 0x889F // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB = 0x88FE // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB = 0x8622 // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT = 0x88F // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV = 0x88F // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886 // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB = 0x886 // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB = 0x8645 // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB = 0x8624 // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV = 0x8F1E // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE = 0x8A03 // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE = 0x8A05 // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE = 0x8A04 // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE = 0x8A07 // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE = 0x8A09 // num16 @ gui
View Source
const GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE = 0x8A08 // num16 @ gui
View Source
const GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA2 // num16 @ gui
View Source
const GL_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CF // num16 @ gui
View Source
const GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87D2 // num16 @ gui
View Source
const GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT = 0x8510 // num16 @ gui
View Source
const GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT = 0x850F // num16 @ gui
View Source
const GL_VIDEO_BUFFER_INTERNAL_FORMAT_NV = 0x902 // num16 @ gui
View Source
const GL_VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV = 0x903B // num16 @ gui
View Source
const GL_VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV = 0x903 // num16 @ gui
View Source
const GL_VIDEO_CAPTURE_SURFACE_ORIGIN_NV = 0x903 // num16 @ gui
View Source
const GL_VIDEO_CAPTURE_TO_422_SUPPORTED_NV = 0x9026 // num16 @ gui
View Source
const GL_VIDEO_COLOR_CONVERSION_MATRIX_NV = 0x9029 // num16 @ gui
View Source
const GL_VIDEO_COLOR_CONVERSION_OFFSET_NV = 0x902 // num16 @ gui
View Source
const GL_VIEWPORT_INDEX_PROVOKING_VERTEX = 0x825F // num16 @ gui
View Source
const GL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV = 0x937 // num16 @ gui
View Source
const GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV = 0x937E // num16 @ gui
View Source
const GL_VIEWPORT_SWIZZLE_NEGATIVE_W_NV = 0x9357 // num16 @ gui
View Source
const GL_VIEWPORT_SWIZZLE_NEGATIVE_X_NV = 0x9351 // num16 @ gui
View Source
const GL_VIEWPORT_SWIZZLE_NEGATIVE_Y_NV = 0x9353 // num16 @ gui
View Source
const GL_VIEWPORT_SWIZZLE_NEGATIVE_Z_NV = 0x9355 // num16 @ gui
View Source
const GL_VIEWPORT_SWIZZLE_POSITIVE_W_NV = 0x9356 // num16 @ gui
View Source
const GL_VIEWPORT_SWIZZLE_POSITIVE_X_NV = 0x9350 // num16 @ gui
View Source
const GL_VIEWPORT_SWIZZLE_POSITIVE_Y_NV = 0x9352 // num16 @ gui
View Source
const GL_VIEWPORT_SWIZZLE_POSITIVE_Z_NV = 0x9354 // num16 @ gui
View Source
const GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB = 0x889E // num16 @ gui
View Source
const GL_WIN_phong_shading = 1 // num10 @ gui
View Source
const GL_WIN_specular_fog = 1 // num10 @ gui
View Source
const GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV = 0x887 // num16 @ gui
View Source
const GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV = 0x887 // num16 @ gui
View Source
const GL_Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV = 0x9036 // num16 @ gui
View Source
const GL_Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV = 0x9034 // num16 @ gui
View Source
const QAccessibleBridgeFactoryInterface_iid = "org.qt-project.Qt.QAccessibleBridgeFactoryInterface" // str @ gui
View Source
const QAccessibleFactoryInterface_iid = "org.qt-project.Qt.QAccessibleFactoryInterface" // str @ gui
View Source
const QAccessibleInterface_iid = "org.qt-project.Qt.QAccessibleInterface" // str @ gui
View Source
const QGenericPluginFactoryInterface_iid = "org.qt-project.Qt.QGenericPluginFactoryInterface" // str @ gui
View Source
const QIconEngineFactoryInterface_iid = "org.qt-project.Qt.QIconEngineFactoryInterface" // str @ gui
View Source
const QImageIOHandlerFactoryInterface_iid = "org.qt-project.Qt.QImageIOHandlerFactoryInterface" // str @ gui
View Source
const QML_VERSION_STR = "2.0" // str @ qml
View Source
const QPictureFormatInterface_iid = "org.qt-project.Qt.QPictureFormatInterface" // str @ gui
View Source
const QQmlExtensionInterface_iid = "org.qt-project.Qt.QQmlExtensionInterface/1.0" // str @ qml
View Source
const QQmlExtensionInterface_iid_old = "org.qt-project.Qt.QQmlExtensionInterface" // str @ qml
View Source
const QQmlParserStatus_iid = "org.qt-project.Qt.QQmlParserStatus" // str @ qml
View Source
const QQmlPropertyValueSource_iid = "org.qt-project.Qt.QQmlPropertyValueSource" // str @ qml
View Source
const QQmlTypesExtensionInterface_iid = "org.qt-project.Qt.QQmlTypesExtensionInterface" // str @ qml
View Source
const QStyleFactoryInterface_iid = "org.qt-project.Qt.QStyleFactoryInterface" // str @ widgets
View Source
const QTANDROIDEXTRAS_VERSION = 0x050A01 // num16 @ androidextras
View Source
const QTANDROIDEXTRAS_VERSION_STR = "5.10.1" // str @ androidextras
View Source
const QTCORE_VERSION = 0x050A01 // num16 @ core
View Source
const QTCORE_VERSION_STR = "5.10.1" // str @ core
View Source
const QTGUI_VERSION = 0x050A01 // num16 @ gui
View Source
const QTGUI_VERSION_STR = "5.10.1" // str @ gui
View Source
const QTMACEXTRAS_VERSION = 0x050A01 // num16 @ macextras
View Source
const QTMACEXTRAS_VERSION_STR = "5.10.1" // str @ macextras
View Source
const QTNETWORK_VERSION = 0x050A01 // num16 @ network
View Source
const QTNETWORK_VERSION_STR = "5.10.1" // str @ network
View Source
const QTQML_VERSION = 0x050A01 // num16 @ qml
View Source
const QTQML_VERSION_STR = "5.10.1" // str @ qml
View Source
const QTQUICKCONTROLS2_VERSION = 0x050A01 // num16 @ quickcontrols2
View Source
const QTQUICKCONTROLS2_VERSION_STR = "5.10.1" // str @ quickcontrols2
View Source
const QTQUICKTEMPLATES2_VERSION = 0x050A01 // num16 @ quicktemplates2
View Source
const QTQUICKTEMPLATES2_VERSION_STR = "5.10.1" // str @ quicktemplates2
View Source
const QTQUICKWIDGETS_VERSION = 0x050A01 // num16 @ quickwidgets
View Source
const QTQUICKWIDGETS_VERSION_STR = "5.10.1" // str @ quickwidgets
View Source
const QTQUICK_VERSION = 0x050A01 // num16 @ quick
View Source
const QTQUICK_VERSION_STR = "5.10.1" // str @ quick
View Source
const QTWIDGETS_VERSION = 0x050A01 // num16 @ widgets
View Source
const QTWIDGETS_VERSION_STR = "5.10.1" // str @ widgets
View Source
const QTWINEXTRAS_VERSION = 0x050A01 // num16 @ winextras
View Source
const QTWINEXTRAS_VERSION_STR = "5.10.1" // str @ winextras
View Source
const QTX11EXTRAS_VERSION = 0x050A01 // num16 @ x11extras
View Source
const QTX11EXTRAS_VERSION_STR = "5.10.1" // str @ x11extras
View Source
const QT_COMPILER_SUPPORTS_AES = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_AVX = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_AVX2 = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_AVX512BW = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_AVX512CD = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_AVX512DQ = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_AVX512ER = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_AVX512F = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_AVX512IFMA = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_AVX512PF = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_AVX512VBMI = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_AVX512VL = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_F16C = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_RDRND = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_SHA = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_SSE2 = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_SSE3 = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_SSE4_1 = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_SSE4_2 = 1 // num10 @ core
View Source
const QT_COMPILER_SUPPORTS_SSSE3 = 1 // num10 @ core
View Source
const QT_FEATURE_abstractbutton = 1 // num10 @ widgets
View Source
const QT_FEATURE_abstractslider = 1 // num10 @ widgets
View Source
const QT_FEATURE_accessibility = 1 // num10 @ gui
View Source
const QT_FEATURE_action = 1 // num10 @ gui
View Source
const QT_FEATURE_animation = 1 // num10 @ core
View Source
const QT_FEATURE_bearermanagement = 1 // num10 @ network
View Source
const QT_FEATURE_big_codecs = 1 // num10 @ core
View Source
const QT_FEATURE_buttongroup = 1 // num10 @ widgets
View Source
const QT_FEATURE_c__11 = 1 // num10 @ core
View Source
const QT_FEATURE_c__14 = 1 // num10 @ core
View Source
const QT_FEATURE_c__1z = 1 // num10 @ core
View Source
const QT_FEATURE_calendarwidget = 1 // num10 @ widgets
View Source
const QT_FEATURE_checkbox = 1 // num10 @ widgets
View Source
const QT_FEATURE_clipboard = 1 // num10 @ gui
View Source
const QT_FEATURE_codecs = 1 // num10 @ core
View Source
const QT_FEATURE_colordialog = 1 // num10 @ widgets
View Source
const QT_FEATURE_colornames = 1 // num10 @ gui
View Source
const QT_FEATURE_columnview = 1 // num10 @ widgets
View Source
const QT_FEATURE_combobox = 1 // num10 @ widgets
View Source
const QT_FEATURE_commandlineparser = 1 // num10 @ core
View Source
const QT_FEATURE_commandlinkbutton = 1 // num10 @ widgets
View Source
const QT_FEATURE_completer = 1 // num10 @ widgets
View Source
const QT_FEATURE_concurrent = 1 // num10 @ core
View Source
const QT_FEATURE_contextmenu = 1 // num10 @ widgets
View Source
const QT_FEATURE_cssparser = 1 // num10 @ gui
View Source
const QT_FEATURE_cursor = 1 // num10 @ gui
View Source
const QT_FEATURE_cxx11_future = 1 // num10 @ core
View Source
const QT_FEATURE_datawidgetmapper = 1 // num10 @ widgets
View Source
const QT_FEATURE_datestring = 1 // num10 @ core
View Source
const QT_FEATURE_datetimeedit = 1 // num10 @ widgets
View Source
const QT_FEATURE_desktopservices = 1 // num10 @ gui
View Source
const QT_FEATURE_dial = 1 // num10 @ widgets
View Source
const QT_FEATURE_dialog = 1 // num10 @ widgets
View Source
const QT_FEATURE_dialogbuttonbox = 1 // num10 @ widgets
View Source
const QT_FEATURE_dirmodel = 1 // num10 @ widgets
View Source
const QT_FEATURE_dockwidget = 1 // num10 @ widgets
View Source
const QT_FEATURE_draganddrop = 1 // num10 @ gui
View Source
const QT_FEATURE_errormessage = 1 // num10 @ widgets
View Source
const QT_FEATURE_filedialog = 1 // num10 @ widgets
View Source
const QT_FEATURE_filesystemiterator = 1 // num10 @ core
View Source
const QT_FEATURE_filesystemmodel = 1 // num10 @ widgets
View Source
const QT_FEATURE_filesystemwatcher = 1 // num10 @ core
View Source
const QT_FEATURE_fontcombobox = 1 // num10 @ widgets
View Source
const QT_FEATURE_fontdialog = 1 // num10 @ widgets
View Source
const QT_FEATURE_formlayout = 1 // num10 @ widgets
View Source
const QT_FEATURE_fscompleter = 1 // num10 @ widgets
View Source
const QT_FEATURE_ftp = 1 // num10 @ network
View Source
const QT_FEATURE_gestures = 1 // num10 @ core
View Source
const QT_FEATURE_graphicseffect = 1 // num10 @ widgets
View Source
const QT_FEATURE_graphicsview = 1 // num10 @ widgets
View Source
const QT_FEATURE_groupbox = 1 // num10 @ widgets
View Source
const QT_FEATURE_highdpiscaling = 1 // num10 @ gui
View Source
const QT_FEATURE_http = 1 // num10 @ network
View Source
const QT_FEATURE_identityproxymodel = 1 // num10 @ core
View Source
const QT_FEATURE_im = 1 // num10 @ gui
View Source
const QT_FEATURE_image_heuristic_mask = 1 // num10 @ gui
View Source
const QT_FEATURE_image_text = 1 // num10 @ gui
View Source
const QT_FEATURE_imageformat_bmp = 1 // num10 @ gui
View Source
const QT_FEATURE_imageformat_jpeg = 1 // num10 @ gui
View Source
const QT_FEATURE_imageformat_png = 1 // num10 @ gui
View Source
const QT_FEATURE_imageformat_ppm = 1 // num10 @ gui
View Source
const QT_FEATURE_imageformat_xbm = 1 // num10 @ gui
View Source
const QT_FEATURE_imageformat_xpm = 1 // num10 @ gui
View Source
const QT_FEATURE_imageformatplugin = 1 // num10 @ gui
View Source
const QT_FEATURE_inputdialog = 1 // num10 @ widgets
View Source
const QT_FEATURE_itemmodel = 1 // num10 @ core
View Source
const QT_FEATURE_itemviews = 1 // num10 @ widgets
View Source
const QT_FEATURE_keysequenceedit = 1 // num10 @ widgets
View Source
const QT_FEATURE_label = 1 // num10 @ widgets
View Source
const QT_FEATURE_lcdnumber = 1 // num10 @ widgets
View Source
const QT_FEATURE_library = 1 // num10 @ core
View Source
const QT_FEATURE_lineedit = 1 // num10 @ widgets
View Source
const QT_FEATURE_listview = 1 // num10 @ widgets
View Source
const QT_FEATURE_listwidget = 1 // num10 @ widgets
View Source
const QT_FEATURE_localserver = 1 // num10 @ network
View Source
const QT_FEATURE_mainwindow = 1 // num10 @ widgets
View Source
const QT_FEATURE_mdiarea = 1 // num10 @ widgets
View Source
const QT_FEATURE_menu = 1 // num10 @ widgets
View Source
const QT_FEATURE_menubar = 1 // num10 @ widgets
View Source
const QT_FEATURE_messagebox = 1 // num10 @ widgets
View Source
const QT_FEATURE_mimetype = 1 // num10 @ core
View Source
const QT_FEATURE_movie = 1 // num10 @ gui
View Source
const QT_FEATURE_networkdiskcache = 1 // num10 @ network
View Source
const QT_FEATURE_networkinterface = 1 // num10 @ network
View Source
const QT_FEATURE_networkproxy = 1 // num10 @ network
View Source
const QT_FEATURE_opengl = 1 // num10 @ gui
View Source
const QT_FEATURE_paint_debug = 1 // num10 @ widgets
View Source
const QT_FEATURE_pdf = 1 // num10 @ gui
View Source
const QT_FEATURE_picture = 1 // num10 @ gui
View Source
const QT_FEATURE_pkg_config = 1 // num10 @ core
View Source
const QT_FEATURE_process = 1 // num10 @ core
View Source
const QT_FEATURE_processenvironment = 1 // num10 @ core
View Source
const QT_FEATURE_progressbar = 1 // num10 @ widgets
View Source
const QT_FEATURE_progressdialog = 1 // num10 @ widgets
View Source
const QT_FEATURE_properties = 1 // num10 @ core
View Source
const QT_FEATURE_proxymodel = 1 // num10 @ core
View Source
const QT_FEATURE_pushbutton = 1 // num10 @ widgets
View Source
const QT_FEATURE_qeventtransition = 1 // num10 @ core
View Source
const QT_FEATURE_qml_network = 1 // num10 @ qml
View Source
const QT_FEATURE_radiobutton = 1 // num10 @ widgets
View Source
const QT_FEATURE_regularexpression = 1 // num10 @ core
View Source
const QT_FEATURE_resizehandler = 1 // num10 @ widgets
View Source
const QT_FEATURE_rpath = 1 // num10 @ core
View Source
const QT_FEATURE_rubberband = 1 // num10 @ widgets
View Source
const QT_FEATURE_scrollarea = 1 // num10 @ widgets
View Source
const QT_FEATURE_scrollbar = 1 // num10 @ widgets
View Source
const QT_FEATURE_scroller = 1 // num10 @ widgets
View Source
const QT_FEATURE_sessionmanager = 1 // num10 @ gui
View Source
const QT_FEATURE_settings = 1 // num10 @ core
View Source
const QT_FEATURE_shared = 1 // num10 @ core
View Source
const QT_FEATURE_sharedmemory = 1 // num10 @ core
View Source
const QT_FEATURE_shortcut = 1 // num10 @ gui
View Source
const QT_FEATURE_sizegrip = 1 // num10 @ widgets
View Source
const QT_FEATURE_slider = 1 // num10 @ widgets
View Source
const QT_FEATURE_socks5 = 1 // num10 @ network
View Source
const QT_FEATURE_sortfilterproxymodel = 1 // num10 @ core
View Source
const QT_FEATURE_spinbox = 1 // num10 @ widgets
View Source
const QT_FEATURE_splashscreen = 1 // num10 @ widgets
View Source
const QT_FEATURE_splitter = 1 // num10 @ widgets
View Source
const QT_FEATURE_ssl = 1 // num10 @ network
View Source
const QT_FEATURE_stackedwidget = 1 // num10 @ widgets
View Source
const QT_FEATURE_standarditemmodel = 1 // num10 @ gui
View Source
const QT_FEATURE_statemachine = 1 // num10 @ core
View Source
const QT_FEATURE_statusbar = 1 // num10 @ widgets
View Source
const QT_FEATURE_statustip = 1 // num10 @ widgets
View Source
const QT_FEATURE_std_atomic64 = 1 // num10 @ core
View Source
const QT_FEATURE_stringlistmodel = 1 // num10 @ core
View Source
const QT_FEATURE_style_stylesheet = 1 // num10 @ widgets
View Source
const QT_FEATURE_syntaxhighlighter = 1 // num10 @ widgets
View Source
const QT_FEATURE_systemsemaphore = 1 // num10 @ core
View Source
const QT_FEATURE_systemtrayicon = 1 // num10 @ gui
View Source
const QT_FEATURE_tabbar = 1 // num10 @ widgets
View Source
const QT_FEATURE_tabletevent = 1 // num10 @ gui
View Source
const QT_FEATURE_tableview = 1 // num10 @ widgets
View Source
const QT_FEATURE_tablewidget = 1 // num10 @ widgets
View Source
const QT_FEATURE_tabwidget = 1 // num10 @ widgets
View Source
const QT_FEATURE_temporaryfile = 1 // num10 @ core
View Source
const QT_FEATURE_textbrowser = 1 // num10 @ widgets
View Source
const QT_FEATURE_textcodec = 1 // num10 @ core
View Source
const QT_FEATURE_textdate = 1 // num10 @ core
View Source
const QT_FEATURE_textedit = 1 // num10 @ widgets
View Source
const QT_FEATURE_texthtmlparser = 1 // num10 @ gui
View Source
const QT_FEATURE_textodfwriter = 1 // num10 @ gui
View Source
const QT_FEATURE_timezone = 1 // num10 @ core
View Source
const QT_FEATURE_toolbar = 1 // num10 @ widgets
View Source
const QT_FEATURE_toolbox = 1 // num10 @ widgets
View Source
const QT_FEATURE_toolbutton = 1 // num10 @ widgets
View Source
const QT_FEATURE_tooltip = 1 // num10 @ widgets
View Source
const QT_FEATURE_topleveldomain = 1 // num10 @ core
View Source
const QT_FEATURE_translation = 1 // num10 @ core
View Source
const QT_FEATURE_treeview = 1 // num10 @ widgets
View Source
const QT_FEATURE_treewidget = 1 // num10 @ widgets
View Source
const QT_FEATURE_udpsocket = 1 // num10 @ network
View Source
const QT_FEATURE_undocommand = 1 // num10 @ widgets
View Source
const QT_FEATURE_undogroup = 1 // num10 @ widgets
View Source
const QT_FEATURE_undostack = 1 // num10 @ widgets
View Source
const QT_FEATURE_undoview = 1 // num10 @ widgets
View Source
const QT_FEATURE_validator = 1 // num10 @ gui
View Source
const QT_FEATURE_whatsthis = 1 // num10 @ gui
View Source
const QT_FEATURE_wheelevent = 1 // num10 @ gui
View Source
const QT_FEATURE_wizard = 1 // num10 @ widgets
View Source
const QT_FEATURE_xmlstream = 1 // num10 @ core
View Source
const QT_FEATURE_xmlstreamreader = 1 // num10 @ core
View Source
const QT_FEATURE_xmlstreamwriter = 1 // num10 @ core
View Source
const QT_LARGEFILE_SUPPORT = 64 // num10 @ core
View Source
const QT_MESSAGELOG_LINE = 0 // num10 @ core
View Source
const QT_QPA_DEFAULT_PLATFORM_NAME = "xcb" // str @ gui
View Source
const QT_SINE_TABLE_SIZE = 256 // num10 @ core
View Source
const QT_STRINGVIEW_LEVEL = 1 // num10 @ core
View Source
const QT_THREADSAFE_CLOEXEC = 1 // num10 @ core
View Source
const QT_VERSION_MAJOR = 5 // num10 @ core
View Source
const QT_VERSION_MINOR = 10 // num10 @ core
View Source
const QT_VERSION_PATCH = 1 // num10 @ core
View Source
const QT_VERSION_STR = "5.10.1" // str @ core
View Source
const Q_METAMETHOD_INVOKE_MAX_ARGS = 10 // num10 @ core
View Source
const Q_MOC_OUTPUT_REVISION = 67 // num10 @ core

Variables

This section is empty.

Functions

func DeleteAbstractComparatorFunction

func DeleteAbstractComparatorFunction(this *AbstractComparatorFunction)

func DeleteAbstractConverterFunction

func DeleteAbstractConverterFunction(this *AbstractConverterFunction)

func DeleteAbstractDebugStreamFunction

func DeleteAbstractDebugStreamFunction(this *AbstractDebugStreamFunction)

func DeleteExternalRefCountData

func DeleteExternalRefCountData(this *ExternalRefCountData)

func DeleteNormalDeleter

func DeleteNormalDeleter(this *NormalDeleter)

func DeleteQAbstractAnimation

func DeleteQAbstractAnimation(this *QAbstractAnimation)

func DeleteQAbstractConcatenable

func DeleteQAbstractConcatenable(this *QAbstractConcatenable)

func DeleteQAbstractEventDispatcher

func DeleteQAbstractEventDispatcher(this *QAbstractEventDispatcher)

func DeleteQAbstractItemModel

func DeleteQAbstractItemModel(this *QAbstractItemModel)

func DeleteQAbstractListModel

func DeleteQAbstractListModel(this *QAbstractListModel)

func DeleteQAbstractNativeEventFilter

func DeleteQAbstractNativeEventFilter(this *QAbstractNativeEventFilter)

func DeleteQAbstractProxyModel

func DeleteQAbstractProxyModel(this *QAbstractProxyModel)

func DeleteQAbstractState

func DeleteQAbstractState(this *QAbstractState)

func DeleteQAbstractTableModel

func DeleteQAbstractTableModel(this *QAbstractTableModel)

func DeleteQAbstractTransition

func DeleteQAbstractTransition(this *QAbstractTransition)

func DeleteQAnimationDriver

func DeleteQAnimationDriver(this *QAnimationDriver)

func DeleteQAnimationGroup

func DeleteQAnimationGroup(this *QAnimationGroup)

func DeleteQArrayData

func DeleteQArrayData(this *QArrayData)

func DeleteQAssociativeIterable

func DeleteQAssociativeIterable(this *QAssociativeIterable)

func DeleteQAtomicInt

func DeleteQAtomicInt(this *QAtomicInt)

func DeleteQBasicMutex

func DeleteQBasicMutex(this *QBasicMutex)

func DeleteQBasicTimer

func DeleteQBasicTimer(this *QBasicTimer)

func DeleteQBitArray

func DeleteQBitArray(this *QBitArray)

func DeleteQBitRef

func DeleteQBitRef(this *QBitRef)

func DeleteQBuffer

func DeleteQBuffer(this *QBuffer)

func DeleteQByteArray

func DeleteQByteArray(this *QByteArray)

func DeleteQByteArrayDataPtr

func DeleteQByteArrayDataPtr(this *QByteArrayDataPtr)

func DeleteQByteArrayMatcher

func DeleteQByteArrayMatcher(this *QByteArrayMatcher)

func DeleteQByteRef

func DeleteQByteRef(this *QByteRef)

func DeleteQChar

func DeleteQChar(this *QChar)

func DeleteQCharRef

func DeleteQCharRef(this *QCharRef)

func DeleteQChildEvent

func DeleteQChildEvent(this *QChildEvent)

func DeleteQCollator

func DeleteQCollator(this *QCollator)

func DeleteQCollatorSortKey

func DeleteQCollatorSortKey(this *QCollatorSortKey)

func DeleteQCommandLineOption

func DeleteQCommandLineOption(this *QCommandLineOption)

func DeleteQCommandLineParser

func DeleteQCommandLineParser(this *QCommandLineParser)

func DeleteQContainerImplHelper

func DeleteQContainerImplHelper(this *QContainerImplHelper)

func DeleteQContiguousCacheData

func DeleteQContiguousCacheData(this *QContiguousCacheData)

func DeleteQCoreApplication

func DeleteQCoreApplication(this *QCoreApplication)

func DeleteQCryptographicHash

func DeleteQCryptographicHash(this *QCryptographicHash)

func DeleteQDataStream

func DeleteQDataStream(this *QDataStream)

func DeleteQDate

func DeleteQDate(this *QDate)

func DeleteQDateTime

func DeleteQDateTime(this *QDateTime)

func DeleteQDeadlineTimer

func DeleteQDeadlineTimer(this *QDeadlineTimer)

func DeleteQDeferredDeleteEvent

func DeleteQDeferredDeleteEvent(this *QDeferredDeleteEvent)

func DeleteQDir

func DeleteQDir(this *QDir)

func DeleteQDirIterator

func DeleteQDirIterator(this *QDirIterator)

func DeleteQDynamicPropertyChangeEvent

func DeleteQDynamicPropertyChangeEvent(this *QDynamicPropertyChangeEvent)

func DeleteQEasingCurve

func DeleteQEasingCurve(this *QEasingCurve)

func DeleteQElapsedTimer

func DeleteQElapsedTimer(this *QElapsedTimer)

func DeleteQEvent

func DeleteQEvent(this *QEvent)

func DeleteQEventLoop

func DeleteQEventLoop(this *QEventLoop)

func DeleteQEventLoopLocker

func DeleteQEventLoopLocker(this *QEventLoopLocker)

func DeleteQEventTransition

func DeleteQEventTransition(this *QEventTransition)

func DeleteQFactoryInterface

func DeleteQFactoryInterface(this *QFactoryInterface)

func DeleteQFile

func DeleteQFile(this *QFile)

func DeleteQFileDevice

func DeleteQFileDevice(this *QFileDevice)

func DeleteQFileInfo

func DeleteQFileInfo(this *QFileInfo)

func DeleteQFileSelector

func DeleteQFileSelector(this *QFileSelector)

func DeleteQFileSystemWatcher

func DeleteQFileSystemWatcher(this *QFileSystemWatcher)

func DeleteQFinalState

func DeleteQFinalState(this *QFinalState)

func DeleteQFlag

func DeleteQFlag(this *QFlag)

func DeleteQFutureInterfaceBase

func DeleteQFutureInterfaceBase(this *QFutureInterfaceBase)

func DeleteQFutureWatcherBase

func DeleteQFutureWatcherBase(this *QFutureWatcherBase)

func DeleteQGenericArgument

func DeleteQGenericArgument(this *QGenericArgument)

func DeleteQGenericReturnArgument

func DeleteQGenericReturnArgument(this *QGenericReturnArgument)

func DeleteQHashCombine

func DeleteQHashCombine(this *QHashCombine)

func DeleteQHashCombineCommutative

func DeleteQHashCombineCommutative(this *QHashCombineCommutative)

func DeleteQHashData

func DeleteQHashData(this *QHashData)

func DeleteQHashDummyValue

func DeleteQHashDummyValue(this *QHashDummyValue)

func DeleteQHistoryState

func DeleteQHistoryState(this *QHistoryState)

func DeleteQIODevice

func DeleteQIODevice(this *QIODevice)

func DeleteQIdentityProxyModel

func DeleteQIdentityProxyModel(this *QIdentityProxyModel)

func DeleteQIncompatibleFlag

func DeleteQIncompatibleFlag(this *QIncompatibleFlag)

func DeleteQItemSelection

func DeleteQItemSelection(this *QItemSelection)

func DeleteQItemSelectionModel

func DeleteQItemSelectionModel(this *QItemSelectionModel)

func DeleteQItemSelectionRange

func DeleteQItemSelectionRange(this *QItemSelectionRange)

func DeleteQJsonArray

func DeleteQJsonArray(this *QJsonArray)

func DeleteQJsonDocument

func DeleteQJsonDocument(this *QJsonDocument)

func DeleteQJsonObject

func DeleteQJsonObject(this *QJsonObject)

func DeleteQJsonParseError

func DeleteQJsonParseError(this *QJsonParseError)

func DeleteQJsonValue

func DeleteQJsonValue(this *QJsonValue)

func DeleteQJsonValuePtr

func DeleteQJsonValuePtr(this *QJsonValuePtr)

func DeleteQJsonValueRef

func DeleteQJsonValueRef(this *QJsonValueRef)

func DeleteQJsonValueRefPtr

func DeleteQJsonValueRefPtr(this *QJsonValueRefPtr)

func DeleteQLatin1Char

func DeleteQLatin1Char(this *QLatin1Char)

func DeleteQLatin1String

func DeleteQLatin1String(this *QLatin1String)

func DeleteQLibrary

func DeleteQLibrary(this *QLibrary)

func DeleteQLine

func DeleteQLine(this *QLine)

func DeleteQLineF

func DeleteQLineF(this *QLineF)

func DeleteQLinkedListData

func DeleteQLinkedListData(this *QLinkedListData)

func DeleteQListData

func DeleteQListData(this *QListData)

func DeleteQLocale

func DeleteQLocale(this *QLocale)

func DeleteQLockFile

func DeleteQLockFile(this *QLockFile)

func DeleteQLoggingCategory

func DeleteQLoggingCategory(this *QLoggingCategory)

func DeleteQMapDataBase

func DeleteQMapDataBase(this *QMapDataBase)

func DeleteQMapNodeBase

func DeleteQMapNodeBase(this *QMapNodeBase)

func DeleteQMargins

func DeleteQMargins(this *QMargins)

func DeleteQMarginsF

func DeleteQMarginsF(this *QMarginsF)

func DeleteQMessageAuthenticationCode

func DeleteQMessageAuthenticationCode(this *QMessageAuthenticationCode)

func DeleteQMessageLogContext

func DeleteQMessageLogContext(this *QMessageLogContext)

func DeleteQMessageLogger

func DeleteQMessageLogger(this *QMessageLogger)

func DeleteQMetaClassInfo

func DeleteQMetaClassInfo(this *QMetaClassInfo)

func DeleteQMetaEnum

func DeleteQMetaEnum(this *QMetaEnum)

func DeleteQMetaMethod

func DeleteQMetaMethod(this *QMetaMethod)

func DeleteQMetaObject

func DeleteQMetaObject(this *QMetaObject)

func DeleteQMetaProperty

func DeleteQMetaProperty(this *QMetaProperty)

func DeleteQMimeData

func DeleteQMimeData(this *QMimeData)

func DeleteQMimeDatabase

func DeleteQMimeDatabase(this *QMimeDatabase)

func DeleteQMimeType

func DeleteQMimeType(this *QMimeType)

func DeleteQModelIndex

func DeleteQModelIndex(this *QModelIndex)

func DeleteQMutex

func DeleteQMutex(this *QMutex)

func DeleteQMutexLocker

func DeleteQMutexLocker(this *QMutexLocker)

func DeleteQObject

func DeleteQObject(this *QObject)

func DeleteQObjectCleanupHandler

func DeleteQObjectCleanupHandler(this *QObjectCleanupHandler)

func DeleteQObjectData

func DeleteQObjectData(this *QObjectData)

func DeleteQObjectList

func DeleteQObjectList(*QObjectList)

func DeleteQObjectUserData

func DeleteQObjectUserData(this *QObjectUserData)

func DeleteQOperatingSystemVersion

func DeleteQOperatingSystemVersion(this *QOperatingSystemVersion)

func DeleteQParallelAnimationGroup

func DeleteQParallelAnimationGroup(this *QParallelAnimationGroup)

func DeleteQPauseAnimation

func DeleteQPauseAnimation(this *QPauseAnimation)

func DeleteQPersistentModelIndex

func DeleteQPersistentModelIndex(this *QPersistentModelIndex)

func DeleteQPluginLoader

func DeleteQPluginLoader(this *QPluginLoader)

func DeleteQPoint

func DeleteQPoint(this *QPoint)

func DeleteQPointF

func DeleteQPointF(this *QPointF)

func DeleteQProcess

func DeleteQProcess(this *QProcess)

func DeleteQProcessEnvironment

func DeleteQProcessEnvironment(this *QProcessEnvironment)

func DeleteQPropertyAnimation

func DeleteQPropertyAnimation(this *QPropertyAnimation)

func DeleteQRandomGenerator

func DeleteQRandomGenerator(this *QRandomGenerator)

func DeleteQRandomGenerator64

func DeleteQRandomGenerator64(this *QRandomGenerator64)

func DeleteQReadLocker

func DeleteQReadLocker(this *QReadLocker)

func DeleteQReadWriteLock

func DeleteQReadWriteLock(this *QReadWriteLock)

func DeleteQRect

func DeleteQRect(this *QRect)

func DeleteQRectF

func DeleteQRectF(this *QRectF)

func DeleteQRegExp

func DeleteQRegExp(this *QRegExp)

func DeleteQRegularExpression

func DeleteQRegularExpression(this *QRegularExpression)

func DeleteQRegularExpressionMatch

func DeleteQRegularExpressionMatch(this *QRegularExpressionMatch)

func DeleteQRegularExpressionMatchIterator

func DeleteQRegularExpressionMatchIterator(this *QRegularExpressionMatchIterator)

func DeleteQResource

func DeleteQResource(this *QResource)

func DeleteQRunnable

func DeleteQRunnable(this *QRunnable)

func DeleteQSaveFile

func DeleteQSaveFile(this *QSaveFile)

func DeleteQScopedPointerPodDeleter

func DeleteQScopedPointerPodDeleter(this *QScopedPointerPodDeleter)

func DeleteQSemaphore

func DeleteQSemaphore(this *QSemaphore)

func DeleteQSemaphoreReleaser

func DeleteQSemaphoreReleaser(this *QSemaphoreReleaser)

func DeleteQSequentialAnimationGroup

func DeleteQSequentialAnimationGroup(this *QSequentialAnimationGroup)

func DeleteQSequentialIterable

func DeleteQSequentialIterable(this *QSequentialIterable)

func DeleteQSettings

func DeleteQSettings(this *QSettings)

func DeleteQSharedData

func DeleteQSharedData(this *QSharedData)

func DeleteQSharedMemory

func DeleteQSharedMemory(this *QSharedMemory)

func DeleteQSignalBlocker

func DeleteQSignalBlocker(this *QSignalBlocker)

func DeleteQSignalMapper

func DeleteQSignalMapper(this *QSignalMapper)

func DeleteQSignalTransition

func DeleteQSignalTransition(this *QSignalTransition)

func DeleteQSize

func DeleteQSize(this *QSize)

func DeleteQSizeF

func DeleteQSizeF(this *QSizeF)

func DeleteQSocketNotifier

func DeleteQSocketNotifier(this *QSocketNotifier)

func DeleteQSortFilterProxyModel

func DeleteQSortFilterProxyModel(this *QSortFilterProxyModel)

func DeleteQStandardPaths

func DeleteQStandardPaths(this *QStandardPaths)

func DeleteQState

func DeleteQState(this *QState)

func DeleteQStateMachine

func DeleteQStateMachine(this *QStateMachine)

func DeleteQStaticByteArrayMatcherBase

func DeleteQStaticByteArrayMatcherBase(this *QStaticByteArrayMatcherBase)

func DeleteQStaticPlugin

func DeleteQStaticPlugin(this *QStaticPlugin)

func DeleteQStorageInfo

func DeleteQStorageInfo(this *QStorageInfo)

func DeleteQString

func DeleteQString(this *QString)

func DeleteQStringDataPtr

func DeleteQStringDataPtr(this *QStringDataPtr)

func DeleteQStringList

func DeleteQStringList(this *QStringList)

func DeleteQStringListModel

func DeleteQStringListModel(this *QStringListModel)

func DeleteQStringMatcher

func DeleteQStringMatcher(this *QStringMatcher)

func DeleteQStringRef

func DeleteQStringRef(this *QStringRef)

func DeleteQStringView

func DeleteQStringView(this *QStringView)

func DeleteQSysInfo

func DeleteQSysInfo(this *QSysInfo)

func DeleteQSystemSemaphore

func DeleteQSystemSemaphore(this *QSystemSemaphore)

func DeleteQTemporaryDir

func DeleteQTemporaryDir(this *QTemporaryDir)

func DeleteQTemporaryFile

func DeleteQTemporaryFile(this *QTemporaryFile)

func DeleteQTextBoundaryFinder

func DeleteQTextBoundaryFinder(this *QTextBoundaryFinder)

func DeleteQTextCodec

func DeleteQTextCodec(this *QTextCodec)

func DeleteQTextDecoder

func DeleteQTextDecoder(this *QTextDecoder)

func DeleteQTextEncoder

func DeleteQTextEncoder(this *QTextEncoder)

func DeleteQTextStream

func DeleteQTextStream(this *QTextStream)

func DeleteQTextStreamManipulator

func DeleteQTextStreamManipulator(this *QTextStreamManipulator)

func DeleteQThread

func DeleteQThread(this *QThread)

func DeleteQThreadPool

func DeleteQThreadPool(this *QThreadPool)

func DeleteQThreadStorageData

func DeleteQThreadStorageData(this *QThreadStorageData)

func DeleteQTime

func DeleteQTime(this *QTime)

func DeleteQTimeLine

func DeleteQTimeLine(this *QTimeLine)

func DeleteQTimeZone

func DeleteQTimeZone(this *QTimeZone)

func DeleteQTimer

func DeleteQTimer(this *QTimer)

func DeleteQTimerEvent

func DeleteQTimerEvent(this *QTimerEvent)

func DeleteQTranslator

func DeleteQTranslator(this *QTranslator)

func DeleteQUrl

func DeleteQUrl(this *QUrl)

func DeleteQUrlQuery

func DeleteQUrlQuery(this *QUrlQuery)

func DeleteQUuid

func DeleteQUuid(this *QUuid)

func DeleteQVariant

func DeleteQVariant(this *QVariant)

func DeleteQVariantAnimation

func DeleteQVariantAnimation(this *QVariantAnimation)

func DeleteQVariantComparisonHelper

func DeleteQVariantComparisonHelper(this *QVariantComparisonHelper)

func DeleteQVersionNumber

func DeleteQVersionNumber(this *QVersionNumber)

func DeleteQWaitCondition

func DeleteQWaitCondition(this *QWaitCondition)

func DeleteQWriteLocker

func DeleteQWriteLocker(this *QWriteLocker)

func DeleteQXmlStreamAttribute

func DeleteQXmlStreamAttribute(this *QXmlStreamAttribute)

func DeleteQXmlStreamAttributes

func DeleteQXmlStreamAttributes(this *QXmlStreamAttributes)

func DeleteQXmlStreamEntityDeclaration

func DeleteQXmlStreamEntityDeclaration(this *QXmlStreamEntityDeclaration)

func DeleteQXmlStreamEntityResolver

func DeleteQXmlStreamEntityResolver(this *QXmlStreamEntityResolver)

func DeleteQXmlStreamNamespaceDeclaration

func DeleteQXmlStreamNamespaceDeclaration(this *QXmlStreamNamespaceDeclaration)

func DeleteQXmlStreamNotationDeclaration

func DeleteQXmlStreamNotationDeclaration(this *QXmlStreamNotationDeclaration)

func DeleteQXmlStreamReader

func DeleteQXmlStreamReader(this *QXmlStreamReader)

func DeleteQXmlStreamStringRef

func DeleteQXmlStreamStringRef(this *QXmlStreamStringRef)

func DeleteQXmlStreamWriter

func DeleteQXmlStreamWriter(this *QXmlStreamWriter)

func DeleteVariantData

func DeleteVariantData(this *VariantData)

func DeleteVectorBoolElements

func DeleteVectorBoolElements(this *VectorBoolElements)

func ExternalRefCountData_GetAndRef

func ExternalRefCountData_GetAndRef(arg0 QObject_ITF) unsafe.Pointer

func ExternalRefCountData_Operator_delete

func ExternalRefCountData_Operator_delete(ptr unsafe.Pointer)

func ExternalRefCountData_Operator_delete_1

func ExternalRefCountData_Operator_delete_1(arg0 unsafe.Pointer, arg1 unsafe.Pointer)

func KeepMe

func KeepMe()

func QAbstractConcatenable_AppendLatin1To

func QAbstractConcatenable_AppendLatin1To(a string, len_ int, out QChar_ITF)

func QAbstractConcatenable_ConvertFromAscii

func QAbstractConcatenable_ConvertFromAscii(a string, len_ int, out QChar_ITF)

func QAbstractConcatenable_ConvertFromAscii_1

func QAbstractConcatenable_ConvertFromAscii_1(a byte, out QChar_ITF)

func QAcos

func QAcos(v float64) float64

func QAddPostRoutine

func QAddPostRoutine(arg0 unsafe.Pointer)

Adds a global routine that will be called from the QCoreApplication destructor. This function is normally used to add cleanup routines for program-wide functionality.

The cleanup routines are called in the reverse order of their addition.

The function specified by ptr should take no arguments and should return nothing. For example:

static int *global_ptr = 0;

static void cleanup_ptr()
{
    delete [] global_ptr;
    global_ptr = 0;
}

void init_ptr()
{
    global_ptr = new int[100];      // allocate data
    qAddPostRoutine(cleanup_ptr);   // delete later
}

Note that for an application- or module-wide cleanup, qAddPostRoutine() is often not suitable. For example, if the program is split into dynamically loaded modules, the relevant module may be unloaded long before the QCoreApplication destructor is called. In such cases, if using qAddPostRoutine() is still desirable, qRemovePostRoutine() can be used to prevent a routine from being called by the QCoreApplication destructor. For example, if that routine was called before the module was unloaded.

For modules and libraries, using a reference-counted initialization manager or Qt's parent-child deletion mechanism may be better. Here is an example of a private class that uses the parent-child mechanism to call a cleanup function at the right time:

class MyPrivateInitStuff : public QObject
{
public:
    static MyPrivateInitStuff *initStuff(QObject *parent)
    {
        if (!p)
            p = new MyPrivateInitStuff(parent);
        return p;
    }

    ~MyPrivateInitStuff()
    {
        // cleanup goes here
    }

private:
    MyPrivateInitStuff(QObject *parent)
        : QObject(parent)
    {
        // initialization goes here
    }

    MyPrivateInitStuff *p;
};

By selecting the right parent object, this can often be made to clean up the module's data at the right moment.

Note: This function has been thread-safe since Qt 5.10.

Note: This function is thread-safe.

See also qRemovePostRoutine().

func QAddPreRoutine

func QAddPreRoutine(arg0 unsafe.Pointer)

func QAppName

func QAppName() string

func QAsin

func QAsin(v float64) float64

func QAtan

func QAtan(v float64) float64

func QAtan2

func QAtan2(y float64, x float64) float64

func QBadAlloc

func QBadAlloc()

func QCeil

func QCeil(v float64) int

func QChar_Category_1

func QChar_Category_1(ucs4 uint) int

func QChar_CombiningClass_1

func QChar_CombiningClass_1(ucs4 uint) byte

func QChar_CurrentUnicodeVersion

func QChar_CurrentUnicodeVersion() int

func QChar_DecompositionTag_1

func QChar_DecompositionTag_1(ucs4 uint) int

func QChar_Decomposition_1

func QChar_Decomposition_1(ucs4 uint) string

func QChar_DigitValue_1

func QChar_DigitValue_1(ucs4 uint) int

func QChar_Direction_1

func QChar_Direction_1(ucs4 uint) int

func QChar_HasMirrored_1

func QChar_HasMirrored_1(ucs4 uint) bool

func QChar_HighSurrogate

func QChar_HighSurrogate(ucs4 uint) uint16

func QChar_IsDigit_1

func QChar_IsDigit_1(ucs4 uint) bool

func QChar_IsHighSurrogate_1

func QChar_IsHighSurrogate_1(ucs4 uint) bool

func QChar_IsLetterOrNumber_1

func QChar_IsLetterOrNumber_1(ucs4 uint) bool

func QChar_IsLetter_1

func QChar_IsLetter_1(ucs4 uint) bool

func QChar_IsLowSurrogate_1

func QChar_IsLowSurrogate_1(ucs4 uint) bool

func QChar_IsLower_1

func QChar_IsLower_1(ucs4 uint) bool

func QChar_IsMark_1

func QChar_IsMark_1(ucs4 uint) bool

func QChar_IsNonCharacter_1

func QChar_IsNonCharacter_1(ucs4 uint) bool

func QChar_IsNumber_1

func QChar_IsNumber_1(ucs4 uint) bool

func QChar_IsPrint_1

func QChar_IsPrint_1(ucs4 uint) bool

func QChar_IsPunct_1

func QChar_IsPunct_1(ucs4 uint) bool

func QChar_IsSpace_1

func QChar_IsSpace_1(ucs4 uint) bool

func QChar_IsSurrogate_1

func QChar_IsSurrogate_1(ucs4 uint) bool

func QChar_IsSymbol_1

func QChar_IsSymbol_1(ucs4 uint) bool

func QChar_IsTitleCase_1

func QChar_IsTitleCase_1(ucs4 uint) bool

func QChar_IsUpper_1

func QChar_IsUpper_1(ucs4 uint) bool

func QChar_JoiningType_1

func QChar_JoiningType_1(ucs4 uint) int

func QChar_Joining_1

func QChar_Joining_1(ucs4 uint) int

func QChar_LowSurrogate

func QChar_LowSurrogate(ucs4 uint) uint16

func QChar_MirroredChar_1

func QChar_MirroredChar_1(ucs4 uint) uint

func QChar_RequiresSurrogates

func QChar_RequiresSurrogates(ucs4 uint) bool

func QChar_Script_1

func QChar_Script_1(ucs4 uint) int

func QChar_SurrogateToUcs4

func QChar_SurrogateToUcs4(high uint16, low uint16) uint

func QChar_SurrogateToUcs4_1

func QChar_SurrogateToUcs4_1(high QChar_ITF, low QChar_ITF) uint

func QChar_ToCaseFolded_1

func QChar_ToCaseFolded_1(ucs4 uint) uint

func QChar_ToLower_1

func QChar_ToLower_1(ucs4 uint) uint

func QChar_ToTitleCase_1

func QChar_ToTitleCase_1(ucs4 uint) uint

func QChar_ToUpper_1

func QChar_ToUpper_1(ucs4 uint) uint

func QChar_UnicodeVersion_1

func QChar_UnicodeVersion_1(ucs4 uint) int

func QChecksum

func QChecksum(s string, len_ uint, standard int) uint16

Returns the CRC-16 checksum of the first len bytes of data.

The checksum is independent of the byte order (endianness) and will be calculated accorded to the algorithm published in ISO 3309 (Qt::ChecksumIso3309).

Note: This function is a 16-bit cache conserving (16 entry table) implementation of the CRC-16-CCITT algorithm.

func QChecksum_1

func QChecksum_1(s string, len_ uint) uint16

Returns the CRC-16 checksum of the first len bytes of data.

The checksum is independent of the byte order (endianness) and will be calculated accorded to the algorithm published in ISO 3309 (Qt::ChecksumIso3309).

Note: This function is a 16-bit cache conserving (16 entry table) implementation of the CRC-16-CCITT algorithm.

func QContainerImplHelper_Mid

func QContainerImplHelper_Mid(originalLength int, position unsafe.Pointer, length unsafe.Pointer) int

func QCoreApplication_AddLibraryPath

func QCoreApplication_AddLibraryPath(arg0 string)

func QCoreApplication_ApplicationDirPath

func QCoreApplication_ApplicationDirPath() string

func QCoreApplication_ApplicationFilePath

func QCoreApplication_ApplicationFilePath() string

func QCoreApplication_ApplicationName

func QCoreApplication_ApplicationName() string

func QCoreApplication_ApplicationPid

func QCoreApplication_ApplicationPid() int64

func QCoreApplication_ApplicationVersion

func QCoreApplication_ApplicationVersion() string

func QCoreApplication_ClosingDown

func QCoreApplication_ClosingDown() bool

func QCoreApplication_Exec

func QCoreApplication_Exec() int

func QCoreApplication_Exit

func QCoreApplication_Exit(retcode int)

func QCoreApplication_Flush

func QCoreApplication_Flush()

func QCoreApplication_HasPendingEvents

func QCoreApplication_HasPendingEvents() bool

func QCoreApplication_InstallTranslator

func QCoreApplication_InstallTranslator(messageFile QTranslator_ITF) bool

func QCoreApplication_IsQuitLockEnabled

func QCoreApplication_IsQuitLockEnabled() bool

func QCoreApplication_IsSetuidAllowed

func QCoreApplication_IsSetuidAllowed() bool

func QCoreApplication_OrganizationDomain

func QCoreApplication_OrganizationDomain() string

func QCoreApplication_OrganizationName

func QCoreApplication_OrganizationName() string

func QCoreApplication_PostEvent

func QCoreApplication_PostEvent(receiver QObject_ITF, event QEvent_ITF, priority int)

func QCoreApplication_ProcessEvents

func QCoreApplication_ProcessEvents(flags int)

func QCoreApplication_ProcessEvents_1

func QCoreApplication_ProcessEvents_1(flags int, maxtime int)

func QCoreApplication_Quit

func QCoreApplication_Quit()

func QCoreApplication_RemoveLibraryPath

func QCoreApplication_RemoveLibraryPath(arg0 string)

func QCoreApplication_RemovePostedEvents

func QCoreApplication_RemovePostedEvents(receiver QObject_ITF, eventType int)

func QCoreApplication_RemoveTranslator

func QCoreApplication_RemoveTranslator(messageFile QTranslator_ITF) bool

func QCoreApplication_SendEvent

func QCoreApplication_SendEvent(receiver QObject_ITF, event QEvent_ITF) bool

func QCoreApplication_SendPostedEvents

func QCoreApplication_SendPostedEvents(receiver QObject_ITF, event_type int)

func QCoreApplication_SetApplicationName

func QCoreApplication_SetApplicationName(application string)

func QCoreApplication_SetApplicationVersion

func QCoreApplication_SetApplicationVersion(version string)

func QCoreApplication_SetAttribute

func QCoreApplication_SetAttribute(attribute int, on bool)

func QCoreApplication_SetEventDispatcher

func QCoreApplication_SetEventDispatcher(eventDispatcher QAbstractEventDispatcher_ITF)

func QCoreApplication_SetLibraryPaths

func QCoreApplication_SetLibraryPaths(arg0 QStringList_ITF)

func QCoreApplication_SetOrganizationDomain

func QCoreApplication_SetOrganizationDomain(orgDomain string)

func QCoreApplication_SetOrganizationName

func QCoreApplication_SetOrganizationName(orgName string)

func QCoreApplication_SetQuitLockEnabled

func QCoreApplication_SetQuitLockEnabled(enabled bool)

func QCoreApplication_SetSetuidAllowed

func QCoreApplication_SetSetuidAllowed(allow bool)

func QCoreApplication_StartingUp

func QCoreApplication_StartingUp() bool

func QCoreApplication_TestAttribute

func QCoreApplication_TestAttribute(attribute int) bool

func QCoreApplication_Translate

func QCoreApplication_Translate(context string, key string, disambiguation string, n int) string

func QCos

func QCos(v float64) float64

func QCountLeadingZeroBits

func QCountLeadingZeroBits(v uint64) uint

func QCountLeadingZeroBits_1

func QCountLeadingZeroBits_1(v uint16) uint

func QCountLeadingZeroBits_2

func QCountLeadingZeroBits_2(v uint) uint

func QCountLeadingZeroBits_3

func QCountLeadingZeroBits_3(v uint) uint

func QCountLeadingZeroBits_4

func QCountLeadingZeroBits_4(v byte) uint

func QCountTrailingZeroBits

func QCountTrailingZeroBits(v uint64) uint

func QCountTrailingZeroBits_1

func QCountTrailingZeroBits_1(v uint16) uint

func QCountTrailingZeroBits_2

func QCountTrailingZeroBits_2(v uint) uint

func QCountTrailingZeroBits_3

func QCountTrailingZeroBits_3(v uint) uint

func QCountTrailingZeroBits_4

func QCountTrailingZeroBits_4(v byte) uint

func QDateTime_CurrentMSecsSinceEpoch

func QDateTime_CurrentMSecsSinceEpoch() int64

func QDateTime_CurrentSecsSinceEpoch

func QDateTime_CurrentSecsSinceEpoch() int64

func QDate_IsLeapYear

func QDate_IsLeapYear(year int) bool

func QDate_IsValid_1

func QDate_IsValid_1(y int, m int, d int) bool

func QDate_LongDayName

func QDate_LongDayName(weekday int, type_ int) string

func QDate_LongMonthName

func QDate_LongMonthName(month int, type_ int) string

func QDate_ShortDayName

func QDate_ShortDayName(weekday int, type_ int) string

func QDate_ShortMonthName

func QDate_ShortMonthName(month int, type_ int) string

func QDegreesToRadians

func QDegreesToRadians(degrees float32) float32

func QDegreesToRadians_1

func QDegreesToRadians_1(degrees float64) float64

func QDir_AddResourceSearchPath

func QDir_AddResourceSearchPath(path string)

func QDir_AddSearchPath

func QDir_AddSearchPath(prefix string, path string)

func QDir_CleanPath

func QDir_CleanPath(path string) string

func QDir_CurrentPath

func QDir_CurrentPath() string

func QDir_FromNativeSeparators

func QDir_FromNativeSeparators(pathName string) string

func QDir_HomePath

func QDir_HomePath() string

func QDir_IsAbsolutePath

func QDir_IsAbsolutePath(path string) bool

func QDir_IsRelativePath

func QDir_IsRelativePath(path string) bool

func QDir_Match

func QDir_Match(filters QStringList_ITF, fileName string) bool

func QDir_Match_1

func QDir_Match_1(filter string, fileName string) bool

func QDir_RootPath

func QDir_RootPath() string

func QDir_SetCurrent

func QDir_SetCurrent(path string) bool

func QDir_SetSearchPaths

func QDir_SetSearchPaths(prefix string, searchPaths QStringList_ITF)

func QDir_TempPath

func QDir_TempPath() string

func QDir_ToNativeSeparators

func QDir_ToNativeSeparators(pathName string) string

func QElapsedTimer_ClockType

func QElapsedTimer_ClockType() int

func QElapsedTimer_IsMonotonic

func QElapsedTimer_IsMonotonic() bool

func QEnvironmentVariable

func QEnvironmentVariable(varName string, defaultValue string) string

func QEnvironmentVariableIntValue

func QEnvironmentVariableIntValue(varName string, ok *bool) int

func QEnvironmentVariableIsEmpty

func QEnvironmentVariableIsEmpty(varName string) bool

func QEnvironmentVariableIsSet

func QEnvironmentVariableIsSet(varName string) bool

func QEnvironmentVariable_1

func QEnvironmentVariable_1(varName string) string

func QEvent_RegisterEventType

func QEvent_RegisterEventType(hint int) int

func QExp

func QExp(v float64) float64

func QFabs

func QFabs(v float64) float64

func QFastCos

func QFastCos(x float64) float64

func QFastSin

func QFastSin(x float64) float64

func QFileInfo_Exists_1

func QFileInfo_Exists_1(file string) bool

func QFile_Copy_1

func QFile_Copy_1(fileName string, newName string) bool

func QFile_DecodeName

func QFile_DecodeName(localFileName QByteArray_ITF) string

func QFile_DecodeName_1

func QFile_DecodeName_1(localFileName string) string

func QFile_Exists_1

func QFile_Exists_1(fileName string) bool
func QFile_Link_1(oldname string, newName string) bool

func QFile_Permissions_1

func QFile_Permissions_1(filename string) int
func QFile_ReadLink_1(fileName string) string

func QFile_Remove_1

func QFile_Remove_1(fileName string) bool

func QFile_Rename_1

func QFile_Rename_1(oldName string, newName string) bool

func QFile_Resize_1

func QFile_Resize_1(filename string, sz int64) bool

func QFile_SetPermissions_1

func QFile_SetPermissions_1(filename string, permissionSpec int) bool

func QFile_SymLinkTarget_1

func QFile_SymLinkTarget_1(fileName string) string

func QFlagLocation

func QFlagLocation(method string) string

func QFloatDistance

func QFloatDistance(a float32, b float32) uint

func QFloatDistance_1

func QFloatDistance_1(a float64, b float64) uint64

func QFloor

func QFloor(v float64) int

func QFormatLogMessage

func QFormatLogMessage(type_ int, context QMessageLogContext_ITF, buf string) string

func QFreeAligned

func QFreeAligned(ptr unsafe.Pointer)

func QFuzzyCompare

func QFuzzyCompare(p1 float32, p2 float32) bool

func QFuzzyCompare_1

func QFuzzyCompare_1(p1 float64, p2 float64) bool

func QFuzzyIsNull

func QFuzzyIsNull(f float32) bool

func QFuzzyIsNull_1

func QFuzzyIsNull_1(d float64) bool

func QGlobalQHashSeed

func QGlobalQHashSeed() int

func QHash

func QHash(key uint64, seed uint) uint

func QHashBits

func QHashBits(p unsafe.Pointer, size uint, seed uint) uint

func QHash_1

func QHash_1(key int64, seed uint) uint

func QHash_10

func QHash_10(key float64, seed uint) uint

func QHash_11

func QHash_11(key float64, seed uint) uint

func QHash_12

func QHash_12(key byte, seed uint) uint

func QHash_13

func QHash_13(key byte, seed uint) uint

func QHash_14

func QHash_14(key QUrlQuery_ITF, seed uint) uint

Returns the hash value for key, using seed to seed the calculation.

This function was introduced in Qt 5.6.

func QHash_15

func QHash_15(key QMimeType_ITF, seed uint) uint

Returns the hash value for key, using seed to seed the calculation.

This function was introduced in Qt 5.6.

func QHash_16

func QHash_16(key QDateTime_ITF, seed uint) uint

func QHash_17

func QHash_17(key QBitArray_ITF, seed uint) uint

func QHash_18

func QHash_18(key string, seed uint) uint

func QHash_19

func QHash_19(key QRegExp_ITF, seed uint) uint

Returns the hash value for key, using seed to seed the calculation.

This function was introduced in Qt 5.6.

func QHash_2

func QHash_2(key uint16, seed uint) uint

func QHash_20

func QHash_20(key QLocale_ITF, seed uint) uint

Returns the hash value for key, using seed to seed the calculation.

This function was introduced in Qt 5.6.

func QHash_21

func QHash_21(uuid QUuid_ITF, seed uint) uint

Returns a hash of the UUID uuid, using seed to seed the calculation.

This function was introduced in Qt 5.0.

func QHash_22

func QHash_22(key QTime_ITF, seed uint) uint

func QHash_23

func QHash_23(key QDate_ITF, seed uint) uint

func QHash_24

func QHash_24(url QUrl_ITF, seed uint) uint

func QHash_25

func QHash_25(index QPersistentModelIndex_ITF, seed uint) uint

func QHash_26

func QHash_26(index QPersistentModelIndex_ITF, seed uint) uint

func QHash_27

func QHash_27(arg0 QItemSelectionRange_ITF) uint

func QHash_28

func QHash_28(key QRegularExpression_ITF, seed uint) uint

Returns the hash value for key, using seed to seed the calculation.

This function was introduced in Qt 5.6.

func QHash_29

func QHash_29(key QVersionNumber_ITF, seed uint) uint

func QHash_3

func QHash_3(key int16, seed uint) uint

func QHash_30

func QHash_30(index QModelIndex_ITF) uint

func QHash_31

func QHash_31(key QStringRef_ITF, seed uint) uint

func QHash_32

func QHash_32(key QByteArray_ITF, seed uint) uint

func QHash_33

func QHash_33(key QChar_ITF, seed uint) uint

func QHash_34

func QHash_34(key QLatin1String_ITF, seed uint) uint

func QHash_35

func QHash_35(key QStringView_ITF, seed uint) uint

func QHash_4

func QHash_4(key uint, seed uint) uint

func QHash_5

func QHash_5(key int, seed uint) uint

func QHash_6

func QHash_6(key uint, seed uint) uint

func QHash_7

func QHash_7(key int, seed uint) uint

func QHash_8

func QHash_8(key byte, seed uint) uint

func QHash_9

func QHash_9(key float32, seed uint) uint

func QInf

func QInf() float64

func QInstallMessageHandler

func QInstallMessageHandler(arg0 unsafe.Pointer) unsafe.Pointer

func QIntCast

func QIntCast(f float32) int

func QIntCast_1

func QIntCast_1(f float64) int

func QIsFinite

func QIsFinite(f float32) bool

func QIsFinite_1

func QIsFinite_1(d float64) bool

func QIsInf

func QIsInf(f float32) bool

func QIsInf_1

func QIsInf_1(d float64) bool

func QIsNaN

func QIsNaN(f float32) bool

func QIsNaN_1

func QIsNaN_1(d float64) bool

func QIsNull

func QIsNull(f float32) bool

func QIsNull_1

func QIsNull_1(d float64) bool

func QItemSelection_Split

func QItemSelection_Split(range_ QItemSelectionRange_ITF, other QItemSelectionRange_ITF, result QItemSelection_ITF)

func QLibrary_IsLibrary

func QLibrary_IsLibrary(fileName string) bool

func QLibrary_Resolve_1

func QLibrary_Resolve_1(fileName string, symbol string) unsafe.Pointer

func QLibrary_Resolve_2

func QLibrary_Resolve_2(fileName string, verNum int, symbol string) unsafe.Pointer

func QLibrary_Resolve_3

func QLibrary_Resolve_3(fileName string, version string, symbol string) unsafe.Pointer

func QLn

func QLn(v float64) float64

func QLocale_CountryToString

func QLocale_CountryToString(country int) string

func QLocale_LanguageToString

func QLocale_LanguageToString(language int) string

func QLocale_ScriptToString

func QLocale_ScriptToString(script int) string

func QLocale_SetDefault

func QLocale_SetDefault(locale QLocale_ITF)

func QLoggingCategory_SetFilterRules

func QLoggingCategory_SetFilterRules(rules string)

func QMallocAligned

func QMallocAligned(size uint, alignment uint) unsafe.Pointer

func QMetaObject_Activate

func QMetaObject_Activate(sender QObject_ITF, signal_index int, argv unsafe.Pointer)

func QMetaObject_Activate_1

func QMetaObject_Activate_1(sender QObject_ITF, signal_offset int, local_signal_index int, argv unsafe.Pointer)

func QMetaObject_CheckConnectArgs

func QMetaObject_CheckConnectArgs(signal string, method string) bool

func QMetaObject_CheckConnectArgs_1

func QMetaObject_CheckConnectArgs_1(signal QMetaMethod_ITF, method QMetaMethod_ITF) bool

func QMetaObject_Connect

func QMetaObject_Connect(sender QObject_ITF, signal_index int, receiver QObject_ITF, method_index int, type_ int, types unsafe.Pointer) unsafe.Pointer

func QMetaObject_ConnectSlotsByName

func QMetaObject_ConnectSlotsByName(o QObject_ITF)

func QMetaObject_Disconnect

func QMetaObject_Disconnect(sender QObject_ITF, signal_index int, receiver QObject_ITF, method_index int) bool

func QMetaObject_DisconnectOne

func QMetaObject_DisconnectOne(sender QObject_ITF, signal_index int, receiver QObject_ITF, method_index int) bool

func QMetaObject_Metacall

func QMetaObject_Metacall(arg0 QObject_ITF, arg1 int, arg2 int, arg3 unsafe.Pointer) int

func QNextPowerOfTwo

func QNextPowerOfTwo(v uint64) uint64

func QNextPowerOfTwo_1

func QNextPowerOfTwo_1(v int64) uint64

func QNextPowerOfTwo_2

func QNextPowerOfTwo_2(v uint) uint

func QNextPowerOfTwo_3

func QNextPowerOfTwo_3(v int) uint

func QObject_Connect

func QObject_Connect(sender QObject_ITF, signal string, receiver QObject_ITF, member string, arg4 int) int

func QObject_Connect_1

func QObject_Connect_1(sender QObject_ITF, signal QMetaMethod_ITF, receiver QObject_ITF, method QMetaMethod_ITF, type_ int) int

func QObject_Disconnect

func QObject_Disconnect(sender QObject_ITF, signal string, receiver QObject_ITF, member string) bool

func QObject_Disconnect_1

func QObject_Disconnect_1(sender QObject_ITF, signal QMetaMethod_ITF, receiver QObject_ITF, member QMetaMethod_ITF) bool

func QObject_RegisterUserData

func QObject_RegisterUserData() uint

func QOperatingSystemVersion_CurrentType

func QOperatingSystemVersion_CurrentType() int

func QPointF_DotProduct

func QPointF_DotProduct(p1 QPointF_ITF, p2 QPointF_ITF) float64

func QPoint_DotProduct

func QPoint_DotProduct(p1 QPoint_ITF, p2 QPoint_ITF) int

func QPopulationCount

func QPopulationCount(v uint64) uint

func QPopulationCount_1

func QPopulationCount_1(v uint16) uint

func QPopulationCount_2

func QPopulationCount_2(v uint) uint

func QPopulationCount_3

func QPopulationCount_3(v uint) uint

func QPopulationCount_4

func QPopulationCount_4(v byte) uint

func QPow

func QPow(x float64, y float64) float64

func QProcess_Execute

func QProcess_Execute(program string, arguments QStringList_ITF) int

func QProcess_Execute_1

func QProcess_Execute_1(command string) int

func QProcess_NullDevice

func QProcess_NullDevice() string

func QProcess_StartDetached_1

func QProcess_StartDetached_1(program string, arguments QStringList_ITF, workingDirectory string, pid unsafe.Pointer) bool

func QProcess_StartDetached_2

func QProcess_StartDetached_2(program string, arguments QStringList_ITF) bool

func QProcess_StartDetached_3

func QProcess_StartDetached_3(command string) bool

func QQNaN

func QQNaN() float64

func QRadiansToDegrees

func QRadiansToDegrees(radians float32) float32

func QRadiansToDegrees_1

func QRadiansToDegrees_1(radians float64) float64

func QRandomGenerator64_Max

func QRandomGenerator64_Max() uint64

func QRandomGenerator64_Min

func QRandomGenerator64_Min() uint64

func QRandomGenerator_Max

func QRandomGenerator_Max() uint

func QRandomGenerator_Min

func QRandomGenerator_Min() uint

func QReallocAligned

func QReallocAligned(ptr unsafe.Pointer, size uint, oldsize uint, alignment uint) unsafe.Pointer

func QRegExp_Escape

func QRegExp_Escape(str string) string

func QRegisterResourceData

func QRegisterResourceData(arg0 int, arg1 unsafe.Pointer, arg2 unsafe.Pointer, arg3 unsafe.Pointer) bool

func QRegisterStaticPluginFunction

func QRegisterStaticPluginFunction(staticPlugin QStaticPlugin_ITF)

func QRegularExpression_Escape

func QRegularExpression_Escape(str string) string

func QRemovePostRoutine

func QRemovePostRoutine(arg0 unsafe.Pointer)

Removes the cleanup routine specified by ptr from the list of routines called by the QCoreApplication destructor. The routine must have been previously added to the list by a call to qAddPostRoutine(), otherwise this function has no effect.

Note: This function has been thread-safe since Qt 5.10.

Note: This function is thread-safe.

This function was introduced in Qt 5.3.

See also qAddPostRoutine().

func QResource_AddSearchPath

func QResource_AddSearchPath(path string)

func QResource_RegisterResource

func QResource_RegisterResource(rccFilename string, resourceRoot string) bool

func QResource_RegisterResource_1

func QResource_RegisterResource_1(rccData unsafe.Pointer, resourceRoot string) bool

func QResource_UnregisterResource

func QResource_UnregisterResource(rccFilename string, resourceRoot string) bool

func QResource_UnregisterResource_1

func QResource_UnregisterResource_1(rccData unsafe.Pointer, resourceRoot string) bool

func QRound

func QRound(d float32) int

func QRound64

func QRound64(d float32) int64

func QRound64_1

func QRound64_1(d float64) int64

func QRound_1

func QRound_1(d float64) int

func QSNaN

func QSNaN() float64

func QScopedPointerPodDeleter_Cleanup

func QScopedPointerPodDeleter_Cleanup(pointer unsafe.Pointer)

func QSetGlobalQHashSeed

func QSetGlobalQHashSeed(newSeed int)

func QSetMessagePattern

func QSetMessagePattern(messagePattern string)

func QSettings_DefaultFormat

func QSettings_DefaultFormat() int

func QSettings_SetDefaultFormat

func QSettings_SetDefaultFormat(format int)

func QSettings_SetPath

func QSettings_SetPath(format int, scope int, path string)

func QSettings_SetSystemIniPath

func QSettings_SetSystemIniPath(dir string)

func QSettings_SetUserIniPath

func QSettings_SetUserIniPath(dir string)

func QSharedBuild

func QSharedBuild() bool

func QSin

func QSin(v float64) float64

func QSqrt

func QSqrt(v float64) float64

func QStandardPaths_DisplayName

func QStandardPaths_DisplayName(type_ int) string

func QStandardPaths_EnableTestMode

func QStandardPaths_EnableTestMode(testMode bool)

func QStandardPaths_FindExecutable

func QStandardPaths_FindExecutable(executableName string, paths QStringList_ITF) string

func QStandardPaths_IsTestModeEnabled

func QStandardPaths_IsTestModeEnabled() bool

func QStandardPaths_Locate

func QStandardPaths_Locate(type_ int, fileName string, options int) string

func QStandardPaths_SetTestModeEnabled

func QStandardPaths_SetTestModeEnabled(testMode bool)

func QStandardPaths_WritableLocation

func QStandardPaths_WritableLocation(type_ int) string

func QStringRef_Compare_4

func QStringRef_Compare_4(s1 QStringRef_ITF, s2 string, arg2 int) int

func QStringRef_Compare_5

func QStringRef_Compare_5(s1 QStringRef_ITF, s2 QStringRef_ITF, arg2 int) int

func QStringRef_Compare_6

func QStringRef_Compare_6(s1 QStringRef_ITF, s2 QLatin1String_ITF, cs int) int

func QStringRef_LocaleAwareCompare_2

func QStringRef_LocaleAwareCompare_2(s1 QStringRef_ITF, s2 string) int

func QStringRef_LocaleAwareCompare_3

func QStringRef_LocaleAwareCompare_3(s1 QStringRef_ITF, s2 QStringRef_ITF) int

func QString_Compare_2

func QString_Compare_2(s1 string, s2 string, cs int) int

func QString_Compare_3

func QString_Compare_3(s1 string, s2 QLatin1String_ITF, cs int) int

func QString_Compare_4

func QString_Compare_4(s1 QLatin1String_ITF, s2 string, cs int) int

func QString_Compare_6

func QString_Compare_6(s1 string, s2 QStringRef_ITF, arg2 int) int

func QString_FromLatin1

func QString_FromLatin1(str string, size int) string

func QString_FromLatin1_1

func QString_FromLatin1_1(str QByteArray_ITF) string

func QString_FromLocal8Bit

func QString_FromLocal8Bit(str string, size int) string

func QString_FromLocal8Bit_1

func QString_FromLocal8Bit_1(str QByteArray_ITF) string

func QString_FromRawData

func QString_FromRawData(arg0 QChar_ITF, size int) string

func QString_FromUcs4

func QString_FromUcs4(arg0 unsafe.Pointer, size int) string

func QString_FromUcs4_1

func QString_FromUcs4_1(str unsafe.Pointer, size int) string

func QString_FromUtf16

func QString_FromUtf16(arg0 unsafe.Pointer, size int) string

func QString_FromUtf16_1

func QString_FromUtf16_1(str unsafe.Pointer, size int) string

func QString_FromUtf8

func QString_FromUtf8(str string, size int) string

func QString_FromUtf8_1

func QString_FromUtf8_1(str QByteArray_ITF) string

func QString_FromWCharArray

func QString_FromWCharArray(string unsafe.Pointer, size int) string

func QString_LocaleAwareCompare_1

func QString_LocaleAwareCompare_1(s1 string, s2 string) int

func QString_LocaleAwareCompare_3

func QString_LocaleAwareCompare_3(s1 string, s2 QStringRef_ITF) int

func QString_Number

func QString_Number(arg0 int, base int) string

func QString_Number_1

func QString_Number_1(arg0 uint, base int) string

func QString_Number_2

func QString_Number_2(arg0 int, base int) string

func QString_Number_3

func QString_Number_3(arg0 uint, base int) string

func QString_Number_4

func QString_Number_4(arg0 int64, base int) string

func QString_Number_5

func QString_Number_5(arg0 uint64, base int) string

func QString_Number_6

func QString_Number_6(arg0 float64, f byte, prec int) string

func QSysInfo_BuildAbi

func QSysInfo_BuildAbi() string

func QSysInfo_BuildCpuArchitecture

func QSysInfo_BuildCpuArchitecture() string

func QSysInfo_CurrentCpuArchitecture

func QSysInfo_CurrentCpuArchitecture() string

func QSysInfo_KernelType

func QSysInfo_KernelType() string

func QSysInfo_KernelVersion

func QSysInfo_KernelVersion() string

func QSysInfo_MacVersion

func QSysInfo_MacVersion() int

func QSysInfo_MachineHostName

func QSysInfo_MachineHostName() string

func QSysInfo_PrettyProductName

func QSysInfo_PrettyProductName() string

func QSysInfo_ProductType

func QSysInfo_ProductType() string

func QSysInfo_ProductVersion

func QSysInfo_ProductVersion() string

func QSysInfo_WindowsVersion

func QSysInfo_WindowsVersion() int

func QTan

func QTan(v float64) float64

func QTextCodec_SetCodecForLocale

func QTextCodec_SetCodecForLocale(c QTextCodec_ITF)

func QThreadStorageData_Finish

func QThreadStorageData_Finish(arg0 unsafe.Pointer)

func QThread_CurrentThreadId

func QThread_CurrentThreadId() int

func QThread_IdealThreadCount

func QThread_IdealThreadCount() int

func QThread_Msleep

func QThread_Msleep(arg0 uint)

func QThread_SetTerminationEnabled

func QThread_SetTerminationEnabled(enabled bool)

func QThread_Sleep

func QThread_Sleep(arg0 uint)

func QThread_Usleep

func QThread_Usleep(arg0 uint)

func QThread_YieldCurrentThread

func QThread_YieldCurrentThread()

func QTimeZone_IsTimeZoneIdAvailable

func QTimeZone_IsTimeZoneIdAvailable(ianaId QByteArray_ITF) bool

func QTime_IsValid_1

func QTime_IsValid_1(h int, m int, s int, ms int) bool

func QTimer_SingleShot

func QTimer_SingleShot(msec int, receiver QObject_ITF, member string)

func QTimer_SingleShot_1

func QTimer_SingleShot_1(msec int, timerType int, receiver QObject_ITF, member string)

func QUnregisterResourceData

func QUnregisterResourceData(arg0 int, arg1 unsafe.Pointer, arg2 unsafe.Pointer, arg3 unsafe.Pointer) bool

func QUrl_FromAce

func QUrl_FromAce(arg0 QByteArray_ITF) string

func QUrl_FromPercentEncoding

func QUrl_FromPercentEncoding(arg0 QByteArray_ITF) string

func QUrl_SetIdnWhitelist

func QUrl_SetIdnWhitelist(arg0 QStringList_ITF)

func QVariant_NameToType

func QVariant_NameToType(name string) int

func QVariant_TypeToName

func QVariant_TypeToName(typeId int) string

func QVersionNumber_Compare

func QVersionNumber_Compare(v1 QVersionNumber_ITF, v2 QVersionNumber_ITF) int

func Qputenv

func Qputenv(varName string, value QByteArray_ITF) bool

func Qrand

func Qrand() int

func Qsrand

func Qsrand(seed uint)

func Qstrcmp

func Qstrcmp(str1 string, str2 QByteArray_ITF) int

A safe strcmp() function.

Compares str1 and str2. Returns a negative value if str1 is less than str2, 0 if str1 is equal to str2 or a positive value if str1 is greater than str2.

Special case 1: Returns 0 if str1 and str2 are both 0.

Special case 2: Returns an arbitrary non-zero value if str1 is 0 or str2 is 0 (but not both).

See also qstrncmp(), qstricmp(), qstrnicmp(), and 8-bit Character Comparisons.

func Qstrcmp_1

func Qstrcmp_1(str1 QByteArray_ITF, str2 QByteArray_ITF) int

A safe strcmp() function.

Compares str1 and str2. Returns a negative value if str1 is less than str2, 0 if str1 is equal to str2 or a positive value if str1 is greater than str2.

Special case 1: Returns 0 if str1 and str2 are both 0.

Special case 2: Returns an arbitrary non-zero value if str1 is 0 or str2 is 0 (but not both).

See also qstrncmp(), qstricmp(), qstrnicmp(), and 8-bit Character Comparisons.

func Qstrcmp_2

func Qstrcmp_2(str1 QByteArray_ITF, str2 string) int

A safe strcmp() function.

Compares str1 and str2. Returns a negative value if str1 is less than str2, 0 if str1 is equal to str2 or a positive value if str1 is greater than str2.

Special case 1: Returns 0 if str1 and str2 are both 0.

Special case 2: Returns an arbitrary non-zero value if str1 is 0 or str2 is 0 (but not both).

See also qstrncmp(), qstricmp(), qstrnicmp(), and 8-bit Character Comparisons.

func Qstrcmp_3

func Qstrcmp_3(str1 string, str2 string) int

A safe strcmp() function.

Compares str1 and str2. Returns a negative value if str1 is less than str2, 0 if str1 is equal to str2 or a positive value if str1 is greater than str2.

Special case 1: Returns 0 if str1 and str2 are both 0.

Special case 2: Returns an arbitrary non-zero value if str1 is 0 or str2 is 0 (but not both).

See also qstrncmp(), qstricmp(), qstrnicmp(), and 8-bit Character Comparisons.

func Qstrcpy

func Qstrcpy(dst string, src string) string

Copies all the characters up to and including the '\0' from src into dst and returns a pointer to dst. If src is 0, it immediately returns 0.

This function assumes that dst is large enough to hold the contents of src.

See also qstrncpy().

func Qstrdup

func Qstrdup(arg0 string) string

Returns a duplicate string.

Allocates space for a copy of src, copies it, and returns a pointer to the copy. If src is 0, it immediately returns 0.

Ownership is passed to the caller, so the returned string must be deleted using delete[].

func Qstricmp

func Qstricmp(arg0 string, arg1 string) int

A safe stricmp() function.

Compares str1 and str2 ignoring the case of the characters. The encoding of the strings is assumed to be Latin-1.

Returns a negative value if str1 is less than str2, 0 if str1 is equal to str2 or a positive value if str1 is greater than str2.

Special case 1: Returns 0 if str1 and str2 are both 0.

Special case 2: Returns a random non-zero value if str1 is 0 or str2 is 0 (but not both).

See also qstrcmp(), qstrncmp(), qstrnicmp(), and 8-bit Character Comparisons.

func Qstrlen

func Qstrlen(str string) uint

A safe strlen() function.

Returns the number of characters that precede the terminating '\0', or 0 if str is 0.

See also qstrnlen().

func Qstrncmp

func Qstrncmp(str1 string, str2 string, len_ uint) int

A safe strncmp() function.

Compares at most len bytes of str1 and str2.

Returns a negative value if str1 is less than str2, 0 if str1 is equal to str2 or a positive value if str1 is greater than str2.

Special case 1: Returns 0 if str1 and str2 are both 0.

Special case 2: Returns a random non-zero value if str1 is 0 or str2 is 0 (but not both).

See also qstrcmp(), qstricmp(), qstrnicmp(), and 8-bit Character Comparisons.

func Qstrncpy

func Qstrncpy(dst string, src string, len_ uint) string

A safe strncpy() function.

Copies at most len bytes from src (stopping at len or the terminating '\0' whichever comes first) into dst and returns a pointer to dst. Guarantees that dst is '\0'-terminated. If src or dst is 0, returns 0 immediately.

This function assumes that dst is at least len characters long.

Note: When compiling with Visual C++ compiler version 14.00 (Visual C++ 2005) or later, internally the function strncpy_s will be used.

See also qstrcpy().

func Qstrnicmp

func Qstrnicmp(arg0 string, arg1 string, len_ uint) int

A safe strnicmp() function.

Compares at most len bytes of str1 and str2 ignoring the case of the characters. The encoding of the strings is assumed to be Latin-1.

Returns a negative value if str1 is less than str2, 0 if str1 is equal to str2 or a positive value if str1 is greater than str2.

Special case 1: Returns 0 if str1 and str2 are both 0.

Special case 2: Returns a random non-zero value if str1 is 0 or str2 is 0 (but not both).

See also qstrcmp(), qstrncmp(), qstricmp(), and 8-bit Character Comparisons.

func Qstrnlen

func Qstrnlen(str string, maxlen uint) uint

A safe strnlen() function.

Returns the number of characters that precede the terminating '\0', but at most maxlen. If str is 0, returns 0.

This function was introduced in Qt 4.2.

See also qstrlen().

func QtTrId

func QtTrId(id string, n int) string

func Qt_assert

func Qt_assert(assertion string, file string, line int)

func Qt_assert_x

func Qt_assert_x(where string, what string, file string, line int)

func Qt_check_pointer

func Qt_check_pointer(arg0 string, arg1 int)

func Qt_error_string

func Qt_error_string(errorCode int) string

func Qt_getEnumName

func Qt_getEnumName(arg0 int) string

func Qt_getEnumName_1

func Qt_getEnumName_1(arg0 int) string

func Qt_getEnumName_10

func Qt_getEnumName_10(arg0 int) string

func Qt_getEnumName_11

func Qt_getEnumName_11(arg0 int) string

func Qt_getEnumName_12

func Qt_getEnumName_12(arg0 int) string

func Qt_getEnumName_13

func Qt_getEnumName_13(arg0 int) string

func Qt_getEnumName_14

func Qt_getEnumName_14(arg0 int) string

func Qt_getEnumName_15

func Qt_getEnumName_15(arg0 int) string

func Qt_getEnumName_16

func Qt_getEnumName_16(arg0 int) string

func Qt_getEnumName_17

func Qt_getEnumName_17(arg0 int) string

func Qt_getEnumName_18

func Qt_getEnumName_18(arg0 int) string

func Qt_getEnumName_19

func Qt_getEnumName_19(arg0 int) string

func Qt_getEnumName_2

func Qt_getEnumName_2(arg0 int) string

func Qt_getEnumName_20

func Qt_getEnumName_20(arg0 int) string

func Qt_getEnumName_21

func Qt_getEnumName_21(arg0 int) string

func Qt_getEnumName_22

func Qt_getEnumName_22(arg0 int) string

func Qt_getEnumName_23

func Qt_getEnumName_23(arg0 int) string

func Qt_getEnumName_24

func Qt_getEnumName_24(arg0 int) string

func Qt_getEnumName_25

func Qt_getEnumName_25(arg0 int) string

func Qt_getEnumName_26

func Qt_getEnumName_26(arg0 int) string

func Qt_getEnumName_27

func Qt_getEnumName_27(arg0 int) string

func Qt_getEnumName_28

func Qt_getEnumName_28(arg0 int) string

func Qt_getEnumName_29

func Qt_getEnumName_29(arg0 int) string

func Qt_getEnumName_3

func Qt_getEnumName_3(arg0 int) string

func Qt_getEnumName_30

func Qt_getEnumName_30(arg0 int) string

func Qt_getEnumName_31

func Qt_getEnumName_31(arg0 int) string

func Qt_getEnumName_32

func Qt_getEnumName_32(arg0 int) string

func Qt_getEnumName_33

func Qt_getEnumName_33(arg0 int) string

func Qt_getEnumName_34

func Qt_getEnumName_34(arg0 int) string

func Qt_getEnumName_35

func Qt_getEnumName_35(arg0 int) string

func Qt_getEnumName_36

func Qt_getEnumName_36(arg0 int) string

func Qt_getEnumName_37

func Qt_getEnumName_37(arg0 int) string

func Qt_getEnumName_38

func Qt_getEnumName_38(arg0 int) string

func Qt_getEnumName_39

func Qt_getEnumName_39(arg0 int) string

func Qt_getEnumName_4

func Qt_getEnumName_4(arg0 int) string

func Qt_getEnumName_40

func Qt_getEnumName_40(arg0 int) string

func Qt_getEnumName_41

func Qt_getEnumName_41(arg0 int) string

func Qt_getEnumName_42

func Qt_getEnumName_42(arg0 int) string

func Qt_getEnumName_43

func Qt_getEnumName_43(arg0 int) string

func Qt_getEnumName_44

func Qt_getEnumName_44(arg0 int) string

func Qt_getEnumName_45

func Qt_getEnumName_45(arg0 int) string

func Qt_getEnumName_46

func Qt_getEnumName_46(arg0 int) string

func Qt_getEnumName_47

func Qt_getEnumName_47(arg0 int) string

func Qt_getEnumName_48

func Qt_getEnumName_48(arg0 int) string

func Qt_getEnumName_49

func Qt_getEnumName_49(arg0 int) string

func Qt_getEnumName_5

func Qt_getEnumName_5(arg0 int) string

func Qt_getEnumName_50

func Qt_getEnumName_50(arg0 int) string

func Qt_getEnumName_51

func Qt_getEnumName_51(arg0 int) string

func Qt_getEnumName_52

func Qt_getEnumName_52(arg0 int) string

func Qt_getEnumName_53

func Qt_getEnumName_53(arg0 int) string

func Qt_getEnumName_54

func Qt_getEnumName_54(arg0 int) string

func Qt_getEnumName_55

func Qt_getEnumName_55(arg0 int) string

func Qt_getEnumName_56

func Qt_getEnumName_56(arg0 int) string

func Qt_getEnumName_57

func Qt_getEnumName_57(arg0 int) string

func Qt_getEnumName_58

func Qt_getEnumName_58(arg0 int) string

func Qt_getEnumName_59

func Qt_getEnumName_59(arg0 int) string

func Qt_getEnumName_6

func Qt_getEnumName_6(arg0 int) string

func Qt_getEnumName_60

func Qt_getEnumName_60(arg0 int) string

func Qt_getEnumName_61

func Qt_getEnumName_61(arg0 int) string

func Qt_getEnumName_62

func Qt_getEnumName_62(arg0 int) string

func Qt_getEnumName_63

func Qt_getEnumName_63(arg0 int) string

func Qt_getEnumName_64

func Qt_getEnumName_64(arg0 int) string

func Qt_getEnumName_65

func Qt_getEnumName_65(arg0 int) string

func Qt_getEnumName_66

func Qt_getEnumName_66(arg0 int) string

func Qt_getEnumName_67

func Qt_getEnumName_67(arg0 int) string

func Qt_getEnumName_68

func Qt_getEnumName_68(arg0 int) string

func Qt_getEnumName_69

func Qt_getEnumName_69(arg0 int) string

func Qt_getEnumName_7

func Qt_getEnumName_7(arg0 int) string

func Qt_getEnumName_70

func Qt_getEnumName_70(arg0 int) string

func Qt_getEnumName_71

func Qt_getEnumName_71(arg0 int) string

func Qt_getEnumName_72

func Qt_getEnumName_72(arg0 int) string

func Qt_getEnumName_73

func Qt_getEnumName_73(arg0 int) string

func Qt_getEnumName_74

func Qt_getEnumName_74(arg0 int) string

func Qt_getEnumName_75

func Qt_getEnumName_75(arg0 int) string

func Qt_getEnumName_76

func Qt_getEnumName_76(arg0 int) string

func Qt_getEnumName_77

func Qt_getEnumName_77(arg0 int) string

func Qt_getEnumName_78

func Qt_getEnumName_78(arg0 int) string

func Qt_getEnumName_79

func Qt_getEnumName_79(arg0 int) string

func Qt_getEnumName_8

func Qt_getEnumName_8(arg0 int) string

func Qt_getEnumName_80

func Qt_getEnumName_80(arg0 int) string

func Qt_getEnumName_81

func Qt_getEnumName_81(arg0 int) string

func Qt_getEnumName_9

func Qt_getEnumName_9(arg0 int) string

func Qt_hash

func Qt_hash(key QStringView_ITF, chained uint) uint

func Qt_message_output

func Qt_message_output(arg0 int, context QMessageLogContext_ITF, message string)

func Qt_noop

func Qt_noop()

func Qunsetenv

func Qunsetenv(varName string) bool

Types

type AbstractComparatorFunction

type AbstractComparatorFunction struct {
	*qtrt.CObject
}

func NewAbstractComparatorFunctionFromPointer

func NewAbstractComparatorFunctionFromPointer(cthis unsafe.Pointer) *AbstractComparatorFunction

func (*AbstractComparatorFunction) AbstractComparatorFunction_PTR

func (ptr *AbstractComparatorFunction) AbstractComparatorFunction_PTR() *AbstractComparatorFunction

func (*AbstractComparatorFunction) GetCthis

func (this *AbstractComparatorFunction) GetCthis() unsafe.Pointer

func (*AbstractComparatorFunction) NewFromPointer

func (*AbstractComparatorFunction) SetCthis

func (this *AbstractComparatorFunction) SetCthis(cthis unsafe.Pointer)

type AbstractComparatorFunction_ITF

type AbstractComparatorFunction_ITF interface {
	AbstractComparatorFunction_PTR() *AbstractComparatorFunction
}

type AbstractConverterFunction

type AbstractConverterFunction struct {
	*qtrt.CObject
}

func NewAbstractConverterFunctionFromPointer

func NewAbstractConverterFunctionFromPointer(cthis unsafe.Pointer) *AbstractConverterFunction

func (*AbstractConverterFunction) AbstractConverterFunction_PTR

func (ptr *AbstractConverterFunction) AbstractConverterFunction_PTR() *AbstractConverterFunction

func (*AbstractConverterFunction) GetCthis

func (this *AbstractConverterFunction) GetCthis() unsafe.Pointer

func (*AbstractConverterFunction) NewFromPointer

func (*AbstractConverterFunction) SetCthis

func (this *AbstractConverterFunction) SetCthis(cthis unsafe.Pointer)

type AbstractConverterFunction_ITF

type AbstractConverterFunction_ITF interface {
	AbstractConverterFunction_PTR() *AbstractConverterFunction
}

type AbstractDebugStreamFunction

type AbstractDebugStreamFunction struct {
	*qtrt.CObject
}

func NewAbstractDebugStreamFunctionFromPointer

func NewAbstractDebugStreamFunctionFromPointer(cthis unsafe.Pointer) *AbstractDebugStreamFunction

func (*AbstractDebugStreamFunction) AbstractDebugStreamFunction_PTR

func (ptr *AbstractDebugStreamFunction) AbstractDebugStreamFunction_PTR() *AbstractDebugStreamFunction

func (*AbstractDebugStreamFunction) GetCthis

func (this *AbstractDebugStreamFunction) GetCthis() unsafe.Pointer

func (*AbstractDebugStreamFunction) NewFromPointer

func (*AbstractDebugStreamFunction) SetCthis

func (this *AbstractDebugStreamFunction) SetCthis(cthis unsafe.Pointer)

type AbstractDebugStreamFunction_ITF

type AbstractDebugStreamFunction_ITF interface {
	AbstractDebugStreamFunction_PTR() *AbstractDebugStreamFunction
}

type ExternalRefCountData

type ExternalRefCountData struct {
	*qtrt.CObject
}

func NewExternalRefCountData

func NewExternalRefCountData(arg0 int) *ExternalRefCountData

func NewExternalRefCountDataFromPointer

func NewExternalRefCountDataFromPointer(cthis unsafe.Pointer) *ExternalRefCountData

func (*ExternalRefCountData) CheckQObjectShared

func (this *ExternalRefCountData) CheckQObjectShared(arg0 QObject_ITF)

func (*ExternalRefCountData) Destroy

func (this *ExternalRefCountData) Destroy()

func (*ExternalRefCountData) ExternalRefCountData_PTR

func (ptr *ExternalRefCountData) ExternalRefCountData_PTR() *ExternalRefCountData

func (*ExternalRefCountData) GetAndRef

func (this *ExternalRefCountData) GetAndRef(arg0 QObject_ITF) unsafe.Pointer

func (*ExternalRefCountData) GetCthis

func (this *ExternalRefCountData) GetCthis() unsafe.Pointer

func (*ExternalRefCountData) NewFromPointer

func (*ExternalRefCountData) NewFromPointer(cthis unsafe.Pointer) *ExternalRefCountData

func (*ExternalRefCountData) Operator_delete

func (this *ExternalRefCountData) Operator_delete(ptr unsafe.Pointer)

func (*ExternalRefCountData) Operator_delete_1

func (this *ExternalRefCountData) Operator_delete_1(arg0 unsafe.Pointer, arg1 unsafe.Pointer)

func (*ExternalRefCountData) SetCthis

func (this *ExternalRefCountData) SetCthis(cthis unsafe.Pointer)

func (*ExternalRefCountData) SetQObjectShared

func (this *ExternalRefCountData) SetQObjectShared(arg0 QObject_ITF, enable bool)

type ExternalRefCountData_ITF

type ExternalRefCountData_ITF interface {
	ExternalRefCountData_PTR() *ExternalRefCountData
}

type NormalDeleter

type NormalDeleter struct {
	*qtrt.CObject
}

func NewNormalDeleterFromPointer

func NewNormalDeleterFromPointer(cthis unsafe.Pointer) *NormalDeleter

func (*NormalDeleter) GetCthis

func (this *NormalDeleter) GetCthis() unsafe.Pointer

func (*NormalDeleter) NewFromPointer

func (*NormalDeleter) NewFromPointer(cthis unsafe.Pointer) *NormalDeleter

func (*NormalDeleter) NormalDeleter_PTR

func (ptr *NormalDeleter) NormalDeleter_PTR() *NormalDeleter

func (*NormalDeleter) SetCthis

func (this *NormalDeleter) SetCthis(cthis unsafe.Pointer)

type NormalDeleter_ITF

type NormalDeleter_ITF interface {
	NormalDeleter_PTR() *NormalDeleter
}

type QAbstractAnimation

type QAbstractAnimation struct {
	*QObject
}

func NewQAbstractAnimation

func NewQAbstractAnimation(parent QObject_ITF) *QAbstractAnimation

Constructs the QAbstractAnimation base class, and passes parent to QObject's constructor.

See also QVariantAnimation and QAnimationGroup.

func NewQAbstractAnimationFromPointer

func NewQAbstractAnimationFromPointer(cthis unsafe.Pointer) *QAbstractAnimation

func NewQAbstractAnimation__

func NewQAbstractAnimation__() *QAbstractAnimation

Constructs the QAbstractAnimation base class, and passes parent to QObject's constructor.

See also QVariantAnimation and QAnimationGroup.

func (*QAbstractAnimation) CurrentLoop

func (this *QAbstractAnimation) CurrentLoop() int

func (*QAbstractAnimation) CurrentLoopChanged

func (this *QAbstractAnimation) CurrentLoopChanged(currentLoop int)

QAbstractAnimation emits this signal whenever the current loop changes. currentLoop is the current loop.

Note: Notifier signal for property currentLoop.

See also currentLoop() and loopCount().

func (*QAbstractAnimation) CurrentLoopTime

func (this *QAbstractAnimation) CurrentLoopTime() int

Returns the current time inside the current loop. It can go from 0 to duration().

See also duration() and currentTime.

func (*QAbstractAnimation) CurrentTime

func (this *QAbstractAnimation) CurrentTime() int

func (*QAbstractAnimation) Direction

func (this *QAbstractAnimation) Direction() int

func (*QAbstractAnimation) DirectionChanged

func (this *QAbstractAnimation) DirectionChanged(arg0 int)

QAbstractAnimation emits this signal whenever the direction has been changed. newDirection is the new direction.

Note: Notifier signal for property direction.

See also direction.

func (*QAbstractAnimation) Duration

func (this *QAbstractAnimation) Duration() int

This pure virtual function returns the duration of the animation, and defines for how long QAbstractAnimation should update the current time. This duration is local, and does not include the loop count.

A return value of -1 indicates that the animation has no defined duration; the animation should run forever until stopped. This is useful for animations that are not time driven, or where you cannot easily predict its duration (e.g., event driven audio playback in a game).

If the animation is a parallel QAnimationGroup, the duration will be the longest duration of all its animations. If the animation is a sequential QAnimationGroup, the duration will be the sum of the duration of all its animations.

Note: Getter function for property duration.

See also loopCount.

func (*QAbstractAnimation) Event

func (this *QAbstractAnimation) Event(event QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QAbstractAnimation) Finished

func (this *QAbstractAnimation) Finished()

QAbstractAnimation emits this signal after the animation has stopped and has reached the end.

This signal is emitted after stateChanged().

See also stateChanged().

func (*QAbstractAnimation) GetCthis

func (this *QAbstractAnimation) GetCthis() unsafe.Pointer

func (*QAbstractAnimation) Group

func (this *QAbstractAnimation) Group() *QAnimationGroup

If this animation is part of a QAnimationGroup, this function returns a pointer to the group; otherwise, it returns 0.

See also QAnimationGroup::addAnimation().

func (*QAbstractAnimation) InheritEvent

func (this *QAbstractAnimation) InheritEvent(f func(event *QEvent) bool)

bool event(class QEvent *)

func (*QAbstractAnimation) InheritUpdateCurrentTime

func (this *QAbstractAnimation) InheritUpdateCurrentTime(f func(currentTime int))

void updateCurrentTime(int)

func (*QAbstractAnimation) InheritUpdateDirection

func (this *QAbstractAnimation) InheritUpdateDirection(f func(direction int))

void updateDirection(class QAbstractAnimation::Direction)

func (*QAbstractAnimation) InheritUpdateState

func (this *QAbstractAnimation) InheritUpdateState(f func(newState int, oldState int))

void updateState(class QAbstractAnimation::State, class QAbstractAnimation::State)

func (*QAbstractAnimation) LoopCount

func (this *QAbstractAnimation) LoopCount() int

func (*QAbstractAnimation) MetaObject

func (this *QAbstractAnimation) MetaObject() *QMetaObject

func (*QAbstractAnimation) NewFromPointer

func (*QAbstractAnimation) NewFromPointer(cthis unsafe.Pointer) *QAbstractAnimation

func (*QAbstractAnimation) Pause

func (this *QAbstractAnimation) Pause()

Pauses the animation. When the animation is paused, state() returns Paused. The value of currentTime will remain unchanged until resume() or start() is called. If you want to continue from the current time, call resume().

See also start(), state(), and resume().

func (*QAbstractAnimation) QAbstractAnimation_PTR

func (ptr *QAbstractAnimation) QAbstractAnimation_PTR() *QAbstractAnimation

func (*QAbstractAnimation) Resume

func (this *QAbstractAnimation) Resume()

Resumes the animation after it was paused. When the animation is resumed, it emits the resumed() and stateChanged() signals. The currenttime is not changed.

See also start(), pause(), and state().

func (*QAbstractAnimation) SetCthis

func (this *QAbstractAnimation) SetCthis(cthis unsafe.Pointer)

func (*QAbstractAnimation) SetCurrentTime

func (this *QAbstractAnimation) SetCurrentTime(msecs int)

func (*QAbstractAnimation) SetDirection

func (this *QAbstractAnimation) SetDirection(direction int)

func (*QAbstractAnimation) SetLoopCount

func (this *QAbstractAnimation) SetLoopCount(loopCount int)

func (*QAbstractAnimation) SetPaused

func (this *QAbstractAnimation) SetPaused(arg0 bool)

If paused is true, the animation is paused. If paused is false, the animation is resumed.

See also state(), pause(), and resume().

func (*QAbstractAnimation) Start

func (this *QAbstractAnimation) Start(policy int)

Starts the animation. The policy argument says whether or not the animation should be deleted when it's done. When the animation starts, the stateChanged() signal is emitted, and state() returns Running. When control reaches the event loop, the animation will run by itself, periodically calling updateCurrentTime() as the animation progresses.

If the animation is currently stopped or has already reached the end, calling start() will rewind the animation and start again from the beginning. When the animation reaches the end, the animation will either stop, or if the loop level is more than 1, it will rewind and continue from the beginning.

If the animation is already running, this function does nothing.

See also stop() and state().

func (*QAbstractAnimation) Start__

func (this *QAbstractAnimation) Start__()

Starts the animation. The policy argument says whether or not the animation should be deleted when it's done. When the animation starts, the stateChanged() signal is emitted, and state() returns Running. When control reaches the event loop, the animation will run by itself, periodically calling updateCurrentTime() as the animation progresses.

If the animation is currently stopped or has already reached the end, calling start() will rewind the animation and start again from the beginning. When the animation reaches the end, the animation will either stop, or if the loop level is more than 1, it will rewind and continue from the beginning.

If the animation is already running, this function does nothing.

See also stop() and state().

func (*QAbstractAnimation) State

func (this *QAbstractAnimation) State() int

func (*QAbstractAnimation) StateChanged

func (this *QAbstractAnimation) StateChanged(newState int, oldState int)

QAbstractAnimation emits this signal whenever the state of the animation has changed from oldState to newState. This signal is emitted after the virtual updateState() function is called.

Note: Notifier signal for property state.

See also updateState().

func (*QAbstractAnimation) Stop

func (this *QAbstractAnimation) Stop()

Stops the animation. When the animation is stopped, it emits the stateChanged() signal, and state() returns Stopped. The current time is not changed.

If the animation stops by itself after reaching the end (i.e., currentLoopTime() == duration() and currentLoop() > loopCount() - 1), the finished() signal is emitted.

See also start() and state().

func (*QAbstractAnimation) TotalDuration

func (this *QAbstractAnimation) TotalDuration() int

Returns the total and effective duration of the animation, including the loop count.

See also duration() and currentTime.

func (*QAbstractAnimation) UpdateCurrentTime

func (this *QAbstractAnimation) UpdateCurrentTime(currentTime int)

This pure virtual function is called every time the animation's currentTime changes.

See also updateState().

func (*QAbstractAnimation) UpdateDirection

func (this *QAbstractAnimation) UpdateDirection(direction int)

This virtual function is called by QAbstractAnimation when the direction of the animation is changed. The direction argument is the new direction.

See also setDirection() and direction().

func (*QAbstractAnimation) UpdateState

func (this *QAbstractAnimation) UpdateState(newState int, oldState int)

This virtual function is called by QAbstractAnimation when the state of the animation is changed from oldState to newState.

See also start(), stop(), pause(), and resume().

type QAbstractAnimation_ITF

type QAbstractAnimation_ITF interface {
	QObject_ITF
	QAbstractAnimation_PTR() *QAbstractAnimation
}

type QAbstractAnimation__DeletionPolicy

type QAbstractAnimation__DeletionPolicy = int
const QAbstractAnimation__DeleteWhenStopped QAbstractAnimation__DeletionPolicy = 1

The animation will be automatically deleted when stopped.

const QAbstractAnimation__KeepWhenStopped QAbstractAnimation__DeletionPolicy = 0

The animation will not be deleted when stopped.

type QAbstractAnimation__Direction

type QAbstractAnimation__Direction = int

This enum describes the direction of the animation when in Running state.

See also direction.

const QAbstractAnimation__Backward QAbstractAnimation__Direction = 1
const QAbstractAnimation__Forward QAbstractAnimation__Direction = 0

type QAbstractAnimation__State

type QAbstractAnimation__State = int

This enum describes the state of the animation.

See also state() and stateChanged().

const QAbstractAnimation__Paused QAbstractAnimation__State = 1

The animation is paused (i.e., temporarily suspended). Calling resume() will resume animation activity.

const QAbstractAnimation__Running QAbstractAnimation__State = 2

The animation is running. While control is in the event loop, QAbstractAnimation will update its current time at regular intervals, calling updateCurrentTime() when appropriate.

const QAbstractAnimation__Stopped QAbstractAnimation__State = 0

The animation is not running. This is the initial state of QAbstractAnimation, and the state QAbstractAnimation reenters when finished. The current time remain unchanged until either setCurrentTime() is called, or the animation is started by calling start().

type QAbstractConcatenable

type QAbstractConcatenable struct {
	*qtrt.CObject
}

func NewQAbstractConcatenableFromPointer

func NewQAbstractConcatenableFromPointer(cthis unsafe.Pointer) *QAbstractConcatenable

func (*QAbstractConcatenable) AppendLatin1To

func (this *QAbstractConcatenable) AppendLatin1To(a string, len_ int, out QChar_ITF)

func (*QAbstractConcatenable) ConvertFromAscii

func (this *QAbstractConcatenable) ConvertFromAscii(a string, len_ int, out QChar_ITF)

func (*QAbstractConcatenable) ConvertFromAscii_1

func (this *QAbstractConcatenable) ConvertFromAscii_1(a byte, out QChar_ITF)

func (*QAbstractConcatenable) GetCthis

func (this *QAbstractConcatenable) GetCthis() unsafe.Pointer

func (*QAbstractConcatenable) InheritAppendLatin1To

func (this *QAbstractConcatenable) InheritAppendLatin1To(f func(a string, len_ int, out *QChar))

void appendLatin1To(const char *, int, class QChar *)

func (*QAbstractConcatenable) InheritConvertFromAscii

func (this *QAbstractConcatenable) InheritConvertFromAscii(f func(a string, len_ int, out *QChar))

void convertFromAscii(const char *, int, class QChar *&)

func (*QAbstractConcatenable) NewFromPointer

func (*QAbstractConcatenable) QAbstractConcatenable_PTR

func (ptr *QAbstractConcatenable) QAbstractConcatenable_PTR() *QAbstractConcatenable

func (*QAbstractConcatenable) SetCthis

func (this *QAbstractConcatenable) SetCthis(cthis unsafe.Pointer)

type QAbstractConcatenable_ITF

type QAbstractConcatenable_ITF interface {
	QAbstractConcatenable_PTR() *QAbstractConcatenable
}

type QAbstractEventDispatcher

type QAbstractEventDispatcher struct {
	*QObject
}

func NewQAbstractEventDispatcher

func NewQAbstractEventDispatcher(parent QObject_ITF) *QAbstractEventDispatcher

Constructs a new event dispatcher with the given parent.

func NewQAbstractEventDispatcherFromPointer

func NewQAbstractEventDispatcherFromPointer(cthis unsafe.Pointer) *QAbstractEventDispatcher

func NewQAbstractEventDispatcher__

func NewQAbstractEventDispatcher__() *QAbstractEventDispatcher

Constructs a new event dispatcher with the given parent.

func QAbstractEventDispatcher_Instance

func QAbstractEventDispatcher_Instance(thread QThread_ITF) *QAbstractEventDispatcher

func QCoreApplication_EventDispatcher

func QCoreApplication_EventDispatcher() *QAbstractEventDispatcher

func (*QAbstractEventDispatcher) AboutToBlock

func (this *QAbstractEventDispatcher) AboutToBlock()

This signal is emitted before the event loop calls a function that could block.

See also awake().

func (*QAbstractEventDispatcher) Awake

func (this *QAbstractEventDispatcher) Awake()

This signal is emitted after the event loop returns from a function that could block.

See also wakeUp() and aboutToBlock().

func (*QAbstractEventDispatcher) ClosingDown

func (this *QAbstractEventDispatcher) ClosingDown()

func (*QAbstractEventDispatcher) FilterNativeEvent

func (this *QAbstractEventDispatcher) FilterNativeEvent(eventType QByteArray_ITF, message unsafe.Pointer, result unsafe.Pointer) bool

Sends message through the event filters that were set by installNativeEventFilter(). This function returns true as soon as an event filter returns true, and false otherwise to indicate that the processing of the event should continue.

Subclasses of QAbstractEventDispatcher must call this function for all messages received from the system to ensure compatibility with any extensions that may be used in the application. The type of event eventType is specific to the platform plugin chosen at run-time, and can be used to cast message to the right type. The result pointer is only used on Windows, and corresponds to the LRESULT pointer.

Note that the type of message is platform dependent. See QAbstractNativeEventFilter for details.

This function was introduced in Qt 5.0.

See also installNativeEventFilter() and QAbstractNativeEventFilter::nativeEventFilter().

func (*QAbstractEventDispatcher) Flush

func (this *QAbstractEventDispatcher) Flush()

func (*QAbstractEventDispatcher) GetCthis

func (this *QAbstractEventDispatcher) GetCthis() unsafe.Pointer

func (*QAbstractEventDispatcher) HasPendingEvents

func (this *QAbstractEventDispatcher) HasPendingEvents() bool

func (*QAbstractEventDispatcher) InstallNativeEventFilter

func (this *QAbstractEventDispatcher) InstallNativeEventFilter(filterObj QAbstractNativeEventFilter_ITF)

Installs an event filter filterObj for all native events received by the application.

The event filter filterObj receives events via its nativeEventFilter() function, which is called for all events received by all threads.

The nativeEventFilter() function should return true if the event should be filtered, (in this case, stopped). It should return false to allow normal Qt processing to continue: the native event can then be translated into a QEvent and handled by the standard Qt event filtering, e.g. QObject::installEventFilter().

If multiple event filters are installed, the filter that was installed last is activated first.

Note: The filter function set here receives native messages, that is, MSG or XEvent structs.

For maximum portability, you should always try to use QEvent objects and QObject::installEventFilter() whenever possible.

This function was introduced in Qt 5.0.

See also QObject::installEventFilter().

func (*QAbstractEventDispatcher) Instance

Returns a pointer to the event dispatcher object for the specified thread. If thread is zero, the current thread is used. If no event dispatcher exists for the specified thread, this function returns 0.

Note: If Qt is built without thread support, the thread argument is ignored.

func (*QAbstractEventDispatcher) Instance__

Returns a pointer to the event dispatcher object for the specified thread. If thread is zero, the current thread is used. If no event dispatcher exists for the specified thread, this function returns 0.

Note: If Qt is built without thread support, the thread argument is ignored.

func (*QAbstractEventDispatcher) Interrupt

func (this *QAbstractEventDispatcher) Interrupt()

Interrupts event dispatching. The event dispatcher will return from processEvents() as soon as possible.

func (*QAbstractEventDispatcher) MetaObject

func (this *QAbstractEventDispatcher) MetaObject() *QMetaObject

func (*QAbstractEventDispatcher) NewFromPointer

func (*QAbstractEventDispatcher) ProcessEvents

func (this *QAbstractEventDispatcher) ProcessEvents(flags int) bool

Processes pending events that match flags until there are no more events to process. Returns true if an event was processed; otherwise returns false.

This function is especially useful if you have a long running operation, and want to show its progress without allowing user input by using the QEventLoop::ExcludeUserInputEvents flag.

If the QEventLoop::WaitForMoreEvents flag is set in flags, the behavior of this function is as follows:

If events are available, this function returns after processing them. If no events are available, this function will wait until more are available and return after processing newly available events.

If the QEventLoop::WaitForMoreEvents flag is not set in flags, and no events are available, this function will return immediately.

Note: This function does not process events continuously; it returns after all available events are processed.

See also hasPendingEvents().

func (*QAbstractEventDispatcher) QAbstractEventDispatcher_PTR

func (ptr *QAbstractEventDispatcher) QAbstractEventDispatcher_PTR() *QAbstractEventDispatcher

func (*QAbstractEventDispatcher) RegisterSocketNotifier

func (this *QAbstractEventDispatcher) RegisterSocketNotifier(notifier QSocketNotifier_ITF)

Registers notifier with the event loop. Subclasses must implement this method to tie a socket notifier into another event loop.

func (*QAbstractEventDispatcher) RegisterTimer

func (this *QAbstractEventDispatcher) RegisterTimer(interval int, timerType int, object QObject_ITF) int

Registers a timer with the specified interval and timerType for the given object and returns the timer id.

func (*QAbstractEventDispatcher) RegisterTimer_1

func (this *QAbstractEventDispatcher) RegisterTimer_1(timerId int, interval int, timerType int, object QObject_ITF)

Registers a timer with the specified interval and timerType for the given object and returns the timer id.

func (*QAbstractEventDispatcher) RemainingTime

func (this *QAbstractEventDispatcher) RemainingTime(timerId int) int

Returns the remaining time in milliseconds with the given timerId. If the timer is inactive, the returned value will be -1. If the timer is overdue, the returned value will be 0.

See also Qt::TimerType.

func (*QAbstractEventDispatcher) RemoveNativeEventFilter

func (this *QAbstractEventDispatcher) RemoveNativeEventFilter(filterObj QAbstractNativeEventFilter_ITF)

Removes the event filter filter from this object. The request is ignored if such an event filter has not been installed.

All event filters for this object are automatically removed when this object is destroyed.

It is always safe to remove an event filter, even during event filter filter activation (that is, even from within the nativeEventFilter() function).

This function was introduced in Qt 5.0.

See also installNativeEventFilter() and QAbstractNativeEventFilter.

func (*QAbstractEventDispatcher) SetCthis

func (this *QAbstractEventDispatcher) SetCthis(cthis unsafe.Pointer)

func (*QAbstractEventDispatcher) StartingUp

func (this *QAbstractEventDispatcher) StartingUp()

func (*QAbstractEventDispatcher) UnregisterSocketNotifier

func (this *QAbstractEventDispatcher) UnregisterSocketNotifier(notifier QSocketNotifier_ITF)

Unregisters notifier from the event dispatcher. Subclasses must reimplement this method to tie a socket notifier into another event loop. Reimplementations must call the base implementation.

func (*QAbstractEventDispatcher) UnregisterTimer

func (this *QAbstractEventDispatcher) UnregisterTimer(timerId int) bool

Unregisters the timer with the given timerId. Returns true if successful; otherwise returns false.

See also registerTimer() and unregisterTimers().

func (*QAbstractEventDispatcher) UnregisterTimers

func (this *QAbstractEventDispatcher) UnregisterTimers(object QObject_ITF) bool

Unregisters all the timers associated with the given object. Returns true if all timers were successful removed; otherwise returns false.

See also unregisterTimer() and registeredTimers().

func (*QAbstractEventDispatcher) WakeUp

func (this *QAbstractEventDispatcher) WakeUp()

Wakes up the event loop.

Note: This function is thread-safe.

See also awake().

type QAbstractEventDispatcher_ITF

type QAbstractEventDispatcher_ITF interface {
	QObject_ITF
	QAbstractEventDispatcher_PTR() *QAbstractEventDispatcher
}

type QAbstractItemModel

type QAbstractItemModel struct {
	*QObject
}

func NewQAbstractItemModel

func NewQAbstractItemModel(parent QObject_ITF) *QAbstractItemModel

Constructs an abstract item model with the given parent.

func NewQAbstractItemModelFromPointer

func NewQAbstractItemModelFromPointer(cthis unsafe.Pointer) *QAbstractItemModel

func NewQAbstractItemModel__

func NewQAbstractItemModel__() *QAbstractItemModel

Constructs an abstract item model with the given parent.

func (*QAbstractItemModel) BeginInsertColumns

func (this *QAbstractItemModel) BeginInsertColumns(parent QModelIndex_ITF, first int, last int)

Begins a column insertion operation.

When reimplementing insertColumns() in a subclass, you must call this function before inserting data into the model's underlying data store.

The parent index corresponds to the parent into which the new columns are inserted; first and last are the column numbers of the new columns will have after they have been inserted.

Specify the first and last column numbers for the span of columns you want to insert into an item in a model.For example, as shown in the diagram, we insert three columns before column 4, so first is 4 and last is 6:

 beginInsertColumns(parent, 4, 6);

This inserts the three new columns as columns 4, 5, and 6.

To append columns, insert them after the last column.For example, as shown in the diagram, we append three columns to a collection of six existing columns (ending in column 5), so first is 6 and last is 8:

beginInsertColumns(parent, 6, 8);

This appends the two new columns as columns 6, 7, and 8.

Note: This function emits the columnsAboutToBeInserted() signal which connected views (or proxies) must handle before the data is inserted. Otherwise, the views may end up in an invalid state.

See also endInsertColumns().

func (*QAbstractItemModel) BeginInsertRows

func (this *QAbstractItemModel) BeginInsertRows(parent QModelIndex_ITF, first int, last int)

Begins a row insertion operation.

When reimplementing insertRows() in a subclass, you must call this function before inserting data into the model's underlying data store.

The parent index corresponds to the parent into which the new rows are inserted; first and last are the row numbers that the new rows will have after they have been inserted.

Specify the first and last row numbers for the span of rows you want to insert into an item in a model.For example, as shown in the diagram, we insert three rows before row 2, so first is 2 and last is 4:

 beginInsertRows(parent, 2, 4);

This inserts the three new rows as rows 2, 3, and 4.

To append rows, insert them after the last row.For example, as shown in the diagram, we append two rows to a collection of 4 existing rows (ending in row 3), so first is 4 and last is 5:

beginInsertRows(parent, 4, 5);

This appends the two new rows as rows 4 and 5.

Note: This function emits the rowsAboutToBeInserted() signal which connected views (or proxies) must handle before the data is inserted. Otherwise, the views may end up in an invalid state.

See also endInsertRows().

func (*QAbstractItemModel) BeginMoveColumns

func (this *QAbstractItemModel) BeginMoveColumns(sourceParent QModelIndex_ITF, sourceFirst int, sourceLast int, destinationParent QModelIndex_ITF, destinationColumn int) bool

Begins a column move operation.

When reimplementing a subclass, this method simplifies moving entities in your model. This method is responsible for moving persistent indexes in the model, which you would otherwise be required to do yourself. Using beginMoveColumns and endMoveColumns is an alternative to emitting layoutAboutToBeChanged and layoutChanged directly along with changePersistentIndex.

The sourceParent index corresponds to the parent from which the columns are moved; sourceFirst and sourceLast are the first and last column numbers of the columns to be moved. The destinationParent index corresponds to the parent into which those columns are moved. The destinationChild is the column to which the columns will be moved. That is, the index at column sourceFirst in sourceParent will become column destinationChild in destinationParent, followed by all other columns up to sourceLast.

However, when moving columns down in the same parent (sourceParent and destinationParent are equal), the columns will be placed before the destinationChild index. That is, if you wish to move columns 0 and 1 so they will become columns 1 and 2, destinationChild should be 3. In this case, the new index for the source column i (which is between sourceFirst and sourceLast) is equal to (destinationChild-sourceLast-1+i).

Note that if sourceParent and destinationParent are the same, you must ensure that the destinationChild is not within the range of sourceFirst and sourceLast + 1. You must also ensure that you do not attempt to move a column to one of its own children or ancestors. This method returns false if either condition is true, in which case you should abort your move operation.

This function was introduced in Qt 4.6.

See also endMoveColumns().

func (*QAbstractItemModel) BeginMoveRows

func (this *QAbstractItemModel) BeginMoveRows(sourceParent QModelIndex_ITF, sourceFirst int, sourceLast int, destinationParent QModelIndex_ITF, destinationRow int) bool

Begins a row move operation.

When reimplementing a subclass, this method simplifies moving entities in your model. This method is responsible for moving persistent indexes in the model, which you would otherwise be required to do yourself. Using beginMoveRows and endMoveRows is an alternative to emitting layoutAboutToBeChanged and layoutChanged directly along with changePersistentIndex.

The sourceParent index corresponds to the parent from which the rows are moved; sourceFirst and sourceLast are the first and last row numbers of the rows to be moved. The destinationParent index corresponds to the parent into which those rows are moved. The destinationChild is the row to which the rows will be moved. That is, the index at row sourceFirst in sourceParent will become row destinationChild in destinationParent, followed by all other rows up to sourceLast.

However, when moving rows down in the same parent (sourceParent and destinationParent are equal), the rows will be placed before the destinationChild index. That is, if you wish to move rows 0 and 1 so they will become rows 1 and 2, destinationChild should be 3. In this case, the new index for the source row i (which is between sourceFirst and sourceLast) is equal to (destinationChild-sourceLast-1+i).

Note that if sourceParent and destinationParent are the same, you must ensure that the destinationChild is not within the range of sourceFirst and sourceLast + 1. You must also ensure that you do not attempt to move a row to one of its own children or ancestors. This method returns false if either condition is true, in which case you should abort your move operation.

Specify the first and last row numbers for the span of rows in the source parent you want to move in the model. Also specify the row in the destination parent to move the span to.For example, as shown in the diagram, we move three rows from row 2 to 4 in the source, so sourceFirst is 2 and sourceLast is 4. We move those items to above row 2 in the destination, so destinationChild is 2.

 beginMoveRows(sourceParent, 2, 4, destinationParent, 2);

This moves the three rows rows 2, 3, and 4 in the source to become 2, 3 and 4 in the destination. Other affected siblings are displaced accordingly.

To append rows to another parent, move them to after the last row.For example, as shown in the diagram, we move three rows to a collection of 6 existing rows (ending in row 5), so destinationChild is 6:

beginMoveRows(sourceParent, 2, 4, destinationParent, 6);

This moves the target rows to the end of the target parent as 6, 7 and 8.

To move rows within the same parent, specify the row to move them to.For example, as shown in the diagram, we move one item from row 2 to row 0, so sourceFirst and sourceLast are 2 and destinationChild is 0.

beginMoveRows(parent, 2, 2, parent, 0);

Note that other rows may be displaced accordingly. Note also that when moving items within the same parent you should not attempt invalid or no-op moves. In the above example, item 2 is at row 2 before the move, so it can not be moved to row 2 (where it is already) or row 3 (no-op as row 3 means above row 3, where it is already)

To move rows within the same parent, specify the row to move them to.For example, as shown in the diagram, we move one item from row 2 to row 4, so sourceFirst and sourceLast are 2 and destinationChild is 4.

beginMoveRows(parent, 2, 2, parent, 4);

Note that other rows may be displaced accordingly.

This function was introduced in Qt 4.6.

See also endMoveRows().

func (*QAbstractItemModel) BeginRemoveColumns

func (this *QAbstractItemModel) BeginRemoveColumns(parent QModelIndex_ITF, first int, last int)

Begins a column removal operation.

When reimplementing removeColumns() in a subclass, you must call this function before removing data from the model's underlying data store.

The parent index corresponds to the parent from which the new columns are removed; first and last are the column numbers of the first and last columns to be removed.

Specify the first and last column numbers for the span of columns you want to remove from an item in a model.For example, as shown in the diagram, we remove the three columns from column 4 to column 6, so first is 4 and last is 6:

 beginRemoveColumns(parent, 4, 6);

Note: This function emits the columnsAboutToBeRemoved() signal which connected views (or proxies) must handle before the data is removed. Otherwise, the views may end up in an invalid state.

See also endRemoveColumns().

func (*QAbstractItemModel) BeginRemoveRows

func (this *QAbstractItemModel) BeginRemoveRows(parent QModelIndex_ITF, first int, last int)

Begins a row removal operation.

When reimplementing removeRows() in a subclass, you must call this function before removing data from the model's underlying data store.

The parent index corresponds to the parent from which the new rows are removed; first and last are the row numbers of the rows to be removed.

Specify the first and last row numbers for the span of rows you want to remove from an item in a model.For example, as shown in the diagram, we remove the two rows from row 2 to row 3, so first is 2 and last is 3:

 beginRemoveRows(parent, 2, 3);

Note: This function emits the rowsAboutToBeRemoved() signal which connected views (or proxies) must handle before the data is removed. Otherwise, the views may end up in an invalid state.

See also endRemoveRows().

func (*QAbstractItemModel) BeginResetModel

func (this *QAbstractItemModel) BeginResetModel()

Begins a model reset operation.

A reset operation resets the model to its current state in any attached views.

Note: Any views attached to this model will be reset as well.

When a model is reset it means that any previous data reported from the model is now invalid and has to be queried for again. This also means that the current item and any selected items will become invalid.

When a model radically changes its data it can sometimes be easier to just call this function rather than emit dataChanged() to inform other components when the underlying data source, or its structure, has changed.

You must call this function before resetting any internal data structures in your model or proxy model.

This function emits the signal modelAboutToBeReset().

This function was introduced in Qt 4.6.

See also modelAboutToBeReset(), modelReset(), and endResetModel().

func (*QAbstractItemModel) Buddy

func (this *QAbstractItemModel) Buddy(index QModelIndex_ITF) *QModelIndex

Returns a model index for the buddy of the item represented by index. When the user wants to edit an item, the view will call this function to check whether another item in the model should be edited instead. Then, the view will construct a delegate using the model index returned by the buddy item.

The default implementation of this function has each item as its own buddy.

func (*QAbstractItemModel) CanDropMimeData

func (this *QAbstractItemModel) CanDropMimeData(data QMimeData_ITF, action int, row int, column int, parent QModelIndex_ITF) bool

Returns true if a model can accept a drop of the data. This default implementation only checks if data has at least one format in the list of mimeTypes() and if action is among the model's supportedDropActions().

Reimplement this function in your custom model, if you want to test whether the data can be dropped at row, column, parent with action. If you don't need that test, it is not necessary to reimplement this function.

See also dropMimeData() and Using drag and drop with item views.

func (*QAbstractItemModel) CanFetchMore

func (this *QAbstractItemModel) CanFetchMore(parent QModelIndex_ITF) bool

Returns true if there is more data available for parent; otherwise returns false.

The default implementation always returns false.

If canFetchMore() returns true, the fetchMore() function should be called. This is the behavior of QAbstractItemView, for example.

See also fetchMore().

func (*QAbstractItemModel) ChangePersistentIndex

func (this *QAbstractItemModel) ChangePersistentIndex(from QModelIndex_ITF, to QModelIndex_ITF)

Changes the QPersistentModelIndex that is equal to the given from model index to the given to model index.

If no persistent model index equal to the given from model index was found, nothing is changed.

See also persistentIndexList() and changePersistentIndexList().

func (*QAbstractItemModel) ColumnCount

func (this *QAbstractItemModel) ColumnCount(parent QModelIndex_ITF) int

Returns the number of columns for the children of the given parent.

In most subclasses, the number of columns is independent of the parent.

For example:

int DomModel::columnCount(const QModelIndex &\/*parent*\/) const
{
    return 3;
}

Note: When implementing a table based model, columnCount() should return 0 when the parent is valid.

See also rowCount().

func (*QAbstractItemModel) ColumnCount__

func (this *QAbstractItemModel) ColumnCount__() int

Returns the number of columns for the children of the given parent.

In most subclasses, the number of columns is independent of the parent.

For example:

int DomModel::columnCount(const QModelIndex &\/*parent*\/) const
{
    return 3;
}

Note: When implementing a table based model, columnCount() should return 0 when the parent is valid.

See also rowCount().

func (*QAbstractItemModel) CreateIndex

func (this *QAbstractItemModel) CreateIndex(row int, column int, data unsafe.Pointer) *QModelIndex

Creates a model index for the given row and column with the internal pointer ptr.

When using a QSortFilterProxyModel, its indexes have their own internal pointer. It is not advisable to access this internal pointer outside of the model. Use the data() function instead.

This function provides a consistent interface that model subclasses must use to create model indexes.

func (*QAbstractItemModel) CreateIndex_1

func (this *QAbstractItemModel) CreateIndex_1(row int, column int, id uint64) *QModelIndex

Creates a model index for the given row and column with the internal pointer ptr.

When using a QSortFilterProxyModel, its indexes have their own internal pointer. It is not advisable to access this internal pointer outside of the model. Use the data() function instead.

This function provides a consistent interface that model subclasses must use to create model indexes.

func (*QAbstractItemModel) CreateIndex__

func (this *QAbstractItemModel) CreateIndex__(row int, column int) *QModelIndex

Creates a model index for the given row and column with the internal pointer ptr.

When using a QSortFilterProxyModel, its indexes have their own internal pointer. It is not advisable to access this internal pointer outside of the model. Use the data() function instead.

This function provides a consistent interface that model subclasses must use to create model indexes.

func (*QAbstractItemModel) Data

func (this *QAbstractItemModel) Data(index QModelIndex_ITF, role int) *QVariant

Returns the data stored under the given role for the item referred to by the index.

Note: If you do not have a value to return, return an invalid QVariant instead of returning 0.

See also Qt::ItemDataRole, setData(), and headerData().

func (*QAbstractItemModel) Data__

func (this *QAbstractItemModel) Data__(index QModelIndex_ITF) *QVariant

Returns the data stored under the given role for the item referred to by the index.

Note: If you do not have a value to return, return an invalid QVariant instead of returning 0.

See also Qt::ItemDataRole, setData(), and headerData().

func (*QAbstractItemModel) DecodeData

func (this *QAbstractItemModel) DecodeData(row int, column int, parent QModelIndex_ITF, stream QDataStream_ITF) bool

func (*QAbstractItemModel) DropMimeData

func (this *QAbstractItemModel) DropMimeData(data QMimeData_ITF, action int, row int, column int, parent QModelIndex_ITF) bool

Handles the data supplied by a drag and drop operation that ended with the given action.

Returns true if the data and action were handled by the model; otherwise returns false.

The specified row, column and parent indicate the location of an item in the model where the operation ended. It is the responsibility of the model to complete the action at the correct location.

For instance, a drop action on an item in a QTreeView can result in new items either being inserted as children of the item specified by row, column, and parent, or as siblings of the item.

When row and column are -1 it means that the dropped data should be considered as dropped directly on parent. Usually this will mean appending the data as child items of parent. If row and column are greater than or equal zero, it means that the drop occurred just before the specified row and column in the specified parent.

The mimeTypes() member is called to get the list of acceptable MIME types. This default implementation assumes the default implementation of mimeTypes(), which returns a single default MIME type. If you reimplement mimeTypes() in your custom model to return multiple MIME types, you must reimplement this function to make use of them.

See also supportedDropActions(), canDropMimeData(), and Using drag and drop with item views.

func (*QAbstractItemModel) EndInsertColumns

func (this *QAbstractItemModel) EndInsertColumns()

Ends a column insertion operation.

When reimplementing insertColumns() in a subclass, you must call this function after inserting data into the model's underlying data store.

See also beginInsertColumns().

func (*QAbstractItemModel) EndInsertRows

func (this *QAbstractItemModel) EndInsertRows()

Ends a row insertion operation.

When reimplementing insertRows() in a subclass, you must call this function after inserting data into the model's underlying data store.

See also beginInsertRows().

func (*QAbstractItemModel) EndMoveColumns

func (this *QAbstractItemModel) EndMoveColumns()

Ends a column move operation.

When implementing a subclass, you must call this function after moving data within the model's underlying data store.

This function was introduced in Qt 4.6.

See also beginMoveColumns().

func (*QAbstractItemModel) EndMoveRows

func (this *QAbstractItemModel) EndMoveRows()

Ends a row move operation.

When implementing a subclass, you must call this function after moving data within the model's underlying data store.

This function was introduced in Qt 4.6.

See also beginMoveRows().

func (*QAbstractItemModel) EndRemoveColumns

func (this *QAbstractItemModel) EndRemoveColumns()

Ends a column removal operation.

When reimplementing removeColumns() in a subclass, you must call this function after removing data from the model's underlying data store.

See also beginRemoveColumns().

func (*QAbstractItemModel) EndRemoveRows

func (this *QAbstractItemModel) EndRemoveRows()

Ends a row removal operation.

When reimplementing removeRows() in a subclass, you must call this function after removing data from the model's underlying data store.

See also beginRemoveRows().

func (*QAbstractItemModel) EndResetModel

func (this *QAbstractItemModel) EndResetModel()

Completes a model reset operation.

You must call this function after resetting any internal data structure in your model or proxy model.

This function emits the signal modelReset().

This function was introduced in Qt 4.6.

See also beginResetModel().

func (*QAbstractItemModel) FetchMore

func (this *QAbstractItemModel) FetchMore(parent QModelIndex_ITF)

Fetches any available data for the items with the parent specified by the parent index.

Reimplement this if you are populating your model incrementally.

The default implementation does nothing.

See also canFetchMore().

func (*QAbstractItemModel) Flags

func (this *QAbstractItemModel) Flags(index QModelIndex_ITF) int

Returns the item flags for the given index.

The base class implementation returns a combination of flags that enables the item (ItemIsEnabled) and allows it to be selected (ItemIsSelectable).

See also Qt::ItemFlags.

func (*QAbstractItemModel) GetCthis

func (this *QAbstractItemModel) GetCthis() unsafe.Pointer

func (*QAbstractItemModel) HasChildren

func (this *QAbstractItemModel) HasChildren(parent QModelIndex_ITF) bool

Returns true if parent has any children; otherwise returns false.

Use rowCount() on the parent to find out the number of children.

Note that it is undefined behavior to report that a particular index hasChildren with this method if the same index has the flag Qt::ItemNeverHasChildren set.

See also parent() and index().

func (*QAbstractItemModel) HasChildren__

func (this *QAbstractItemModel) HasChildren__() bool

Returns true if parent has any children; otherwise returns false.

Use rowCount() on the parent to find out the number of children.

Note that it is undefined behavior to report that a particular index hasChildren with this method if the same index has the flag Qt::ItemNeverHasChildren set.

See also parent() and index().

func (*QAbstractItemModel) HasIndex

func (this *QAbstractItemModel) HasIndex(row int, column int, parent QModelIndex_ITF) bool

Returns true if the model returns a valid QModelIndex for row and column with parent, otherwise returns false.

func (*QAbstractItemModel) HasIndex__

func (this *QAbstractItemModel) HasIndex__(row int, column int) bool

Returns true if the model returns a valid QModelIndex for row and column with parent, otherwise returns false.

func (*QAbstractItemModel) HeaderData

func (this *QAbstractItemModel) HeaderData(section int, orientation int, role int) *QVariant

Returns the data for the given role and section in the header with the specified orientation.

For horizontal headers, the section number corresponds to the column number. Similarly, for vertical headers, the section number corresponds to the row number.

See also Qt::ItemDataRole, setHeaderData(), and QHeaderView.

func (*QAbstractItemModel) HeaderDataChanged

func (this *QAbstractItemModel) HeaderDataChanged(orientation int, first int, last int)

This signal is emitted whenever a header is changed. The orientation indicates whether the horizontal or vertical header has changed. The sections in the header from the first to the last need to be updated.

When reimplementing the setHeaderData() function, this signal must be emitted explicitly.

If you are changing the number of columns or rows you do not need to emit this signal, but use the begin/end functions (refer to the section on subclassing in the QAbstractItemModel class description for details).

See also headerData(), setHeaderData(), and dataChanged().

func (*QAbstractItemModel) HeaderData__

func (this *QAbstractItemModel) HeaderData__(section int, orientation int) *QVariant

Returns the data for the given role and section in the header with the specified orientation.

For horizontal headers, the section number corresponds to the column number. Similarly, for vertical headers, the section number corresponds to the row number.

See also Qt::ItemDataRole, setHeaderData(), and QHeaderView.

func (*QAbstractItemModel) Index

func (this *QAbstractItemModel) Index(row int, column int, parent QModelIndex_ITF) *QModelIndex

Returns the index of the item in the model specified by the given row, column and parent index.

When reimplementing this function in a subclass, call createIndex() to generate model indexes that other components can use to refer to items in your model.

See also createIndex().

func (*QAbstractItemModel) Index__

func (this *QAbstractItemModel) Index__(row int, column int) *QModelIndex

Returns the index of the item in the model specified by the given row, column and parent index.

When reimplementing this function in a subclass, call createIndex() to generate model indexes that other components can use to refer to items in your model.

See also createIndex().

func (*QAbstractItemModel) InheritBeginInsertColumns

func (this *QAbstractItemModel) InheritBeginInsertColumns(f func(parent *QModelIndex, first int, last int))

void beginInsertColumns(const class QModelIndex &, int, int)

func (*QAbstractItemModel) InheritBeginInsertRows

func (this *QAbstractItemModel) InheritBeginInsertRows(f func(parent *QModelIndex, first int, last int))

void beginInsertRows(const class QModelIndex &, int, int)

func (*QAbstractItemModel) InheritBeginMoveColumns

func (this *QAbstractItemModel) InheritBeginMoveColumns(f func(sourceParent *QModelIndex, sourceFirst int, sourceLast int, destinationParent *QModelIndex, destinationColumn int) bool)

bool beginMoveColumns(const class QModelIndex &, int, int, const class QModelIndex &, int)

func (*QAbstractItemModel) InheritBeginMoveRows

func (this *QAbstractItemModel) InheritBeginMoveRows(f func(sourceParent *QModelIndex, sourceFirst int, sourceLast int, destinationParent *QModelIndex, destinationRow int) bool)

bool beginMoveRows(const class QModelIndex &, int, int, const class QModelIndex &, int)

func (*QAbstractItemModel) InheritBeginRemoveColumns

func (this *QAbstractItemModel) InheritBeginRemoveColumns(f func(parent *QModelIndex, first int, last int))

void beginRemoveColumns(const class QModelIndex &, int, int)

func (*QAbstractItemModel) InheritBeginRemoveRows

func (this *QAbstractItemModel) InheritBeginRemoveRows(f func(parent *QModelIndex, first int, last int))

void beginRemoveRows(const class QModelIndex &, int, int)

func (*QAbstractItemModel) InheritBeginResetModel

func (this *QAbstractItemModel) InheritBeginResetModel(f func())

void beginResetModel()

func (*QAbstractItemModel) InheritChangePersistentIndex

func (this *QAbstractItemModel) InheritChangePersistentIndex(f func(from *QModelIndex, to *QModelIndex))

void changePersistentIndex(const class QModelIndex &, const class QModelIndex &)

func (*QAbstractItemModel) InheritCreateIndex

func (this *QAbstractItemModel) InheritCreateIndex(f func(row int, column int, data unsafe.Pointer) unsafe.Pointer)

QModelIndex createIndex(int, int, void *)

func (*QAbstractItemModel) InheritDecodeData

func (this *QAbstractItemModel) InheritDecodeData(f func(row int, column int, parent *QModelIndex, stream *QDataStream) bool)

bool decodeData(int, int, const class QModelIndex &, class QDataStream &)

func (*QAbstractItemModel) InheritEndInsertColumns

func (this *QAbstractItemModel) InheritEndInsertColumns(f func())

void endInsertColumns()

func (*QAbstractItemModel) InheritEndInsertRows

func (this *QAbstractItemModel) InheritEndInsertRows(f func())

void endInsertRows()

func (*QAbstractItemModel) InheritEndMoveColumns

func (this *QAbstractItemModel) InheritEndMoveColumns(f func())

void endMoveColumns()

func (*QAbstractItemModel) InheritEndMoveRows

func (this *QAbstractItemModel) InheritEndMoveRows(f func())

void endMoveRows()

func (*QAbstractItemModel) InheritEndRemoveColumns

func (this *QAbstractItemModel) InheritEndRemoveColumns(f func())

void endRemoveColumns()

func (*QAbstractItemModel) InheritEndRemoveRows

func (this *QAbstractItemModel) InheritEndRemoveRows(f func())

void endRemoveRows()

func (*QAbstractItemModel) InheritEndResetModel

func (this *QAbstractItemModel) InheritEndResetModel(f func())

void endResetModel()

func (*QAbstractItemModel) InheritPersistentIndexList

func (this *QAbstractItemModel) InheritPersistentIndexList(f func() *QModelIndexList)

QModelIndexList persistentIndexList()

func (*QAbstractItemModel) InheritResetInternalData

func (this *QAbstractItemModel) InheritResetInternalData(f func())

void resetInternalData()

func (*QAbstractItemModel) InsertColumn

func (this *QAbstractItemModel) InsertColumn(column int, parent QModelIndex_ITF) bool

Inserts a single column before the given column in the child items of the parent specified.

Returns true if the column is inserted; otherwise returns false.

See also insertColumns(), insertRow(), and removeColumn().

func (*QAbstractItemModel) InsertColumn__

func (this *QAbstractItemModel) InsertColumn__(column int) bool

Inserts a single column before the given column in the child items of the parent specified.

Returns true if the column is inserted; otherwise returns false.

See also insertColumns(), insertRow(), and removeColumn().

func (*QAbstractItemModel) InsertColumns

func (this *QAbstractItemModel) InsertColumns(column int, count int, parent QModelIndex_ITF) bool

On models that support this, inserts count new columns into the model before the given column. The items in each new column will be children of the item represented by the parent model index.

If column is 0, the columns are prepended to any existing columns.

If column is columnCount(), the columns are appended to any existing columns.

If parent has no children, a single row with count columns is inserted.

Returns true if the columns were successfully inserted; otherwise returns false.

The base class implementation does nothing and returns false.

If you implement your own model, you can reimplement this function if you want to support insertions. Alternatively, you can provide your own API for altering the data.

See also insertRows(), removeColumns(), beginInsertColumns(), and endInsertColumns().

func (*QAbstractItemModel) InsertColumns__

func (this *QAbstractItemModel) InsertColumns__(column int, count int) bool

On models that support this, inserts count new columns into the model before the given column. The items in each new column will be children of the item represented by the parent model index.

If column is 0, the columns are prepended to any existing columns.

If column is columnCount(), the columns are appended to any existing columns.

If parent has no children, a single row with count columns is inserted.

Returns true if the columns were successfully inserted; otherwise returns false.

The base class implementation does nothing and returns false.

If you implement your own model, you can reimplement this function if you want to support insertions. Alternatively, you can provide your own API for altering the data.

See also insertRows(), removeColumns(), beginInsertColumns(), and endInsertColumns().

func (*QAbstractItemModel) InsertRow

func (this *QAbstractItemModel) InsertRow(row int, parent QModelIndex_ITF) bool

Inserts a single row before the given row in the child items of the parent specified.

Note: This function calls the virtual method insertRows.

Returns true if the row is inserted; otherwise returns false.

See also insertRows(), insertColumn(), and removeRow().

func (*QAbstractItemModel) InsertRow__

func (this *QAbstractItemModel) InsertRow__(row int) bool

Inserts a single row before the given row in the child items of the parent specified.

Note: This function calls the virtual method insertRows.

Returns true if the row is inserted; otherwise returns false.

See also insertRows(), insertColumn(), and removeRow().

func (*QAbstractItemModel) InsertRows

func (this *QAbstractItemModel) InsertRows(row int, count int, parent QModelIndex_ITF) bool

Note: The base class implementation of this function does nothing and returns false.

On models that support this, inserts count rows into the model before the given row. Items in the new row will be children of the item represented by the parent model index.

If row is 0, the rows are prepended to any existing rows in the parent.

If row is rowCount(), the rows are appended to any existing rows in the parent.

If parent has no children, a single column with count rows is inserted.

Returns true if the rows were successfully inserted; otherwise returns false.

If you implement your own model, you can reimplement this function if you want to support insertions. Alternatively, you can provide your own API for altering the data. In either case, you will need to call beginInsertRows() and endInsertRows() to notify other components that the model has changed.

See also insertColumns(), removeRows(), beginInsertRows(), and endInsertRows().

func (*QAbstractItemModel) InsertRows__

func (this *QAbstractItemModel) InsertRows__(row int, count int) bool

Note: The base class implementation of this function does nothing and returns false.

On models that support this, inserts count rows into the model before the given row. Items in the new row will be children of the item represented by the parent model index.

If row is 0, the rows are prepended to any existing rows in the parent.

If row is rowCount(), the rows are appended to any existing rows in the parent.

If parent has no children, a single column with count rows is inserted.

Returns true if the rows were successfully inserted; otherwise returns false.

If you implement your own model, you can reimplement this function if you want to support insertions. Alternatively, you can provide your own API for altering the data. In either case, you will need to call beginInsertRows() and endInsertRows() to notify other components that the model has changed.

See also insertColumns(), removeRows(), beginInsertRows(), and endInsertRows().

func (*QAbstractItemModel) Match

func (this *QAbstractItemModel) Match(start QModelIndex_ITF, role int, value QVariant_ITF, hits int, flags int) *QModelIndexList

Returns a list of indexes for the items in the column of the start index where data stored under the given role matches the specified value. The way the search is performed is defined by the flags given. The list that is returned may be empty. Note also that the order of results in the list may not correspond to the order in the model, if for example a proxy model is used. The order of the results can not be relied upon.

The search begins from the start index, and continues until the number of matching data items equals hits, the search reaches the last row, or the search reaches start again - depending on whether MatchWrap is specified in flags. If you want to search for all matching items, use hits = -1.

By default, this function will perform a wrapping, string-based comparison on all items, searching for items that begin with the search term specified by value.

Note: The default implementation of this function only searches columns. Reimplement this function to include a different search behavior.

func (*QAbstractItemModel) Match__

func (this *QAbstractItemModel) Match__(start QModelIndex_ITF, role int, value QVariant_ITF) *QModelIndexList

Returns a list of indexes for the items in the column of the start index where data stored under the given role matches the specified value. The way the search is performed is defined by the flags given. The list that is returned may be empty. Note also that the order of results in the list may not correspond to the order in the model, if for example a proxy model is used. The order of the results can not be relied upon.

The search begins from the start index, and continues until the number of matching data items equals hits, the search reaches the last row, or the search reaches start again - depending on whether MatchWrap is specified in flags. If you want to search for all matching items, use hits = -1.

By default, this function will perform a wrapping, string-based comparison on all items, searching for items that begin with the search term specified by value.

Note: The default implementation of this function only searches columns. Reimplement this function to include a different search behavior.

func (*QAbstractItemModel) Match__1

func (this *QAbstractItemModel) Match__1(start QModelIndex_ITF, role int, value QVariant_ITF, hits int) *QModelIndexList

Returns a list of indexes for the items in the column of the start index where data stored under the given role matches the specified value. The way the search is performed is defined by the flags given. The list that is returned may be empty. Note also that the order of results in the list may not correspond to the order in the model, if for example a proxy model is used. The order of the results can not be relied upon.

The search begins from the start index, and continues until the number of matching data items equals hits, the search reaches the last row, or the search reaches start again - depending on whether MatchWrap is specified in flags. If you want to search for all matching items, use hits = -1.

By default, this function will perform a wrapping, string-based comparison on all items, searching for items that begin with the search term specified by value.

Note: The default implementation of this function only searches columns. Reimplement this function to include a different search behavior.

func (*QAbstractItemModel) MetaObject

func (this *QAbstractItemModel) MetaObject() *QMetaObject

func (*QAbstractItemModel) MimeTypes

func (this *QAbstractItemModel) MimeTypes() *QStringList

Returns the list of allowed MIME types. By default, the built-in models and views use an internal MIME type: application/x-qabstractitemmodeldatalist.

When implementing drag and drop support in a custom model, if you will return data in formats other than the default internal MIME type, reimplement this function to return your list of MIME types.

If you reimplement this function in your custom model, you must also reimplement the member functions that call it: mimeData() and dropMimeData().

See also mimeData() and dropMimeData().

func (*QAbstractItemModel) MoveColumn

func (this *QAbstractItemModel) MoveColumn(sourceParent QModelIndex_ITF, sourceColumn int, destinationParent QModelIndex_ITF, destinationChild int) bool

On models that support this, moves sourceColumn from sourceParent to destinationChild under destinationParent.

Returns true if the columns were successfully moved; otherwise returns false.

See also moveColumns() and moveRow().

func (*QAbstractItemModel) MoveColumns

func (this *QAbstractItemModel) MoveColumns(sourceParent QModelIndex_ITF, sourceColumn int, count int, destinationParent QModelIndex_ITF, destinationChild int) bool

On models that support this, moves count columns starting with the given sourceColumn under parent sourceParent to column destinationChild under parent destinationParent.

Returns true if the columns were successfully moved; otherwise returns false.

The base class implementation does nothing and returns false.

If you implement your own model, you can reimplement this function if you want to support moving. Alternatively, you can provide your own API for altering the data.

See also beginMoveColumns() and endMoveColumns().

func (*QAbstractItemModel) MoveRow

func (this *QAbstractItemModel) MoveRow(sourceParent QModelIndex_ITF, sourceRow int, destinationParent QModelIndex_ITF, destinationChild int) bool

On models that support this, moves sourceRow from sourceParent to destinationChild under destinationParent.

Returns true if the rows were successfully moved; otherwise returns false.

See also moveRows() and moveColumn().

func (*QAbstractItemModel) MoveRows

func (this *QAbstractItemModel) MoveRows(sourceParent QModelIndex_ITF, sourceRow int, count int, destinationParent QModelIndex_ITF, destinationChild int) bool

On models that support this, moves count rows starting with the given sourceRow under parent sourceParent to row destinationChild under parent destinationParent.

Returns true if the rows were successfully moved; otherwise returns false.

The base class implementation does nothing and returns false.

If you implement your own model, you can reimplement this function if you want to support moving. Alternatively, you can provide your own API for altering the data.

See also beginMoveRows() and endMoveRows().

func (*QAbstractItemModel) NewFromPointer

func (*QAbstractItemModel) NewFromPointer(cthis unsafe.Pointer) *QAbstractItemModel

func (*QAbstractItemModel) Parent

func (this *QAbstractItemModel) Parent(child QModelIndex_ITF) *QModelIndex

Returns the parent of the model item with the given index. If the item has no parent, an invalid QModelIndex is returned.

A common convention used in models that expose tree data structures is that only items in the first column have children. For that case, when reimplementing this function in a subclass the column of the returned QModelIndex would be 0.

When reimplementing this function in a subclass, be careful to avoid calling QModelIndex member functions, such as QModelIndex::parent(), since indexes belonging to your model will simply call your implementation, leading to infinite recursion.

See also createIndex().

func (*QAbstractItemModel) PersistentIndexList

func (this *QAbstractItemModel) PersistentIndexList() *QModelIndexList

Returns the list of indexes stored as persistent indexes in the model.

This function was introduced in Qt 4.2.

func (*QAbstractItemModel) QAbstractItemModel_PTR

func (ptr *QAbstractItemModel) QAbstractItemModel_PTR() *QAbstractItemModel

func (*QAbstractItemModel) RemoveColumn

func (this *QAbstractItemModel) RemoveColumn(column int, parent QModelIndex_ITF) bool

Removes the given column from the child items of the parent specified.

Returns true if the column is removed; otherwise returns false.

See also removeColumns(), removeRow(), and insertColumn().

func (*QAbstractItemModel) RemoveColumn__

func (this *QAbstractItemModel) RemoveColumn__(column int) bool

Removes the given column from the child items of the parent specified.

Returns true if the column is removed; otherwise returns false.

See also removeColumns(), removeRow(), and insertColumn().

func (*QAbstractItemModel) RemoveColumns

func (this *QAbstractItemModel) RemoveColumns(column int, count int, parent QModelIndex_ITF) bool

On models that support this, removes count columns starting with the given column under parent parent from the model.

Returns true if the columns were successfully removed; otherwise returns false.

The base class implementation does nothing and returns false.

If you implement your own model, you can reimplement this function if you want to support removing. Alternatively, you can provide your own API for altering the data.

See also removeColumn(), removeRows(), insertColumns(), beginRemoveColumns(), and endRemoveColumns().

func (*QAbstractItemModel) RemoveColumns__

func (this *QAbstractItemModel) RemoveColumns__(column int, count int) bool

On models that support this, removes count columns starting with the given column under parent parent from the model.

Returns true if the columns were successfully removed; otherwise returns false.

The base class implementation does nothing and returns false.

If you implement your own model, you can reimplement this function if you want to support removing. Alternatively, you can provide your own API for altering the data.

See also removeColumn(), removeRows(), insertColumns(), beginRemoveColumns(), and endRemoveColumns().

func (*QAbstractItemModel) RemoveRow

func (this *QAbstractItemModel) RemoveRow(row int, parent QModelIndex_ITF) bool

Removes the given row from the child items of the parent specified.

Returns true if the row is removed; otherwise returns false.

This is a convenience function that calls removeRows(). The QAbstractItemModel implementation of removeRows() does nothing.

See also removeRows(), removeColumn(), and insertRow().

func (*QAbstractItemModel) RemoveRow__

func (this *QAbstractItemModel) RemoveRow__(row int) bool

Removes the given row from the child items of the parent specified.

Returns true if the row is removed; otherwise returns false.

This is a convenience function that calls removeRows(). The QAbstractItemModel implementation of removeRows() does nothing.

See also removeRows(), removeColumn(), and insertRow().

func (*QAbstractItemModel) RemoveRows

func (this *QAbstractItemModel) RemoveRows(row int, count int, parent QModelIndex_ITF) bool

On models that support this, removes count rows starting with the given row under parent parent from the model.

Returns true if the rows were successfully removed; otherwise returns false.

The base class implementation does nothing and returns false.

If you implement your own model, you can reimplement this function if you want to support removing. Alternatively, you can provide your own API for altering the data.

See also removeRow(), removeColumns(), insertColumns(), beginRemoveRows(), and endRemoveRows().

func (*QAbstractItemModel) RemoveRows__

func (this *QAbstractItemModel) RemoveRows__(row int, count int) bool

On models that support this, removes count rows starting with the given row under parent parent from the model.

Returns true if the rows were successfully removed; otherwise returns false.

The base class implementation does nothing and returns false.

If you implement your own model, you can reimplement this function if you want to support removing. Alternatively, you can provide your own API for altering the data.

See also removeRow(), removeColumns(), insertColumns(), beginRemoveRows(), and endRemoveRows().

func (*QAbstractItemModel) ResetInternalData

func (this *QAbstractItemModel) ResetInternalData()

This slot is called just after the internal data of a model is cleared while it is being reset.

This slot is provided the convenience of subclasses of concrete proxy models, such as subclasses of QSortFilterProxyModel which maintain extra data.

class CustomDataProxy : public QSortFilterProxyModel
{
    Q_OBJECT
public:
    CustomDataProxy(QObject *parent)
      : QSortFilterProxyModel(parent)
    {
    }

    ...

    QVariant data(const QModelIndex &index, int role)
    {
        if (role != Qt::BackgroundRole)
            return QSortFilterProxyModel::data(index, role);

        if (m_customData.contains(index.row()))
            return m_customData.value(index.row());
        return QSortFilterProxyModel::data(index, role);
    }

private slots:
    void resetInternalData()
    {
        m_customData.clear();
    }

private:
  QHash<int, QVariant> m_customData;
};

Note: Due to a mistake, this slot is missing in Qt 5.0.

This function was introduced in Qt 4.8.

See also modelAboutToBeReset() and modelReset().

func (*QAbstractItemModel) Revert

func (this *QAbstractItemModel) Revert()

Lets the model know that it should discard cached information. This function is typically used for row editing.

See also submit().

func (*QAbstractItemModel) RowCount

func (this *QAbstractItemModel) RowCount(parent QModelIndex_ITF) int

Returns the number of rows under the given parent. When the parent is valid it means that rowCount is returning the number of children of parent.

Note: When implementing a table based model, rowCount() should return 0 when the parent is valid.

See also columnCount().

func (*QAbstractItemModel) RowCount__

func (this *QAbstractItemModel) RowCount__() int

Returns the number of rows under the given parent. When the parent is valid it means that rowCount is returning the number of children of parent.

Note: When implementing a table based model, rowCount() should return 0 when the parent is valid.

See also columnCount().

func (*QAbstractItemModel) SetCthis

func (this *QAbstractItemModel) SetCthis(cthis unsafe.Pointer)

func (*QAbstractItemModel) SetData

func (this *QAbstractItemModel) SetData(index QModelIndex_ITF, value QVariant_ITF, role int) bool

Sets the role data for the item at index to value.

Returns true if successful; otherwise returns false.

The dataChanged() signal should be emitted if the data was successfully set.

The base class implementation returns false. This function and data() must be reimplemented for editable models.

See also Qt::ItemDataRole, data(), and itemData().

func (*QAbstractItemModel) SetData__

func (this *QAbstractItemModel) SetData__(index QModelIndex_ITF, value QVariant_ITF) bool

Sets the role data for the item at index to value.

Returns true if successful; otherwise returns false.

The dataChanged() signal should be emitted if the data was successfully set.

The base class implementation returns false. This function and data() must be reimplemented for editable models.

See also Qt::ItemDataRole, data(), and itemData().

func (*QAbstractItemModel) SetHeaderData

func (this *QAbstractItemModel) SetHeaderData(section int, orientation int, value QVariant_ITF, role int) bool

Sets the data for the given role and section in the header with the specified orientation to the value supplied.

Returns true if the header's data was updated; otherwise returns false.

When reimplementing this function, the headerDataChanged() signal must be emitted explicitly.

See also Qt::ItemDataRole and headerData().

func (*QAbstractItemModel) SetHeaderData__

func (this *QAbstractItemModel) SetHeaderData__(section int, orientation int, value QVariant_ITF) bool

Sets the data for the given role and section in the header with the specified orientation to the value supplied.

Returns true if the header's data was updated; otherwise returns false.

When reimplementing this function, the headerDataChanged() signal must be emitted explicitly.

See also Qt::ItemDataRole and headerData().

func (*QAbstractItemModel) Sibling

func (this *QAbstractItemModel) Sibling(row int, column int, idx QModelIndex_ITF) *QModelIndex

Returns the sibling at row and column for the item at index, or an invalid QModelIndex if there is no sibling at that location.

sibling() is just a convenience function that finds the item's parent, and uses it to retrieve the index of the child item in the specified row and column.

This method can optionally be overridden for implementation-specific optimization.

See also index(), QModelIndex::row(), and QModelIndex::column().

func (*QAbstractItemModel) Sort

func (this *QAbstractItemModel) Sort(column int, order int)

Sorts the model by column in the given order.

The base class implementation does nothing.

func (*QAbstractItemModel) Sort__

func (this *QAbstractItemModel) Sort__(column int)

Sorts the model by column in the given order.

The base class implementation does nothing.

func (*QAbstractItemModel) Span

func (this *QAbstractItemModel) Span(index QModelIndex_ITF) *QSize

Returns the row and column span of the item represented by index.

Note: Currently, span is not used.

func (*QAbstractItemModel) Submit

func (this *QAbstractItemModel) Submit() bool

Lets the model know that it should submit cached information to permanent storage. This function is typically used for row editing.

Returns true if there is no error; otherwise returns false.

See also revert().

func (*QAbstractItemModel) SupportedDragActions

func (this *QAbstractItemModel) SupportedDragActions() int

Returns the actions supported by the data in this model.

The default implementation returns supportedDropActions(). Reimplement this function if you wish to support additional actions.

supportedDragActions() is used by QAbstractItemView::startDrag() as the default values when a drag occurs.

See also setSupportedDragActions(), Qt::DropActions, and Using drag and drop with item views.

func (*QAbstractItemModel) SupportedDropActions

func (this *QAbstractItemModel) SupportedDropActions() int

Returns the drop actions supported by this model.

The default implementation returns Qt::CopyAction. Reimplement this function if you wish to support additional actions. You must also reimplement the dropMimeData() function to handle the additional operations.

This function was introduced in Qt 4.2.

See also dropMimeData(), Qt::DropActions, and Using drag and drop with item views.

type QAbstractItemModel_ITF

type QAbstractItemModel_ITF interface {
	QObject_ITF
	QAbstractItemModel_PTR() *QAbstractItemModel
}

type QAbstractItemModel__LayoutChangeHint

type QAbstractItemModel__LayoutChangeHint = int

This enum describes the way the model changes layout.

Note that VerticalSortHint and HorizontalSortHint carry the meaning that items are being moved within the same parent, not moved to a different parent in the model, and not filtered out or in.

const QAbstractItemModel__HorizontalSortHint QAbstractItemModel__LayoutChangeHint = 2

Columns are being sorted.

const QAbstractItemModel__NoLayoutChangeHint QAbstractItemModel__LayoutChangeHint = 0

No hint is available.

const QAbstractItemModel__VerticalSortHint QAbstractItemModel__LayoutChangeHint = 1

Rows are being sorted.

type QAbstractListModel

type QAbstractListModel struct {
	*QAbstractItemModel
}

func NewQAbstractListModel

func NewQAbstractListModel(parent QObject_ITF) *QAbstractListModel

func NewQAbstractListModelFromPointer

func NewQAbstractListModelFromPointer(cthis unsafe.Pointer) *QAbstractListModel

func NewQAbstractListModel__

func NewQAbstractListModel__() *QAbstractListModel

func (*QAbstractListModel) DropMimeData

func (this *QAbstractListModel) DropMimeData(data QMimeData_ITF, action int, row int, column int, parent QModelIndex_ITF) bool

Handles the data supplied by a drag and drop operation that ended with the given action.

Returns true if the data and action were handled by the model; otherwise returns false.

The specified row, column and parent indicate the location of an item in the model where the operation ended. It is the responsibility of the model to complete the action at the correct location.

For instance, a drop action on an item in a QTreeView can result in new items either being inserted as children of the item specified by row, column, and parent, or as siblings of the item.

When row and column are -1 it means that the dropped data should be considered as dropped directly on parent. Usually this will mean appending the data as child items of parent. If row and column are greater than or equal zero, it means that the drop occurred just before the specified row and column in the specified parent.

The mimeTypes() member is called to get the list of acceptable MIME types. This default implementation assumes the default implementation of mimeTypes(), which returns a single default MIME type. If you reimplement mimeTypes() in your custom model to return multiple MIME types, you must reimplement this function to make use of them.

See also supportedDropActions(), canDropMimeData(), and Using drag and drop with item views.

func (*QAbstractListModel) Flags

func (this *QAbstractListModel) Flags(index QModelIndex_ITF) int

Returns the item flags for the given index.

The base class implementation returns a combination of flags that enables the item (ItemIsEnabled) and allows it to be selected (ItemIsSelectable).

See also Qt::ItemFlags.

func (*QAbstractListModel) GetCthis

func (this *QAbstractListModel) GetCthis() unsafe.Pointer

func (*QAbstractListModel) Index

func (this *QAbstractListModel) Index(row int, column int, parent QModelIndex_ITF) *QModelIndex

Returns the index of the item in the model specified by the given row, column and parent index.

When reimplementing this function in a subclass, call createIndex() to generate model indexes that other components can use to refer to items in your model.

See also createIndex().

func (*QAbstractListModel) Index__

func (this *QAbstractListModel) Index__(row int) *QModelIndex

Returns the index of the item in the model specified by the given row, column and parent index.

When reimplementing this function in a subclass, call createIndex() to generate model indexes that other components can use to refer to items in your model.

See also createIndex().

func (*QAbstractListModel) Index__1

func (this *QAbstractListModel) Index__1(row int, column int) *QModelIndex

Returns the index of the item in the model specified by the given row, column and parent index.

When reimplementing this function in a subclass, call createIndex() to generate model indexes that other components can use to refer to items in your model.

See also createIndex().

func (*QAbstractListModel) MetaObject

func (this *QAbstractListModel) MetaObject() *QMetaObject

func (*QAbstractListModel) NewFromPointer

func (*QAbstractListModel) NewFromPointer(cthis unsafe.Pointer) *QAbstractListModel

func (*QAbstractListModel) QAbstractListModel_PTR

func (ptr *QAbstractListModel) QAbstractListModel_PTR() *QAbstractListModel

func (*QAbstractListModel) SetCthis

func (this *QAbstractListModel) SetCthis(cthis unsafe.Pointer)

func (*QAbstractListModel) Sibling

func (this *QAbstractListModel) Sibling(row int, column int, idx QModelIndex_ITF) *QModelIndex

Returns the sibling at row and column for the item at index, or an invalid QModelIndex if there is no sibling at that location.

sibling() is just a convenience function that finds the item's parent, and uses it to retrieve the index of the child item in the specified row and column.

This method can optionally be overridden for implementation-specific optimization.

See also index(), QModelIndex::row(), and QModelIndex::column().

type QAbstractListModel_ITF

type QAbstractListModel_ITF interface {
	QAbstractItemModel_ITF
	QAbstractListModel_PTR() *QAbstractListModel
}

type QAbstractNativeEventFilter

type QAbstractNativeEventFilter struct {
	*qtrt.CObject
}

func NewQAbstractNativeEventFilter

func NewQAbstractNativeEventFilter() *QAbstractNativeEventFilter

Creates a native event filter.

By default this doesn't do anything. Remember to install it on the application object.

func NewQAbstractNativeEventFilterFromPointer

func NewQAbstractNativeEventFilterFromPointer(cthis unsafe.Pointer) *QAbstractNativeEventFilter

func (*QAbstractNativeEventFilter) GetCthis

func (this *QAbstractNativeEventFilter) GetCthis() unsafe.Pointer

func (*QAbstractNativeEventFilter) NativeEventFilter

func (this *QAbstractNativeEventFilter) NativeEventFilter(eventType QByteArray_ITF, message unsafe.Pointer, result unsafe.Pointer) bool

This method is called for every native event.

Note: The filter function here receives native messages, for example, MSG or XCB event structs.

It is called by the QPA platform plugin. On Windows, it is called by the event dispatcher.

The type of event eventType is specific to the platform plugin chosen at run-time, and can be used to cast message to the right type.

On X11, eventType is set to "xcb_generic_event_t", and the message can be casted to a xcb_generic_event_t pointer.

On Windows, eventType is set to "windows_generic_MSG" for messages sent to toplevel windows, and "windows_dispatcher_MSG" for system-wide messages such as messages from a registered hot key. In both cases, the message can be casted to a MSG pointer. The result pointer is only used on Windows, and corresponds to the LRESULT pointer.

On macOS, eventType is set to "mac_generic_NSEvent", and the message can be casted to an NSEvent pointer.

In your reimplementation of this function, if you want to filter the message out, i.e. stop it being handled further, return true; otherwise return false.

Linux example

class MyXcbEventFilter : public QAbstractNativeEventFilter
{
public:
    bool nativeEventFilter(const QByteArray &eventType, void *message, long *) override
    {
        if (eventType == "xcb_generic_event_t") {
            xcb_generic_event_t* ev = static_cast<xcb_generic_event_t *>(message);
            // ...
        }
        return false;
    }
};

macOS example

mycocoaeventfilter.h:

#include <QAbstractNativeEventFilter>

class MyCocoaEventFilter : public QAbstractNativeEventFilter
{
public:
    bool nativeEventFilter(const QByteArray &eventType, void *message, long *) override;
};

mycocoaeventfilter.mm:

#include "mycocoaeventfilter.h"

#import <AppKit/AppKit.h>

bool CocoaNativeEventFilter::nativeEventFilter(const QByteArray &eventType, void *message, long *)
{
    if (eventType == "mac_generic_NSEvent") {
        NSEvent *event = static_cast<NSEvent *>(message);
        if ([event type] == NSKeyDown) {
            // Handle key event
            qDebug() << QString::fromNSString([event characters]);
        }
    }
    return false;
}

myapp.pro:

HEADERS += mycocoaeventfilter.h
OBJECTIVE_SOURCES += mycocoaeventfilter.mm
LIBS += -framework AppKit

func (*QAbstractNativeEventFilter) NewFromPointer

func (*QAbstractNativeEventFilter) QAbstractNativeEventFilter_PTR

func (ptr *QAbstractNativeEventFilter) QAbstractNativeEventFilter_PTR() *QAbstractNativeEventFilter

func (*QAbstractNativeEventFilter) SetCthis

func (this *QAbstractNativeEventFilter) SetCthis(cthis unsafe.Pointer)

type QAbstractNativeEventFilter_ITF

type QAbstractNativeEventFilter_ITF interface {
	QAbstractNativeEventFilter_PTR() *QAbstractNativeEventFilter
}

type QAbstractProxyModel

type QAbstractProxyModel struct {
	*QAbstractItemModel
}

func NewQAbstractProxyModel

func NewQAbstractProxyModel(parent QObject_ITF) *QAbstractProxyModel

Constructs a proxy model with the given parent.

func NewQAbstractProxyModelFromPointer

func NewQAbstractProxyModelFromPointer(cthis unsafe.Pointer) *QAbstractProxyModel

func NewQAbstractProxyModel__

func NewQAbstractProxyModel__() *QAbstractProxyModel

Constructs a proxy model with the given parent.

func (*QAbstractProxyModel) Buddy

func (this *QAbstractProxyModel) Buddy(index QModelIndex_ITF) *QModelIndex

Reimplemented from QAbstractItemModel::buddy().

func (*QAbstractProxyModel) CanDropMimeData

func (this *QAbstractProxyModel) CanDropMimeData(data QMimeData_ITF, action int, row int, column int, parent QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::canDropMimeData().

This function was introduced in Qt 5.4.

func (*QAbstractProxyModel) CanFetchMore

func (this *QAbstractProxyModel) CanFetchMore(parent QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::canFetchMore().

func (*QAbstractProxyModel) Data

func (this *QAbstractProxyModel) Data(proxyIndex QModelIndex_ITF, role int) *QVariant

Reimplemented from QAbstractItemModel::data().

See also setData().

func (*QAbstractProxyModel) Data__

func (this *QAbstractProxyModel) Data__(proxyIndex QModelIndex_ITF) *QVariant

Reimplemented from QAbstractItemModel::data().

See also setData().

func (*QAbstractProxyModel) DropMimeData

func (this *QAbstractProxyModel) DropMimeData(data QMimeData_ITF, action int, row int, column int, parent QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::dropMimeData().

This function was introduced in Qt 5.4.

func (*QAbstractProxyModel) FetchMore

func (this *QAbstractProxyModel) FetchMore(parent QModelIndex_ITF)

Reimplemented from QAbstractItemModel::fetchMore().

func (*QAbstractProxyModel) Flags

func (this *QAbstractProxyModel) Flags(index QModelIndex_ITF) int

Reimplemented from QAbstractItemModel::flags().

func (*QAbstractProxyModel) GetCthis

func (this *QAbstractProxyModel) GetCthis() unsafe.Pointer

func (*QAbstractProxyModel) HasChildren

func (this *QAbstractProxyModel) HasChildren(parent QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::hasChildren().

func (*QAbstractProxyModel) HasChildren__

func (this *QAbstractProxyModel) HasChildren__() bool

Reimplemented from QAbstractItemModel::hasChildren().

func (*QAbstractProxyModel) HeaderData

func (this *QAbstractProxyModel) HeaderData(section int, orientation int, role int) *QVariant

Reimplemented from QAbstractItemModel::headerData().

See also setHeaderData().

func (*QAbstractProxyModel) HeaderData__

func (this *QAbstractProxyModel) HeaderData__(section int, orientation int) *QVariant

Reimplemented from QAbstractItemModel::headerData().

See also setHeaderData().

func (*QAbstractProxyModel) InheritResetInternalData

func (this *QAbstractProxyModel) InheritResetInternalData(f func())

void resetInternalData()

func (*QAbstractProxyModel) MapFromSource

func (this *QAbstractProxyModel) MapFromSource(sourceIndex QModelIndex_ITF) *QModelIndex

Reimplement this function to return the model index in the proxy model that corresponds to the sourceIndex from the source model.

See also mapToSource().

func (*QAbstractProxyModel) MapSelectionFromSource

func (this *QAbstractProxyModel) MapSelectionFromSource(selection QItemSelection_ITF) *QItemSelection

Returns a proxy selection mapped from the specified sourceSelection.

Reimplement this method to map source selections to proxy selections.

func (*QAbstractProxyModel) MapSelectionToSource

func (this *QAbstractProxyModel) MapSelectionToSource(selection QItemSelection_ITF) *QItemSelection

Returns a source selection mapped from the specified proxySelection.

Reimplement this method to map proxy selections to source selections.

func (*QAbstractProxyModel) MapToSource

func (this *QAbstractProxyModel) MapToSource(proxyIndex QModelIndex_ITF) *QModelIndex

Reimplement this function to return the model index in the source model that corresponds to the proxyIndex in the proxy model.

See also mapFromSource().

func (*QAbstractProxyModel) MetaObject

func (this *QAbstractProxyModel) MetaObject() *QMetaObject

func (*QAbstractProxyModel) MimeTypes

func (this *QAbstractProxyModel) MimeTypes() *QStringList

Reimplemented from QAbstractItemModel::mimeTypes().

func (*QAbstractProxyModel) NewFromPointer

func (*QAbstractProxyModel) NewFromPointer(cthis unsafe.Pointer) *QAbstractProxyModel

func (*QAbstractProxyModel) QAbstractProxyModel_PTR

func (ptr *QAbstractProxyModel) QAbstractProxyModel_PTR() *QAbstractProxyModel

func (*QAbstractProxyModel) ResetInternalData

func (this *QAbstractProxyModel) ResetInternalData()

Clears the roleNames of this proxy model.

func (*QAbstractProxyModel) Revert

func (this *QAbstractProxyModel) Revert()

Reimplemented from QAbstractItemModel::revert().

func (*QAbstractProxyModel) SetCthis

func (this *QAbstractProxyModel) SetCthis(cthis unsafe.Pointer)

func (*QAbstractProxyModel) SetData

func (this *QAbstractProxyModel) SetData(index QModelIndex_ITF, value QVariant_ITF, role int) bool

Reimplemented from QAbstractItemModel::setData().

See also data().

func (*QAbstractProxyModel) SetData__

func (this *QAbstractProxyModel) SetData__(index QModelIndex_ITF, value QVariant_ITF) bool

Reimplemented from QAbstractItemModel::setData().

See also data().

func (*QAbstractProxyModel) SetHeaderData

func (this *QAbstractProxyModel) SetHeaderData(section int, orientation int, value QVariant_ITF, role int) bool

Reimplemented from QAbstractItemModel::setHeaderData().

See also headerData().

func (*QAbstractProxyModel) SetHeaderData__

func (this *QAbstractProxyModel) SetHeaderData__(section int, orientation int, value QVariant_ITF) bool

Reimplemented from QAbstractItemModel::setHeaderData().

See also headerData().

func (*QAbstractProxyModel) SetSourceModel

func (this *QAbstractProxyModel) SetSourceModel(sourceModel QAbstractItemModel_ITF)

Sets the given sourceModel to be processed by the proxy model.

Subclasses should call beginResetModel() at the beginning of the method, disconnect from the old model, call this method, connect to the new model, and call endResetModel().

Note: Setter function for property sourceModel.

See also sourceModel().

func (*QAbstractProxyModel) Sibling

func (this *QAbstractProxyModel) Sibling(row int, column int, idx QModelIndex_ITF) *QModelIndex

Reimplemented from QAbstractItemModel::sibling().

func (*QAbstractProxyModel) Sort

func (this *QAbstractProxyModel) Sort(column int, order int)

Reimplemented from QAbstractItemModel::sort().

func (*QAbstractProxyModel) Sort__

func (this *QAbstractProxyModel) Sort__(column int)

Reimplemented from QAbstractItemModel::sort().

func (*QAbstractProxyModel) SourceModel

func (this *QAbstractProxyModel) SourceModel() *QAbstractItemModel

Returns the model that contains the data that is available through the proxy model.

Note: Getter function for property sourceModel.

See also setSourceModel().

func (*QAbstractProxyModel) Span

func (this *QAbstractProxyModel) Span(index QModelIndex_ITF) *QSize

Reimplemented from QAbstractItemModel::span().

func (*QAbstractProxyModel) Submit

func (this *QAbstractProxyModel) Submit() bool

Reimplemented from QAbstractItemModel::submit().

func (*QAbstractProxyModel) SupportedDragActions

func (this *QAbstractProxyModel) SupportedDragActions() int

Reimplemented from QAbstractItemModel::supportedDragActions().

func (*QAbstractProxyModel) SupportedDropActions

func (this *QAbstractProxyModel) SupportedDropActions() int

Reimplemented from QAbstractItemModel::supportedDropActions().

type QAbstractProxyModel_ITF

type QAbstractProxyModel_ITF interface {
	QAbstractItemModel_ITF
	QAbstractProxyModel_PTR() *QAbstractProxyModel
}

type QAbstractState

type QAbstractState struct {
	*QObject
}

func NewQAbstractState

func NewQAbstractState(parent QState_ITF) *QAbstractState

Constructs a new state with the given parent state.

func NewQAbstractStateFromPointer

func NewQAbstractStateFromPointer(cthis unsafe.Pointer) *QAbstractState

func NewQAbstractState__

func NewQAbstractState__() *QAbstractState

Constructs a new state with the given parent state.

func (*QAbstractState) Active

func (this *QAbstractState) Active() bool

Returns whether this state is active.

Note: Getter function for property active.

See also activeChanged(bool), entered(), and exited().

func (*QAbstractState) ActiveChanged

func (this *QAbstractState) ActiveChanged(active bool)

This signal is emitted when the active property is changed with active as argument.

This function was introduced in Qt 5.4.

Note: Notifier signal for property active.

See also QAbstractState::active, entered(), and exited().

func (*QAbstractState) Event

func (this *QAbstractState) Event(e QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QAbstractState) GetCthis

func (this *QAbstractState) GetCthis() unsafe.Pointer

func (*QAbstractState) InheritEvent

func (this *QAbstractState) InheritEvent(f func(e *QEvent) bool)

bool event(class QEvent *)

func (*QAbstractState) InheritOnEntry

func (this *QAbstractState) InheritOnEntry(f func(event *QEvent))

void onEntry(class QEvent *)

func (*QAbstractState) InheritOnExit

func (this *QAbstractState) InheritOnExit(f func(event *QEvent))

void onExit(class QEvent *)

func (*QAbstractState) Machine

func (this *QAbstractState) Machine() *QStateMachine

Returns the state machine that this state is part of, or 0 if the state is not part of a state machine.

func (*QAbstractState) MetaObject

func (this *QAbstractState) MetaObject() *QMetaObject

func (*QAbstractState) NewFromPointer

func (*QAbstractState) NewFromPointer(cthis unsafe.Pointer) *QAbstractState

func (*QAbstractState) OnEntry

func (this *QAbstractState) OnEntry(event QEvent_ITF)

This function is called when the state is entered. The given event is what caused the state to be entered. Reimplement this function to perform custom processing when the state is entered.

func (*QAbstractState) OnExit

func (this *QAbstractState) OnExit(event QEvent_ITF)

This function is called when the state is exited. The given event is what caused the state to be exited. Reimplement this function to perform custom processing when the state is exited.

func (*QAbstractState) ParentState

func (this *QAbstractState) ParentState() *QState

Returns this state's parent state, or 0 if the state has no parent state.

func (*QAbstractState) QAbstractState_PTR

func (ptr *QAbstractState) QAbstractState_PTR() *QAbstractState

func (*QAbstractState) SetCthis

func (this *QAbstractState) SetCthis(cthis unsafe.Pointer)

type QAbstractState_ITF

type QAbstractState_ITF interface {
	QObject_ITF
	QAbstractState_PTR() *QAbstractState
}

type QAbstractTableModel

type QAbstractTableModel struct {
	*QAbstractItemModel
}

func NewQAbstractTableModel

func NewQAbstractTableModel(parent QObject_ITF) *QAbstractTableModel

func NewQAbstractTableModelFromPointer

func NewQAbstractTableModelFromPointer(cthis unsafe.Pointer) *QAbstractTableModel

func NewQAbstractTableModel__

func NewQAbstractTableModel__() *QAbstractTableModel

func (*QAbstractTableModel) DropMimeData

func (this *QAbstractTableModel) DropMimeData(data QMimeData_ITF, action int, row int, column int, parent QModelIndex_ITF) bool

Handles the data supplied by a drag and drop operation that ended with the given action.

Returns true if the data and action were handled by the model; otherwise returns false.

The specified row, column and parent indicate the location of an item in the model where the operation ended. It is the responsibility of the model to complete the action at the correct location.

For instance, a drop action on an item in a QTreeView can result in new items either being inserted as children of the item specified by row, column, and parent, or as siblings of the item.

When row and column are -1 it means that the dropped data should be considered as dropped directly on parent. Usually this will mean appending the data as child items of parent. If row and column are greater than or equal zero, it means that the drop occurred just before the specified row and column in the specified parent.

The mimeTypes() member is called to get the list of acceptable MIME types. This default implementation assumes the default implementation of mimeTypes(), which returns a single default MIME type. If you reimplement mimeTypes() in your custom model to return multiple MIME types, you must reimplement this function to make use of them.

See also supportedDropActions(), canDropMimeData(), and Using drag and drop with item views.

func (*QAbstractTableModel) Flags

func (this *QAbstractTableModel) Flags(index QModelIndex_ITF) int

Returns the item flags for the given index.

The base class implementation returns a combination of flags that enables the item (ItemIsEnabled) and allows it to be selected (ItemIsSelectable).

See also Qt::ItemFlags.

func (*QAbstractTableModel) GetCthis

func (this *QAbstractTableModel) GetCthis() unsafe.Pointer

func (*QAbstractTableModel) Index

func (this *QAbstractTableModel) Index(row int, column int, parent QModelIndex_ITF) *QModelIndex

Returns the index of the item in the model specified by the given row, column and parent index.

When reimplementing this function in a subclass, call createIndex() to generate model indexes that other components can use to refer to items in your model.

See also createIndex().

func (*QAbstractTableModel) Index__

func (this *QAbstractTableModel) Index__(row int, column int) *QModelIndex

Returns the index of the item in the model specified by the given row, column and parent index.

When reimplementing this function in a subclass, call createIndex() to generate model indexes that other components can use to refer to items in your model.

See also createIndex().

func (*QAbstractTableModel) MetaObject

func (this *QAbstractTableModel) MetaObject() *QMetaObject

func (*QAbstractTableModel) NewFromPointer

func (*QAbstractTableModel) NewFromPointer(cthis unsafe.Pointer) *QAbstractTableModel

func (*QAbstractTableModel) QAbstractTableModel_PTR

func (ptr *QAbstractTableModel) QAbstractTableModel_PTR() *QAbstractTableModel

func (*QAbstractTableModel) SetCthis

func (this *QAbstractTableModel) SetCthis(cthis unsafe.Pointer)

func (*QAbstractTableModel) Sibling

func (this *QAbstractTableModel) Sibling(row int, column int, idx QModelIndex_ITF) *QModelIndex

Returns the sibling at row and column for the item at index, or an invalid QModelIndex if there is no sibling at that location.

sibling() is just a convenience function that finds the item's parent, and uses it to retrieve the index of the child item in the specified row and column.

This method can optionally be overridden for implementation-specific optimization.

See also index(), QModelIndex::row(), and QModelIndex::column().

type QAbstractTableModel_ITF

type QAbstractTableModel_ITF interface {
	QAbstractItemModel_ITF
	QAbstractTableModel_PTR() *QAbstractTableModel
}

type QAbstractTransition

type QAbstractTransition struct {
	*QObject
}

func NewQAbstractTransition

func NewQAbstractTransition(sourceState QState_ITF) *QAbstractTransition

Constructs a new QAbstractTransition object with the given sourceState.

func NewQAbstractTransitionFromPointer

func NewQAbstractTransitionFromPointer(cthis unsafe.Pointer) *QAbstractTransition

func NewQAbstractTransition__

func NewQAbstractTransition__() *QAbstractTransition

Constructs a new QAbstractTransition object with the given sourceState.

func (*QAbstractTransition) AddAnimation

func (this *QAbstractTransition) AddAnimation(animation QAbstractAnimation_ITF)

Adds the given animation to this transition. The transition does not take ownership of the animation.

See also removeAnimation() and animations().

func (*QAbstractTransition) Event

func (this *QAbstractTransition) Event(e QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QAbstractTransition) EventTest

func (this *QAbstractTransition) EventTest(event QEvent_ITF) bool

This function is called to determine whether the given event should cause this transition to trigger. Reimplement this function and return true if the event should trigger the transition, otherwise return false.

func (*QAbstractTransition) GetCthis

func (this *QAbstractTransition) GetCthis() unsafe.Pointer

func (*QAbstractTransition) InheritEvent

func (this *QAbstractTransition) InheritEvent(f func(e *QEvent) bool)

bool event(class QEvent *)

func (*QAbstractTransition) InheritEventTest

func (this *QAbstractTransition) InheritEventTest(f func(event *QEvent) bool)

bool eventTest(class QEvent *)

func (*QAbstractTransition) InheritOnTransition

func (this *QAbstractTransition) InheritOnTransition(f func(event *QEvent))

void onTransition(class QEvent *)

func (*QAbstractTransition) Machine

func (this *QAbstractTransition) Machine() *QStateMachine

Returns the state machine that this transition is part of, or 0 if the transition is not part of a state machine.

func (*QAbstractTransition) MetaObject

func (this *QAbstractTransition) MetaObject() *QMetaObject

func (*QAbstractTransition) NewFromPointer

func (*QAbstractTransition) NewFromPointer(cthis unsafe.Pointer) *QAbstractTransition

func (*QAbstractTransition) OnTransition

func (this *QAbstractTransition) OnTransition(event QEvent_ITF)

This function is called when the transition is triggered. The given event is what caused the transition to trigger. Reimplement this function to perform custom processing when the transition is triggered.

func (*QAbstractTransition) QAbstractTransition_PTR

func (ptr *QAbstractTransition) QAbstractTransition_PTR() *QAbstractTransition

func (*QAbstractTransition) RemoveAnimation

func (this *QAbstractTransition) RemoveAnimation(animation QAbstractAnimation_ITF)

Removes the given animation from this transition.

See also addAnimation().

func (*QAbstractTransition) SetCthis

func (this *QAbstractTransition) SetCthis(cthis unsafe.Pointer)

func (*QAbstractTransition) SetTargetState

func (this *QAbstractTransition) SetTargetState(target QAbstractState_ITF)

Sets the target state of this transition.

Note: Setter function for property targetState.

See also targetState().

func (*QAbstractTransition) SetTransitionType

func (this *QAbstractTransition) SetTransitionType(type_ int)

Sets the type of the transition to type.

Note: Setter function for property transitionType.

See also transitionType().

func (*QAbstractTransition) SourceState

func (this *QAbstractTransition) SourceState() *QState

Returns the source state of this transition, or 0 if this transition has no source state.

Note: Getter function for property sourceState.

func (*QAbstractTransition) TargetState

func (this *QAbstractTransition) TargetState() *QAbstractState

Returns the target state of this transition, or 0 if the transition has no target.

Note: Getter function for property targetState.

See also setTargetState().

func (*QAbstractTransition) TransitionType

func (this *QAbstractTransition) TransitionType() int

Returns the type of the transition.

Note: Getter function for property transitionType.

See also setTransitionType().

type QAbstractTransition_ITF

type QAbstractTransition_ITF interface {
	QObject_ITF
	QAbstractTransition_PTR() *QAbstractTransition
}

type QAbstractTransition__TransitionType

type QAbstractTransition__TransitionType = int

This enum specifies the kind of transition. By default, the type is an external transition.

See also QAbstractTransition::transitionType.

const QAbstractTransition__ExternalTransition QAbstractTransition__TransitionType = 0

Any state that is the source state of a transition (which is not a target-less transition) is left, and re-entered when necessary.

const QAbstractTransition__InternalTransition QAbstractTransition__TransitionType = 1

If the target state of a transition is a sub-state of a compound state, and that compound state is the source state, an internal transition will not leave the source state.

type QAnimationDriver

type QAnimationDriver struct {
	*QObject
}

func NewQAnimationDriver

func NewQAnimationDriver(parent QObject_ITF) *QAnimationDriver

func NewQAnimationDriverFromPointer

func NewQAnimationDriverFromPointer(cthis unsafe.Pointer) *QAnimationDriver

func NewQAnimationDriver__

func NewQAnimationDriver__() *QAnimationDriver

func (*QAnimationDriver) Advance

func (this *QAnimationDriver) Advance()

func (*QAnimationDriver) AdvanceAnimation

func (this *QAnimationDriver) AdvanceAnimation(timeStep int64)

func (*QAnimationDriver) AdvanceAnimation__

func (this *QAnimationDriver) AdvanceAnimation__()

func (*QAnimationDriver) Elapsed

func (this *QAnimationDriver) Elapsed() int64

func (*QAnimationDriver) GetCthis

func (this *QAnimationDriver) GetCthis() unsafe.Pointer

func (*QAnimationDriver) InheritAdvanceAnimation

func (this *QAnimationDriver) InheritAdvanceAnimation(f func(timeStep int64))

void advanceAnimation(qint64)

func (*QAnimationDriver) InheritStart

func (this *QAnimationDriver) InheritStart(f func())

void start()

func (*QAnimationDriver) InheritStop

func (this *QAnimationDriver) InheritStop(f func())

void stop()

func (*QAnimationDriver) Install

func (this *QAnimationDriver) Install()

func (*QAnimationDriver) IsRunning

func (this *QAnimationDriver) IsRunning() bool

func (*QAnimationDriver) MetaObject

func (this *QAnimationDriver) MetaObject() *QMetaObject

func (*QAnimationDriver) NewFromPointer

func (*QAnimationDriver) NewFromPointer(cthis unsafe.Pointer) *QAnimationDriver

func (*QAnimationDriver) QAnimationDriver_PTR

func (ptr *QAnimationDriver) QAnimationDriver_PTR() *QAnimationDriver

func (*QAnimationDriver) SetCthis

func (this *QAnimationDriver) SetCthis(cthis unsafe.Pointer)

func (*QAnimationDriver) SetStartTime

func (this *QAnimationDriver) SetStartTime(startTime int64)

func (*QAnimationDriver) Start

func (this *QAnimationDriver) Start()

Starts the animation. The policy argument says whether or not the animation should be deleted when it's done. When the animation starts, the stateChanged() signal is emitted, and state() returns Running. When control reaches the event loop, the animation will run by itself, periodically calling updateCurrentTime() as the animation progresses.

If the animation is currently stopped or has already reached the end, calling start() will rewind the animation and start again from the beginning. When the animation reaches the end, the animation will either stop, or if the loop level is more than 1, it will rewind and continue from the beginning.

If the animation is already running, this function does nothing.

See also stop() and state().

func (*QAnimationDriver) StartTime

func (this *QAnimationDriver) StartTime() int64

func (*QAnimationDriver) Started

func (this *QAnimationDriver) Started()

func (*QAnimationDriver) Stop

func (this *QAnimationDriver) Stop()

Stops the animation. When the animation is stopped, it emits the stateChanged() signal, and state() returns Stopped. The current time is not changed.

If the animation stops by itself after reaching the end (i.e., currentLoopTime() == duration() and currentLoop() > loopCount() - 1), the finished() signal is emitted.

See also start() and state().

func (*QAnimationDriver) Stopped

func (this *QAnimationDriver) Stopped()

func (*QAnimationDriver) Uninstall

func (this *QAnimationDriver) Uninstall()

type QAnimationDriver_ITF

type QAnimationDriver_ITF interface {
	QObject_ITF
	QAnimationDriver_PTR() *QAnimationDriver
}

type QAnimationGroup

type QAnimationGroup struct {
	*QAbstractAnimation
}

func NewQAnimationGroup

func NewQAnimationGroup(parent QObject_ITF) *QAnimationGroup

Constructs a QAnimationGroup. parent is passed to QObject's constructor.

func NewQAnimationGroupFromPointer

func NewQAnimationGroupFromPointer(cthis unsafe.Pointer) *QAnimationGroup

func NewQAnimationGroup__

func NewQAnimationGroup__() *QAnimationGroup

Constructs a QAnimationGroup. parent is passed to QObject's constructor.

func (*QAnimationGroup) AddAnimation

func (this *QAnimationGroup) AddAnimation(animation QAbstractAnimation_ITF)

Adds animation to this group. This will call insertAnimation with index equals to animationCount().

Note: The group takes ownership of the animation.

See also removeAnimation().

func (*QAnimationGroup) AnimationAt

func (this *QAnimationGroup) AnimationAt(index int) *QAbstractAnimation

Returns a pointer to the animation at index in this group. This function is useful when you need access to a particular animation. index is between 0 and animationCount() - 1.

See also animationCount() and indexOfAnimation().

func (*QAnimationGroup) AnimationCount

func (this *QAnimationGroup) AnimationCount() int

Returns the number of animations managed by this group.

See also indexOfAnimation(), addAnimation(), and animationAt().

func (*QAnimationGroup) Clear

func (this *QAnimationGroup) Clear()

Removes and deletes all animations in this animation group, and resets the current time to 0.

See also addAnimation() and removeAnimation().

func (*QAnimationGroup) Event

func (this *QAnimationGroup) Event(event QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QAnimationGroup) GetCthis

func (this *QAnimationGroup) GetCthis() unsafe.Pointer

func (*QAnimationGroup) IndexOfAnimation

func (this *QAnimationGroup) IndexOfAnimation(animation QAbstractAnimation_ITF) int

Returns the index of animation. The returned index can be passed to the other functions that take an index as an argument.

See also insertAnimation(), animationAt(), and takeAnimation().

func (*QAnimationGroup) InheritEvent

func (this *QAnimationGroup) InheritEvent(f func(event *QEvent) bool)

bool event(class QEvent *)

func (*QAnimationGroup) InsertAnimation

func (this *QAnimationGroup) InsertAnimation(index int, animation QAbstractAnimation_ITF)

Inserts animation into this animation group at index. If index is 0 the animation is inserted at the beginning. If index is animationCount(), the animation is inserted at the end.

Note: The group takes ownership of the animation.

See also takeAnimation(), addAnimation(), indexOfAnimation(), and removeAnimation().

func (*QAnimationGroup) MetaObject

func (this *QAnimationGroup) MetaObject() *QMetaObject

func (*QAnimationGroup) NewFromPointer

func (*QAnimationGroup) NewFromPointer(cthis unsafe.Pointer) *QAnimationGroup

func (*QAnimationGroup) QAnimationGroup_PTR

func (ptr *QAnimationGroup) QAnimationGroup_PTR() *QAnimationGroup

func (*QAnimationGroup) RemoveAnimation

func (this *QAnimationGroup) RemoveAnimation(animation QAbstractAnimation_ITF)

Removes animation from this group. The ownership of animation is transferred to the caller.

See also takeAnimation(), insertAnimation(), and addAnimation().

func (*QAnimationGroup) SetCthis

func (this *QAnimationGroup) SetCthis(cthis unsafe.Pointer)

func (*QAnimationGroup) TakeAnimation

func (this *QAnimationGroup) TakeAnimation(index int) *QAbstractAnimation

Returns the animation at index and removes it from the animation group.

Note: The ownership of the animation is transferred to the caller.

See also removeAnimation(), addAnimation(), insertAnimation(), and indexOfAnimation().

type QAnimationGroup_ITF

type QAnimationGroup_ITF interface {
	QAbstractAnimation_ITF
	QAnimationGroup_PTR() *QAnimationGroup
}

type QArrayData

type QArrayData struct {
	*qtrt.CObject
}

func NewQArrayDataFromPointer

func NewQArrayDataFromPointer(cthis unsafe.Pointer) *QArrayData

func QArrayData_Allocate

func QArrayData_Allocate(objectSize uint, alignment uint, capacity uint, options int) *QArrayData

func QArrayData_SharedNull

func QArrayData_SharedNull() *QArrayData

func (*QArrayData) Allocate

func (this *QArrayData) Allocate(objectSize uint, alignment uint, capacity uint, options int) *QArrayData

func (*QArrayData) Allocate__

func (this *QArrayData) Allocate__(objectSize uint, alignment uint, capacity uint) *QArrayData

func (*QArrayData) CloneFlags

func (this *QArrayData) CloneFlags() int

func (*QArrayData) Data

func (this *QArrayData) Data() unsafe.Pointer

func (*QArrayData) Data_1

func (this *QArrayData) Data_1() unsafe.Pointer

func (*QArrayData) DetachCapacity

func (this *QArrayData) DetachCapacity(newSize uint) uint

func (*QArrayData) DetachFlags

func (this *QArrayData) DetachFlags() int

func (*QArrayData) GetCthis

func (this *QArrayData) GetCthis() unsafe.Pointer

func (*QArrayData) IsMutable

func (this *QArrayData) IsMutable() bool

func (*QArrayData) NewFromPointer

func (*QArrayData) NewFromPointer(cthis unsafe.Pointer) *QArrayData

func (*QArrayData) QArrayData_PTR

func (ptr *QArrayData) QArrayData_PTR() *QArrayData

func (*QArrayData) SetCthis

func (this *QArrayData) SetCthis(cthis unsafe.Pointer)

func (*QArrayData) SharedNull

func (this *QArrayData) SharedNull() *QArrayData

type QArrayData_ITF

type QArrayData_ITF interface {
	QArrayData_PTR() *QArrayData
}

type QArrayData__AllocationOption

type QArrayData__AllocationOption = int
const QArrayData__CapacityReserved QArrayData__AllocationOption = 1
const QArrayData__Default QArrayData__AllocationOption = 0
const QArrayData__Grow QArrayData__AllocationOption = 8
const QArrayData__RawData QArrayData__AllocationOption = 4
const QArrayData__Unsharable QArrayData__AllocationOption = 2

type QAssociativeIterable

type QAssociativeIterable struct {
	*qtrt.CObject
}

func NewQAssociativeIterableFromPointer

func NewQAssociativeIterableFromPointer(cthis unsafe.Pointer) *QAssociativeIterable

func (*QAssociativeIterable) Begin

func (this *QAssociativeIterable) Begin() unsafe.Pointer

func (*QAssociativeIterable) End

func (this *QAssociativeIterable) End() unsafe.Pointer

func (*QAssociativeIterable) Find

func (*QAssociativeIterable) GetCthis

func (this *QAssociativeIterable) GetCthis() unsafe.Pointer

func (*QAssociativeIterable) NewFromPointer

func (*QAssociativeIterable) NewFromPointer(cthis unsafe.Pointer) *QAssociativeIterable

func (*QAssociativeIterable) QAssociativeIterable_PTR

func (ptr *QAssociativeIterable) QAssociativeIterable_PTR() *QAssociativeIterable

func (*QAssociativeIterable) SetCthis

func (this *QAssociativeIterable) SetCthis(cthis unsafe.Pointer)

func (*QAssociativeIterable) Size

func (this *QAssociativeIterable) Size() int

func (*QAssociativeIterable) Value

func (this *QAssociativeIterable) Value(key QVariant_ITF) *QVariant

Returns the stored value converted to the template type T. Call canConvert() to find out whether a type can be converted. If the value cannot be converted, a default-constructed value will be returned.

If the type T is supported by QVariant, this function behaves exactly as toString(), toInt() etc.

Example:

QVariant v;

MyCustomStruct c;
if (v.canConvert<MyCustomStruct>())
    c = v.value<MyCustomStruct>();

v = 7;
int i = v.value<int>();                        // same as v.toInt()
QString s = v.value<QString>();                // same as v.toString(), s is now "7"
MyCustomStruct c2 = v.value<MyCustomStruct>(); // conversion failed, c2 is empty

If the QVariant contains a pointer to a type derived from QObject then T may be any QObject type. If the pointer stored in the QVariant can be qobject_cast to T, then that result is returned. Otherwise a null pointer is returned. Note that this only works for QObject subclasses which use the Q_OBJECT macro.

If the QVariant contains a sequential container and T is QVariantList, the elements of the container will be converted into QVariants and returned as a QVariantList.

QList<int> intList = {7, 11, 42};

QVariant variant = QVariant::fromValue(intList);
if (variant.canConvert<QVariantList>()) {
    QSequentialIterable iterable = variant.value<QSequentialIterable>();
    // Can use foreach:
    foreach (const QVariant &v, iterable) {
        qDebug() << v;
    }
    // Can use C++11 range-for:
    for (const QVariant &v : iterable) {
        qDebug() << v;
    }
    // Can use iterators:
    QSequentialIterable::const_iterator it = iterable.begin();
    const QSequentialIterable::const_iterator end = iterable.end();
    for ( ; it != end; ++it) {
        qDebug() << *it;
    }
}

See also setValue(), fromValue(), canConvert(), and Q_DECLARE_SEQUENTIAL_CONTAINER_METATYPE().

type QAssociativeIterable_ITF

type QAssociativeIterable_ITF interface {
	QAssociativeIterable_PTR() *QAssociativeIterable
}

type QAtomicInt

type QAtomicInt struct {
	*qtrt.CObject
}

func NewQAtomicInt

func NewQAtomicInt(value int) *QAtomicInt

func NewQAtomicIntFromPointer

func NewQAtomicIntFromPointer(cthis unsafe.Pointer) *QAtomicInt

func NewQAtomicInt__

func NewQAtomicInt__() *QAtomicInt

func (*QAtomicInt) GetCthis

func (this *QAtomicInt) GetCthis() unsafe.Pointer

func (*QAtomicInt) NewFromPointer

func (*QAtomicInt) NewFromPointer(cthis unsafe.Pointer) *QAtomicInt

func (*QAtomicInt) QAtomicInt_PTR

func (ptr *QAtomicInt) QAtomicInt_PTR() *QAtomicInt

func (*QAtomicInt) SetCthis

func (this *QAtomicInt) SetCthis(cthis unsafe.Pointer)

type QAtomicInt_ITF

type QAtomicInt_ITF interface {
	QAtomicInt_PTR() *QAtomicInt
}

type QBasicMutex

type QBasicMutex struct {
	*qtrt.CObject
}

func NewQBasicMutex

func NewQBasicMutex() *QBasicMutex

func NewQBasicMutexFromPointer

func NewQBasicMutexFromPointer(cthis unsafe.Pointer) *QBasicMutex

func (*QBasicMutex) GetCthis

func (this *QBasicMutex) GetCthis() unsafe.Pointer

func (*QBasicMutex) IsRecursive

func (this *QBasicMutex) IsRecursive() bool

Returns true if the mutex is recursive.

This function was introduced in Qt 5.7.

func (*QBasicMutex) IsRecursive_1

func (this *QBasicMutex) IsRecursive_1() bool

Returns true if the mutex is recursive.

This function was introduced in Qt 5.7.

func (*QBasicMutex) Lock

func (this *QBasicMutex) Lock()

Locks the mutex. If another thread has locked the mutex then this call will block until that thread has unlocked it.

Calling this function multiple times on the same mutex from the same thread is allowed if this mutex is a recursive mutex. If this mutex is a non-recursive mutex, this function will dead-lock when the mutex is locked recursively.

See also unlock().

func (*QBasicMutex) NewFromPointer

func (*QBasicMutex) NewFromPointer(cthis unsafe.Pointer) *QBasicMutex

func (*QBasicMutex) QBasicMutex_PTR

func (ptr *QBasicMutex) QBasicMutex_PTR() *QBasicMutex

func (*QBasicMutex) SetCthis

func (this *QBasicMutex) SetCthis(cthis unsafe.Pointer)

func (*QBasicMutex) TryLock

func (this *QBasicMutex) TryLock() bool

Attempts to lock the mutex. This function returns true if the lock was obtained; otherwise it returns false. If another thread has locked the mutex, this function will wait for at most timeout milliseconds for the mutex to become available.

Note: Passing a negative number as the timeout is equivalent to calling lock(), i.e. this function will wait forever until mutex can be locked if timeout is negative.

If the lock was obtained, the mutex must be unlocked with unlock() before another thread can successfully lock it.

Calling this function multiple times on the same mutex from the same thread is allowed if this mutex is a recursive mutex. If this mutex is a non-recursive mutex, this function will always return false when attempting to lock the mutex recursively.

See also lock() and unlock().

func (*QBasicMutex) Try_lock

func (this *QBasicMutex) Try_lock() bool

Attempts to lock the mutex. This function returns true if the lock was obtained; otherwise it returns false.

This function is provided for compatibility with the Standard Library concept Lockable. It is equivalent to tryLock().

The function returns true if the lock was obtained; otherwise it returns false

This function was introduced in Qt 5.8.

func (*QBasicMutex) Unlock

func (this *QBasicMutex) Unlock()

Unlocks the mutex. Attempting to unlock a mutex in a different thread to the one that locked it results in an error. Unlocking a mutex that is not locked results in undefined behavior.

See also lock().

type QBasicMutex_ITF

type QBasicMutex_ITF interface {
	QBasicMutex_PTR() *QBasicMutex
}

type QBasicTimer

type QBasicTimer struct {
	*qtrt.CObject
}

func NewQBasicTimer

func NewQBasicTimer() *QBasicTimer

Contructs a basic timer.

See also start().

func NewQBasicTimerFromPointer

func NewQBasicTimerFromPointer(cthis unsafe.Pointer) *QBasicTimer

func (*QBasicTimer) GetCthis

func (this *QBasicTimer) GetCthis() unsafe.Pointer

func (*QBasicTimer) IsActive

func (this *QBasicTimer) IsActive() bool

Returns true if the timer is running and has not been stopped; otherwise returns false.

See also start() and stop().

func (*QBasicTimer) NewFromPointer

func (*QBasicTimer) NewFromPointer(cthis unsafe.Pointer) *QBasicTimer

func (*QBasicTimer) QBasicTimer_PTR

func (ptr *QBasicTimer) QBasicTimer_PTR() *QBasicTimer

func (*QBasicTimer) SetCthis

func (this *QBasicTimer) SetCthis(cthis unsafe.Pointer)

func (*QBasicTimer) Start

func (this *QBasicTimer) Start(msec int, obj QObject_ITF)

Starts (or restarts) the timer with a msec milliseconds timeout. The timer will be a Qt::CoarseTimer. See Qt::TimerType for information on the different timer types.

The given object will receive timer events.

See also stop(), isActive(), QObject::timerEvent(), and Qt::CoarseTimer.

func (*QBasicTimer) Start_1

func (this *QBasicTimer) Start_1(msec int, timerType int, obj QObject_ITF)

Starts (or restarts) the timer with a msec milliseconds timeout. The timer will be a Qt::CoarseTimer. See Qt::TimerType for information on the different timer types.

The given object will receive timer events.

See also stop(), isActive(), QObject::timerEvent(), and Qt::CoarseTimer.

func (*QBasicTimer) Stop

func (this *QBasicTimer) Stop()

Stops the timer.

See also start() and isActive().

func (*QBasicTimer) TimerId

func (this *QBasicTimer) TimerId() int

Returns the timer's ID.

See also QTimerEvent::timerId().

type QBasicTimer_ITF

type QBasicTimer_ITF interface {
	QBasicTimer_PTR() *QBasicTimer
}

type QBitArray

type QBitArray struct {
	*qtrt.CObject
}

func NewQBitArray

func NewQBitArray() *QBitArray

Constructs an empty bit array.

See also isEmpty().

func NewQBitArrayFromPointer

func NewQBitArrayFromPointer(cthis unsafe.Pointer) *QBitArray

func NewQBitArray_1

func NewQBitArray_1(size int, val bool) *QBitArray

Constructs an empty bit array.

See also isEmpty().

func NewQBitArray_1_

func NewQBitArray_1_(size int) *QBitArray

Constructs an empty bit array.

See also isEmpty().

func (*QBitArray) At

func (this *QBitArray) At(i int) bool

Returns the value of the bit at index position i.

i must be a valid index position in the bit array (i.e., 0 <= i < size()).

See also operator[]().

func (*QBitArray) Clear

func (this *QBitArray) Clear()

Clears the contents of the bit array and makes it empty.

See also resize() and isEmpty().

func (*QBitArray) ClearBit

func (this *QBitArray) ClearBit(i int)

Sets the bit at index position i to 0.

i must be a valid index position in the bit array (i.e., 0 <= i < size()).

See also setBit() and toggleBit().

func (*QBitArray) Count

func (this *QBitArray) Count() int

Same as size().

func (*QBitArray) Count_1

func (this *QBitArray) Count_1(on bool) int

Same as size().

func (*QBitArray) Detach

func (this *QBitArray) Detach()

func (*QBitArray) Fill

func (this *QBitArray) Fill(val bool, size int) bool

Sets every bit in the bit array to value, returning true if successful; otherwise returns false. If size is different from -1 (the default), the bit array is resized to size beforehand.

Example:

QBitArray ba(8);
ba.fill(true);
// ba: [ 1, 1, 1, 1, 1, 1, 1, 1 ]

ba.fill(false, 2);
// ba: [ 0, 0 ]

See also resize().

func (*QBitArray) Fill_1

func (this *QBitArray) Fill_1(val bool, first int, last int)

Sets every bit in the bit array to value, returning true if successful; otherwise returns false. If size is different from -1 (the default), the bit array is resized to size beforehand.

Example:

QBitArray ba(8);
ba.fill(true);
// ba: [ 1, 1, 1, 1, 1, 1, 1, 1 ]

ba.fill(false, 2);
// ba: [ 0, 0 ]

See also resize().

func (*QBitArray) Fill__

func (this *QBitArray) Fill__(val bool) bool

Sets every bit in the bit array to value, returning true if successful; otherwise returns false. If size is different from -1 (the default), the bit array is resized to size beforehand.

Example:

QBitArray ba(8);
ba.fill(true);
// ba: [ 1, 1, 1, 1, 1, 1, 1, 1 ]

ba.fill(false, 2);
// ba: [ 0, 0 ]

See also resize().

func (*QBitArray) GetCthis

func (this *QBitArray) GetCthis() unsafe.Pointer

func (*QBitArray) IsDetached

func (this *QBitArray) IsDetached() bool

func (*QBitArray) IsEmpty

func (this *QBitArray) IsEmpty() bool

Returns true if this bit array has size 0; otherwise returns false.

See also size().

func (*QBitArray) IsNull

func (this *QBitArray) IsNull() bool

Returns true if this bit array is null; otherwise returns false.

Example:

QBitArray().isNull();           // returns true
QBitArray(0).isNull();          // returns false
QBitArray(3).isNull();          // returns false

Qt makes a distinction between null bit arrays and empty bit arrays for historical reasons. For most applications, what matters is whether or not a bit array contains any data, and this can be determined using isEmpty().

See also isEmpty().

func (*QBitArray) NewFromPointer

func (*QBitArray) NewFromPointer(cthis unsafe.Pointer) *QBitArray

func (*QBitArray) Operator_and_equal

func (this *QBitArray) Operator_and_equal(arg0 QBitArray_ITF) *QBitArray

func (*QBitArray) Operator_around

func (this *QBitArray) Operator_around() *QBitArray

func (*QBitArray) Operator_caret_equal

func (this *QBitArray) Operator_caret_equal(arg0 QBitArray_ITF) *QBitArray

func (*QBitArray) Operator_equal

func (this *QBitArray) Operator_equal(other QBitArray_ITF) *QBitArray

func (*QBitArray) Operator_equal_1

func (this *QBitArray) Operator_equal_1(other unsafe.Pointer) *QBitArray

func (*QBitArray) Operator_equal_equal

func (this *QBitArray) Operator_equal_equal(other QBitArray_ITF) bool

func (*QBitArray) Operator_get_index

func (this *QBitArray) Operator_get_index(i int) *QBitRef

func (*QBitArray) Operator_get_index_1

func (this *QBitArray) Operator_get_index_1(i int) bool

func (*QBitArray) Operator_get_index_2

func (this *QBitArray) Operator_get_index_2(i uint) *QBitRef

func (*QBitArray) Operator_get_index_3

func (this *QBitArray) Operator_get_index_3(i uint) bool

func (*QBitArray) Operator_not_equal

func (this *QBitArray) Operator_not_equal(other QBitArray_ITF) bool

func (*QBitArray) Operator_or_equal

func (this *QBitArray) Operator_or_equal(arg0 QBitArray_ITF) *QBitArray

func (*QBitArray) QBitArray_PTR

func (ptr *QBitArray) QBitArray_PTR() *QBitArray

func (*QBitArray) Resize

func (this *QBitArray) Resize(size int)

Resizes the bit array to size bits.

If size is greater than the current size, the bit array is extended to make it size bits with the extra bits added to the end. The new bits are initialized to false (0).

If size is less than the current size, bits are removed from the end.

See also size().

func (*QBitArray) SetBit

func (this *QBitArray) SetBit(i int)

Sets the bit at index position i to 1.

i must be a valid index position in the bit array (i.e., 0 <= i < size()).

See also clearBit() and toggleBit().

func (*QBitArray) SetBit_1

func (this *QBitArray) SetBit_1(i int, val bool)

Sets the bit at index position i to 1.

i must be a valid index position in the bit array (i.e., 0 <= i < size()).

See also clearBit() and toggleBit().

func (*QBitArray) SetCthis

func (this *QBitArray) SetCthis(cthis unsafe.Pointer)

func (*QBitArray) Size

func (this *QBitArray) Size() int

Returns the number of bits stored in the bit array.

See also resize().

func (*QBitArray) Swap

func (this *QBitArray) Swap(other QBitArray_ITF)

Swaps bit array other with this bit array. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func (*QBitArray) TestBit

func (this *QBitArray) TestBit(i int) bool

Returns true if the bit at index position i is 1; otherwise returns false.

i must be a valid index position in the bit array (i.e., 0 <= i < size()).

See also setBit() and clearBit().

func (*QBitArray) ToggleBit

func (this *QBitArray) ToggleBit(i int) bool

Inverts the value of the bit at index position i, returning the previous value of that bit as either true (if it was set) or false (if it was unset).

If the previous value was 0, the new value will be 1. If the previous value was 1, the new value will be 0.

i must be a valid index position in the bit array (i.e., 0 <= i < size()).

See also setBit() and clearBit().

func (*QBitArray) Truncate

func (this *QBitArray) Truncate(pos int)

Truncates the bit array at index position pos.

If pos is beyond the end of the array, nothing happens.

See also resize().

type QBitArray_ITF

type QBitArray_ITF interface {
	QBitArray_PTR() *QBitArray
}

type QBitRef

type QBitRef struct {
	*qtrt.CObject
}

func NewQBitRefFromPointer

func NewQBitRefFromPointer(cthis unsafe.Pointer) *QBitRef

func (*QBitRef) GetCthis

func (this *QBitRef) GetCthis() unsafe.Pointer

func (*QBitRef) NewFromPointer

func (*QBitRef) NewFromPointer(cthis unsafe.Pointer) *QBitRef

func (*QBitRef) Operator_equal

func (this *QBitRef) Operator_equal(val QBitRef_ITF) *QBitRef

func (*QBitRef) Operator_equal_1

func (this *QBitRef) Operator_equal_1(val bool) *QBitRef

func (*QBitRef) Operator_not

func (this *QBitRef) Operator_not() bool

func (*QBitRef) QBitRef_PTR

func (ptr *QBitRef) QBitRef_PTR() *QBitRef

func (*QBitRef) SetCthis

func (this *QBitRef) SetCthis(cthis unsafe.Pointer)

type QBitRef_ITF

type QBitRef_ITF interface {
	QBitRef_PTR() *QBitRef
}

type QBuffer

type QBuffer struct {
	*QIODevice
}

func NewQBuffer

func NewQBuffer(parent QObject_ITF) *QBuffer

Constructs an empty buffer with the given parent. You can call setData() to fill the buffer with data, or you can open it in write mode and use write().

See also open().

func NewQBufferFromPointer

func NewQBufferFromPointer(cthis unsafe.Pointer) *QBuffer

func NewQBuffer_1

func NewQBuffer_1(buf QByteArray_ITF, parent QObject_ITF) *QBuffer

Constructs an empty buffer with the given parent. You can call setData() to fill the buffer with data, or you can open it in write mode and use write().

See also open().

func NewQBuffer_1_

func NewQBuffer_1_(buf QByteArray_ITF) *QBuffer

Constructs an empty buffer with the given parent. You can call setData() to fill the buffer with data, or you can open it in write mode and use write().

See also open().

func NewQBuffer__

func NewQBuffer__() *QBuffer

Constructs an empty buffer with the given parent. You can call setData() to fill the buffer with data, or you can open it in write mode and use write().

See also open().

func (*QBuffer) AtEnd

func (this *QBuffer) AtEnd() bool

Reimplemented from QIODevice::atEnd().

func (*QBuffer) Buffer

func (this *QBuffer) Buffer() *QByteArray

Returns a reference to the QBuffer's internal buffer. You can use it to modify the QByteArray behind the QBuffer's back.

See also setBuffer() and data().

func (*QBuffer) Buffer_1

func (this *QBuffer) Buffer_1() *QByteArray

Returns a reference to the QBuffer's internal buffer. You can use it to modify the QByteArray behind the QBuffer's back.

See also setBuffer() and data().

func (*QBuffer) CanReadLine

func (this *QBuffer) CanReadLine() bool

Reimplemented from QIODevice::canReadLine().

func (*QBuffer) Close

func (this *QBuffer) Close()

Reimplemented from QIODevice::close().

func (*QBuffer) ConnectNotify

func (this *QBuffer) ConnectNotify(arg0 QMetaMethod_ITF)

func (*QBuffer) Data

func (this *QBuffer) Data() *QByteArray

Returns the data contained in the buffer.

This is the same as buffer().

See also setData() and setBuffer().

func (*QBuffer) DisconnectNotify

func (this *QBuffer) DisconnectNotify(arg0 QMetaMethod_ITF)

func (*QBuffer) GetCthis

func (this *QBuffer) GetCthis() unsafe.Pointer

func (*QBuffer) InheritConnectNotify

func (this *QBuffer) InheritConnectNotify(f func(arg0 *QMetaMethod))

void connectNotify(const class QMetaMethod &)

func (*QBuffer) InheritDisconnectNotify

func (this *QBuffer) InheritDisconnectNotify(f func(arg0 *QMetaMethod))

void disconnectNotify(const class QMetaMethod &)

func (*QBuffer) InheritReadData

func (this *QBuffer) InheritReadData(f func(data string, maxlen int64) int64)

long long readData(char *, qint64)

func (*QBuffer) InheritWriteData

func (this *QBuffer) InheritWriteData(f func(data string, len_ int64) int64)

long long writeData(const char *, qint64)

func (*QBuffer) MetaObject

func (this *QBuffer) MetaObject() *QMetaObject

func (*QBuffer) NewFromPointer

func (*QBuffer) NewFromPointer(cthis unsafe.Pointer) *QBuffer

func (*QBuffer) Open

func (this *QBuffer) Open(openMode int) bool

Reimplemented from QIODevice::open().

func (*QBuffer) Pos

func (this *QBuffer) Pos() int64

Reimplemented from QIODevice::pos().

func (*QBuffer) QBuffer_PTR

func (ptr *QBuffer) QBuffer_PTR() *QBuffer

func (*QBuffer) ReadData

func (this *QBuffer) ReadData(data string, maxlen int64) int64

Reimplemented from QIODevice::readData().

func (*QBuffer) Seek

func (this *QBuffer) Seek(off int64) bool

Reimplemented from QIODevice::seek().

func (*QBuffer) SetBuffer

func (this *QBuffer) SetBuffer(a QByteArray_ITF)

Makes QBuffer uses the QByteArray pointed to by byteArray as its internal buffer. The caller is responsible for ensuring that byteArray remains valid until the QBuffer is destroyed, or until setBuffer() is called to change the buffer. QBuffer doesn't take ownership of the QByteArray.

Does nothing if isOpen() is true.

If you open the buffer in write-only mode or read-write mode and write something into the QBuffer, byteArray will be modified.

Example:

QByteArray byteArray("abc");
QBuffer buffer;
buffer.setBuffer(&byteArray);
buffer.open(QIODevice::WriteOnly);
buffer.seek(3);
buffer.write("def", 3);
buffer.close();
// byteArray == "abcdef"

If byteArray is 0, the buffer creates its own internal QByteArray to work on. This byte array is initially empty.

See also buffer(), setData(), and open().

func (*QBuffer) SetCthis

func (this *QBuffer) SetCthis(cthis unsafe.Pointer)

func (*QBuffer) SetData

func (this *QBuffer) SetData(data QByteArray_ITF)

Sets the contents of the internal buffer to be data. This is the same as assigning data to buffer().

Does nothing if isOpen() is true.

See also data() and setBuffer().

func (*QBuffer) SetData_1

func (this *QBuffer) SetData_1(data string, len_ int)

Sets the contents of the internal buffer to be data. This is the same as assigning data to buffer().

Does nothing if isOpen() is true.

See also data() and setBuffer().

func (*QBuffer) Size

func (this *QBuffer) Size() int64

Reimplemented from QIODevice::size().

func (*QBuffer) WriteData

func (this *QBuffer) WriteData(data string, len_ int64) int64

Reimplemented from QIODevice::writeData().

type QBuffer_ITF

type QBuffer_ITF interface {
	QIODevice_ITF
	QBuffer_PTR() *QBuffer
}

type QByteArray

type QByteArray struct {
	*qtrt.CObject
}

func NewQByteArray

func NewQByteArray() *QByteArray

Constructs an empty byte array.

See also isEmpty().

func NewQByteArrayFromPointer

func NewQByteArrayFromPointer(cthis unsafe.Pointer) *QByteArray

func NewQByteArray_1

func NewQByteArray_1(arg0 string, size int) *QByteArray

Constructs an empty byte array.

See also isEmpty().

func NewQByteArray_1_

func NewQByteArray_1_(arg0 string) *QByteArray

Constructs an empty byte array.

See also isEmpty().

func NewQByteArray_2

func NewQByteArray_2(size int, c byte) *QByteArray

Constructs an empty byte array.

See also isEmpty().

func NewQByteArray_3

func NewQByteArray_3(size int, arg1 int) *QByteArray

Constructs an empty byte array.

See also isEmpty().

func QByteArray_FromBase64

func QByteArray_FromBase64(base64 QByteArray_ITF, options int) *QByteArray

func QByteArray_FromBase64_1

func QByteArray_FromBase64_1(base64 QByteArray_ITF) *QByteArray

func QByteArray_FromHex

func QByteArray_FromHex(hexEncoded QByteArray_ITF) *QByteArray

func QByteArray_FromPercentEncoding

func QByteArray_FromPercentEncoding(pctEncoded QByteArray_ITF, percent byte) *QByteArray

func QByteArray_FromRawData

func QByteArray_FromRawData(arg0 string, size int) *QByteArray

func QByteArray_Number

func QByteArray_Number(arg0 int, base int) *QByteArray

func QByteArray_Number_1

func QByteArray_Number_1(arg0 uint, base int) *QByteArray

func QByteArray_Number_2

func QByteArray_Number_2(arg0 int64, base int) *QByteArray

func QByteArray_Number_3

func QByteArray_Number_3(arg0 uint64, base int) *QByteArray

func QByteArray_Number_4

func QByteArray_Number_4(arg0 float64, f byte, prec int) *QByteArray

func QCompress

func QCompress(data QByteArray_ITF, compressionLevel int) *QByteArray

This is an overloaded function.

Compresses the first nbytes of data at compression level compressionLevel and returns the compressed data in a new byte array.

func QCompress_1

func QCompress_1(data unsafe.Pointer, nbytes int, compressionLevel int) *QByteArray

This is an overloaded function.

Compresses the first nbytes of data at compression level compressionLevel and returns the compressed data in a new byte array.

func QCryptographicHash_Hash

func QCryptographicHash_Hash(data QByteArray_ITF, method int) *QByteArray

func QFile_EncodeName

func QFile_EncodeName(fileName string) *QByteArray

func QMessageAuthenticationCode_Hash

func QMessageAuthenticationCode_Hash(message QByteArray_ITF, key QByteArray_ITF, method int) *QByteArray

func QMetaObject_NormalizedSignature

func QMetaObject_NormalizedSignature(method string) *QByteArray

func QMetaObject_NormalizedType

func QMetaObject_NormalizedType(type_ string) *QByteArray

func QTimeZone_IanaIdToWindowsId

func QTimeZone_IanaIdToWindowsId(ianaId QByteArray_ITF) *QByteArray

func QTimeZone_SystemTimeZoneId

func QTimeZone_SystemTimeZoneId() *QByteArray

func QTimeZone_WindowsIdToDefaultIanaId

func QTimeZone_WindowsIdToDefaultIanaId(windowsId QByteArray_ITF) *QByteArray

func QTimeZone_WindowsIdToDefaultIanaId_1

func QTimeZone_WindowsIdToDefaultIanaId_1(windowsId QByteArray_ITF, country int) *QByteArray

func QUncompress

func QUncompress(data QByteArray_ITF) *QByteArray

This is an overloaded function.

Uncompresses the first nbytes of data and returns a new byte array with the uncompressed data.

func QUncompress_1

func QUncompress_1(data unsafe.Pointer, nbytes int) *QByteArray

This is an overloaded function.

Uncompresses the first nbytes of data and returns a new byte array with the uncompressed data.

func QUrl_ToAce

func QUrl_ToAce(arg0 string) *QByteArray

func QUrl_ToPercentEncoding

func QUrl_ToPercentEncoding(arg0 string, exclude QByteArray_ITF, include QByteArray_ITF) *QByteArray

func Qgetenv

func Qgetenv(varName string) *QByteArray

func (*QByteArray) At

func (this *QByteArray) At(i int) byte

Returns the character at index position i in the byte array.

i must be a valid index position in the byte array (i.e., 0 <= i < size()).

See also operator[]().

func (*QByteArray) Back

func (this *QByteArray) Back() byte

Returns the last character in the byte array. Same as at(size() - 1).

This function is provided for STL compatibility.

Warning: Calling this function on an empty byte array constitutes undefined behavior.

This function was introduced in Qt 5.10.

See also front(), at(), and operator[]().

func (*QByteArray) Back_1

func (this *QByteArray) Back_1() *QByteRef

Returns the last character in the byte array. Same as at(size() - 1).

This function is provided for STL compatibility.

Warning: Calling this function on an empty byte array constitutes undefined behavior.

This function was introduced in Qt 5.10.

See also front(), at(), and operator[]().

func (*QByteArray) Begin

func (this *QByteArray) Begin() string

Returns an STL-style iterator pointing to the first character in the byte-array.

See also constBegin() and end().

func (*QByteArray) Begin_1

func (this *QByteArray) Begin_1() string

Returns an STL-style iterator pointing to the first character in the byte-array.

See also constBegin() and end().

func (*QByteArray) Capacity

func (this *QByteArray) Capacity() int

Returns the maximum number of bytes that can be stored in the byte array without forcing a reallocation.

The sole purpose of this function is to provide a means of fine tuning QByteArray's memory usage. In general, you will rarely ever need to call this function. If you want to know how many bytes are in the byte array, call size().

See also reserve() and squeeze().

func (*QByteArray) Cbegin

func (this *QByteArray) Cbegin() string

Returns a const STL-style iterator pointing to the first character in the byte-array.

This function was introduced in Qt 5.0.

See also begin() and cend().

func (*QByteArray) Cend

func (this *QByteArray) Cend() string

Returns a const STL-style iterator pointing to the imaginary character after the last character in the list.

This function was introduced in Qt 5.0.

See also cbegin() and end().

func (*QByteArray) Chop

func (this *QByteArray) Chop(n int)

Removes n bytes from the end of the byte array.

If n is greater than size(), the result is an empty byte array.

Example:

QByteArray ba("STARTTLS\r\n");
ba.chop(2);                 // ba == "STARTTLS"

See also truncate(), resize(), and left().

func (*QByteArray) Chopped

func (this *QByteArray) Chopped(len_ int) *QByteArray

Returns a byte array that contains the leftmost size() - len bytes of this byte array.

Note: The behavior is undefined if len is negative or greater than size().

This function was introduced in Qt 5.10.

See also endsWith(), left(), right(), mid(), chop(), and truncate().

func (*QByteArray) Clear

func (this *QByteArray) Clear()

Clears the contents of the byte array and makes it null.

See also resize() and isNull().

func (*QByteArray) ConstBegin

func (this *QByteArray) ConstBegin() string

Returns a const STL-style iterator pointing to the first character in the byte-array.

See also begin() and constEnd().

func (*QByteArray) ConstData

func (this *QByteArray) ConstData() string

Returns a pointer to the data stored in the byte array. The pointer can be used to access the bytes that compose the array. The data is '\0'-terminated unless the QByteArray object was created from raw data. The pointer remains valid as long as the byte array isn't reallocated or destroyed.

This function is mostly useful to pass a byte array to a function that accepts a const char *.

Note: A QByteArray can store any byte values including '\0's, but most functions that take char * arguments assume that the data ends at the first '\0' they encounter.

See also data(), operator[](), and fromRawData().

func (*QByteArray) ConstEnd

func (this *QByteArray) ConstEnd() string

Returns a const STL-style iterator pointing to the imaginary character after the last character in the list.

See also constBegin() and end().

func (*QByteArray) Contains

func (this *QByteArray) Contains(c byte) bool

Returns true if the byte array contains an occurrence of the byte array ba; otherwise returns false.

See also indexOf() and count().

func (*QByteArray) Contains_1

func (this *QByteArray) Contains_1(a string) bool

Returns true if the byte array contains an occurrence of the byte array ba; otherwise returns false.

See also indexOf() and count().

func (*QByteArray) Contains_2

func (this *QByteArray) Contains_2(a QByteArray_ITF) bool

Returns true if the byte array contains an occurrence of the byte array ba; otherwise returns false.

See also indexOf() and count().

func (*QByteArray) Count

func (this *QByteArray) Count(c byte) int

Returns the number of (potentially overlapping) occurrences of byte array ba in this byte array.

See also contains() and indexOf().

func (*QByteArray) Count_1

func (this *QByteArray) Count_1(a string) int

Returns the number of (potentially overlapping) occurrences of byte array ba in this byte array.

See also contains() and indexOf().

func (*QByteArray) Count_2

func (this *QByteArray) Count_2(a QByteArray_ITF) int

Returns the number of (potentially overlapping) occurrences of byte array ba in this byte array.

See also contains() and indexOf().

func (*QByteArray) Count_3

func (this *QByteArray) Count_3() int

Returns the number of (potentially overlapping) occurrences of byte array ba in this byte array.

See also contains() and indexOf().

func (*QByteArray) Data

func (this *QByteArray) Data() string

Returns a pointer to the data stored in the byte array. The pointer can be used to access and modify the bytes that compose the array. The data is '\0'-terminated, i.e. the number of bytes in the returned character string is size() + 1 for the '\0' terminator.

Example:

QByteArray ba("Hello world");
char *data = ba.data();
while (*data) {
    cout << "[" << *data << "]" << endl;
    ++data;
}

The pointer remains valid as long as the byte array isn't reallocated or destroyed. For read-only access, constData() is faster because it never causes a deep copy to occur.

This function is mostly useful to pass a byte array to a function that accepts a const char *.

The following example makes a copy of the char* returned by data(), but it will corrupt the heap and cause a crash because it does not allocate a byte for the '\0' at the end:

QString tmp = "test";
QByteArray text = tmp.toLocal8Bit();
char *data = new char[text.size()];
strcpy(data, text.data());
delete [] data;

This one allocates the correct amount of space:

QString tmp = "test";
QByteArray text = tmp.toLocal8Bit();
char *data = new char[text.size() + 1];
strcpy(data, text.data());
delete [] data;

Note: A QByteArray can store any byte values including '\0's, but most functions that take char * arguments assume that the data ends at the first '\0' they encounter.

See also constData() and operator[]().

func (*QByteArray) Data_1

func (this *QByteArray) Data_1() string

Returns a pointer to the data stored in the byte array. The pointer can be used to access and modify the bytes that compose the array. The data is '\0'-terminated, i.e. the number of bytes in the returned character string is size() + 1 for the '\0' terminator.

Example:

QByteArray ba("Hello world");
char *data = ba.data();
while (*data) {
    cout << "[" << *data << "]" << endl;
    ++data;
}

The pointer remains valid as long as the byte array isn't reallocated or destroyed. For read-only access, constData() is faster because it never causes a deep copy to occur.

This function is mostly useful to pass a byte array to a function that accepts a const char *.

The following example makes a copy of the char* returned by data(), but it will corrupt the heap and cause a crash because it does not allocate a byte for the '\0' at the end:

QString tmp = "test";
QByteArray text = tmp.toLocal8Bit();
char *data = new char[text.size()];
strcpy(data, text.data());
delete [] data;

This one allocates the correct amount of space:

QString tmp = "test";
QByteArray text = tmp.toLocal8Bit();
char *data = new char[text.size() + 1];
strcpy(data, text.data());
delete [] data;

Note: A QByteArray can store any byte values including '\0's, but most functions that take char * arguments assume that the data ends at the first '\0' they encounter.

See also constData() and operator[]().

func (*QByteArray) Detach

func (this *QByteArray) Detach()

func (*QByteArray) End

func (this *QByteArray) End() string

Returns an STL-style iterator pointing to the imaginary character after the last character in the byte-array.

See also begin() and constEnd().

func (*QByteArray) End_1

func (this *QByteArray) End_1() string

Returns an STL-style iterator pointing to the imaginary character after the last character in the byte-array.

See also begin() and constEnd().

func (*QByteArray) EndsWith

func (this *QByteArray) EndsWith(a QByteArray_ITF) bool

Returns true if this byte array ends with byte array ba; otherwise returns false.

Example:

QByteArray url("http://qt-project.org/doc/qt-5.0/qtdoc/index.html");
if (url.endsWith(".html"))
    ...

See also startsWith() and right().

func (*QByteArray) EndsWith_1

func (this *QByteArray) EndsWith_1(c byte) bool

Returns true if this byte array ends with byte array ba; otherwise returns false.

Example:

QByteArray url("http://qt-project.org/doc/qt-5.0/qtdoc/index.html");
if (url.endsWith(".html"))
    ...

See also startsWith() and right().

func (*QByteArray) EndsWith_2

func (this *QByteArray) EndsWith_2(c string) bool

Returns true if this byte array ends with byte array ba; otherwise returns false.

Example:

QByteArray url("http://qt-project.org/doc/qt-5.0/qtdoc/index.html");
if (url.endsWith(".html"))
    ...

See also startsWith() and right().

func (*QByteArray) Fill

func (this *QByteArray) Fill(c byte, size int) *QByteArray

Sets every byte in the byte array to character ch. If size is different from -1 (the default), the byte array is resized to size size beforehand.

Example:

QByteArray ba("Istambul");
ba.fill('o');
// ba == "oooooooo"

ba.fill('X', 2);
// ba == "XX"

See also resize().

func (*QByteArray) Fill__

func (this *QByteArray) Fill__(c byte) *QByteArray

Sets every byte in the byte array to character ch. If size is different from -1 (the default), the byte array is resized to size size beforehand.

Example:

QByteArray ba("Istambul");
ba.fill('o');
// ba == "oooooooo"

ba.fill('X', 2);
// ba == "XX"

See also resize().

func (*QByteArray) FromBase64

func (this *QByteArray) FromBase64(base64 QByteArray_ITF, options int) *QByteArray

Returns a decoded copy of the Base64 array base64. Input is not checked for validity; invalid characters in the input are skipped, enabling the decoding process to continue with subsequent characters.

For example:

QByteArray text = QByteArray::fromBase64("UXQgaXMgZ3JlYXQh");
text.data();            // returns "Qt is great!"

The algorithm used to decode Base64-encoded data is defined in RFC 4648.

See also toBase64().

func (*QByteArray) FromBase64_1

func (this *QByteArray) FromBase64_1(base64 QByteArray_ITF) *QByteArray

Returns a decoded copy of the Base64 array base64. Input is not checked for validity; invalid characters in the input are skipped, enabling the decoding process to continue with subsequent characters.

For example:

QByteArray text = QByteArray::fromBase64("UXQgaXMgZ3JlYXQh");
text.data();            // returns "Qt is great!"

The algorithm used to decode Base64-encoded data is defined in RFC 4648.

See also toBase64().

func (*QByteArray) FromHex

func (this *QByteArray) FromHex(hexEncoded QByteArray_ITF) *QByteArray

Returns a decoded copy of the hex encoded array hexEncoded. Input is not checked for validity; invalid characters in the input are skipped, enabling the decoding process to continue with subsequent characters.

For example:

QByteArray text = QByteArray::fromHex("517420697320677265617421");
text.data();            // returns "Qt is great!"

See also toHex().

func (*QByteArray) FromPercentEncoding

func (this *QByteArray) FromPercentEncoding(pctEncoded QByteArray_ITF, percent byte) *QByteArray

Returns a decoded copy of the URI/URL-style percent-encoded input. The percent parameter allows you to replace the '%' character for another (for instance, '_' or '=').

For example:

QByteArray text = QByteArray::fromPercentEncoding("Qt%20is%20great%33");
text.data();            // returns "Qt is great!"

Note: Given invalid input (such as a string containing the sequence "%G5", which is not a valid hexadecimal number) the output will be invalid as well. As an example: the sequence "%G5" could be decoded to 'W'.

This function was introduced in Qt 4.4.

See also toPercentEncoding() and QUrl::fromPercentEncoding().

func (*QByteArray) FromPercentEncoding__

func (this *QByteArray) FromPercentEncoding__(pctEncoded QByteArray_ITF) *QByteArray

Returns a decoded copy of the URI/URL-style percent-encoded input. The percent parameter allows you to replace the '%' character for another (for instance, '_' or '=').

For example:

QByteArray text = QByteArray::fromPercentEncoding("Qt%20is%20great%33");
text.data();            // returns "Qt is great!"

Note: Given invalid input (such as a string containing the sequence "%G5", which is not a valid hexadecimal number) the output will be invalid as well. As an example: the sequence "%G5" could be decoded to 'W'.

This function was introduced in Qt 4.4.

See also toPercentEncoding() and QUrl::fromPercentEncoding().

func (*QByteArray) FromRawData

func (this *QByteArray) FromRawData(arg0 string, size int) *QByteArray

Constructs a QByteArray that uses the first size bytes of the data array. The bytes are not copied. The QByteArray will contain the data pointer. The caller guarantees that data will not be deleted or modified as long as this QByteArray and any copies of it exist that have not been modified. In other words, because QByteArray is an implicitly shared class and the instance returned by this function contains the data pointer, the caller must not delete data or modify it directly as long as the returned QByteArray and any copies exist. However, QByteArray does not take ownership of data, so the QByteArray destructor will never delete the raw data, even when the last QByteArray referring to data is destroyed.

A subsequent attempt to modify the contents of the returned QByteArray or any copy made from it will cause it to create a deep copy of the data array before doing the modification. This ensures that the raw data array itself will never be modified by QByteArray.

Here is an example of how to read data using a QDataStream on raw data in memory without copying the raw data into a QByteArray:

 static const char mydata[] = {
    0x00, 0x00, 0x03, 0x84, 0x78, 0x9c, 0x3b, 0x76,
    0xec, 0x18, 0xc3, 0x31, 0x0a, 0xf1, 0xcc, 0x99,
    ...
    0x6d, 0x5b
};

QByteArray data = QByteArray::fromRawData(mydata, sizeof(mydata));
QDataStream in(&data, QIODevice::ReadOnly);
...

Warning: A byte array created with fromRawData() is not null-terminated, unless the raw data contains a 0 character at position size. While that does not matter for QDataStream or functions like indexOf(), passing the byte array to a function accepting a const char * expected to be '\0'-terminated will fail.

See also setRawData(), data(), and constData().

func (*QByteArray) Front

func (this *QByteArray) Front() byte

Returns the first character in the byte array. Same as at(0).

This function is provided for STL compatibility.

Warning: Calling this function on an empty byte array constitutes undefined behavior.

This function was introduced in Qt 5.10.

See also back(), at(), and operator[]().

func (*QByteArray) Front_1

func (this *QByteArray) Front_1() *QByteRef

Returns the first character in the byte array. Same as at(0).

This function is provided for STL compatibility.

Warning: Calling this function on an empty byte array constitutes undefined behavior.

This function was introduced in Qt 5.10.

See also back(), at(), and operator[]().

func (*QByteArray) GetCthis

func (this *QByteArray) GetCthis() unsafe.Pointer

func (*QByteArray) IndexOf

func (this *QByteArray) IndexOf(c byte, from int) int

Returns the index position of the first occurrence of the byte array ba in this byte array, searching forward from index position from. Returns -1 if ba could not be found.

Example:

QByteArray x("sticky question");
QByteArray y("sti");
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

See also lastIndexOf(), contains(), and count().

func (*QByteArray) IndexOf_1

func (this *QByteArray) IndexOf_1(c string, from int) int

Returns the index position of the first occurrence of the byte array ba in this byte array, searching forward from index position from. Returns -1 if ba could not be found.

Example:

QByteArray x("sticky question");
QByteArray y("sti");
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

See also lastIndexOf(), contains(), and count().

func (*QByteArray) IndexOf_1_

func (this *QByteArray) IndexOf_1_(c string) int

Returns the index position of the first occurrence of the byte array ba in this byte array, searching forward from index position from. Returns -1 if ba could not be found.

Example:

QByteArray x("sticky question");
QByteArray y("sti");
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

See also lastIndexOf(), contains(), and count().

func (*QByteArray) IndexOf_2

func (this *QByteArray) IndexOf_2(a QByteArray_ITF, from int) int

Returns the index position of the first occurrence of the byte array ba in this byte array, searching forward from index position from. Returns -1 if ba could not be found.

Example:

QByteArray x("sticky question");
QByteArray y("sti");
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

See also lastIndexOf(), contains(), and count().

func (*QByteArray) IndexOf_2_

func (this *QByteArray) IndexOf_2_(a QByteArray_ITF) int

Returns the index position of the first occurrence of the byte array ba in this byte array, searching forward from index position from. Returns -1 if ba could not be found.

Example:

QByteArray x("sticky question");
QByteArray y("sti");
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

See also lastIndexOf(), contains(), and count().

func (*QByteArray) IndexOf_3

func (this *QByteArray) IndexOf_3(s string, from int) int

Returns the index position of the first occurrence of the byte array ba in this byte array, searching forward from index position from. Returns -1 if ba could not be found.

Example:

QByteArray x("sticky question");
QByteArray y("sti");
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

See also lastIndexOf(), contains(), and count().

func (*QByteArray) IndexOf_3_

func (this *QByteArray) IndexOf_3_(s string) int

Returns the index position of the first occurrence of the byte array ba in this byte array, searching forward from index position from. Returns -1 if ba could not be found.

Example:

QByteArray x("sticky question");
QByteArray y("sti");
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

See also lastIndexOf(), contains(), and count().

func (*QByteArray) IndexOf__

func (this *QByteArray) IndexOf__(c byte) int

Returns the index position of the first occurrence of the byte array ba in this byte array, searching forward from index position from. Returns -1 if ba could not be found.

Example:

QByteArray x("sticky question");
QByteArray y("sti");
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

See also lastIndexOf(), contains(), and count().

func (*QByteArray) IsDetached

func (this *QByteArray) IsDetached() bool

func (*QByteArray) IsEmpty

func (this *QByteArray) IsEmpty() bool

Returns true if the byte array has size 0; otherwise returns false.

Example:

QByteArray().isEmpty();         // returns true
QByteArray("").isEmpty();       // returns true
QByteArray("abc").isEmpty();    // returns false

See also size().

func (*QByteArray) IsNull

func (this *QByteArray) IsNull() bool

Returns true if this byte array is null; otherwise returns false.

Example:

QByteArray().isNull();          // returns true
QByteArray("").isNull();        // returns false
QByteArray("abc").isNull();     // returns false

Qt makes a distinction between null byte arrays and empty byte arrays for historical reasons. For most applications, what matters is whether or not a byte array contains any data, and this can be determined using isEmpty().

See also isEmpty().

func (*QByteArray) IsSharedWith

func (this *QByteArray) IsSharedWith(other QByteArray_ITF) bool

func (*QByteArray) LastIndexOf

func (this *QByteArray) LastIndexOf(c byte, from int) int

Returns the index position of the last occurrence of the byte array ba in this byte array, searching backward from index position from. If from is -1 (the default), the search starts at the last byte. Returns -1 if ba could not be found.

Example:

QByteArray x("crazy azimuths");
QByteArray y("az");
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QByteArray) LastIndexOf_1

func (this *QByteArray) LastIndexOf_1(c string, from int) int

Returns the index position of the last occurrence of the byte array ba in this byte array, searching backward from index position from. If from is -1 (the default), the search starts at the last byte. Returns -1 if ba could not be found.

Example:

QByteArray x("crazy azimuths");
QByteArray y("az");
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QByteArray) LastIndexOf_1_

func (this *QByteArray) LastIndexOf_1_(c string) int

Returns the index position of the last occurrence of the byte array ba in this byte array, searching backward from index position from. If from is -1 (the default), the search starts at the last byte. Returns -1 if ba could not be found.

Example:

QByteArray x("crazy azimuths");
QByteArray y("az");
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QByteArray) LastIndexOf_2

func (this *QByteArray) LastIndexOf_2(a QByteArray_ITF, from int) int

Returns the index position of the last occurrence of the byte array ba in this byte array, searching backward from index position from. If from is -1 (the default), the search starts at the last byte. Returns -1 if ba could not be found.

Example:

QByteArray x("crazy azimuths");
QByteArray y("az");
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QByteArray) LastIndexOf_2_

func (this *QByteArray) LastIndexOf_2_(a QByteArray_ITF) int

Returns the index position of the last occurrence of the byte array ba in this byte array, searching backward from index position from. If from is -1 (the default), the search starts at the last byte. Returns -1 if ba could not be found.

Example:

QByteArray x("crazy azimuths");
QByteArray y("az");
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QByteArray) LastIndexOf_3

func (this *QByteArray) LastIndexOf_3(s string, from int) int

Returns the index position of the last occurrence of the byte array ba in this byte array, searching backward from index position from. If from is -1 (the default), the search starts at the last byte. Returns -1 if ba could not be found.

Example:

QByteArray x("crazy azimuths");
QByteArray y("az");
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QByteArray) LastIndexOf_3_

func (this *QByteArray) LastIndexOf_3_(s string) int

Returns the index position of the last occurrence of the byte array ba in this byte array, searching backward from index position from. If from is -1 (the default), the search starts at the last byte. Returns -1 if ba could not be found.

Example:

QByteArray x("crazy azimuths");
QByteArray y("az");
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QByteArray) LastIndexOf__

func (this *QByteArray) LastIndexOf__(c byte) int

Returns the index position of the last occurrence of the byte array ba in this byte array, searching backward from index position from. If from is -1 (the default), the search starts at the last byte. Returns -1 if ba could not be found.

Example:

QByteArray x("crazy azimuths");
QByteArray y("az");
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QByteArray) Left

func (this *QByteArray) Left(len_ int) *QByteArray

Returns a byte array that contains the leftmost len bytes of this byte array.

The entire byte array is returned if len is greater than size().

Example:

QByteArray x("Pineapple");
QByteArray y = x.left(4);
// y == "Pine"

See also startsWith(), right(), mid(), chopped(), chop(), and truncate().

func (*QByteArray) LeftJustified

func (this *QByteArray) LeftJustified(width int, fill byte, truncate bool) *QByteArray

Returns a byte array of size width that contains this byte array padded by the fill character.

If truncate is false and the size() of the byte array is more than width, then the returned byte array is a copy of this byte array.

If truncate is true and the size() of the byte array is more than width, then any bytes in a copy of the byte array after position width are removed, and the copy is returned.

Example:

QByteArray x("apple");
QByteArray y = x.leftJustified(8, '.');   // y == "apple..."

See also rightJustified().

func (*QByteArray) LeftJustified__

func (this *QByteArray) LeftJustified__(width int) *QByteArray

Returns a byte array of size width that contains this byte array padded by the fill character.

If truncate is false and the size() of the byte array is more than width, then the returned byte array is a copy of this byte array.

If truncate is true and the size() of the byte array is more than width, then any bytes in a copy of the byte array after position width are removed, and the copy is returned.

Example:

QByteArray x("apple");
QByteArray y = x.leftJustified(8, '.');   // y == "apple..."

See also rightJustified().

func (*QByteArray) LeftJustified__1

func (this *QByteArray) LeftJustified__1(width int, fill byte) *QByteArray

Returns a byte array of size width that contains this byte array padded by the fill character.

If truncate is false and the size() of the byte array is more than width, then the returned byte array is a copy of this byte array.

If truncate is true and the size() of the byte array is more than width, then any bytes in a copy of the byte array after position width are removed, and the copy is returned.

Example:

QByteArray x("apple");
QByteArray y = x.leftJustified(8, '.');   // y == "apple..."

See also rightJustified().

func (*QByteArray) Length

func (this *QByteArray) Length() int

Same as size().

func (*QByteArray) Mid

func (this *QByteArray) Mid(index int, len_ int) *QByteArray

Returns a byte array containing len bytes from this byte array, starting at position pos.

If len is -1 (the default), or pos + len >= size(), returns a byte array containing all bytes starting at position pos until the end of the byte array.

Example:

QByteArray x("Five pineapples");
QByteArray y = x.mid(5, 4);     // y == "pine"
QByteArray z = x.mid(5);        // z == "pineapples"

See also left(), right(), chopped(), chop(), and truncate().

func (*QByteArray) Mid__

func (this *QByteArray) Mid__(index int) *QByteArray

Returns a byte array containing len bytes from this byte array, starting at position pos.

If len is -1 (the default), or pos + len >= size(), returns a byte array containing all bytes starting at position pos until the end of the byte array.

Example:

QByteArray x("Five pineapples");
QByteArray y = x.mid(5, 4);     // y == "pine"
QByteArray z = x.mid(5);        // z == "pineapples"

See also left(), right(), chopped(), chop(), and truncate().

func (*QByteArray) NewFromPointer

func (*QByteArray) NewFromPointer(cthis unsafe.Pointer) *QByteArray

func (*QByteArray) Number

func (this *QByteArray) Number(arg0 int, base int) *QByteArray

Returns a byte array containing the string equivalent of the number n to base base (10 by default). The base can be any value between 2 and 36.

Example:

int n = 63;
QByteArray::number(n);              // returns "63"
QByteArray::number(n, 16);          // returns "3f"
QByteArray::number(n, 16).toUpper();  // returns "3F"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also setNum() and toInt().

func (*QByteArray) Number_1

func (this *QByteArray) Number_1(arg0 uint, base int) *QByteArray

Returns a byte array containing the string equivalent of the number n to base base (10 by default). The base can be any value between 2 and 36.

Example:

int n = 63;
QByteArray::number(n);              // returns "63"
QByteArray::number(n, 16);          // returns "3f"
QByteArray::number(n, 16).toUpper();  // returns "3F"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also setNum() and toInt().

func (*QByteArray) Number_1_

func (this *QByteArray) Number_1_(arg0 uint) *QByteArray

Returns a byte array containing the string equivalent of the number n to base base (10 by default). The base can be any value between 2 and 36.

Example:

int n = 63;
QByteArray::number(n);              // returns "63"
QByteArray::number(n, 16);          // returns "3f"
QByteArray::number(n, 16).toUpper();  // returns "3F"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also setNum() and toInt().

func (*QByteArray) Number_2

func (this *QByteArray) Number_2(arg0 int64, base int) *QByteArray

Returns a byte array containing the string equivalent of the number n to base base (10 by default). The base can be any value between 2 and 36.

Example:

int n = 63;
QByteArray::number(n);              // returns "63"
QByteArray::number(n, 16);          // returns "3f"
QByteArray::number(n, 16).toUpper();  // returns "3F"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also setNum() and toInt().

func (*QByteArray) Number_2_

func (this *QByteArray) Number_2_(arg0 int64) *QByteArray

Returns a byte array containing the string equivalent of the number n to base base (10 by default). The base can be any value between 2 and 36.

Example:

int n = 63;
QByteArray::number(n);              // returns "63"
QByteArray::number(n, 16);          // returns "3f"
QByteArray::number(n, 16).toUpper();  // returns "3F"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also setNum() and toInt().

func (*QByteArray) Number_3

func (this *QByteArray) Number_3(arg0 uint64, base int) *QByteArray

Returns a byte array containing the string equivalent of the number n to base base (10 by default). The base can be any value between 2 and 36.

Example:

int n = 63;
QByteArray::number(n);              // returns "63"
QByteArray::number(n, 16);          // returns "3f"
QByteArray::number(n, 16).toUpper();  // returns "3F"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also setNum() and toInt().

func (*QByteArray) Number_3_

func (this *QByteArray) Number_3_(arg0 uint64) *QByteArray

Returns a byte array containing the string equivalent of the number n to base base (10 by default). The base can be any value between 2 and 36.

Example:

int n = 63;
QByteArray::number(n);              // returns "63"
QByteArray::number(n, 16);          // returns "3f"
QByteArray::number(n, 16).toUpper();  // returns "3F"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also setNum() and toInt().

func (*QByteArray) Number_4

func (this *QByteArray) Number_4(arg0 float64, f byte, prec int) *QByteArray

Returns a byte array containing the string equivalent of the number n to base base (10 by default). The base can be any value between 2 and 36.

Example:

int n = 63;
QByteArray::number(n);              // returns "63"
QByteArray::number(n, 16);          // returns "3f"
QByteArray::number(n, 16).toUpper();  // returns "3F"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also setNum() and toInt().

func (*QByteArray) Number_4_

func (this *QByteArray) Number_4_(arg0 float64) *QByteArray

Returns a byte array containing the string equivalent of the number n to base base (10 by default). The base can be any value between 2 and 36.

Example:

int n = 63;
QByteArray::number(n);              // returns "63"
QByteArray::number(n, 16);          // returns "3f"
QByteArray::number(n, 16).toUpper();  // returns "3F"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also setNum() and toInt().

func (*QByteArray) Number_4_1

func (this *QByteArray) Number_4_1(arg0 float64, f byte) *QByteArray

Returns a byte array containing the string equivalent of the number n to base base (10 by default). The base can be any value between 2 and 36.

Example:

int n = 63;
QByteArray::number(n);              // returns "63"
QByteArray::number(n, 16);          // returns "3f"
QByteArray::number(n, 16).toUpper();  // returns "3F"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also setNum() and toInt().

func (*QByteArray) Number__

func (this *QByteArray) Number__(arg0 int) *QByteArray

Returns a byte array containing the string equivalent of the number n to base base (10 by default). The base can be any value between 2 and 36.

Example:

int n = 63;
QByteArray::number(n);              // returns "63"
QByteArray::number(n, 16);          // returns "3f"
QByteArray::number(n, 16).toUpper();  // returns "3F"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also setNum() and toInt().

func (*QByteArray) Operator_add_equal

func (this *QByteArray) Operator_add_equal(c byte) *QByteArray

func (*QByteArray) Operator_add_equal_1

func (this *QByteArray) Operator_add_equal_1(s string) *QByteArray

func (*QByteArray) Operator_add_equal_2

func (this *QByteArray) Operator_add_equal_2(a QByteArray_ITF) *QByteArray

func (*QByteArray) Operator_add_equal_3

func (this *QByteArray) Operator_add_equal_3(s string) *QByteArray

func (*QByteArray) Operator_equal

func (this *QByteArray) Operator_equal(arg0 QByteArray_ITF) *QByteArray

func (*QByteArray) Operator_equal_1

func (this *QByteArray) Operator_equal_1(str string) *QByteArray

func (*QByteArray) Operator_equal_2

func (this *QByteArray) Operator_equal_2(other unsafe.Pointer) *QByteArray

func (*QByteArray) Operator_equal_equal

func (this *QByteArray) Operator_equal_equal(s2 string) bool

func (*QByteArray) Operator_get_index

func (this *QByteArray) Operator_get_index(i int) byte

func (*QByteArray) Operator_get_index_1

func (this *QByteArray) Operator_get_index_1(i uint) byte

func (*QByteArray) Operator_get_index_2

func (this *QByteArray) Operator_get_index_2(i int) *QByteRef

func (*QByteArray) Operator_get_index_3

func (this *QByteArray) Operator_get_index_3(i uint) *QByteRef

func (*QByteArray) Operator_greater_than

func (this *QByteArray) Operator_greater_than(s2 string) bool

func (*QByteArray) Operator_greater_than_equal

func (this *QByteArray) Operator_greater_than_equal(s2 string) bool

func (*QByteArray) Operator_less_than

func (this *QByteArray) Operator_less_than(s2 string) bool

func (*QByteArray) Operator_less_than_equal

func (this *QByteArray) Operator_less_than_equal(s2 string) bool

func (*QByteArray) Operator_not_equal

func (this *QByteArray) Operator_not_equal(s2 string) bool

func (*QByteArray) Push_back

func (this *QByteArray) Push_back(c byte)

This function is provided for STL compatibility. It is equivalent to append(other).

func (*QByteArray) Push_back_1

func (this *QByteArray) Push_back_1(c string)

This function is provided for STL compatibility. It is equivalent to append(other).

func (*QByteArray) Push_back_2

func (this *QByteArray) Push_back_2(a QByteArray_ITF)

This function is provided for STL compatibility. It is equivalent to append(other).

func (*QByteArray) Push_front

func (this *QByteArray) Push_front(c byte)

This function is provided for STL compatibility. It is equivalent to prepend(other).

func (*QByteArray) Push_front_1

func (this *QByteArray) Push_front_1(c string)

This function is provided for STL compatibility. It is equivalent to prepend(other).

func (*QByteArray) Push_front_2

func (this *QByteArray) Push_front_2(a QByteArray_ITF)

This function is provided for STL compatibility. It is equivalent to prepend(other).

func (*QByteArray) QByteArray_PTR

func (ptr *QByteArray) QByteArray_PTR() *QByteArray

func (*QByteArray) Remove

func (this *QByteArray) Remove(index int, len_ int) *QByteArray

Removes len bytes from the array, starting at index position pos, and returns a reference to the array.

If pos is out of range, nothing happens. If pos is valid, but pos + len is larger than the size of the array, the array is truncated at position pos.

Example:

QByteArray ba("Montreal");
ba.remove(1, 4);
// ba == "Meal"

See also insert() and replace().

func (*QByteArray) Repeated

func (this *QByteArray) Repeated(times int) *QByteArray

Returns a copy of this byte array repeated the specified number of times.

If times is less than 1, an empty byte array is returned.

Example:

QByteArray ba("ab");
ba.repeated(4);             // returns "abababab"

This function was introduced in Qt 4.5.

func (*QByteArray) Replace

func (this *QByteArray) Replace(index int, len_ int, s string) *QByteArray

Replaces len bytes from index position pos with the byte array after, and returns a reference to this byte array.

Example:

QByteArray x("Say yes!");
QByteArray y("no");
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QByteArray) Replace_1

func (this *QByteArray) Replace_1(index int, len_ int, s string, alen int) *QByteArray

Replaces len bytes from index position pos with the byte array after, and returns a reference to this byte array.

Example:

QByteArray x("Say yes!");
QByteArray y("no");
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QByteArray) Replace_10

func (this *QByteArray) Replace_10(before byte, after byte) *QByteArray

Replaces len bytes from index position pos with the byte array after, and returns a reference to this byte array.

Example:

QByteArray x("Say yes!");
QByteArray y("no");
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QByteArray) Replace_11

func (this *QByteArray) Replace_11(before string, after string) *QByteArray

Replaces len bytes from index position pos with the byte array after, and returns a reference to this byte array.

Example:

QByteArray x("Say yes!");
QByteArray y("no");
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QByteArray) Replace_12

func (this *QByteArray) Replace_12(c byte, after string) *QByteArray

Replaces len bytes from index position pos with the byte array after, and returns a reference to this byte array.

Example:

QByteArray x("Say yes!");
QByteArray y("no");
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QByteArray) Replace_13

func (this *QByteArray) Replace_13(before string, after QByteArray_ITF) *QByteArray

Replaces len bytes from index position pos with the byte array after, and returns a reference to this byte array.

Example:

QByteArray x("Say yes!");
QByteArray y("no");
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QByteArray) Replace_2

func (this *QByteArray) Replace_2(index int, len_ int, s QByteArray_ITF) *QByteArray

Replaces len bytes from index position pos with the byte array after, and returns a reference to this byte array.

Example:

QByteArray x("Say yes!");
QByteArray y("no");
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QByteArray) Replace_3

func (this *QByteArray) Replace_3(before byte, after string) *QByteArray

Replaces len bytes from index position pos with the byte array after, and returns a reference to this byte array.

Example:

QByteArray x("Say yes!");
QByteArray y("no");
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QByteArray) Replace_4

func (this *QByteArray) Replace_4(before byte, after QByteArray_ITF) *QByteArray

Replaces len bytes from index position pos with the byte array after, and returns a reference to this byte array.

Example:

QByteArray x("Say yes!");
QByteArray y("no");
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QByteArray) Replace_5

func (this *QByteArray) Replace_5(before string, after string) *QByteArray

Replaces len bytes from index position pos with the byte array after, and returns a reference to this byte array.

Example:

QByteArray x("Say yes!");
QByteArray y("no");
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QByteArray) Replace_6

func (this *QByteArray) Replace_6(before string, bsize int, after string, asize int) *QByteArray

Replaces len bytes from index position pos with the byte array after, and returns a reference to this byte array.

Example:

QByteArray x("Say yes!");
QByteArray y("no");
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QByteArray) Replace_7

func (this *QByteArray) Replace_7(before QByteArray_ITF, after QByteArray_ITF) *QByteArray

Replaces len bytes from index position pos with the byte array after, and returns a reference to this byte array.

Example:

QByteArray x("Say yes!");
QByteArray y("no");
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QByteArray) Replace_8

func (this *QByteArray) Replace_8(before QByteArray_ITF, after string) *QByteArray

Replaces len bytes from index position pos with the byte array after, and returns a reference to this byte array.

Example:

QByteArray x("Say yes!");
QByteArray y("no");
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QByteArray) Replace_9

func (this *QByteArray) Replace_9(before string, after QByteArray_ITF) *QByteArray

Replaces len bytes from index position pos with the byte array after, and returns a reference to this byte array.

Example:

QByteArray x("Say yes!");
QByteArray y("no");
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QByteArray) Reserve

func (this *QByteArray) Reserve(size int)

Attempts to allocate memory for at least size bytes. If you know in advance how large the byte array will be, you can call this function, and if you call resize() often you are likely to get better performance. If size is an underestimate, the worst that will happen is that the QByteArray will be a bit slower.

The sole purpose of this function is to provide a means of fine tuning QByteArray's memory usage. In general, you will rarely ever need to call this function. If you want to change the size of the byte array, call resize().

See also squeeze() and capacity().

func (*QByteArray) Resize

func (this *QByteArray) Resize(size int)

Sets the size of the byte array to size bytes.

If size is greater than the current size, the byte array is extended to make it size bytes with the extra bytes added to the end. The new bytes are uninitialized.

If size is less than the current size, bytes are removed from the end.

See also size() and truncate().

func (*QByteArray) Right

func (this *QByteArray) Right(len_ int) *QByteArray

Returns a byte array that contains the rightmost len bytes of this byte array.

The entire byte array is returned if len is greater than size().

Example:

QByteArray x("Pineapple");
QByteArray y = x.right(5);
// y == "apple"

See also endsWith(), left(), mid(), chopped(), chop(), and truncate().

func (*QByteArray) RightJustified

func (this *QByteArray) RightJustified(width int, fill byte, truncate bool) *QByteArray

Returns a byte array of size width that contains the fill character followed by this byte array.

If truncate is false and the size of the byte array is more than width, then the returned byte array is a copy of this byte array.

If truncate is true and the size of the byte array is more than width, then the resulting byte array is truncated at position width.

Example:

QByteArray x("apple");
QByteArray y = x.rightJustified(8, '.');    // y == "...apple"

See also leftJustified().

func (*QByteArray) RightJustified__

func (this *QByteArray) RightJustified__(width int) *QByteArray

Returns a byte array of size width that contains the fill character followed by this byte array.

If truncate is false and the size of the byte array is more than width, then the returned byte array is a copy of this byte array.

If truncate is true and the size of the byte array is more than width, then the resulting byte array is truncated at position width.

Example:

QByteArray x("apple");
QByteArray y = x.rightJustified(8, '.');    // y == "...apple"

See also leftJustified().

func (*QByteArray) RightJustified__1

func (this *QByteArray) RightJustified__1(width int, fill byte) *QByteArray

Returns a byte array of size width that contains the fill character followed by this byte array.

If truncate is false and the size of the byte array is more than width, then the returned byte array is a copy of this byte array.

If truncate is true and the size of the byte array is more than width, then the resulting byte array is truncated at position width.

Example:

QByteArray x("apple");
QByteArray y = x.rightJustified(8, '.');    // y == "...apple"

See also leftJustified().

func (*QByteArray) SetCthis

func (this *QByteArray) SetCthis(cthis unsafe.Pointer)

func (*QByteArray) SetNum

func (this *QByteArray) SetNum(arg0 int16, base int) *QByteArray

Sets the byte array to the printed value of n in base base (10 by default) and returns a reference to the byte array. The base can be any value between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

Example:

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
ba.setNum(n, 16);       // ba == "3f"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also number() and toInt().

func (*QByteArray) SetNum_1

func (this *QByteArray) SetNum_1(arg0 uint16, base int) *QByteArray

Sets the byte array to the printed value of n in base base (10 by default) and returns a reference to the byte array. The base can be any value between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

Example:

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
ba.setNum(n, 16);       // ba == "3f"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also number() and toInt().

func (*QByteArray) SetNum_1_

func (this *QByteArray) SetNum_1_(arg0 uint16) *QByteArray

Sets the byte array to the printed value of n in base base (10 by default) and returns a reference to the byte array. The base can be any value between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

Example:

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
ba.setNum(n, 16);       // ba == "3f"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also number() and toInt().

func (*QByteArray) SetNum_2

func (this *QByteArray) SetNum_2(arg0 int, base int) *QByteArray

Sets the byte array to the printed value of n in base base (10 by default) and returns a reference to the byte array. The base can be any value between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

Example:

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
ba.setNum(n, 16);       // ba == "3f"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also number() and toInt().

func (*QByteArray) SetNum_2_

func (this *QByteArray) SetNum_2_(arg0 int) *QByteArray

Sets the byte array to the printed value of n in base base (10 by default) and returns a reference to the byte array. The base can be any value between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

Example:

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
ba.setNum(n, 16);       // ba == "3f"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also number() and toInt().

func (*QByteArray) SetNum_3

func (this *QByteArray) SetNum_3(arg0 uint, base int) *QByteArray

Sets the byte array to the printed value of n in base base (10 by default) and returns a reference to the byte array. The base can be any value between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

Example:

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
ba.setNum(n, 16);       // ba == "3f"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also number() and toInt().

func (*QByteArray) SetNum_3_

func (this *QByteArray) SetNum_3_(arg0 uint) *QByteArray

Sets the byte array to the printed value of n in base base (10 by default) and returns a reference to the byte array. The base can be any value between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

Example:

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
ba.setNum(n, 16);       // ba == "3f"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also number() and toInt().

func (*QByteArray) SetNum_4

func (this *QByteArray) SetNum_4(arg0 int64, base int) *QByteArray

Sets the byte array to the printed value of n in base base (10 by default) and returns a reference to the byte array. The base can be any value between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

Example:

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
ba.setNum(n, 16);       // ba == "3f"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also number() and toInt().

func (*QByteArray) SetNum_4_

func (this *QByteArray) SetNum_4_(arg0 int64) *QByteArray

Sets the byte array to the printed value of n in base base (10 by default) and returns a reference to the byte array. The base can be any value between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

Example:

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
ba.setNum(n, 16);       // ba == "3f"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also number() and toInt().

func (*QByteArray) SetNum_5

func (this *QByteArray) SetNum_5(arg0 uint64, base int) *QByteArray

Sets the byte array to the printed value of n in base base (10 by default) and returns a reference to the byte array. The base can be any value between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

Example:

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
ba.setNum(n, 16);       // ba == "3f"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also number() and toInt().

func (*QByteArray) SetNum_5_

func (this *QByteArray) SetNum_5_(arg0 uint64) *QByteArray

Sets the byte array to the printed value of n in base base (10 by default) and returns a reference to the byte array. The base can be any value between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

Example:

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
ba.setNum(n, 16);       // ba == "3f"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also number() and toInt().

func (*QByteArray) SetNum_6

func (this *QByteArray) SetNum_6(arg0 float32, f byte, prec int) *QByteArray

Sets the byte array to the printed value of n in base base (10 by default) and returns a reference to the byte array. The base can be any value between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

Example:

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
ba.setNum(n, 16);       // ba == "3f"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also number() and toInt().

func (*QByteArray) SetNum_6_

func (this *QByteArray) SetNum_6_(arg0 float32) *QByteArray

Sets the byte array to the printed value of n in base base (10 by default) and returns a reference to the byte array. The base can be any value between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

Example:

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
ba.setNum(n, 16);       // ba == "3f"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also number() and toInt().

func (*QByteArray) SetNum_6_1

func (this *QByteArray) SetNum_6_1(arg0 float32, f byte) *QByteArray

Sets the byte array to the printed value of n in base base (10 by default) and returns a reference to the byte array. The base can be any value between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

Example:

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
ba.setNum(n, 16);       // ba == "3f"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also number() and toInt().

func (*QByteArray) SetNum_7

func (this *QByteArray) SetNum_7(arg0 float64, f byte, prec int) *QByteArray

Sets the byte array to the printed value of n in base base (10 by default) and returns a reference to the byte array. The base can be any value between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

Example:

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
ba.setNum(n, 16);       // ba == "3f"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also number() and toInt().

func (*QByteArray) SetNum_7_

func (this *QByteArray) SetNum_7_(arg0 float64) *QByteArray

Sets the byte array to the printed value of n in base base (10 by default) and returns a reference to the byte array. The base can be any value between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

Example:

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
ba.setNum(n, 16);       // ba == "3f"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also number() and toInt().

func (*QByteArray) SetNum_7_1

func (this *QByteArray) SetNum_7_1(arg0 float64, f byte) *QByteArray

Sets the byte array to the printed value of n in base base (10 by default) and returns a reference to the byte array. The base can be any value between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

Example:

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
ba.setNum(n, 16);       // ba == "3f"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also number() and toInt().

func (*QByteArray) SetNum__

func (this *QByteArray) SetNum__(arg0 int16) *QByteArray

Sets the byte array to the printed value of n in base base (10 by default) and returns a reference to the byte array. The base can be any value between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

Example:

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
ba.setNum(n, 16);       // ba == "3f"

Note: The format of the number is not localized; the default C locale is used irrespective of the user's locale.

See also number() and toInt().

func (*QByteArray) SetRawData

func (this *QByteArray) SetRawData(a string, n uint) *QByteArray

Resets the QByteArray to use the first size bytes of the data array. The bytes are not copied. The QByteArray will contain the data pointer. The caller guarantees that data will not be deleted or modified as long as this QByteArray and any copies of it exist that have not been modified.

This function can be used instead of fromRawData() to re-use existing QByteArray objects to save memory re-allocations.

This function was introduced in Qt 4.7.

See also fromRawData(), data(), and constData().

func (*QByteArray) Shrink_to_fit

func (this *QByteArray) Shrink_to_fit()

This function is provided for STL compatibility. It is equivalent to squeeze().

This function was introduced in Qt 5.10.

func (*QByteArray) Simplified

func (this *QByteArray) Simplified() *QByteArray

Returns a byte array that has whitespace removed from the start and the end, and which has each sequence of internal whitespace replaced with a single space.

Whitespace means any character for which the standard C++ isspace() function returns true in the C locale. This includes the ASCII isspace() function returns true in the C locale. This includes the ASCII characters '\t', '\n', '\v', '\f', '\r', and ' '.

Example:

QByteArray ba("  lots\t of\nwhitespace\r\n ");
ba = ba.simplified();
// ba == "lots of whitespace";

See also trimmed().

func (*QByteArray) Simplified_1

func (this *QByteArray) Simplified_1() *QByteArray

Returns a byte array that has whitespace removed from the start and the end, and which has each sequence of internal whitespace replaced with a single space.

Whitespace means any character for which the standard C++ isspace() function returns true in the C locale. This includes the ASCII isspace() function returns true in the C locale. This includes the ASCII characters '\t', '\n', '\v', '\f', '\r', and ' '.

Example:

QByteArray ba("  lots\t of\nwhitespace\r\n ");
ba = ba.simplified();
// ba == "lots of whitespace";

See also trimmed().

func (*QByteArray) Size

func (this *QByteArray) Size() int

Returns the number of bytes in this byte array.

The last byte in the byte array is at position size() - 1. In addition, QByteArray ensures that the byte at position size() is always '\0', so that you can use the return value of data() and constData() as arguments to functions that expect '\0'-terminated strings. If the QByteArray object was created from a raw data that didn't include the trailing null-termination character then QByteArray doesn't add it automaticall unless the deep copy is created.

Example:

QByteArray ba("Hello");
int n = ba.size();          // n == 5
ba.data()[0];               // returns 'H'
ba.data()[4];               // returns 'o'
ba.data()[5];               // returns '\0'

See also isEmpty() and resize().

func (*QByteArray) Squeeze

func (this *QByteArray) Squeeze()

Releases any memory not required to store the array's data.

The sole purpose of this function is to provide a means of fine tuning QByteArray's memory usage. In general, you will rarely ever need to call this function.

See also reserve() and capacity().

func (*QByteArray) StartsWith

func (this *QByteArray) StartsWith(a QByteArray_ITF) bool

Returns true if this byte array starts with byte array ba; otherwise returns false.

Example:

QByteArray url("ftp://ftp.qt-project.org/");
if (url.startsWith("ftp:"))
    ...

See also endsWith() and left().

func (*QByteArray) StartsWith_1

func (this *QByteArray) StartsWith_1(c byte) bool

Returns true if this byte array starts with byte array ba; otherwise returns false.

Example:

QByteArray url("ftp://ftp.qt-project.org/");
if (url.startsWith("ftp:"))
    ...

See also endsWith() and left().

func (*QByteArray) StartsWith_2

func (this *QByteArray) StartsWith_2(c string) bool

Returns true if this byte array starts with byte array ba; otherwise returns false.

Example:

QByteArray url("ftp://ftp.qt-project.org/");
if (url.startsWith("ftp:"))
    ...

See also endsWith() and left().

func (*QByteArray) Swap

func (this *QByteArray) Swap(other QByteArray_ITF)

Swaps byte array other with this byte array. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func (*QByteArray) ToBase64

func (this *QByteArray) ToBase64(options int) *QByteArray

Returns a copy of the byte array, encoded as Base64.

QByteArray text("Qt is great!");
text.toBase64();        // returns "UXQgaXMgZ3JlYXQh"

The algorithm used to encode Base64-encoded data is defined in RFC 4648.

See also fromBase64().

func (*QByteArray) ToBase64_1

func (this *QByteArray) ToBase64_1() *QByteArray

Returns a copy of the byte array, encoded as Base64.

QByteArray text("Qt is great!");
text.toBase64();        // returns "UXQgaXMgZ3JlYXQh"

The algorithm used to encode Base64-encoded data is defined in RFC 4648.

See also fromBase64().

func (*QByteArray) ToDouble

func (this *QByteArray) ToDouble(ok *bool) float64

Returns the byte array converted to a double value.

Returns 0.0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

QByteArray string("1234.56");
double a = string.toDouble();   // a == 1234.56

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToDouble__

func (this *QByteArray) ToDouble__() float64

Returns the byte array converted to a double value.

Returns 0.0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

QByteArray string("1234.56");
double a = string.toDouble();   // a == 1234.56

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToFloat

func (this *QByteArray) ToFloat(ok *bool) float32

Returns the byte array converted to a float value.

Returns 0.0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToFloat__

func (this *QByteArray) ToFloat__() float32

Returns the byte array converted to a float value.

Returns 0.0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToHex

func (this *QByteArray) ToHex() *QByteArray

Returns a hex encoded copy of the byte array. The hex encoding uses the numbers 0-9 and the letters a-f.

See also fromHex().

func (*QByteArray) ToHex_1

func (this *QByteArray) ToHex_1(separator byte) *QByteArray

Returns a hex encoded copy of the byte array. The hex encoding uses the numbers 0-9 and the letters a-f.

See also fromHex().

func (*QByteArray) ToInt

func (this *QByteArray) ToInt(ok *bool, base int) int

Returns the byte array converted to an int using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

QByteArray str("FF");
bool ok;
int hex = str.toInt(&ok, 16);     // hex == 255, ok == true
int dec = str.toInt(&ok, 10);     // dec == 0, ok == false

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToInt__

func (this *QByteArray) ToInt__() int

Returns the byte array converted to an int using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

QByteArray str("FF");
bool ok;
int hex = str.toInt(&ok, 16);     // hex == 255, ok == true
int dec = str.toInt(&ok, 10);     // dec == 0, ok == false

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToInt__1

func (this *QByteArray) ToInt__1(ok *bool) int

Returns the byte array converted to an int using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

QByteArray str("FF");
bool ok;
int hex = str.toInt(&ok, 16);     // hex == 255, ok == true
int dec = str.toInt(&ok, 10);     // dec == 0, ok == false

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToLong

func (this *QByteArray) ToLong(ok *bool, base int) int

Returns the byte array converted to a long int using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

QByteArray str("FF");
bool ok;
long hex = str.toLong(&ok, 16);   // hex == 255, ok == true
long dec = str.toLong(&ok, 10);   // dec == 0, ok == false

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

This function was introduced in Qt 4.1.

See also number().

func (*QByteArray) ToLongLong

func (this *QByteArray) ToLongLong(ok *bool, base int) int64

Returns the byte array converted to a long long using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToLongLong__

func (this *QByteArray) ToLongLong__() int64

Returns the byte array converted to a long long using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToLongLong__1

func (this *QByteArray) ToLongLong__1(ok *bool) int64

Returns the byte array converted to a long long using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToLong__

func (this *QByteArray) ToLong__() int

Returns the byte array converted to a long int using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

QByteArray str("FF");
bool ok;
long hex = str.toLong(&ok, 16);   // hex == 255, ok == true
long dec = str.toLong(&ok, 10);   // dec == 0, ok == false

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

This function was introduced in Qt 4.1.

See also number().

func (*QByteArray) ToLong__1

func (this *QByteArray) ToLong__1(ok *bool) int

Returns the byte array converted to a long int using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

QByteArray str("FF");
bool ok;
long hex = str.toLong(&ok, 16);   // hex == 255, ok == true
long dec = str.toLong(&ok, 10);   // dec == 0, ok == false

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

This function was introduced in Qt 4.1.

See also number().

func (*QByteArray) ToLower

func (this *QByteArray) ToLower() *QByteArray

Returns a lowercase copy of the byte array. The bytearray is interpreted as a Latin-1 encoded string.

Example:

QByteArray x("Qt by THE QT COMPANY");
QByteArray y = x.toLower();
// y == "qt by the qt company"

See also toUpper() and 8-bit Character Comparisons.

func (*QByteArray) ToLower_1

func (this *QByteArray) ToLower_1() *QByteArray

Returns a lowercase copy of the byte array. The bytearray is interpreted as a Latin-1 encoded string.

Example:

QByteArray x("Qt by THE QT COMPANY");
QByteArray y = x.toLower();
// y == "qt by the qt company"

See also toUpper() and 8-bit Character Comparisons.

func (*QByteArray) ToPercentEncoding

func (this *QByteArray) ToPercentEncoding(exclude QByteArray_ITF, include QByteArray_ITF, percent byte) *QByteArray

Returns a URI/URL-style percent-encoded copy of this byte array. The percent parameter allows you to override the default '%' character for another.

By default, this function will encode all characters that are not one of the following:

ALPHA ("a" to "z" and "A" to "Z") / DIGIT (0 to 9) / "-" / "." / "_" / "~"

To prevent characters from being encoded pass them to exclude. To force characters to be encoded pass them to include. The percent character is always encoded.

Example:

QByteArray text = "{a fishy string?}";
QByteArray ba = text.toPercentEncoding("{}", "s");
qDebug(ba.constData());
// prints "{a fi%73hy %73tring%3F}"

The hex encoding uses the numbers 0-9 and the uppercase letters A-F.

This function was introduced in Qt 4.4.

See also fromPercentEncoding() and QUrl::toPercentEncoding().

func (*QByteArray) ToPercentEncoding__

func (this *QByteArray) ToPercentEncoding__() *QByteArray

Returns a URI/URL-style percent-encoded copy of this byte array. The percent parameter allows you to override the default '%' character for another.

By default, this function will encode all characters that are not one of the following:

ALPHA ("a" to "z" and "A" to "Z") / DIGIT (0 to 9) / "-" / "." / "_" / "~"

To prevent characters from being encoded pass them to exclude. To force characters to be encoded pass them to include. The percent character is always encoded.

Example:

QByteArray text = "{a fishy string?}";
QByteArray ba = text.toPercentEncoding("{}", "s");
qDebug(ba.constData());
// prints "{a fi%73hy %73tring%3F}"

The hex encoding uses the numbers 0-9 and the uppercase letters A-F.

This function was introduced in Qt 4.4.

See also fromPercentEncoding() and QUrl::toPercentEncoding().

func (*QByteArray) ToPercentEncoding__1

func (this *QByteArray) ToPercentEncoding__1(exclude QByteArray_ITF) *QByteArray

Returns a URI/URL-style percent-encoded copy of this byte array. The percent parameter allows you to override the default '%' character for another.

By default, this function will encode all characters that are not one of the following:

ALPHA ("a" to "z" and "A" to "Z") / DIGIT (0 to 9) / "-" / "." / "_" / "~"

To prevent characters from being encoded pass them to exclude. To force characters to be encoded pass them to include. The percent character is always encoded.

Example:

QByteArray text = "{a fishy string?}";
QByteArray ba = text.toPercentEncoding("{}", "s");
qDebug(ba.constData());
// prints "{a fi%73hy %73tring%3F}"

The hex encoding uses the numbers 0-9 and the uppercase letters A-F.

This function was introduced in Qt 4.4.

See also fromPercentEncoding() and QUrl::toPercentEncoding().

func (*QByteArray) ToPercentEncoding__2

func (this *QByteArray) ToPercentEncoding__2(exclude QByteArray_ITF, include QByteArray_ITF) *QByteArray

Returns a URI/URL-style percent-encoded copy of this byte array. The percent parameter allows you to override the default '%' character for another.

By default, this function will encode all characters that are not one of the following:

ALPHA ("a" to "z" and "A" to "Z") / DIGIT (0 to 9) / "-" / "." / "_" / "~"

To prevent characters from being encoded pass them to exclude. To force characters to be encoded pass them to include. The percent character is always encoded.

Example:

QByteArray text = "{a fishy string?}";
QByteArray ba = text.toPercentEncoding("{}", "s");
qDebug(ba.constData());
// prints "{a fi%73hy %73tring%3F}"

The hex encoding uses the numbers 0-9 and the uppercase letters A-F.

This function was introduced in Qt 4.4.

See also fromPercentEncoding() and QUrl::toPercentEncoding().

func (*QByteArray) ToShort

func (this *QByteArray) ToShort(ok *bool, base int) int16

Returns the byte array converted to a short using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToShort__

func (this *QByteArray) ToShort__() int16

Returns the byte array converted to a short using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToShort__1

func (this *QByteArray) ToShort__1(ok *bool) int16

Returns the byte array converted to a short using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToStdString

func (this *QByteArray) ToStdString() int

Returns a std::string object with the data contained in this QByteArray.

This operator is mostly useful to pass a QByteArray to a function that accepts a std::string object.

This function was introduced in Qt 5.4.

See also fromStdString() and QString::toStdString().

func (*QByteArray) ToUInt

func (this *QByteArray) ToUInt(ok *bool, base int) uint

Returns the byte array converted to an unsigned int using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToUInt__

func (this *QByteArray) ToUInt__() uint

Returns the byte array converted to an unsigned int using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToUInt__1

func (this *QByteArray) ToUInt__1(ok *bool) uint

Returns the byte array converted to an unsigned int using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToULong

func (this *QByteArray) ToULong(ok *bool, base int) uint

Returns the byte array converted to an unsigned long int using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

This function was introduced in Qt 4.1.

See also number().

func (*QByteArray) ToULongLong

func (this *QByteArray) ToULongLong(ok *bool, base int) uint64

Returns the byte array converted to an unsigned long long using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToULongLong__

func (this *QByteArray) ToULongLong__() uint64

Returns the byte array converted to an unsigned long long using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToULongLong__1

func (this *QByteArray) ToULongLong__1(ok *bool) uint64

Returns the byte array converted to an unsigned long long using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToULong__

func (this *QByteArray) ToULong__() uint

Returns the byte array converted to an unsigned long int using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

This function was introduced in Qt 4.1.

See also number().

func (*QByteArray) ToULong__1

func (this *QByteArray) ToULong__1(ok *bool) uint

Returns the byte array converted to an unsigned long int using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

This function was introduced in Qt 4.1.

See also number().

func (*QByteArray) ToUShort

func (this *QByteArray) ToUShort(ok *bool, base int) uint16

Returns the byte array converted to an unsigned short using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToUShort__

func (this *QByteArray) ToUShort__() uint16

Returns the byte array converted to an unsigned short using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToUShort__1

func (this *QByteArray) ToUShort__1(ok *bool) uint16

Returns the byte array converted to an unsigned short using base base, which is 10 by default and must be between 2 and 36, or 0.

If base is 0, the base is determined automatically using the following rules: If the byte array begins with "0x", it is assumed to be hexadecimal; if it begins with "0", it is assumed to be octal; otherwise it is assumed to be decimal.

Returns 0 if the conversion fails.

If ok is not 0: if a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

Note: The conversion of the number is performed in the default C locale, irrespective of the user's locale.

See also number().

func (*QByteArray) ToUpper

func (this *QByteArray) ToUpper() *QByteArray

Returns an uppercase copy of the byte array. The bytearray is interpreted as a Latin-1 encoded string.

Example:

QByteArray x("Qt by THE QT COMPANY");
QByteArray y = x.toUpper();
// y == "QT BY THE QT COMPANY"

See also toLower() and 8-bit Character Comparisons.

func (*QByteArray) ToUpper_1

func (this *QByteArray) ToUpper_1() *QByteArray

Returns an uppercase copy of the byte array. The bytearray is interpreted as a Latin-1 encoded string.

Example:

QByteArray x("Qt by THE QT COMPANY");
QByteArray y = x.toUpper();
// y == "QT BY THE QT COMPANY"

See also toLower() and 8-bit Character Comparisons.

func (*QByteArray) Trimmed

func (this *QByteArray) Trimmed() *QByteArray

Returns a byte array that has whitespace removed from the start and the end.

Whitespace means any character for which the standard C++ isspace() function returns true in the C locale. This includes the ASCII characters '\t', '\n', '\v', '\f', '\r', and ' '.

Example:

QByteArray ba("  lots\t of\nwhitespace\r\n ");
ba = ba.trimmed();
// ba == "lots\t of\nwhitespace";

Unlike simplified(), trimmed() leaves internal whitespace alone.

See also simplified().

func (*QByteArray) Trimmed_1

func (this *QByteArray) Trimmed_1() *QByteArray

Returns a byte array that has whitespace removed from the start and the end.

Whitespace means any character for which the standard C++ isspace() function returns true in the C locale. This includes the ASCII characters '\t', '\n', '\v', '\f', '\r', and ' '.

Example:

QByteArray ba("  lots\t of\nwhitespace\r\n ");
ba = ba.trimmed();
// ba == "lots\t of\nwhitespace";

Unlike simplified(), trimmed() leaves internal whitespace alone.

See also simplified().

func (*QByteArray) Truncate

func (this *QByteArray) Truncate(pos int)

Truncates the byte array at index position pos.

If pos is beyond the end of the array, nothing happens.

Example:

QByteArray ba("Stockholm");
ba.truncate(5);             // ba == "Stock"

See also chop(), resize(), and left().

type QByteArrayDataPtr

type QByteArrayDataPtr struct {
	*qtrt.CObject
}

func NewQByteArrayDataPtrFromPointer

func NewQByteArrayDataPtrFromPointer(cthis unsafe.Pointer) *QByteArrayDataPtr

func (*QByteArrayDataPtr) GetCthis

func (this *QByteArrayDataPtr) GetCthis() unsafe.Pointer

func (*QByteArrayDataPtr) NewFromPointer

func (*QByteArrayDataPtr) NewFromPointer(cthis unsafe.Pointer) *QByteArrayDataPtr

func (*QByteArrayDataPtr) QByteArrayDataPtr_PTR

func (ptr *QByteArrayDataPtr) QByteArrayDataPtr_PTR() *QByteArrayDataPtr

func (*QByteArrayDataPtr) SetCthis

func (this *QByteArrayDataPtr) SetCthis(cthis unsafe.Pointer)

type QByteArrayDataPtr_ITF

type QByteArrayDataPtr_ITF interface {
	QByteArrayDataPtr_PTR() *QByteArrayDataPtr
}

type QByteArrayList

type QByteArrayList struct {
	*qtrt.CObject
}

body block begin

func (*QByteArrayList) Append_0

func (this *QByteArrayList) Append_0()

void append(const T &)

func (*QByteArrayList) Append_1

func (this *QByteArrayList) Append_1()

void append(const QList<T> &)

func (*QByteArrayList) At_0

func (this *QByteArrayList) At_0() *QByteArray

const T & at(int)

func (*QByteArrayList) Back_0

func (this *QByteArrayList) Back_0() *QByteArray

T & back()

func (*QByteArrayList) Back_1

func (this *QByteArrayList) Back_1() *QByteArray

const T & back()

func (*QByteArrayList) Begin_0

func (this *QByteArrayList) Begin_0()

QList::iterator begin()

func (*QByteArrayList) Begin_1

func (this *QByteArrayList) Begin_1()

QList::const_iterator begin()

func (*QByteArrayList) Cbegin_0

func (this *QByteArrayList) Cbegin_0()

QList::const_iterator cbegin()

func (*QByteArrayList) Cend_0

func (this *QByteArrayList) Cend_0()

QList::const_iterator cend()

func (*QByteArrayList) Clear_0

func (this *QByteArrayList) Clear_0()

void clear()

func (*QByteArrayList) ConstBegin_0

func (this *QByteArrayList) ConstBegin_0()

QList::const_iterator constBegin()

func (*QByteArrayList) ConstEnd_0

func (this *QByteArrayList) ConstEnd_0()

QList::const_iterator constEnd()

func (*QByteArrayList) ConstFirst_0

func (this *QByteArrayList) ConstFirst_0() *QByteArray

const T & constFirst()

func (*QByteArrayList) ConstLast_0

func (this *QByteArrayList) ConstLast_0() *QByteArray

const T & constLast()

func (*QByteArrayList) Contains_0

func (this *QByteArrayList) Contains_0() bool

bool contains(const T &)

func (*QByteArrayList) Contains_impl_0

func (this *QByteArrayList) Contains_impl_0() bool

bool contains_impl(const T &, struct QListData::NotArrayCompatibleLayout)

func (*QByteArrayList) Contains_impl_1

func (this *QByteArrayList) Contains_impl_1() bool

bool contains_impl(const T &, struct QListData::ArrayCompatibleLayout)

func (*QByteArrayList) Count_0

func (this *QByteArrayList) Count_0() int

int count(const T &)

func (*QByteArrayList) Count_1

func (this *QByteArrayList) Count_1() int

int count()

func (*QByteArrayList) Count_impl_0

func (this *QByteArrayList) Count_impl_0() int

int count_impl(const T &, struct QListData::NotArrayCompatibleLayout)

func (*QByteArrayList) Count_impl_1

func (this *QByteArrayList) Count_impl_1() int

int count_impl(const T &, struct QListData::ArrayCompatibleLayout)

func (*QByteArrayList) Crbegin_0

func (this *QByteArrayList) Crbegin_0()

QList::const_reverse_iterator crbegin()

func (*QByteArrayList) Crend_0

func (this *QByteArrayList) Crend_0()

QList::const_reverse_iterator crend()

func (*QByteArrayList) Dealloc_0

func (this *QByteArrayList) Dealloc_0()

void dealloc(struct QListData::Data *)

func (*QByteArrayList) DetachShared_0

func (this *QByteArrayList) DetachShared_0()

void detachShared()

func (*QByteArrayList) Detach_0

func (this *QByteArrayList) Detach_0()

void detach()

func (*QByteArrayList) Detach_helper_0

func (this *QByteArrayList) Detach_helper_0()

void detach_helper(int)

func (*QByteArrayList) Detach_helper_1

func (this *QByteArrayList) Detach_helper_1()

void detach_helper()

func (*QByteArrayList) Detach_helper_grow_0

func (this *QByteArrayList) Detach_helper_grow_0()

QList::Node * detach_helper_grow(int, int)

func (*QByteArrayList) Empty_0

func (this *QByteArrayList) Empty_0() bool

bool empty()

func (*QByteArrayList) End_0

func (this *QByteArrayList) End_0()

QList::iterator end()

func (*QByteArrayList) End_1

func (this *QByteArrayList) End_1()

QList::const_iterator end()

func (*QByteArrayList) EndsWith_0

func (this *QByteArrayList) EndsWith_0() bool

bool endsWith(const T &)

func (*QByteArrayList) Erase_0

func (this *QByteArrayList) Erase_0()

QList::iterator erase(class QList::iterator)

func (*QByteArrayList) Erase_1

func (this *QByteArrayList) Erase_1()

QList::iterator erase(class QList::iterator, class QList::iterator)

func (*QByteArrayList) First_0

func (this *QByteArrayList) First_0() *QByteArray

T & first()

func (*QByteArrayList) First_1

func (this *QByteArrayList) First_1() *QByteArray

const T & first()

func (*QByteArrayList) FromSet_0

func (this *QByteArrayList) FromSet_0() *QByteArrayList

QList<T> fromSet(const QSet<T> &)

func (*QByteArrayList) FromStdList_0

func (this *QByteArrayList) FromStdList_0() *QByteArrayList

QList<T> fromStdList(const std::list<T> &)

func (*QByteArrayList) FromVector_0

func (this *QByteArrayList) FromVector_0() *QByteArrayList

QList<T> fromVector(const QVector<T> &)

func (*QByteArrayList) Front_0

func (this *QByteArrayList) Front_0() *QByteArray

T & front()

func (*QByteArrayList) Front_1

func (this *QByteArrayList) Front_1() *QByteArray

const T & front()

func (*QByteArrayList) IndexOf_0

func (this *QByteArrayList) IndexOf_0() int

int indexOf(const T &, int)

func (*QByteArrayList) Insert_0

func (this *QByteArrayList) Insert_0()

void insert(int, const T &)

func (*QByteArrayList) Insert_1

func (this *QByteArrayList) Insert_1()

QList::iterator insert(class QList::iterator, const T &)

func (*QByteArrayList) IsDetached_0

func (this *QByteArrayList) IsDetached_0() bool

bool isDetached()

func (*QByteArrayList) IsEmpty_0

func (this *QByteArrayList) IsEmpty_0() bool

bool isEmpty()

func (*QByteArrayList) IsSharedWith_0

func (this *QByteArrayList) IsSharedWith_0() bool

bool isSharedWith(const QList<T> &)

func (*QByteArrayList) IsValidIterator_0

func (this *QByteArrayList) IsValidIterator_0() bool

bool isValidIterator(const class QList::iterator &)

func (*QByteArrayList) LastIndexOf_0

func (this *QByteArrayList) LastIndexOf_0() int

int lastIndexOf(const T &, int)

func (*QByteArrayList) Last_0

func (this *QByteArrayList) Last_0() *QByteArray

T & last()

func (*QByteArrayList) Last_1

func (this *QByteArrayList) Last_1() *QByteArray

const T & last()

func (*QByteArrayList) Length_0

func (this *QByteArrayList) Length_0() int

int length()

func (*QByteArrayList) Mid_0

func (this *QByteArrayList) Mid_0() *QByteArrayList

QList<T> mid(int, int)

func (*QByteArrayList) Move_0

func (this *QByteArrayList) Move_0()

void move(int, int)

func (*QByteArrayList) Node_construct_0

func (this *QByteArrayList) Node_construct_0()

void node_construct(struct QList::Node *, const T &)

func (*QByteArrayList) Node_copy_0

func (this *QByteArrayList) Node_copy_0()

void node_copy(struct QList::Node *, struct QList::Node *, struct QList::Node *)

func (*QByteArrayList) Node_destruct_0

func (this *QByteArrayList) Node_destruct_0()

void node_destruct(struct QList::Node *)

func (*QByteArrayList) Node_destruct_1

func (this *QByteArrayList) Node_destruct_1()

void node_destruct(struct QList::Node *, struct QList::Node *)

func (*QByteArrayList) Op_eq_impl_0

func (this *QByteArrayList) Op_eq_impl_0() bool

bool op_eq_impl(const QList<T> &, struct QListData::NotArrayCompatibleLayout)

func (*QByteArrayList) Op_eq_impl_1

func (this *QByteArrayList) Op_eq_impl_1() bool

bool op_eq_impl(const QList<T> &, struct QListData::ArrayCompatibleLayout)

func (*QByteArrayList) Operator_add_0

func (this *QByteArrayList) Operator_add_0() *QByteArrayList

QList<T> operator+(const QList<T> &)

func (*QByteArrayList) Operator_add_equal_0

func (this *QByteArrayList) Operator_add_equal_0() *QByteArrayList

QList<T> & operator+=(const QList<T> &)

func (*QByteArrayList) Operator_add_equal_1

func (this *QByteArrayList) Operator_add_equal_1() *QByteArrayList

QList<T> & operator+=(const T &)

func (*QByteArrayList) Operator_equal_0

func (this *QByteArrayList) Operator_equal_0() *QByteArrayList

QList<T> & operator=(const QList<T> &)

func (*QByteArrayList) Operator_equal_1

func (this *QByteArrayList) Operator_equal_1() *QByteArrayList

QList<T> & operator=(QList<T> &&)

func (*QByteArrayList) Operator_equal_equal_0

func (this *QByteArrayList) Operator_equal_equal_0() bool

bool operator==(const QList<T> &)

func (*QByteArrayList) Operator_get_index_0

func (this *QByteArrayList) Operator_get_index_0() *QByteArray

const T & operator[](int)

func (*QByteArrayList) Operator_get_index_1

func (this *QByteArrayList) Operator_get_index_1() *QByteArray

T & operator[](int)

func (*QByteArrayList) Operator_left_shift_0

func (this *QByteArrayList) Operator_left_shift_0() *QByteArrayList

QList<T> & operator<<(const T &)

func (*QByteArrayList) Operator_left_shift_1

func (this *QByteArrayList) Operator_left_shift_1() *QByteArrayList

QList<T> & operator<<(const QList<T> &)

func (*QByteArrayList) Operator_not_equal_0

func (this *QByteArrayList) Operator_not_equal_0() bool

bool operator!=(const QList<T> &)

func (*QByteArrayList) Pop_back_0

func (this *QByteArrayList) Pop_back_0()

void pop_back()

func (*QByteArrayList) Pop_front_0

func (this *QByteArrayList) Pop_front_0()

void pop_front()

func (*QByteArrayList) Prepend_0

func (this *QByteArrayList) Prepend_0()

void prepend(const T &)

func (*QByteArrayList) Push_back_0

func (this *QByteArrayList) Push_back_0()

void push_back(const T &)

func (*QByteArrayList) Push_front_0

func (this *QByteArrayList) Push_front_0()

void push_front(const T &)

func (*QByteArrayList) Rbegin_0

func (this *QByteArrayList) Rbegin_0()

QList::reverse_iterator rbegin()

func (*QByteArrayList) Rbegin_1

func (this *QByteArrayList) Rbegin_1()

QList::const_reverse_iterator rbegin()

func (*QByteArrayList) RemoveAll_0

func (this *QByteArrayList) RemoveAll_0() int

int removeAll(const T &)

func (*QByteArrayList) RemoveAt_0

func (this *QByteArrayList) RemoveAt_0()

void removeAt(int)

func (*QByteArrayList) RemoveFirst_0

func (this *QByteArrayList) RemoveFirst_0()

void removeFirst()

func (*QByteArrayList) RemoveLast_0

func (this *QByteArrayList) RemoveLast_0()

void removeLast()

func (*QByteArrayList) RemoveOne_0

func (this *QByteArrayList) RemoveOne_0() bool

bool removeOne(const T &)

func (*QByteArrayList) Rend_0

func (this *QByteArrayList) Rend_0()

QList::reverse_iterator rend()

func (*QByteArrayList) Rend_1

func (this *QByteArrayList) Rend_1()

QList::const_reverse_iterator rend()

func (*QByteArrayList) Replace_0

func (this *QByteArrayList) Replace_0()

void replace(int, const T &)

func (*QByteArrayList) Reserve_0

func (this *QByteArrayList) Reserve_0()

void reserve(int)

func (*QByteArrayList) SetSharable_0

func (this *QByteArrayList) SetSharable_0()

void setSharable(_Bool)

func (*QByteArrayList) Size_0

func (this *QByteArrayList) Size_0() int

int size()

func (*QByteArrayList) StartsWith_0

func (this *QByteArrayList) StartsWith_0() bool

bool startsWith(const T &)

func (*QByteArrayList) Swap_0

func (this *QByteArrayList) Swap_0()

void swap(QList<T> &)

func (*QByteArrayList) Swap_1

func (this *QByteArrayList) Swap_1()

void swap(int, int)

func (*QByteArrayList) TakeAt_0

func (this *QByteArrayList) TakeAt_0() *QByteArray

T takeAt(int)

func (*QByteArrayList) TakeFirst_0

func (this *QByteArrayList) TakeFirst_0() *QByteArray

T takeFirst()

func (*QByteArrayList) TakeLast_0

func (this *QByteArrayList) TakeLast_0() *QByteArray

T takeLast()

func (*QByteArrayList) ToSet_0

func (this *QByteArrayList) ToSet_0()

QSet<T> toSet()

func (*QByteArrayList) ToStdList_0

func (this *QByteArrayList) ToStdList_0()

std::list<T> toStdList()

func (*QByteArrayList) ToVector_0

func (this *QByteArrayList) ToVector_0()

QVector<T> toVector()

func (*QByteArrayList) Value_0

func (this *QByteArrayList) Value_0() *QByteArray

T value(int)

func (*QByteArrayList) Value_1

func (this *QByteArrayList) Value_1() *QByteArray

T value(int, const T &)

type QByteArrayMatcher

type QByteArrayMatcher struct {
	*qtrt.CObject
}

func NewQByteArrayMatcher

func NewQByteArrayMatcher() *QByteArrayMatcher

Constructs an empty byte array matcher that won't match anything. Call setPattern() to give it a pattern to match.

func NewQByteArrayMatcherFromPointer

func NewQByteArrayMatcherFromPointer(cthis unsafe.Pointer) *QByteArrayMatcher

func NewQByteArrayMatcher_1

func NewQByteArrayMatcher_1(pattern QByteArray_ITF) *QByteArrayMatcher

Constructs an empty byte array matcher that won't match anything. Call setPattern() to give it a pattern to match.

func NewQByteArrayMatcher_2

func NewQByteArrayMatcher_2(pattern string, length int) *QByteArrayMatcher

Constructs an empty byte array matcher that won't match anything. Call setPattern() to give it a pattern to match.

func (*QByteArrayMatcher) GetCthis

func (this *QByteArrayMatcher) GetCthis() unsafe.Pointer

func (*QByteArrayMatcher) IndexIn

func (this *QByteArrayMatcher) IndexIn(ba QByteArray_ITF, from int) int

Searches the byte array ba, from byte position from (default 0, i.e. from the first byte), for the byte array pattern() that was set in the constructor or in the most recent call to setPattern(). Returns the position where the pattern() matched in ba, or -1 if no match was found.

func (*QByteArrayMatcher) IndexIn_1

func (this *QByteArrayMatcher) IndexIn_1(str string, len_ int, from int) int

Searches the byte array ba, from byte position from (default 0, i.e. from the first byte), for the byte array pattern() that was set in the constructor or in the most recent call to setPattern(). Returns the position where the pattern() matched in ba, or -1 if no match was found.

func (*QByteArrayMatcher) IndexIn_1_

func (this *QByteArrayMatcher) IndexIn_1_(str string, len_ int) int

Searches the byte array ba, from byte position from (default 0, i.e. from the first byte), for the byte array pattern() that was set in the constructor or in the most recent call to setPattern(). Returns the position where the pattern() matched in ba, or -1 if no match was found.

func (*QByteArrayMatcher) IndexIn__

func (this *QByteArrayMatcher) IndexIn__(ba QByteArray_ITF) int

Searches the byte array ba, from byte position from (default 0, i.e. from the first byte), for the byte array pattern() that was set in the constructor or in the most recent call to setPattern(). Returns the position where the pattern() matched in ba, or -1 if no match was found.

func (*QByteArrayMatcher) NewFromPointer

func (*QByteArrayMatcher) NewFromPointer(cthis unsafe.Pointer) *QByteArrayMatcher

func (*QByteArrayMatcher) Operator_equal

func (this *QByteArrayMatcher) Operator_equal(other QByteArrayMatcher_ITF) *QByteArrayMatcher

func (*QByteArrayMatcher) Pattern

func (this *QByteArrayMatcher) Pattern() *QByteArray

Returns the byte array pattern that this byte array matcher will search for.

See also setPattern().

func (*QByteArrayMatcher) QByteArrayMatcher_PTR

func (ptr *QByteArrayMatcher) QByteArrayMatcher_PTR() *QByteArrayMatcher

func (*QByteArrayMatcher) SetCthis

func (this *QByteArrayMatcher) SetCthis(cthis unsafe.Pointer)

func (*QByteArrayMatcher) SetPattern

func (this *QByteArrayMatcher) SetPattern(pattern QByteArray_ITF)

Sets the byte array that this byte array matcher will search for to pattern.

See also pattern() and indexIn().

type QByteArrayMatcher_ITF

type QByteArrayMatcher_ITF interface {
	QByteArrayMatcher_PTR() *QByteArrayMatcher
}

type QByteArray_ITF

type QByteArray_ITF interface {
	QByteArray_PTR() *QByteArray
}

type QByteArray__Base64Option

type QByteArray__Base64Option = int
const QByteArray__Base64Encoding QByteArray__Base64Option = 0
const QByteArray__Base64UrlEncoding QByteArray__Base64Option = 1
const QByteArray__KeepTrailingEquals QByteArray__Base64Option = 0
const QByteArray__OmitTrailingEquals QByteArray__Base64Option = 2

type QByteRef

type QByteRef struct {
	*qtrt.CObject
}

func NewQByteRefFromPointer

func NewQByteRefFromPointer(cthis unsafe.Pointer) *QByteRef

func (*QByteRef) GetCthis

func (this *QByteRef) GetCthis() unsafe.Pointer

func (*QByteRef) NewFromPointer

func (*QByteRef) NewFromPointer(cthis unsafe.Pointer) *QByteRef

func (*QByteRef) Operator_equal

func (this *QByteRef) Operator_equal(c byte) *QByteRef

func (*QByteRef) Operator_equal_1

func (this *QByteRef) Operator_equal_1(c QByteRef_ITF) *QByteRef

func (*QByteRef) Operator_equal_equal

func (this *QByteRef) Operator_equal_equal(c byte) bool

func (*QByteRef) Operator_greater_than

func (this *QByteRef) Operator_greater_than(c byte) bool

func (*QByteRef) Operator_greater_than_equal

func (this *QByteRef) Operator_greater_than_equal(c byte) bool

func (*QByteRef) Operator_less_than

func (this *QByteRef) Operator_less_than(c byte) bool

func (*QByteRef) Operator_less_than_equal

func (this *QByteRef) Operator_less_than_equal(c byte) bool

func (*QByteRef) Operator_not_equal

func (this *QByteRef) Operator_not_equal(c byte) bool

func (*QByteRef) QByteRef_PTR

func (ptr *QByteRef) QByteRef_PTR() *QByteRef

func (*QByteRef) SetCthis

func (this *QByteRef) SetCthis(cthis unsafe.Pointer)

type QByteRef_ITF

type QByteRef_ITF interface {
	QByteRef_PTR() *QByteRef
}

type QChar

type QChar struct {
	*qtrt.CObject
}

func NewQChar

func NewQChar() *QChar

Constructs a null QChar ('\0').

See also isNull().

func NewQCharFromPointer

func NewQCharFromPointer(cthis unsafe.Pointer) *QChar

func NewQChar_1

func NewQChar_1(rc uint16) *QChar

Constructs a null QChar ('\0').

See also isNull().

func NewQChar_2

func NewQChar_2(c byte, r byte) *QChar

Constructs a null QChar ('\0').

See also isNull().

func NewQChar_3

func NewQChar_3(rc int16) *QChar

Constructs a null QChar ('\0').

See also isNull().

func NewQChar_4

func NewQChar_4(rc uint) *QChar

Constructs a null QChar ('\0').

See also isNull().

func NewQChar_5

func NewQChar_5(rc int) *QChar

Constructs a null QChar ('\0').

See also isNull().

func NewQChar_6

func NewQChar_6(s int) *QChar

Constructs a null QChar ('\0').

See also isNull().

func NewQChar_7

func NewQChar_7(ch int16) *QChar

Constructs a null QChar ('\0').

See also isNull().

func NewQChar_8

func NewQChar_8(c byte) *QChar

Constructs a null QChar ('\0').

See also isNull().

func NewQChar_9

func NewQChar_9(c byte) *QChar

Constructs a null QChar ('\0').

See also isNull().

func QChar_FromLatin1

func QChar_FromLatin1(c byte) *QChar

func QDir_ListSeparator

func QDir_ListSeparator() *QChar

func QDir_Separator

func QDir_Separator() *QChar

func QUrlQuery_DefaultQueryPairDelimiter

func QUrlQuery_DefaultQueryPairDelimiter() *QChar

func QUrlQuery_DefaultQueryValueDelimiter

func QUrlQuery_DefaultQueryValueDelimiter() *QChar

func (*QChar) Category

func (this *QChar) Category() int

Returns the character's category.

func (*QChar) Category_1

func (this *QChar) Category_1(ucs4 uint) int

Returns the character's category.

func (*QChar) Cell

func (this *QChar) Cell() byte

Returns the cell (least significant byte) of the Unicode character.

See also row().

func (*QChar) CombiningClass

func (this *QChar) CombiningClass() byte

Returns the combining class for the character as defined in the Unicode standard. This is mainly useful as a positioning hint for marks attached to a base character.

The Qt text rendering engine uses this information to correctly position non-spacing marks around a base character.

func (*QChar) CombiningClass_1

func (this *QChar) CombiningClass_1(ucs4 uint) byte

Returns the combining class for the character as defined in the Unicode standard. This is mainly useful as a positioning hint for marks attached to a base character.

The Qt text rendering engine uses this information to correctly position non-spacing marks around a base character.

func (*QChar) CurrentUnicodeVersion

func (this *QChar) CurrentUnicodeVersion() int

Returns the most recent supported Unicode version.

func (*QChar) Decomposition

func (this *QChar) Decomposition() string

Decomposes a character into it's constituent parts. Returns an empty string if no decomposition exists.

func (*QChar) DecompositionTag

func (this *QChar) DecompositionTag() int

Returns the tag defining the composition of the character. Returns QChar::NoDecomposition if no decomposition exists.

func (*QChar) DecompositionTag_1

func (this *QChar) DecompositionTag_1(ucs4 uint) int

Returns the tag defining the composition of the character. Returns QChar::NoDecomposition if no decomposition exists.

func (*QChar) Decomposition_1

func (this *QChar) Decomposition_1(ucs4 uint) string

Decomposes a character into it's constituent parts. Returns an empty string if no decomposition exists.

func (*QChar) DigitValue

func (this *QChar) DigitValue() int

Returns the numeric value of the digit, or -1 if the character is not a digit.

func (*QChar) DigitValue_1

func (this *QChar) DigitValue_1(ucs4 uint) int

Returns the numeric value of the digit, or -1 if the character is not a digit.

func (*QChar) Direction

func (this *QChar) Direction() int

Returns the character's direction.

func (*QChar) Direction_1

func (this *QChar) Direction_1(ucs4 uint) int

Returns the character's direction.

func (*QChar) FromLatin1

func (this *QChar) FromLatin1(c byte) *QChar

Converts the Latin-1 character c to its equivalent QChar. This is mainly useful for non-internationalized software.

An alternative is to use QLatin1Char.

See also toLatin1() and unicode().

func (*QChar) GetCthis

func (this *QChar) GetCthis() unsafe.Pointer

func (*QChar) HasMirrored

func (this *QChar) HasMirrored() bool

Returns true if the character should be reversed if the text direction is reversed; otherwise returns false.

A bit faster equivalent of (ch.mirroredChar() != ch).

See also mirroredChar().

func (*QChar) HasMirrored_1

func (this *QChar) HasMirrored_1(ucs4 uint) bool

Returns true if the character should be reversed if the text direction is reversed; otherwise returns false.

A bit faster equivalent of (ch.mirroredChar() != ch).

See also mirroredChar().

func (*QChar) HighSurrogate

func (this *QChar) HighSurrogate(ucs4 uint) uint16

Returns the high surrogate part of a UCS-4-encoded code point. The returned result is undefined if ucs4 is smaller than 0x10000.

func (*QChar) IsDigit

func (this *QChar) IsDigit() bool

Returns true if the character is a decimal digit (Number_DecimalDigit); otherwise returns false.

See also isNumber().

func (*QChar) IsDigit_1

func (this *QChar) IsDigit_1(ucs4 uint) bool

Returns true if the character is a decimal digit (Number_DecimalDigit); otherwise returns false.

See also isNumber().

func (*QChar) IsHighSurrogate

func (this *QChar) IsHighSurrogate() bool

Returns true if the QChar is the high part of a UTF16 surrogate (for example if its code point is in range [0xd800..0xdbff]); false otherwise.

func (*QChar) IsHighSurrogate_1

func (this *QChar) IsHighSurrogate_1(ucs4 uint) bool

Returns true if the QChar is the high part of a UTF16 surrogate (for example if its code point is in range [0xd800..0xdbff]); false otherwise.

func (*QChar) IsLetter

func (this *QChar) IsLetter() bool

Returns true if the character is a letter (Letter_* categories); otherwise returns false.

func (*QChar) IsLetterOrNumber

func (this *QChar) IsLetterOrNumber() bool

Returns true if the character is a letter or number (Letter_* or Number_* categories); otherwise returns false.

func (*QChar) IsLetterOrNumber_1

func (this *QChar) IsLetterOrNumber_1(ucs4 uint) bool

Returns true if the character is a letter or number (Letter_* or Number_* categories); otherwise returns false.

func (*QChar) IsLetter_1

func (this *QChar) IsLetter_1(ucs4 uint) bool

Returns true if the character is a letter (Letter_* categories); otherwise returns false.

func (*QChar) IsLowSurrogate

func (this *QChar) IsLowSurrogate() bool

Returns true if the QChar is the low part of a UTF16 surrogate (for example if its code point is in range [0xdc00..0xdfff]); false otherwise.

func (*QChar) IsLowSurrogate_1

func (this *QChar) IsLowSurrogate_1(ucs4 uint) bool

Returns true if the QChar is the low part of a UTF16 surrogate (for example if its code point is in range [0xdc00..0xdfff]); false otherwise.

func (*QChar) IsLower

func (this *QChar) IsLower() bool

Returns true if the character is a lowercase letter, for example category() is Letter_Lowercase.

See also isUpper(), toLower(), and toUpper().

func (*QChar) IsLower_1

func (this *QChar) IsLower_1(ucs4 uint) bool

Returns true if the character is a lowercase letter, for example category() is Letter_Lowercase.

See also isUpper(), toLower(), and toUpper().

func (*QChar) IsMark

func (this *QChar) IsMark() bool

Returns true if the character is a mark (Mark_* categories); otherwise returns false.

See QChar::Category for more information regarding marks.

func (*QChar) IsMark_1

func (this *QChar) IsMark_1(ucs4 uint) bool

Returns true if the character is a mark (Mark_* categories); otherwise returns false.

See QChar::Category for more information regarding marks.

func (*QChar) IsNonCharacter

func (this *QChar) IsNonCharacter() bool

Returns true if the QChar is a non-character; false otherwise.

Unicode has a certain number of code points that are classified as "non-characters:" that is, they can be used for internal purposes in applications but cannot be used for text interchange. Those are the last two entries each Unicode Plane ([0xfffe..0xffff], [0x1fffe..0x1ffff], etc.) as well as the entries in range [0xfdd0..0xfdef].

This function was introduced in Qt 5.0.

func (*QChar) IsNonCharacter_1

func (this *QChar) IsNonCharacter_1(ucs4 uint) bool

Returns true if the QChar is a non-character; false otherwise.

Unicode has a certain number of code points that are classified as "non-characters:" that is, they can be used for internal purposes in applications but cannot be used for text interchange. Those are the last two entries each Unicode Plane ([0xfffe..0xffff], [0x1fffe..0x1ffff], etc.) as well as the entries in range [0xfdd0..0xfdef].

This function was introduced in Qt 5.0.

func (*QChar) IsNull

func (this *QChar) IsNull() bool

Returns true if the character is the Unicode character 0x0000 ('\0'); otherwise returns false.

func (*QChar) IsNumber

func (this *QChar) IsNumber() bool

Returns true if the character is a number (Number_* categories, not just 0-9); otherwise returns false.

See also isDigit().

func (*QChar) IsNumber_1

func (this *QChar) IsNumber_1(ucs4 uint) bool

Returns true if the character is a number (Number_* categories, not just 0-9); otherwise returns false.

See also isDigit().

func (*QChar) IsPrint

func (this *QChar) IsPrint() bool

Returns true if the character is a printable character; otherwise returns false. This is any character not of category Other_*.

Note that this gives no indication of whether the character is available in a particular font.

func (*QChar) IsPrint_1

func (this *QChar) IsPrint_1(ucs4 uint) bool

Returns true if the character is a printable character; otherwise returns false. This is any character not of category Other_*.

Note that this gives no indication of whether the character is available in a particular font.

func (*QChar) IsPunct

func (this *QChar) IsPunct() bool

Returns true if the character is a punctuation mark (Punctuation_* categories); otherwise returns false.

func (*QChar) IsPunct_1

func (this *QChar) IsPunct_1(ucs4 uint) bool

Returns true if the character is a punctuation mark (Punctuation_* categories); otherwise returns false.

func (*QChar) IsSpace

func (this *QChar) IsSpace() bool

Returns true if the character is a separator character (Separator_* categories or certain code points from Other_Control category); otherwise returns false.

func (*QChar) IsSpace_1

func (this *QChar) IsSpace_1(ucs4 uint) bool

Returns true if the character is a separator character (Separator_* categories or certain code points from Other_Control category); otherwise returns false.

func (*QChar) IsSurrogate

func (this *QChar) IsSurrogate() bool

Returns true if the QChar contains a code point that is in either the high or the low part of the UTF-16 surrogate range (for example if its code point is in range [0xd800..0xdfff]); false otherwise.

This function was introduced in Qt 5.0.

func (*QChar) IsSurrogate_1

func (this *QChar) IsSurrogate_1(ucs4 uint) bool

Returns true if the QChar contains a code point that is in either the high or the low part of the UTF-16 surrogate range (for example if its code point is in range [0xd800..0xdfff]); false otherwise.

This function was introduced in Qt 5.0.

func (*QChar) IsSymbol

func (this *QChar) IsSymbol() bool

Returns true if the character is a symbol (Symbol_* categories); otherwise returns false.

func (*QChar) IsSymbol_1

func (this *QChar) IsSymbol_1(ucs4 uint) bool

Returns true if the character is a symbol (Symbol_* categories); otherwise returns false.

func (*QChar) IsTitleCase

func (this *QChar) IsTitleCase() bool

Returns true if the character is a titlecase letter, for example category() is Letter_Titlecase.

See also isLower(), toUpper(), toLower(), and toTitleCase().

func (*QChar) IsTitleCase_1

func (this *QChar) IsTitleCase_1(ucs4 uint) bool

Returns true if the character is a titlecase letter, for example category() is Letter_Titlecase.

See also isLower(), toUpper(), toLower(), and toTitleCase().

func (*QChar) IsUpper

func (this *QChar) IsUpper() bool

Returns true if the character is an uppercase letter, for example category() is Letter_Uppercase.

See also isLower(), toUpper(), and toLower().

func (*QChar) IsUpper_1

func (this *QChar) IsUpper_1(ucs4 uint) bool

Returns true if the character is an uppercase letter, for example category() is Letter_Uppercase.

See also isLower(), toUpper(), and toLower().

func (*QChar) Joining

func (this *QChar) Joining() int

func (*QChar) JoiningType

func (this *QChar) JoiningType() int

Returns information about the joining type attributes of the character (needed for certain languages such as Arabic or Syriac).

This function was introduced in Qt 5.3.

func (*QChar) JoiningType_1

func (this *QChar) JoiningType_1(ucs4 uint) int

Returns information about the joining type attributes of the character (needed for certain languages such as Arabic or Syriac).

This function was introduced in Qt 5.3.

func (*QChar) Joining_1

func (this *QChar) Joining_1(ucs4 uint) int

func (*QChar) LowSurrogate

func (this *QChar) LowSurrogate(ucs4 uint) uint16

Returns the low surrogate part of a UCS-4-encoded code point. The returned result is undefined if ucs4 is smaller than 0x10000.

func (*QChar) MirroredChar

func (this *QChar) MirroredChar() *QChar

Returns the mirrored character if this character is a mirrored character; otherwise returns the character itself.

See also hasMirrored().

func (*QChar) MirroredChar_1

func (this *QChar) MirroredChar_1(ucs4 uint) uint

Returns the mirrored character if this character is a mirrored character; otherwise returns the character itself.

See also hasMirrored().

func (*QChar) NewFromPointer

func (*QChar) NewFromPointer(cthis unsafe.Pointer) *QChar

func (*QChar) QChar_PTR

func (ptr *QChar) QChar_PTR() *QChar

func (*QChar) RequiresSurrogates

func (this *QChar) RequiresSurrogates(ucs4 uint) bool

Returns true if the UCS-4-encoded character specified by ucs4 can be split into the high and low parts of a UTF16 surrogate (for example if its code point is greater than or equals to 0x10000); false otherwise.

func (*QChar) Row

func (this *QChar) Row() byte

Returns the row (most significant byte) of the Unicode character.

See also cell().

func (*QChar) Script

func (this *QChar) Script() int

Returns the Unicode script property value for this character.

This function was introduced in Qt 5.1.

func (*QChar) Script_1

func (this *QChar) Script_1(ucs4 uint) int

Returns the Unicode script property value for this character.

This function was introduced in Qt 5.1.

func (*QChar) SetCell

func (this *QChar) SetCell(acell byte)

func (*QChar) SetCthis

func (this *QChar) SetCthis(cthis unsafe.Pointer)

func (*QChar) SetRow

func (this *QChar) SetRow(arow byte)

func (*QChar) SurrogateToUcs4

func (this *QChar) SurrogateToUcs4(high uint16, low uint16) uint

Converts a UTF16 surrogate pair with the given high and low values to it's UCS-4-encoded code point.

func (*QChar) SurrogateToUcs4_1

func (this *QChar) SurrogateToUcs4_1(high QChar_ITF, low QChar_ITF) uint

Converts a UTF16 surrogate pair with the given high and low values to it's UCS-4-encoded code point.

func (*QChar) ToCaseFolded

func (this *QChar) ToCaseFolded() *QChar

Returns the case folded equivalent of the character. For most Unicode characters this is the same as toLower().

func (*QChar) ToCaseFolded_1

func (this *QChar) ToCaseFolded_1(ucs4 uint) uint

Returns the case folded equivalent of the character. For most Unicode characters this is the same as toLower().

func (*QChar) ToLatin1

func (this *QChar) ToLatin1() byte

Returns the Latin-1 character equivalent to the QChar, or 0. This is mainly useful for non-internationalized software.

Note: It is not possible to distinguish a non-Latin-1 character from a Latin-1 0 (NUL) character. Prefer to use unicode(), which does not have this ambiguity.

See also unicode().

func (*QChar) ToLower

func (this *QChar) ToLower() *QChar

Returns the lowercase equivalent if the character is uppercase or titlecase; otherwise returns the character itself.

func (*QChar) ToLower_1

func (this *QChar) ToLower_1(ucs4 uint) uint

Returns the lowercase equivalent if the character is uppercase or titlecase; otherwise returns the character itself.

func (*QChar) ToTitleCase

func (this *QChar) ToTitleCase() *QChar

Returns the title case equivalent if the character is lowercase or uppercase; otherwise returns the character itself.

func (*QChar) ToTitleCase_1

func (this *QChar) ToTitleCase_1(ucs4 uint) uint

Returns the title case equivalent if the character is lowercase or uppercase; otherwise returns the character itself.

func (*QChar) ToUpper

func (this *QChar) ToUpper() *QChar

Returns the uppercase equivalent if the character is lowercase or titlecase; otherwise returns the character itself.

func (*QChar) ToUpper_1

func (this *QChar) ToUpper_1(ucs4 uint) uint

Returns the uppercase equivalent if the character is lowercase or titlecase; otherwise returns the character itself.

func (*QChar) Unicode

func (this *QChar) Unicode() uint16

Returns the numeric Unicode value of the QChar.

func (*QChar) UnicodeVersion

func (this *QChar) UnicodeVersion() int

Returns the Unicode version that introduced this character.

func (*QChar) UnicodeVersion_1

func (this *QChar) UnicodeVersion_1(ucs4 uint) int

Returns the Unicode version that introduced this character.

func (*QChar) Unicode_1

func (this *QChar) Unicode_1() uint16

Returns the numeric Unicode value of the QChar.

type QCharRef

type QCharRef struct {
	*qtrt.CObject
}

func NewQCharRefFromPointer

func NewQCharRefFromPointer(cthis unsafe.Pointer) *QCharRef

func (*QCharRef) Category

func (this *QCharRef) Category() int

func (*QCharRef) Cell

func (this *QCharRef) Cell() byte

func (*QCharRef) CombiningClass

func (this *QCharRef) CombiningClass() byte

func (*QCharRef) Decomposition

func (this *QCharRef) Decomposition() string

func (*QCharRef) DecompositionTag

func (this *QCharRef) DecompositionTag() int

func (*QCharRef) DigitValue

func (this *QCharRef) DigitValue() int

func (*QCharRef) Direction

func (this *QCharRef) Direction() int

func (*QCharRef) GetCthis

func (this *QCharRef) GetCthis() unsafe.Pointer

func (*QCharRef) HasMirrored

func (this *QCharRef) HasMirrored() bool

func (*QCharRef) IsDigit

func (this *QCharRef) IsDigit() bool

func (*QCharRef) IsLetter

func (this *QCharRef) IsLetter() bool

func (*QCharRef) IsLetterOrNumber

func (this *QCharRef) IsLetterOrNumber() bool

func (*QCharRef) IsLower

func (this *QCharRef) IsLower() bool

func (*QCharRef) IsMark

func (this *QCharRef) IsMark() bool

func (*QCharRef) IsNull

func (this *QCharRef) IsNull() bool

Returns true if this string is null; otherwise returns false.

Example:

QString().isNull();             // returns true
QString("").isNull();           // returns false
QString("abc").isNull();        // returns false

Qt makes a distinction between null strings and empty strings for historical reasons. For most applications, what matters is whether or not a string contains any data, and this can be determined using the isEmpty() function.

See also isEmpty().

func (*QCharRef) IsNumber

func (this *QCharRef) IsNumber() bool

func (*QCharRef) IsPrint

func (this *QCharRef) IsPrint() bool

func (*QCharRef) IsPunct

func (this *QCharRef) IsPunct() bool

func (*QCharRef) IsSpace

func (this *QCharRef) IsSpace() bool

func (*QCharRef) IsTitleCase

func (this *QCharRef) IsTitleCase() bool

func (*QCharRef) IsUpper

func (this *QCharRef) IsUpper() bool

func (*QCharRef) Joining

func (this *QCharRef) Joining() int

func (*QCharRef) JoiningType

func (this *QCharRef) JoiningType() int

func (*QCharRef) MirroredChar

func (this *QCharRef) MirroredChar() *QChar

func (*QCharRef) NewFromPointer

func (*QCharRef) NewFromPointer(cthis unsafe.Pointer) *QCharRef

func (*QCharRef) Operator_equal

func (this *QCharRef) Operator_equal(c QChar_ITF) *QCharRef

func (*QCharRef) Operator_equal_1

func (this *QCharRef) Operator_equal_1(c byte) *QCharRef

func (*QCharRef) Operator_equal_2

func (this *QCharRef) Operator_equal_2(c byte) *QCharRef

func (*QCharRef) Operator_equal_3

func (this *QCharRef) Operator_equal_3(c QCharRef_ITF) *QCharRef

func (*QCharRef) Operator_equal_4

func (this *QCharRef) Operator_equal_4(rc uint16) *QCharRef

func (*QCharRef) Operator_equal_5

func (this *QCharRef) Operator_equal_5(rc int16) *QCharRef

func (*QCharRef) Operator_equal_6

func (this *QCharRef) Operator_equal_6(rc uint) *QCharRef

func (*QCharRef) Operator_equal_7

func (this *QCharRef) Operator_equal_7(rc int) *QCharRef

func (*QCharRef) QCharRef_PTR

func (ptr *QCharRef) QCharRef_PTR() *QCharRef

func (*QCharRef) Row

func (this *QCharRef) Row() byte

func (*QCharRef) Script

func (this *QCharRef) Script() int

func (*QCharRef) SetCell

func (this *QCharRef) SetCell(cell byte)

func (*QCharRef) SetCthis

func (this *QCharRef) SetCthis(cthis unsafe.Pointer)

func (*QCharRef) SetRow

func (this *QCharRef) SetRow(row byte)

func (*QCharRef) ToLatin1

func (this *QCharRef) ToLatin1() byte

Returns a Latin-1 representation of the string as a QByteArray.

The returned byte array is undefined if the string contains non-Latin1 characters. Those characters may be suppressed or replaced with a question mark.

See also fromLatin1(), toUtf8(), toLocal8Bit(), QTextCodec, and qConvertToLatin1().

func (*QCharRef) ToLower

func (this *QCharRef) ToLower() *QChar

Returns a lowercase copy of the string.

QString str = "The Qt PROJECT";
str = str.toLower();        // str == "the qt project"

The case conversion will always happen in the 'C' locale. For locale dependent case folding use QLocale::toLower()

See also toUpper() and QLocale::toLower().

func (*QCharRef) ToTitleCase

func (this *QCharRef) ToTitleCase() *QChar

func (*QCharRef) ToUpper

func (this *QCharRef) ToUpper() *QChar

Returns an uppercase copy of the string.

QString str = "TeXt";
str = str.toUpper();        // str == "TEXT"

The case conversion will always happen in the 'C' locale. For locale dependent case folding use QLocale::toUpper()

See also toLower() and QLocale::toLower().

func (*QCharRef) Unicode

func (this *QCharRef) Unicode() uint16

Returns a Unicode representation of the string. The result remains valid until the string is modified.

Note: The returned string may not be '\0'-terminated. Use size() to determine the length of the array.

See also setUnicode(), utf16(), and fromRawData().

func (*QCharRef) UnicodeVersion

func (this *QCharRef) UnicodeVersion() int

func (*QCharRef) Unicode_1

func (this *QCharRef) Unicode_1() uint16

Returns a Unicode representation of the string. The result remains valid until the string is modified.

Note: The returned string may not be '\0'-terminated. Use size() to determine the length of the array.

See also setUnicode(), utf16(), and fromRawData().

type QCharRef_ITF

type QCharRef_ITF interface {
	QCharRef_PTR() *QCharRef
}

type QChar_ITF

type QChar_ITF interface {
	QChar_PTR() *QChar
}

type QChar__Category

type QChar__Category = int

This enum maps the Unicode character categories.

The following characters are normative in Unicode:

The following categories are informative in Unicode:

See also category().

const QChar__Letter_Lowercase QChar__Category = 15
const QChar__Letter_Modifier QChar__Category = 17
const QChar__Letter_Other QChar__Category = 18
const QChar__Letter_Titlecase QChar__Category = 16
const QChar__Letter_Uppercase QChar__Category = 14
const QChar__Mark_Enclosing QChar__Category = 2

Unicode class name Me

const QChar__Mark_NonSpacing QChar__Category = 0

Unicode class name Mn

const QChar__Mark_SpacingCombining QChar__Category = 1

Unicode class name Mc

const QChar__Number_DecimalDigit QChar__Category = 3

Unicode class name Nd

const QChar__Number_Letter QChar__Category = 4

Unicode class name Nl

const QChar__Number_Other QChar__Category = 5

Unicode class name No

const QChar__Other_Control QChar__Category = 9

Unicode class name Cc

const QChar__Other_Format QChar__Category = 10
const QChar__Other_NotAssigned QChar__Category = 13
const QChar__Other_PrivateUse QChar__Category = 12
const QChar__Other_Surrogate QChar__Category = 11
const QChar__Punctuation_Close QChar__Category = 22
const QChar__Punctuation_Connector QChar__Category = 19
const QChar__Punctuation_Dash QChar__Category = 20
const QChar__Punctuation_FinalQuote QChar__Category = 24
const QChar__Punctuation_InitialQuote QChar__Category = 23
const QChar__Punctuation_Open QChar__Category = 21
const QChar__Punctuation_Other QChar__Category = 25
const QChar__Separator_Line QChar__Category = 7

Unicode class name Zl

const QChar__Separator_Paragraph QChar__Category = 8

Unicode class name Zp

const QChar__Separator_Space QChar__Category = 6

Unicode class name Zs

const QChar__Symbol_Currency QChar__Category = 27
const QChar__Symbol_Math QChar__Category = 26
const QChar__Symbol_Modifier QChar__Category = 28
const QChar__Symbol_Other QChar__Category = 29

type QChar__CombiningClass

type QChar__CombiningClass = int
const QChar__Combining_Above QChar__CombiningClass = 230
const QChar__Combining_AboveAttached QChar__CombiningClass = 214
const QChar__Combining_AboveLeft QChar__CombiningClass = 228
const QChar__Combining_AboveLeftAttached QChar__CombiningClass = 212
const QChar__Combining_AboveRight QChar__CombiningClass = 232
const QChar__Combining_AboveRightAttached QChar__CombiningClass = 216
const QChar__Combining_Below QChar__CombiningClass = 220
const QChar__Combining_BelowAttached QChar__CombiningClass = 202
const QChar__Combining_BelowLeft QChar__CombiningClass = 218
const QChar__Combining_BelowLeftAttached QChar__CombiningClass = 200
const QChar__Combining_BelowRight QChar__CombiningClass = 222
const QChar__Combining_BelowRightAttached QChar__CombiningClass = 204
const QChar__Combining_DoubleAbove QChar__CombiningClass = 234
const QChar__Combining_DoubleBelow QChar__CombiningClass = 233
const QChar__Combining_IotaSubscript QChar__CombiningClass = 240
const QChar__Combining_Left QChar__CombiningClass = 224
const QChar__Combining_LeftAttached QChar__CombiningClass = 208
const QChar__Combining_Right QChar__CombiningClass = 226
const QChar__Combining_RightAttached QChar__CombiningClass = 210

type QChar__Decomposition

type QChar__Decomposition = int

This enum type defines the Unicode decomposition attributes. See the Unicode Standard for a description of the values.

ConstantValue QChar::NoDecomposition0 QChar::Canonical1 QChar::Circle8 QChar::Final6 QChar::Font2 QChar::Initial4 QChar::Isolated7 QChar::Medial5 QChar::NoBreak3 QChar::Super9

See also decomposition().

const QChar__Canonical QChar__Decomposition = 1
const QChar__Circle QChar__Decomposition = 8
const QChar__Compat QChar__Decomposition = 16

6

const QChar__Final QChar__Decomposition = 6
const QChar__Font QChar__Decomposition = 2
const QChar__Fraction QChar__Decomposition = 17

7

const QChar__Initial QChar__Decomposition = 4
const QChar__Isolated QChar__Decomposition = 7
const QChar__Medial QChar__Decomposition = 5
const QChar__Narrow QChar__Decomposition = 13

3

const QChar__NoBreak QChar__Decomposition = 3
const QChar__NoDecomposition QChar__Decomposition = 0
const QChar__Small QChar__Decomposition = 14

4

const QChar__Square QChar__Decomposition = 15

5

const QChar__Sub QChar__Decomposition = 10

0

const QChar__Super QChar__Decomposition = 9
const QChar__Vertical QChar__Decomposition = 11

1

const QChar__Wide QChar__Decomposition = 12

2

type QChar__Direction

type QChar__Direction = int

This enum type defines the Unicode direction attributes. See the Unicode Standard for a description of the values.

In order to conform to C/C++ naming conventions "Dir" is prepended to the codes used in the Unicode Standard.

See also direction().

const QChar__DirAL QChar__Direction = 13
const QChar__DirAN QChar__Direction = 5
const QChar__DirB QChar__Direction = 7
const QChar__DirBN QChar__Direction = 18
const QChar__DirCS QChar__Direction = 6
const QChar__DirEN QChar__Direction = 2
const QChar__DirES QChar__Direction = 3
const QChar__DirET QChar__Direction = 4
const QChar__DirFSI QChar__Direction = 21
const QChar__DirL QChar__Direction = 0
const QChar__DirLRE QChar__Direction = 11
const QChar__DirLRI QChar__Direction = 19
const QChar__DirLRO QChar__Direction = 12
const QChar__DirNSM QChar__Direction = 17
const QChar__DirON QChar__Direction = 10
const QChar__DirPDF QChar__Direction = 16
const QChar__DirPDI QChar__Direction = 22
const QChar__DirR QChar__Direction = 1
const QChar__DirRLE QChar__Direction = 14
const QChar__DirRLI QChar__Direction = 20
const QChar__DirRLO QChar__Direction = 15
const QChar__DirS QChar__Direction = 8
const QChar__DirWS QChar__Direction = 9

type QChar__Joining

type QChar__Joining = int
const QChar__Center QChar__Joining = 3
const QChar__Dual QChar__Joining = 1
const QChar__OtherJoining QChar__Joining = 0
const QChar__Right QChar__Joining = 2

type QChar__JoiningType

type QChar__JoiningType = int

since 5.3

This enum type defines the Unicode joining type attributes. See the Unicode Standard for a description of the values.

In order to conform to C/C++ naming conventions "Joining_" is prepended to the codes used in the Unicode Standard.

ConstantValue QChar::Joining_None0 QChar::Joining_Causing1 QChar::Joining_Dual2 QChar::Joining_Right3 QChar::Joining_Left4 QChar::Joining_Transparent5

See also joiningType().

const QChar__Joining_Causing QChar__JoiningType = 1
const QChar__Joining_Dual QChar__JoiningType = 2
const QChar__Joining_Left QChar__JoiningType = 4
const QChar__Joining_None QChar__JoiningType = 0
const QChar__Joining_Right QChar__JoiningType = 3
const QChar__Joining_Transparent QChar__JoiningType = 5

type QChar__Script

type QChar__Script = int

This enum type defines the Unicode script property values.

For details about the Unicode script property values see Unicode Standard Annex #24.

In order to conform to C/C++ naming conventions "Script_" is prepended to the codes used in the Unicode Standard.

This enum was introduced or modified in Qt 5.1.

See also script().

const QChar__ScriptCount QChar__Script = 132
const QChar__Script_Ahom QChar__Script = 126
const QChar__Script_AnatolianHieroglyphs QChar__Script = 127
const QChar__Script_Arabic QChar__Script = 8
const QChar__Script_Armenian QChar__Script = 6
const QChar__Script_Avestan QChar__Script = 80
const QChar__Script_Balinese QChar__Script = 62
const QChar__Script_Bamum QChar__Script = 84
const QChar__Script_BassaVah QChar__Script = 104
const QChar__Script_Batak QChar__Script = 93
const QChar__Script_Bengali QChar__Script = 12
const QChar__Script_Bopomofo QChar__Script = 36
const QChar__Script_Brahmi QChar__Script = 94
const QChar__Script_Braille QChar__Script = 54
const QChar__Script_Buginese QChar__Script = 55
const QChar__Script_Buhid QChar__Script = 44
const QChar__Script_CanadianAboriginal QChar__Script = 29
const QChar__Script_Carian QChar__Script = 75
const QChar__Script_CaucasianAlbanian QChar__Script = 103
const QChar__Script_Chakma QChar__Script = 96
const QChar__Script_Cham QChar__Script = 77
const QChar__Script_Cherokee QChar__Script = 28
const QChar__Script_Common QChar__Script = 2

For characters that may be used with multiple scripts and that do not inherit their script from the preceding characters.

const QChar__Script_Coptic QChar__Script = 46
const QChar__Script_Cuneiform QChar__Script = 63
const QChar__Script_Cypriot QChar__Script = 53
const QChar__Script_Cyrillic QChar__Script = 5
const QChar__Script_Deseret QChar__Script = 41
const QChar__Script_Devanagari QChar__Script = 11
const QChar__Script_Duployan QChar__Script = 105
const QChar__Script_EgyptianHieroglyphs QChar__Script = 81
const QChar__Script_Elbasan QChar__Script = 106
const QChar__Script_Ethiopic QChar__Script = 27
const QChar__Script_Georgian QChar__Script = 25
const QChar__Script_Glagolitic QChar__Script = 57
const QChar__Script_Gothic QChar__Script = 40
const QChar__Script_Grantha QChar__Script = 107
const QChar__Script_Greek QChar__Script = 4
const QChar__Script_Gujarati QChar__Script = 14
const QChar__Script_Gurmukhi QChar__Script = 13
const QChar__Script_Han QChar__Script = 37
const QChar__Script_Hangul QChar__Script = 26
const QChar__Script_Hanunoo QChar__Script = 43
const QChar__Script_Hatran QChar__Script = 128
const QChar__Script_Hebrew QChar__Script = 7
const QChar__Script_Hiragana QChar__Script = 34
const QChar__Script_ImperialAramaic QChar__Script = 87
const QChar__Script_Inherited QChar__Script = 1

For characters that may be used with multiple scripts and that inherit their script from the preceding characters. These include nonspacing marks, enclosing marks, and zero width joiner/non-joiner characters.

const QChar__Script_InscriptionalPahlavi QChar__Script = 90
const QChar__Script_InscriptionalParthian QChar__Script = 89
const QChar__Script_Javanese QChar__Script = 85
const QChar__Script_Kaithi QChar__Script = 92
const QChar__Script_Kannada QChar__Script = 18
const QChar__Script_Katakana QChar__Script = 35
const QChar__Script_KayahLi QChar__Script = 72
const QChar__Script_Kharoshthi QChar__Script = 61
const QChar__Script_Khmer QChar__Script = 32
const QChar__Script_Khojki QChar__Script = 109
const QChar__Script_Khudawadi QChar__Script = 123
const QChar__Script_Lao QChar__Script = 22
const QChar__Script_Latin QChar__Script = 3
const QChar__Script_Lepcha QChar__Script = 68
const QChar__Script_Limbu QChar__Script = 47
const QChar__Script_LinearA QChar__Script = 110
const QChar__Script_LinearB QChar__Script = 49
const QChar__Script_Lisu QChar__Script = 83
const QChar__Script_Lycian QChar__Script = 74
const QChar__Script_Lydian QChar__Script = 76
const QChar__Script_Mahajani QChar__Script = 111
const QChar__Script_Malayalam QChar__Script = 19
const QChar__Script_Mandaic QChar__Script = 95
const QChar__Script_Manichaean QChar__Script = 112
const QChar__Script_MeeteiMayek QChar__Script = 86
const QChar__Script_MendeKikakui QChar__Script = 113
const QChar__Script_MeroiticCursive QChar__Script = 97
const QChar__Script_MeroiticHieroglyphs QChar__Script = 98
const QChar__Script_Miao QChar__Script = 99
const QChar__Script_Modi QChar__Script = 114
const QChar__Script_Mongolian QChar__Script = 33
const QChar__Script_Mro QChar__Script = 115
const QChar__Script_Multani QChar__Script = 129
const QChar__Script_Myanmar QChar__Script = 24
const QChar__Script_Nabataean QChar__Script = 117
const QChar__Script_NewTaiLue QChar__Script = 56
const QChar__Script_Nko QChar__Script = 66
const QChar__Script_Ogham QChar__Script = 30
const QChar__Script_OlChiki QChar__Script = 69
const QChar__Script_OldHungarian QChar__Script = 130
const QChar__Script_OldItalic QChar__Script = 39
const QChar__Script_OldNorthArabian QChar__Script = 116
const QChar__Script_OldPermic QChar__Script = 120
const QChar__Script_OldPersian QChar__Script = 60
const QChar__Script_OldSouthArabian QChar__Script = 88
const QChar__Script_OldTurkic QChar__Script = 91
const QChar__Script_Oriya QChar__Script = 15
const QChar__Script_Osmanya QChar__Script = 52
const QChar__Script_PahawhHmong QChar__Script = 108
const QChar__Script_Palmyrene QChar__Script = 118
const QChar__Script_PauCinHau QChar__Script = 119
const QChar__Script_PhagsPa QChar__Script = 65
const QChar__Script_Phoenician QChar__Script = 64
const QChar__Script_PsalterPahlavi QChar__Script = 121
const QChar__Script_Rejang QChar__Script = 73
const QChar__Script_Runic QChar__Script = 31
const QChar__Script_Samaritan QChar__Script = 82
const QChar__Script_Saurashtra QChar__Script = 71
const QChar__Script_Sharada QChar__Script = 100
const QChar__Script_Shavian QChar__Script = 51
const QChar__Script_Siddham QChar__Script = 122
const QChar__Script_SignWriting QChar__Script = 131
const QChar__Script_Sinhala QChar__Script = 20
const QChar__Script_SoraSompeng QChar__Script = 101
const QChar__Script_Sundanese QChar__Script = 67
const QChar__Script_SylotiNagri QChar__Script = 59
const QChar__Script_Syriac QChar__Script = 9
const QChar__Script_Tagalog QChar__Script = 42
const QChar__Script_Tagbanwa QChar__Script = 45
const QChar__Script_TaiLe QChar__Script = 48
const QChar__Script_TaiTham QChar__Script = 78
const QChar__Script_TaiViet QChar__Script = 79
const QChar__Script_Takri QChar__Script = 102
const QChar__Script_Tamil QChar__Script = 16
const QChar__Script_Telugu QChar__Script = 17
const QChar__Script_Thaana QChar__Script = 10
const QChar__Script_Thai QChar__Script = 21
const QChar__Script_Tibetan QChar__Script = 23
const QChar__Script_Tifinagh QChar__Script = 58
const QChar__Script_Tirhuta QChar__Script = 124
const QChar__Script_Ugaritic QChar__Script = 50
const QChar__Script_Unknown QChar__Script = 0

For unassigned, private-use, noncharacter, and surrogate code points.

const QChar__Script_Vai QChar__Script = 70
const QChar__Script_WarangCiti QChar__Script = 125
const QChar__Script_Yi QChar__Script = 38

type QChar__SpecialCharacter

type QChar__SpecialCharacter = int
const QChar__ByteOrderMark QChar__SpecialCharacter = 65279

xfeff

const QChar__ByteOrderSwapped QChar__SpecialCharacter = 65534

xfffe

const QChar__CarriageReturn QChar__SpecialCharacter = 13
const QChar__LastValidCodePoint QChar__SpecialCharacter = 1114111
const QChar__LineFeed QChar__SpecialCharacter = 10
const QChar__LineSeparator QChar__SpecialCharacter = 8232
const QChar__Nbsp QChar__SpecialCharacter = 160
const QChar__Null QChar__SpecialCharacter = 0
const QChar__ObjectReplacementCharacter QChar__SpecialCharacter = 65532

xfffcUsed to represent an object such as an image when such objects cannot be presented.

const QChar__ParagraphSeparator QChar__SpecialCharacter = 8233
const QChar__ReplacementCharacter QChar__SpecialCharacter = 65533

xfffdThe character shown when a font has no glyph for a certain codepoint. A special question mark character is often used. Codecs use this codepoint when input data cannot be represented in Unicode.

const QChar__SoftHyphen QChar__SpecialCharacter = 173
const QChar__Space QChar__SpecialCharacter = 32
const QChar__Tabulation QChar__SpecialCharacter = 9

type QChar__UnicodeVersion

type QChar__UnicodeVersion = int

Specifies which version of the Unicode standard introduced a certain character.

See also unicodeVersion() and currentUnicodeVersion().

const QChar__Unicode_1_1 QChar__UnicodeVersion = 1
const QChar__Unicode_2_0 QChar__UnicodeVersion = 2
const QChar__Unicode_2_1_2 QChar__UnicodeVersion = 3
const QChar__Unicode_3_0 QChar__UnicodeVersion = 4
const QChar__Unicode_3_1 QChar__UnicodeVersion = 5
const QChar__Unicode_3_2 QChar__UnicodeVersion = 6
const QChar__Unicode_4_0 QChar__UnicodeVersion = 7
const QChar__Unicode_4_1 QChar__UnicodeVersion = 8
const QChar__Unicode_5_0 QChar__UnicodeVersion = 9
const QChar__Unicode_5_1 QChar__UnicodeVersion = 10
const QChar__Unicode_5_2 QChar__UnicodeVersion = 11
const QChar__Unicode_6_0 QChar__UnicodeVersion = 12
const QChar__Unicode_6_1 QChar__UnicodeVersion = 13
const QChar__Unicode_6_2 QChar__UnicodeVersion = 14
const QChar__Unicode_6_3 QChar__UnicodeVersion = 15
const QChar__Unicode_7_0 QChar__UnicodeVersion = 16
const QChar__Unicode_8_0 QChar__UnicodeVersion = 17
const QChar__Unicode_Unassigned QChar__UnicodeVersion = 0

type QChildEvent

type QChildEvent struct {
	*QEvent
}

func NewQChildEvent

func NewQChildEvent(type_ int, child QObject_ITF) *QChildEvent

func NewQChildEventFromPointer

func NewQChildEventFromPointer(cthis unsafe.Pointer) *QChildEvent

func (*QChildEvent) Added

func (this *QChildEvent) Added() bool

func (*QChildEvent) Child

func (this *QChildEvent) Child() *QObject

func (*QChildEvent) GetCthis

func (this *QChildEvent) GetCthis() unsafe.Pointer

func (*QChildEvent) NewFromPointer

func (*QChildEvent) NewFromPointer(cthis unsafe.Pointer) *QChildEvent

func (*QChildEvent) Polished

func (this *QChildEvent) Polished() bool

func (*QChildEvent) QChildEvent_PTR

func (ptr *QChildEvent) QChildEvent_PTR() *QChildEvent

func (*QChildEvent) Removed

func (this *QChildEvent) Removed() bool

func (*QChildEvent) SetCthis

func (this *QChildEvent) SetCthis(cthis unsafe.Pointer)

type QChildEvent_ITF

type QChildEvent_ITF interface {
	QEvent_ITF
	QChildEvent_PTR() *QChildEvent
}

type QCollator

type QCollator struct {
	*qtrt.CObject
}

func NewQCollator

func NewQCollator(locale QLocale_ITF) *QCollator

Constructs a QCollator from locale. If locale is not specified the system's default locale is used.

See also setLocale().

func NewQCollatorFromPointer

func NewQCollatorFromPointer(cthis unsafe.Pointer) *QCollator

func NewQCollator__

func NewQCollator__() *QCollator

Constructs a QCollator from locale. If locale is not specified the system's default locale is used.

See also setLocale().

func (*QCollator) CaseSensitivity

func (this *QCollator) CaseSensitivity() int

Returns case sensitivity of the collator.

See also setCaseSensitivity().

func (*QCollator) Compare

func (this *QCollator) Compare(s1 string, s2 string) int

Compares s1 with s2. Returns an integer less than, equal to, or greater than zero depending on whether s1 is smaller, equal or larger than s2.

func (*QCollator) Compare_1

func (this *QCollator) Compare_1(s1 QStringRef_ITF, s2 QStringRef_ITF) int

Compares s1 with s2. Returns an integer less than, equal to, or greater than zero depending on whether s1 is smaller, equal or larger than s2.

func (*QCollator) Compare_2

func (this *QCollator) Compare_2(s1 QChar_ITF, len1 int, s2 QChar_ITF, len2 int) int

Compares s1 with s2. Returns an integer less than, equal to, or greater than zero depending on whether s1 is smaller, equal or larger than s2.

func (*QCollator) GetCthis

func (this *QCollator) GetCthis() unsafe.Pointer

func (*QCollator) IgnorePunctuation

func (this *QCollator) IgnorePunctuation() bool

Returns true if punctuation characters and symbols are ignored when determining sort order.

See also setIgnorePunctuation().

func (*QCollator) Locale

func (this *QCollator) Locale() *QLocale

Returns the locale of the collator.

See also setLocale().

func (*QCollator) NewFromPointer

func (*QCollator) NewFromPointer(cthis unsafe.Pointer) *QCollator

func (*QCollator) NumericMode

func (this *QCollator) NumericMode() bool

Returns true if numeric sorting is enabled, false otherwise.

See also setNumericMode().

func (*QCollator) Operator_equal

func (this *QCollator) Operator_equal(arg0 QCollator_ITF) *QCollator

func (*QCollator) Operator_equal_1

func (this *QCollator) Operator_equal_1(other unsafe.Pointer) *QCollator

func (*QCollator) Operator_fncall

func (this *QCollator) Operator_fncall(s1 string, s2 string) bool

func (*QCollator) QCollator_PTR

func (ptr *QCollator) QCollator_PTR() *QCollator

func (*QCollator) SetCaseSensitivity

func (this *QCollator) SetCaseSensitivity(cs int)

Sets the case sensitivity of the collator.

See also caseSensitivity().

func (*QCollator) SetCthis

func (this *QCollator) SetCthis(cthis unsafe.Pointer)

func (*QCollator) SetIgnorePunctuation

func (this *QCollator) SetIgnorePunctuation(on bool)

If on is set to true, punctuation characters and symbols are ignored when determining sort order.

The default is locale dependent.

Note: This method is not currently supported if Qt is configured to not use ICU on Linux.

See also ignorePunctuation().

func (*QCollator) SetLocale

func (this *QCollator) SetLocale(locale QLocale_ITF)

Sets the locale of the collator to locale.

See also locale().

func (*QCollator) SetNumericMode

func (this *QCollator) SetNumericMode(on bool)

Enables numeric sorting mode when on is set to true.

This will enable proper sorting of numeric digits, so that e.g. 100 sorts after 99.

By default this mode is off.

Note: On Windows, this functionality makes use of the ICU library. If Qt was compiled without ICU support, it falls back to code using native Windows API, which only works from Windows 7 onwards. On older versions of Windows, it will not work and a warning will be emitted at runtime.

See also numericMode().

func (*QCollator) SortKey

func (this *QCollator) SortKey(string string) *QCollatorSortKey

Returns a sortKey for string.

Creating the sort key is usually somewhat slower, than using the compare() methods directly. But if the string is compared repeatedly (e.g. when sorting a whole list of strings), it's usually faster to create the sort keys for each string and then sort using the keys.

func (*QCollator) Swap

func (this *QCollator) Swap(other QCollator_ITF)

Swaps this collator with other. This function is very fast and never fails.

type QCollatorSortKey

type QCollatorSortKey struct {
	*qtrt.CObject
}

func NewQCollatorSortKeyFromPointer

func NewQCollatorSortKeyFromPointer(cthis unsafe.Pointer) *QCollatorSortKey

func (*QCollatorSortKey) Compare

func (this *QCollatorSortKey) Compare(key QCollatorSortKey_ITF) int

Compares s1 with s2. Returns an integer less than, equal to, or greater than zero depending on whether s1 is smaller, equal or larger than s2.

func (*QCollatorSortKey) GetCthis

func (this *QCollatorSortKey) GetCthis() unsafe.Pointer

func (*QCollatorSortKey) NewFromPointer

func (*QCollatorSortKey) NewFromPointer(cthis unsafe.Pointer) *QCollatorSortKey

func (*QCollatorSortKey) Operator_equal

func (this *QCollatorSortKey) Operator_equal(other QCollatorSortKey_ITF) *QCollatorSortKey

func (*QCollatorSortKey) Operator_equal_1

func (this *QCollatorSortKey) Operator_equal_1(other unsafe.Pointer) *QCollatorSortKey

func (*QCollatorSortKey) QCollatorSortKey_PTR

func (ptr *QCollatorSortKey) QCollatorSortKey_PTR() *QCollatorSortKey

func (*QCollatorSortKey) SetCthis

func (this *QCollatorSortKey) SetCthis(cthis unsafe.Pointer)

func (*QCollatorSortKey) Swap

func (this *QCollatorSortKey) Swap(other QCollatorSortKey_ITF)

Swaps this collator with other. This function is very fast and never fails.

type QCollatorSortKey_ITF

type QCollatorSortKey_ITF interface {
	QCollatorSortKey_PTR() *QCollatorSortKey
}

type QCollator_ITF

type QCollator_ITF interface {
	QCollator_PTR() *QCollator
}

type QCommandLineOption

type QCommandLineOption struct {
	*qtrt.CObject
}

func NewQCommandLineOption

func NewQCommandLineOption(name string) *QCommandLineOption

Constructs a command line option object with the name name.

The name can be either short or long. If the name is one character in length, it is considered a short name. Option names must not be empty, must not start with a dash or a slash character, must not contain a = and cannot be repeated.

See also setDescription(), setValueName(), and setDefaultValues().

func NewQCommandLineOptionFromPointer

func NewQCommandLineOptionFromPointer(cthis unsafe.Pointer) *QCommandLineOption

func NewQCommandLineOption_1

func NewQCommandLineOption_1(names QStringList_ITF) *QCommandLineOption

Constructs a command line option object with the name name.

The name can be either short or long. If the name is one character in length, it is considered a short name. Option names must not be empty, must not start with a dash or a slash character, must not contain a = and cannot be repeated.

See also setDescription(), setValueName(), and setDefaultValues().

func NewQCommandLineOption_2

func NewQCommandLineOption_2(name string, description string, valueName string, defaultValue string) *QCommandLineOption

Constructs a command line option object with the name name.

The name can be either short or long. If the name is one character in length, it is considered a short name. Option names must not be empty, must not start with a dash or a slash character, must not contain a = and cannot be repeated.

See also setDescription(), setValueName(), and setDefaultValues().

func NewQCommandLineOption_2_

func NewQCommandLineOption_2_(name string, description string) *QCommandLineOption

Constructs a command line option object with the name name.

The name can be either short or long. If the name is one character in length, it is considered a short name. Option names must not be empty, must not start with a dash or a slash character, must not contain a = and cannot be repeated.

See also setDescription(), setValueName(), and setDefaultValues().

func NewQCommandLineOption_2_1

func NewQCommandLineOption_2_1(name string, description string, valueName string) *QCommandLineOption

Constructs a command line option object with the name name.

The name can be either short or long. If the name is one character in length, it is considered a short name. Option names must not be empty, must not start with a dash or a slash character, must not contain a = and cannot be repeated.

See also setDescription(), setValueName(), and setDefaultValues().

func NewQCommandLineOption_3

func NewQCommandLineOption_3(names QStringList_ITF, description string, valueName string, defaultValue string) *QCommandLineOption

Constructs a command line option object with the name name.

The name can be either short or long. If the name is one character in length, it is considered a short name. Option names must not be empty, must not start with a dash or a slash character, must not contain a = and cannot be repeated.

See also setDescription(), setValueName(), and setDefaultValues().

func NewQCommandLineOption_3_

func NewQCommandLineOption_3_(names QStringList_ITF, description string) *QCommandLineOption

Constructs a command line option object with the name name.

The name can be either short or long. If the name is one character in length, it is considered a short name. Option names must not be empty, must not start with a dash or a slash character, must not contain a = and cannot be repeated.

See also setDescription(), setValueName(), and setDefaultValues().

func NewQCommandLineOption_3_1

func NewQCommandLineOption_3_1(names QStringList_ITF, description string, valueName string) *QCommandLineOption

Constructs a command line option object with the name name.

The name can be either short or long. If the name is one character in length, it is considered a short name. Option names must not be empty, must not start with a dash or a slash character, must not contain a = and cannot be repeated.

See also setDescription(), setValueName(), and setDefaultValues().

func (*QCommandLineOption) DefaultValues

func (this *QCommandLineOption) DefaultValues() *QStringList

Returns the default values set for this option.

See also setDefaultValues().

func (*QCommandLineOption) Description

func (this *QCommandLineOption) Description() string

Returns the description set for this option.

See also setDescription().

func (*QCommandLineOption) Flags

func (this *QCommandLineOption) Flags() int

Returns a set of flags that affect this command-line option.

This function was introduced in Qt 5.8.

See also setFlags() and QCommandLineOption::Flags.

func (*QCommandLineOption) GetCthis

func (this *QCommandLineOption) GetCthis() unsafe.Pointer

func (*QCommandLineOption) IsHidden

func (this *QCommandLineOption) IsHidden() bool

func (*QCommandLineOption) Names

func (this *QCommandLineOption) Names() *QStringList

Returns the names set for this option.

func (*QCommandLineOption) NewFromPointer

func (*QCommandLineOption) NewFromPointer(cthis unsafe.Pointer) *QCommandLineOption

func (*QCommandLineOption) Operator_equal

func (this *QCommandLineOption) Operator_equal(other QCommandLineOption_ITF) *QCommandLineOption

func (*QCommandLineOption) Operator_equal_1

func (this *QCommandLineOption) Operator_equal_1(other unsafe.Pointer) *QCommandLineOption

func (*QCommandLineOption) QCommandLineOption_PTR

func (ptr *QCommandLineOption) QCommandLineOption_PTR() *QCommandLineOption

func (*QCommandLineOption) SetCthis

func (this *QCommandLineOption) SetCthis(cthis unsafe.Pointer)

func (*QCommandLineOption) SetDefaultValue

func (this *QCommandLineOption) SetDefaultValue(defaultValue string)

Sets the default value used for this option to defaultValue.

The default value is used if the user of the application does not specify the option on the command line.

If defaultValue is empty, the option has no default values.

See also defaultValues() and setDefaultValues().

func (*QCommandLineOption) SetDefaultValues

func (this *QCommandLineOption) SetDefaultValues(defaultValues QStringList_ITF)

Sets the list of default values used for this option to defaultValues.

The default values are used if the user of the application does not specify the option on the command line.

See also defaultValues() and setDefaultValue().

func (*QCommandLineOption) SetDescription

func (this *QCommandLineOption) SetDescription(description string)

Sets the description used for this option to description.

It is customary to add a "." at the end of the description.

The description is used by QCommandLineParser::showHelp().

See also description().

func (*QCommandLineOption) SetFlags

func (this *QCommandLineOption) SetFlags(aflags int)

Set the set of flags that affect this command-line option to flags.

This function was introduced in Qt 5.8.

See also flags() and QCommandLineOption::Flags.

func (*QCommandLineOption) SetHidden

func (this *QCommandLineOption) SetHidden(hidden bool)

func (*QCommandLineOption) SetValueName

func (this *QCommandLineOption) SetValueName(name string)

Sets the name of the expected value, for the documentation, to valueName.

Options without a value assigned have a boolean-like behavior: either the user specifies --option or they don't.

Options with a value assigned need to set a name for the expected value, for the documentation of the option in the help output. An option with names o and output, and a value name of file will appear as -o, --output <file>.

Call QCommandLineParser::value() if you expect the option to be present only once, and QCommandLineParser::values() if you expect that option to be present multiple times.

See also valueName().

func (*QCommandLineOption) Swap

func (this *QCommandLineOption) Swap(other QCommandLineOption_ITF)

Swaps option other with this option. This operation is very fast and never fails.

func (*QCommandLineOption) ValueName

func (this *QCommandLineOption) ValueName() string

Returns the name of the expected value.

If empty, the option doesn't take a value.

See also setValueName().

type QCommandLineOption_ITF

type QCommandLineOption_ITF interface {
	QCommandLineOption_PTR() *QCommandLineOption
}

type QCommandLineOption__Flag

type QCommandLineOption__Flag = int
const QCommandLineOption__HiddenFromHelp QCommandLineOption__Flag = 1
const QCommandLineOption__ShortOptionStyle QCommandLineOption__Flag = 2

type QCommandLineParser

type QCommandLineParser struct {
	*qtrt.CObject
}

func NewQCommandLineParser

func NewQCommandLineParser() *QCommandLineParser

Constructs a command line parser object.

func NewQCommandLineParserFromPointer

func NewQCommandLineParserFromPointer(cthis unsafe.Pointer) *QCommandLineParser

func (*QCommandLineParser) AddHelpOption

func (this *QCommandLineParser) AddHelpOption() *QCommandLineOption

Adds the help option (-h, --help and -? on Windows) This option is handled automatically by QCommandLineParser.

Remember to use setApplicationDescription to set the application description, which will be displayed when this option is used.

Example:

int main(int argc, char *argv[])
{
    QCoreApplication app(argc, argv);
    QCoreApplication::setApplicationName("my-copy-program");
    QCoreApplication::setApplicationVersion("1.0");

    QCommandLineParser parser;
    parser.setApplicationDescription("Test helper");
    parser.addHelpOption();
    parser.addVersionOption();
    parser.addPositionalArgument("source", QCoreApplication::translate("main", "Source file to copy."));
    parser.addPositionalArgument("destination", QCoreApplication::translate("main", "Destination directory."));

    // A boolean option with a single name (-p)
    QCommandLineOption showProgressOption("p", QCoreApplication::translate("main", "Show progress during copy"));
    parser.addOption(showProgressOption);

    // A boolean option with multiple names (-f, --force)
    QCommandLineOption forceOption(QStringList() << "f" << "force",
            QCoreApplication::translate("main", "Overwrite existing files."));
    parser.addOption(forceOption);

    // An option with a value
    QCommandLineOption targetDirectoryOption(QStringList() << "t" << "target-directory",
            QCoreApplication::translate("main", "Copy all source files into <directory>."),
            QCoreApplication::translate("main", "directory"));
    parser.addOption(targetDirectoryOption);

    // Process the actual command line arguments given by the user
    parser.process(app);

    const QStringList args = parser.positionalArguments();
    // source is args.at(0), destination is args.at(1)

    bool showProgress = parser.isSet(showProgressOption);
    bool force = parser.isSet(forceOption);
    QString targetDir = parser.value(targetDirectoryOption);
    // ...
}

Returns the option instance, which can be used to call isSet().

func (*QCommandLineParser) AddOption

func (this *QCommandLineParser) AddOption(commandLineOption QCommandLineOption_ITF) bool

Adds the option option to look for while parsing.

Returns true if adding the option was successful; otherwise returns false.

Adding the option fails if there is no name attached to the option, or the option has a name that clashes with an option name added before.

func (*QCommandLineParser) AddPositionalArgument

func (this *QCommandLineParser) AddPositionalArgument(name string, description string, syntax string)

Defines an additional argument to the application, for the benefit of the help text.

The argument name and description will appear under the Arguments: section of the help. If syntax is specified, it will be appended to the Usage line, otherwise the name will be appended.

Example:

// Usage: image-editor file
//
// Arguments:
//   file                  The file to open.
parser.addPositionalArgument("file", QCoreApplication::translate("main", "The file to open."));

// Usage: web-browser [urls...]
//
// Arguments:
//   urls                URLs to open, optionally.
parser.addPositionalArgument("urls", QCoreApplication::translate("main", "URLs to open, optionally."), "[urls...]");

// Usage: cp source destination
//
// Arguments:
//   source                Source file to copy.
//   destination           Destination directory.
parser.addPositionalArgument("source", QCoreApplication::translate("main", "Source file to copy."));
parser.addPositionalArgument("destination", QCoreApplication::translate("main", "Destination directory."));

See also addHelpOption() and helpText().

func (*QCommandLineParser) AddPositionalArgument__

func (this *QCommandLineParser) AddPositionalArgument__(name string, description string)

Defines an additional argument to the application, for the benefit of the help text.

The argument name and description will appear under the Arguments: section of the help. If syntax is specified, it will be appended to the Usage line, otherwise the name will be appended.

Example:

// Usage: image-editor file
//
// Arguments:
//   file                  The file to open.
parser.addPositionalArgument("file", QCoreApplication::translate("main", "The file to open."));

// Usage: web-browser [urls...]
//
// Arguments:
//   urls                URLs to open, optionally.
parser.addPositionalArgument("urls", QCoreApplication::translate("main", "URLs to open, optionally."), "[urls...]");

// Usage: cp source destination
//
// Arguments:
//   source                Source file to copy.
//   destination           Destination directory.
parser.addPositionalArgument("source", QCoreApplication::translate("main", "Source file to copy."));
parser.addPositionalArgument("destination", QCoreApplication::translate("main", "Destination directory."));

See also addHelpOption() and helpText().

func (*QCommandLineParser) AddVersionOption

func (this *QCommandLineParser) AddVersionOption() *QCommandLineOption

Adds the -v / --version option, which displays the version string of the application.

This option is handled automatically by QCommandLineParser.

You can set the actual version string by using QCoreApplication::setApplicationVersion().

Returns the option instance, which can be used to call isSet().

func (*QCommandLineParser) ApplicationDescription

func (this *QCommandLineParser) ApplicationDescription() string

Returns the application description set in setApplicationDescription().

See also setApplicationDescription().

func (*QCommandLineParser) ClearPositionalArguments

func (this *QCommandLineParser) ClearPositionalArguments()

Clears the definitions of additional arguments from the help text.

This is only needed for the special case of tools which support multiple commands with different options. Once the actual command has been identified, the options for this command can be defined, and the help text for the command can be adjusted accordingly.

Example:

QCoreApplication app(argc, argv);
QCommandLineParser parser;

parser.addPositionalArgument("command", "The command to execute.");

// Call parse() to find out the positional arguments.
parser.parse(QCoreApplication::arguments());

const QStringList args = parser.positionalArguments();
const QString command = args.isEmpty() ? QString() : args.first();
if (command == "resize") {
    parser.clearPositionalArguments();
    parser.addPositionalArgument("resize", "Resize the object to a new size.", "resize [resize_options]");
    parser.addOption(QCommandLineOption("size", "New size.", "new_size"));
    parser.process(app);
    // ...
}

\/*
This code results in context-dependent help:

$ tool --help
Usage: tool command

Arguments:
  command  The command to execute.

$ tool resize --help
Usage: tool resize [resize_options]

Options:
  --size <size>  New size.

Arguments:
  resize         Resize the object to a new size.
*\/

func (*QCommandLineParser) ErrorText

func (this *QCommandLineParser) ErrorText() string

Returns a translated error text for the user. This should only be called when parse() returns false.

func (*QCommandLineParser) GetCthis

func (this *QCommandLineParser) GetCthis() unsafe.Pointer

func (*QCommandLineParser) HelpText

func (this *QCommandLineParser) HelpText() string

Returns a string containing the complete help information.

See also showHelp().

func (*QCommandLineParser) IsSet

func (this *QCommandLineParser) IsSet(name string) bool

Checks whether the option name was passed to the application.

Returns true if the option name was set, false otherwise.

The name provided can be any long or short name of any option that was added with addOption(). All the options names are treated as being equivalent. If the name is not recognized or that option was not present, false is returned.

Example:

bool verbose = parser.isSet("verbose");

func (*QCommandLineParser) IsSet_1

func (this *QCommandLineParser) IsSet_1(option QCommandLineOption_ITF) bool

Checks whether the option name was passed to the application.

Returns true if the option name was set, false otherwise.

The name provided can be any long or short name of any option that was added with addOption(). All the options names are treated as being equivalent. If the name is not recognized or that option was not present, false is returned.

Example:

bool verbose = parser.isSet("verbose");

func (*QCommandLineParser) NewFromPointer

func (*QCommandLineParser) NewFromPointer(cthis unsafe.Pointer) *QCommandLineParser

func (*QCommandLineParser) OptionNames

func (this *QCommandLineParser) OptionNames() *QStringList

Returns a list of option names that were found.

This returns a list of all the recognized option names found by the parser, in the order in which they were found. For any long options that were in the form {--option=value}, the value part will have been dropped.

The names in this list do not include the preceding dash characters. Names may appear more than once in this list if they were encountered more than once by the parser.

Any entry in the list can be used with value() or with values() to get any relevant option values.

func (*QCommandLineParser) Parse

func (this *QCommandLineParser) Parse(arguments QStringList_ITF) bool

Parses the command line arguments.

Most programs don't need to call this, a simple call to process() is enough.

parse() is more low-level, and only does the parsing. The application will have to take care of the error handling, using errorText() if parse() returns false. This can be useful for instance to show a graphical error message in graphical programs.

Calling parse() instead of process() can also be useful in order to ignore unknown options temporarily, because more option definitions will be provided later on (depending on one of the arguments), before calling process().

Don't forget that arguments must start with the name of the executable (ignored, though).

Returns false in case of a parse error (unknown option or missing value); returns true otherwise.

See also process().

func (*QCommandLineParser) PositionalArguments

func (this *QCommandLineParser) PositionalArguments() *QStringList

Returns a list of positional arguments.

These are all of the arguments that were not recognized as part of an option.

func (*QCommandLineParser) Process

func (this *QCommandLineParser) Process(arguments QStringList_ITF)

Processes the command line arguments.

In addition to parsing the options (like parse()), this function also handles the builtin options and handles errors.

The builtin options are --version if addVersionOption was called and --help if addHelpOption was called.

When invoking one of these options, or when an error happens (for instance an unknown option was passed), the current process will then stop, using the exit() function.

See also QCoreApplication::arguments() and parse().

func (*QCommandLineParser) Process_1

func (this *QCommandLineParser) Process_1(app QCoreApplication_ITF)

Processes the command line arguments.

In addition to parsing the options (like parse()), this function also handles the builtin options and handles errors.

The builtin options are --version if addVersionOption was called and --help if addHelpOption was called.

When invoking one of these options, or when an error happens (for instance an unknown option was passed), the current process will then stop, using the exit() function.

See also QCoreApplication::arguments() and parse().

func (*QCommandLineParser) QCommandLineParser_PTR

func (ptr *QCommandLineParser) QCommandLineParser_PTR() *QCommandLineParser

func (*QCommandLineParser) SetApplicationDescription

func (this *QCommandLineParser) SetApplicationDescription(description string)

Sets the application description shown by helpText().

See also applicationDescription().

func (*QCommandLineParser) SetCthis

func (this *QCommandLineParser) SetCthis(cthis unsafe.Pointer)

func (*QCommandLineParser) SetOptionsAfterPositionalArgumentsMode

func (this *QCommandLineParser) SetOptionsAfterPositionalArgumentsMode(mode int)

Sets the parsing mode to parsingMode. This must be called before process() or parse().

This function was introduced in Qt 5.6.

func (*QCommandLineParser) SetSingleDashWordOptionMode

func (this *QCommandLineParser) SetSingleDashWordOptionMode(parsingMode int)

Sets the parsing mode to singleDashWordOptionMode. This must be called before process() or parse().

func (*QCommandLineParser) ShowHelp

func (this *QCommandLineParser) ShowHelp(exitCode int)

Displays the help information, and exits the application. This is automatically triggered by the --help option, but can also be used to display the help when the user is not invoking the application correctly. The exit code is set to exitCode. It should be set to 0 if the user requested to see the help, and to any other value in case of an error.

See also helpText().

func (*QCommandLineParser) ShowHelp__

func (this *QCommandLineParser) ShowHelp__()

Displays the help information, and exits the application. This is automatically triggered by the --help option, but can also be used to display the help when the user is not invoking the application correctly. The exit code is set to exitCode. It should be set to 0 if the user requested to see the help, and to any other value in case of an error.

See also helpText().

func (*QCommandLineParser) ShowVersion

func (this *QCommandLineParser) ShowVersion()

Displays the version information from QCoreApplication::applicationVersion(), and exits the application. This is automatically triggered by the --version option, but can also be used to display the version when not using process(). The exit code is set to EXIT_SUCCESS (0).

This function was introduced in Qt 5.4.

See also addVersionOption().

func (*QCommandLineParser) UnknownOptionNames

func (this *QCommandLineParser) UnknownOptionNames() *QStringList

Returns a list of unknown option names.

This list will include both long an short name options that were not recognized. For any long options that were in the form {--option=value}, the value part will have been dropped and only the long name is added.

The names in this list do not include the preceding dash characters. Names may appear more than once in this list if they were encountered more than once by the parser.

See also optionNames().

func (*QCommandLineParser) Value

func (this *QCommandLineParser) Value(name string) string

Returns the option value found for the given option name optionName, or an empty string if not found.

The name provided can be any long or short name of any option that was added with addOption(). All the option names are treated as being equivalent. If the name is not recognized or that option was not present, an empty string is returned.

For options found by the parser, the last value found for that option is returned. If the option wasn't specified on the command line, the default value is returned.

An empty string is returned if the option does not take a value.

See also values(), QCommandLineOption::setDefaultValue(), and QCommandLineOption::setDefaultValues().

func (*QCommandLineParser) Value_1

func (this *QCommandLineParser) Value_1(option QCommandLineOption_ITF) string

Returns the option value found for the given option name optionName, or an empty string if not found.

The name provided can be any long or short name of any option that was added with addOption(). All the option names are treated as being equivalent. If the name is not recognized or that option was not present, an empty string is returned.

For options found by the parser, the last value found for that option is returned. If the option wasn't specified on the command line, the default value is returned.

An empty string is returned if the option does not take a value.

See also values(), QCommandLineOption::setDefaultValue(), and QCommandLineOption::setDefaultValues().

func (*QCommandLineParser) Values

func (this *QCommandLineParser) Values(name string) *QStringList

Returns a list of option values found for the given option name optionName, or an empty list if not found.

The name provided can be any long or short name of any option that was added with addOption(). All the options names are treated as being equivalent. If the name is not recognized or that option was not present, an empty list is returned.

For options found by the parser, the list will contain an entry for each time the option was encountered by the parser. If the option wasn't specified on the command line, the default values are returned.

An empty list is returned if the option does not take a value.

See also value(), QCommandLineOption::setDefaultValue(), and QCommandLineOption::setDefaultValues().

func (*QCommandLineParser) Values_1

func (this *QCommandLineParser) Values_1(option QCommandLineOption_ITF) *QStringList

Returns a list of option values found for the given option name optionName, or an empty list if not found.

The name provided can be any long or short name of any option that was added with addOption(). All the options names are treated as being equivalent. If the name is not recognized or that option was not present, an empty list is returned.

For options found by the parser, the list will contain an entry for each time the option was encountered by the parser. If the option wasn't specified on the command line, the default values are returned.

An empty list is returned if the option does not take a value.

See also value(), QCommandLineOption::setDefaultValue(), and QCommandLineOption::setDefaultValues().

type QCommandLineParser_ITF

type QCommandLineParser_ITF interface {
	QCommandLineParser_PTR() *QCommandLineParser
}

type QCommandLineParser__OptionsAfterPositionalArgumentsMode

type QCommandLineParser__OptionsAfterPositionalArgumentsMode = int

This enum describes the way the parser interprets options that occur after positional arguments.

This enum was introduced or modified in Qt 5.6.

See also setOptionsAfterPositionalArgumentsMode().

const QCommandLineParser__ParseAsOptions QCommandLineParser__OptionsAfterPositionalArgumentsMode = 0

application argument --opt -t is interpreted as setting the options opt and t, just like application --opt -t argument would do. This is the default parsing mode. In order to specify that --opt and -t are positional arguments instead, the user can use --, as in application argument -- --opt -t.

const QCommandLineParser__ParseAsPositionalArguments QCommandLineParser__OptionsAfterPositionalArgumentsMode = 1

application argument --opt is interpreted as having two positional arguments, argument and --opt. This mode is useful for executables that aim to launch other executables (e.g. wrappers, debugging tools, etc.) or that support internal commands followed by options for the command. argument is the name of the command, and all options occurring after it can be collected and parsed by another command line parser, possibly in another executable.

type QCommandLineParser__SingleDashWordOptionMode

type QCommandLineParser__SingleDashWordOptionMode = int

This enum describes the way the parser interprets command-line options that use a single dash followed by multiple letters, as as -abc.

See also setSingleDashWordOptionMode().

const QCommandLineParser__ParseAsCompactedShortOptions QCommandLineParser__SingleDashWordOptionMode = 0

-abc is interpreted as -a -b -c, i.e. as three short options that have been compacted on the command-line, if none of the options take a value. If a takes a value, then it is interpreted as -a bc, i.e. the short option a followed by the value bc. This is typically used in tools that behave like compilers, in order to handle options such as -DDEFINE=VALUE or -I/include/path. This is the default parsing mode. New applications are recommended to use this mode.

const QCommandLineParser__ParseAsLongOptions QCommandLineParser__SingleDashWordOptionMode = 1

-abc is interpreted as --abc, i.e. as the long option named abc. This is how Qt's own tools (uic, rcc...) have always been parsing arguments. This mode should be used for preserving compatibility in applications that were parsing arguments in such a way. There is an exception if the a option has the QCommandLineOption::ShortOptionStyle flag set, in which case it is still interpreted as -a bc.

type QContainerImplHelper

type QContainerImplHelper struct {
	*qtrt.CObject
}

func NewQContainerImplHelperFromPointer

func NewQContainerImplHelperFromPointer(cthis unsafe.Pointer) *QContainerImplHelper

func (*QContainerImplHelper) GetCthis

func (this *QContainerImplHelper) GetCthis() unsafe.Pointer

func (*QContainerImplHelper) Mid

func (this *QContainerImplHelper) Mid(originalLength int, position unsafe.Pointer, length unsafe.Pointer) int

func (*QContainerImplHelper) NewFromPointer

func (*QContainerImplHelper) NewFromPointer(cthis unsafe.Pointer) *QContainerImplHelper

func (*QContainerImplHelper) QContainerImplHelper_PTR

func (ptr *QContainerImplHelper) QContainerImplHelper_PTR() *QContainerImplHelper

func (*QContainerImplHelper) SetCthis

func (this *QContainerImplHelper) SetCthis(cthis unsafe.Pointer)

type QContainerImplHelper_ITF

type QContainerImplHelper_ITF interface {
	QContainerImplHelper_PTR() *QContainerImplHelper
}

type QContainerImplHelper__CutResult

type QContainerImplHelper__CutResult = int
const QContainerImplHelper__Empty QContainerImplHelper__CutResult = 1
const QContainerImplHelper__Full QContainerImplHelper__CutResult = 2
const QContainerImplHelper__Null QContainerImplHelper__CutResult = 0
const QContainerImplHelper__Subset QContainerImplHelper__CutResult = 3

type QContiguousCacheData

type QContiguousCacheData struct {
	*qtrt.CObject
}

func NewQContiguousCacheDataFromPointer

func NewQContiguousCacheDataFromPointer(cthis unsafe.Pointer) *QContiguousCacheData

func QContiguousCacheData_AllocateData

func QContiguousCacheData_AllocateData(size int, alignment int) *QContiguousCacheData

func (*QContiguousCacheData) AllocateData

func (this *QContiguousCacheData) AllocateData(size int, alignment int) *QContiguousCacheData

func (*QContiguousCacheData) GetCthis

func (this *QContiguousCacheData) GetCthis() unsafe.Pointer

func (*QContiguousCacheData) NewFromPointer

func (*QContiguousCacheData) NewFromPointer(cthis unsafe.Pointer) *QContiguousCacheData

func (*QContiguousCacheData) QContiguousCacheData_PTR

func (ptr *QContiguousCacheData) QContiguousCacheData_PTR() *QContiguousCacheData

func (*QContiguousCacheData) SetCthis

func (this *QContiguousCacheData) SetCthis(cthis unsafe.Pointer)

type QContiguousCacheData_ITF

type QContiguousCacheData_ITF interface {
	QContiguousCacheData_PTR() *QContiguousCacheData
}

type QCoreApplication

type QCoreApplication struct {
	*QObject
}

func NewQCoreApplication

func NewQCoreApplication(argc int, argv []string, arg2 int) *QCoreApplication

Constructs a Qt core application. Core applications are applications without a graphical user interface. Such applications are used at the console or as server processes.

The argc and argv arguments are processed by the application, and made available in a more convenient form by the arguments() function.

Warning: The data referred to by argc and argv must stay valid for the entire lifetime of the QCoreApplication object. In addition, argc must be greater than zero and argv must contain at least one valid character string.

func NewQCoreApplicationFromPointer

func NewQCoreApplicationFromPointer(cthis unsafe.Pointer) *QCoreApplication

func NewQCoreApplication__

func NewQCoreApplication__(argc int, argv []string) *QCoreApplication

Constructs a Qt core application. Core applications are applications without a graphical user interface. Such applications are used at the console or as server processes.

The argc and argv arguments are processed by the application, and made available in a more convenient form by the arguments() function.

Warning: The data referred to by argc and argv must stay valid for the entire lifetime of the QCoreApplication object. In addition, argc must be greater than zero and argv must contain at least one valid character string.

func QCoreApplication_Instance

func QCoreApplication_Instance() *QCoreApplication

func (*QCoreApplication) AddLibraryPath

func (this *QCoreApplication) AddLibraryPath(arg0 string)

Prepends path to the beginning of the library path list, ensuring that it is searched for libraries first. If path is empty or already in the path list, the path list is not changed.

The default path list consists of a single entry, the installation directory for plugins. The default installation directory for plugins is INSTALL/plugins, where INSTALL is the directory where Qt was installed.

The library paths are reset to the default when an instance of QCoreApplication is destructed.

See also removeLibraryPath(), libraryPaths(), and setLibraryPaths().

func (*QCoreApplication) ApplicationDirPath

func (this *QCoreApplication) ApplicationDirPath() string

Returns the directory that contains the application executable.

For example, if you have installed Qt in the C:\Qt directory, and you run the regexp example, this function will return "C:/Qt/examples/tools/regexp".

On macOS and iOS this will point to the directory actually containing the executable, which may be inside an application bundle (if the application is bundled).

Warning: On Linux, this function will try to get the path from the /proc file system. If that fails, it assumes that argv[0] contains the absolute file name of the executable. The function also assumes that the current directory has not been changed by the application.

See also applicationFilePath().

func (*QCoreApplication) ApplicationFilePath

func (this *QCoreApplication) ApplicationFilePath() string

Returns the file path of the application executable.

For example, if you have installed Qt in the /usr/local/qt directory, and you run the regexp example, this function will return "/usr/local/qt/examples/tools/regexp/regexp".

Warning: On Linux, this function will try to get the path from the /proc file system. If that fails, it assumes that argv[0] contains the absolute file name of the executable. The function also assumes that the current directory has not been changed by the application.

See also applicationDirPath().

func (*QCoreApplication) ApplicationName

func (this *QCoreApplication) ApplicationName() string

func (*QCoreApplication) ApplicationNameChanged

func (this *QCoreApplication) ApplicationNameChanged()

func (*QCoreApplication) ApplicationPid

func (this *QCoreApplication) ApplicationPid() int64

Returns the current process ID for the application.

This function was introduced in Qt 4.4.

func (*QCoreApplication) ApplicationVersion

func (this *QCoreApplication) ApplicationVersion() string

func (*QCoreApplication) ApplicationVersionChanged

func (this *QCoreApplication) ApplicationVersionChanged()

func (*QCoreApplication) Arguments

func (this *QCoreApplication) Arguments() *QStringList

Returns the list of command-line arguments.

Usually arguments().at(0) is the program name, arguments().at(1) is the first argument, and arguments().last() is the last argument. See the note below about Windows.

Calling this function is slow - you should store the result in a variable when parsing the command line.

Warning: On Unix, this list is built from the argc and argv parameters passed to the constructor in the main() function. The string-data in argv is interpreted using QString::fromLocal8Bit(); hence it is not possible to pass, for example, Japanese command line arguments on a system that runs in a Latin1 locale. Most modern Unix systems do not have this limitation, as they are Unicode-based.

On Windows, the list is built from the argc and argv parameters only if modified argv/argc parameters are passed to the constructor. In that case, encoding problems might occur.

Otherwise, the arguments() are constructed from the return value of GetCommandLine(). As a result of this, the string given by arguments().at(0) might not be the program name on Windows, depending on how the application was started.

This function was introduced in Qt 4.1.

See also applicationFilePath() and QCommandLineParser.

func (*QCoreApplication) ClosingDown

func (this *QCoreApplication) ClosingDown() bool

Returns true if the application objects are being destroyed; otherwise returns false.

See also startingUp().

func (*QCoreApplication) Event

func (this *QCoreApplication) Event(arg0 QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QCoreApplication) EventDispatcher

func (this *QCoreApplication) EventDispatcher() *QAbstractEventDispatcher

Returns a pointer to the event dispatcher object for the main thread. If no event dispatcher exists for the thread, this function returns 0.

See also setEventDispatcher().

func (*QCoreApplication) Exec

func (this *QCoreApplication) Exec() int

Enters the main event loop and waits until exit() is called. Returns the value that was passed to exit() (which is 0 if exit() is called via quit()).

It is necessary to call this function to start event handling. The main event loop receives events from the window system and dispatches these to the application widgets.

To make your application perform idle processing (by executing a special function whenever there are no pending events), use a QTimer with 0 timeout. More advanced idle processing schemes can be achieved using processEvents().

We recommend that you connect clean-up code to the aboutToQuit() signal, instead of putting it in your application's main() function because on some platforms the exec() call may not return. For example, on Windows when the user logs off, the system terminates the process after Qt closes all top-level windows. Hence, there is no guarantee that the application will have time to exit its event loop and execute code at the end of the main() function after the exec() call.

See also quit(), exit(), processEvents(), and QApplication::exec().

func (*QCoreApplication) Exit

func (this *QCoreApplication) Exit(retcode int)

Tells the application to exit with a return code.

After this function has been called, the application leaves the main event loop and returns from the call to exec(). The exec() function returns returnCode. If the event loop is not running, this function does nothing.

By convention, a returnCode of 0 means success, and any non-zero value indicates an error.

Note that unlike the C library function of the same name, this function does return to the caller -- it is event processing that stops.

See also quit() and exec().

func (*QCoreApplication) Exit__

func (this *QCoreApplication) Exit__()

Tells the application to exit with a return code.

After this function has been called, the application leaves the main event loop and returns from the call to exec(). The exec() function returns returnCode. If the event loop is not running, this function does nothing.

By convention, a returnCode of 0 means success, and any non-zero value indicates an error.

Note that unlike the C library function of the same name, this function does return to the caller -- it is event processing that stops.

See also quit() and exec().

func (*QCoreApplication) Flush

func (this *QCoreApplication) Flush()

func (*QCoreApplication) GetCthis

func (this *QCoreApplication) GetCthis() unsafe.Pointer

func (*QCoreApplication) HasPendingEvents

func (this *QCoreApplication) HasPendingEvents() bool

func (*QCoreApplication) InheritEvent

func (this *QCoreApplication) InheritEvent(f func(arg0 *QEvent) bool)

bool event(class QEvent *)

func (*QCoreApplication) InstallNativeEventFilter

func (this *QCoreApplication) InstallNativeEventFilter(filterObj QAbstractNativeEventFilter_ITF)

Installs an event filter filterObj for all native events received by the application in the main thread.

The event filter filterObj receives events via its nativeEventFilter() function, which is called for all native events received in the main thread.

The QAbstractNativeEventFilter::nativeEventFilter() function should return true if the event should be filtered, i.e. stopped. It should return false to allow normal Qt processing to continue: the native event can then be translated into a QEvent and handled by the standard Qt event filtering, e.g. QObject::installEventFilter().

If multiple event filters are installed, the filter that was installed last is activated first.

Note: The filter function set here receives native messages, i.e. MSG or XCB event structs.

Note: Native event filters will be disabled in the application when the Qt::AA_PluginApplication attribute is set.

For maximum portability, you should always try to use QEvent and QObject::installEventFilter() whenever possible.

This function was introduced in Qt 5.0.

See also QObject::installEventFilter().

func (*QCoreApplication) InstallTranslator

func (this *QCoreApplication) InstallTranslator(messageFile QTranslator_ITF) bool

Adds the translation file translationFile to the list of translation files to be used for translations.

Multiple translation files can be installed. Translations are searched for in the reverse order in which they were installed, so the most recently installed translation file is searched first and the first translation file installed is searched last. The search stops as soon as a translation containing a matching string is found.

Installing or removing a QTranslator, or changing an installed QTranslator generates a LanguageChange event for the QCoreApplication instance. A QApplication instance will propagate the event to all toplevel widgets, where a reimplementation of changeEvent can re-translate the user interface by passing user-visible strings via the tr() function to the respective property setters. User-interface classes generated by Qt Designer provide a retranslateUi() function that can be called.

The function returns true on success and false on failure.

See also removeTranslator(), translate(), QTranslator::load(), and Dynamic Translation.

func (*QCoreApplication) Instance

func (this *QCoreApplication) Instance() *QCoreApplication

Returns a pointer to the application's QCoreApplication (or QGuiApplication/QApplication) instance.

If no instance has been allocated, null is returned.

func (*QCoreApplication) IsQuitLockEnabled

func (this *QCoreApplication) IsQuitLockEnabled() bool

func (*QCoreApplication) IsSetuidAllowed

func (this *QCoreApplication) IsSetuidAllowed() bool

Returns true if the application is allowed to run setuid on UNIX platforms.

This function was introduced in Qt 5.3.

See also QCoreApplication::setSetuidAllowed().

func (*QCoreApplication) LibraryPaths

func (this *QCoreApplication) LibraryPaths() *QStringList

Returns a list of paths that the application will search when dynamically loading libraries.

The return value of this function may change when a QCoreApplication is created. It is not recommended to call it before creating a QCoreApplication. The directory of the application executable (not the working directory) is part of the list if it is known. In order to make it known a QCoreApplication has to be constructed as it will use argv[0] to find it.

Qt provides default library paths, but they can also be set using a qt.conf file. Paths specified in this file will override default values. Note that if the qt.conf file is in the directory of the application executable, it may not be found until a QCoreApplication is created. If it is not found when calling this function, the default library paths will be used.

The list will include the installation directory for plugins if it exists (the default installation directory for plugins is INSTALL/plugins, where INSTALL is the directory where Qt was installed). The colon separated entries of the QT_PLUGIN_PATH environment variable are always added. The plugin installation directory (and its existence) may change when the directory of the application executable becomes known.

If you want to iterate over the list, you can use the foreach pseudo-keyword:

foreach (const QString &path, app.libraryPaths())
    do_something(path);

See also setLibraryPaths(), addLibraryPath(), removeLibraryPath(), QLibrary, and How to Create Qt Plugins.

func (*QCoreApplication) MetaObject

func (this *QCoreApplication) MetaObject() *QMetaObject

func (*QCoreApplication) NewFromPointer

func (*QCoreApplication) NewFromPointer(cthis unsafe.Pointer) *QCoreApplication

func (*QCoreApplication) Notify

func (this *QCoreApplication) Notify(arg0 QObject_ITF, arg1 QEvent_ITF) bool

Sends event to receiver: receiver->event(event). Returns the value that is returned from the receiver's event handler. Note that this function is called for all events sent to any object in any thread.

For certain types of events (e.g. mouse and key events), the event will be propagated to the receiver's parent and so on up to the top-level object if the receiver is not interested in the event (i.e., it returns false).

There are five different ways that events can be processed; reimplementing this virtual function is just one of them. All five approaches are listed below:

func (*QCoreApplication) OrganizationDomain

func (this *QCoreApplication) OrganizationDomain() string

func (*QCoreApplication) OrganizationDomainChanged

func (this *QCoreApplication) OrganizationDomainChanged()

func (*QCoreApplication) OrganizationName

func (this *QCoreApplication) OrganizationName() string

func (*QCoreApplication) OrganizationNameChanged

func (this *QCoreApplication) OrganizationNameChanged()

func (*QCoreApplication) PostEvent

func (this *QCoreApplication) PostEvent(receiver QObject_ITF, event QEvent_ITF, priority int)

Adds the event event, with the object receiver as the receiver of the event, to an event queue and returns immediately.

The event must be allocated on the heap since the post event queue will take ownership of the event and delete it once it has been posted. It is not safe to access the event after it has been posted.

When control returns to the main event loop, all events that are stored in the queue will be sent using the notify() function.

Events are sorted in descending priority order, i.e. events with a high priority are queued before events with a lower priority. The priority can be any integer value, i.e. between INT_MAX and INT_MIN, inclusive; see Qt::EventPriority for more details. Events with equal priority will be processed in the order posted.

Note: This function is thread-safe.

This function was introduced in Qt 4.3.

See also sendEvent(), notify(), sendPostedEvents(), and Qt::EventPriority.

func (*QCoreApplication) PostEvent__

func (this *QCoreApplication) PostEvent__(receiver QObject_ITF, event QEvent_ITF)

Adds the event event, with the object receiver as the receiver of the event, to an event queue and returns immediately.

The event must be allocated on the heap since the post event queue will take ownership of the event and delete it once it has been posted. It is not safe to access the event after it has been posted.

When control returns to the main event loop, all events that are stored in the queue will be sent using the notify() function.

Events are sorted in descending priority order, i.e. events with a high priority are queued before events with a lower priority. The priority can be any integer value, i.e. between INT_MAX and INT_MIN, inclusive; see Qt::EventPriority for more details. Events with equal priority will be processed in the order posted.

Note: This function is thread-safe.

This function was introduced in Qt 4.3.

See also sendEvent(), notify(), sendPostedEvents(), and Qt::EventPriority.

func (*QCoreApplication) ProcessEvents

func (this *QCoreApplication) ProcessEvents(flags int)

Processes all pending events for the calling thread according to the specified flags until there are no more events to process.

You can call this function occasionally when your program is busy performing a long operation (e.g. copying a file).

In the event that you are running a local loop which calls this function continuously, without an event loop, the DeferredDelete events will not be processed. This can affect the behaviour of widgets, e.g. QToolTip, that rely on DeferredDelete events to function properly. An alternative would be to call sendPostedEvents() from within that local loop.

Calling this function processes events only for the calling thread.

Note: This function is thread-safe.

See also exec(), QTimer, QEventLoop::processEvents(), flush(), and sendPostedEvents().

func (*QCoreApplication) ProcessEvents_1

func (this *QCoreApplication) ProcessEvents_1(flags int, maxtime int)

Processes all pending events for the calling thread according to the specified flags until there are no more events to process.

You can call this function occasionally when your program is busy performing a long operation (e.g. copying a file).

In the event that you are running a local loop which calls this function continuously, without an event loop, the DeferredDelete events will not be processed. This can affect the behaviour of widgets, e.g. QToolTip, that rely on DeferredDelete events to function properly. An alternative would be to call sendPostedEvents() from within that local loop.

Calling this function processes events only for the calling thread.

Note: This function is thread-safe.

See also exec(), QTimer, QEventLoop::processEvents(), flush(), and sendPostedEvents().

func (*QCoreApplication) ProcessEvents__

func (this *QCoreApplication) ProcessEvents__()

Processes all pending events for the calling thread according to the specified flags until there are no more events to process.

You can call this function occasionally when your program is busy performing a long operation (e.g. copying a file).

In the event that you are running a local loop which calls this function continuously, without an event loop, the DeferredDelete events will not be processed. This can affect the behaviour of widgets, e.g. QToolTip, that rely on DeferredDelete events to function properly. An alternative would be to call sendPostedEvents() from within that local loop.

Calling this function processes events only for the calling thread.

Note: This function is thread-safe.

See also exec(), QTimer, QEventLoop::processEvents(), flush(), and sendPostedEvents().

func (*QCoreApplication) QCoreApplication_PTR

func (ptr *QCoreApplication) QCoreApplication_PTR() *QCoreApplication

func (*QCoreApplication) Quit

func (this *QCoreApplication) Quit()

Tells the application to exit with return code 0 (success). Equivalent to calling QCoreApplication::exit(0).

It's common to connect the QGuiApplication::lastWindowClosed() signal to quit(), and you also often connect e.g. QAbstractButton::clicked() or signals in QAction, QMenu, or QMenuBar to it.

Example:

QPushButton *quitButton = new QPushButton("Quit");
connect(quitButton, SIGNAL(clicked()), &app, SLOT(quit()));

See also exit(), aboutToQuit(), and QGuiApplication::lastWindowClosed().

func (*QCoreApplication) RemoveLibraryPath

func (this *QCoreApplication) RemoveLibraryPath(arg0 string)

Removes path from the library path list. If path is empty or not in the path list, the list is not changed.

The library paths are reset to the default when an instance of QCoreApplication is destructed.

See also addLibraryPath(), libraryPaths(), and setLibraryPaths().

func (*QCoreApplication) RemoveNativeEventFilter

func (this *QCoreApplication) RemoveNativeEventFilter(filterObj QAbstractNativeEventFilter_ITF)

Removes an event filterObject from this object. The request is ignored if such an event filter has not been installed.

All event filters for this object are automatically removed when this object is destroyed.

It is always safe to remove an event filter, even during event filter activation (i.e. from the nativeEventFilter() function).

This function was introduced in Qt 5.0.

See also installNativeEventFilter().

func (*QCoreApplication) RemovePostedEvents

func (this *QCoreApplication) RemovePostedEvents(receiver QObject_ITF, eventType int)

Removes all events of the given eventType that were posted using postEvent() for receiver.

The events are not dispatched, instead they are removed from the queue. You should never need to call this function. If you do call it, be aware that killing events may cause receiver to break one or more invariants.

If receiver is null, the events of eventType are removed for all objects. If eventType is 0, all the events are removed for receiver. You should never call this function with eventType of 0. If you do call it in this way, be aware that killing events may cause receiver to break one or more invariants.

Note: This function is thread-safe.

This function was introduced in Qt 4.3.

func (*QCoreApplication) RemovePostedEvents__

func (this *QCoreApplication) RemovePostedEvents__(receiver QObject_ITF)

Removes all events of the given eventType that were posted using postEvent() for receiver.

The events are not dispatched, instead they are removed from the queue. You should never need to call this function. If you do call it, be aware that killing events may cause receiver to break one or more invariants.

If receiver is null, the events of eventType are removed for all objects. If eventType is 0, all the events are removed for receiver. You should never call this function with eventType of 0. If you do call it in this way, be aware that killing events may cause receiver to break one or more invariants.

Note: This function is thread-safe.

This function was introduced in Qt 4.3.

func (*QCoreApplication) RemoveTranslator

func (this *QCoreApplication) RemoveTranslator(messageFile QTranslator_ITF) bool

Removes the translation file translationFile from the list of translation files used by this application. (It does not delete the translation file from the file system.)

The function returns true on success and false on failure.

See also installTranslator(), translate(), and QObject::tr().

func (*QCoreApplication) SendEvent

func (this *QCoreApplication) SendEvent(receiver QObject_ITF, event QEvent_ITF) bool

Sends event event directly to receiver receiver, using the notify() function. Returns the value that was returned from the event handler.

The event is not deleted when the event has been sent. The normal approach is to create the event on the stack, for example:

QMouseEvent event(QEvent::MouseButtonPress, pos, 0, 0, 0);
QApplication::sendEvent(mainWindow, &event);

See also postEvent() and notify().

func (*QCoreApplication) SendPostedEvents

func (this *QCoreApplication) SendPostedEvents(receiver QObject_ITF, event_type int)

Immediately dispatches all events which have been previously queued with QCoreApplication::postEvent() and which are for the object receiver and have the event type event_type.

Events from the window system are not dispatched by this function, but by processEvents().

If receiver is null, the events of event_type are sent for all objects. If event_type is 0, all the events are sent for receiver.

Note: This method must be called from the thread in which its QObject parameter, receiver, lives.

See also flush() and postEvent().

func (*QCoreApplication) SendPostedEvents__

func (this *QCoreApplication) SendPostedEvents__()

Immediately dispatches all events which have been previously queued with QCoreApplication::postEvent() and which are for the object receiver and have the event type event_type.

Events from the window system are not dispatched by this function, but by processEvents().

If receiver is null, the events of event_type are sent for all objects. If event_type is 0, all the events are sent for receiver.

Note: This method must be called from the thread in which its QObject parameter, receiver, lives.

See also flush() and postEvent().

func (*QCoreApplication) SendPostedEvents__1

func (this *QCoreApplication) SendPostedEvents__1(receiver QObject_ITF)

Immediately dispatches all events which have been previously queued with QCoreApplication::postEvent() and which are for the object receiver and have the event type event_type.

Events from the window system are not dispatched by this function, but by processEvents().

If receiver is null, the events of event_type are sent for all objects. If event_type is 0, all the events are sent for receiver.

Note: This method must be called from the thread in which its QObject parameter, receiver, lives.

See also flush() and postEvent().

func (*QCoreApplication) SetApplicationName

func (this *QCoreApplication) SetApplicationName(application string)

func (*QCoreApplication) SetApplicationVersion

func (this *QCoreApplication) SetApplicationVersion(version string)

func (*QCoreApplication) SetAttribute

func (this *QCoreApplication) SetAttribute(attribute int, on bool)

Sets the attribute attribute if on is true; otherwise clears the attribute.

See also testAttribute().

func (*QCoreApplication) SetAttribute__

func (this *QCoreApplication) SetAttribute__(attribute int)

Sets the attribute attribute if on is true; otherwise clears the attribute.

See also testAttribute().

func (*QCoreApplication) SetCthis

func (this *QCoreApplication) SetCthis(cthis unsafe.Pointer)

func (*QCoreApplication) SetEventDispatcher

func (this *QCoreApplication) SetEventDispatcher(eventDispatcher QAbstractEventDispatcher_ITF)

Sets the event dispatcher for the main thread to eventDispatcher. This is only possible as long as there is no event dispatcher installed yet. That is, before QCoreApplication has been instantiated. This method takes ownership of the object.

See also eventDispatcher().

func (*QCoreApplication) SetLibraryPaths

func (this *QCoreApplication) SetLibraryPaths(arg0 QStringList_ITF)

Sets the list of directories to search when loading libraries to paths. All existing paths will be deleted and the path list will consist of the paths given in paths.

The library paths are reset to the default when an instance of QCoreApplication is destructed.

See also libraryPaths(), addLibraryPath(), removeLibraryPath(), and QLibrary.

func (*QCoreApplication) SetOrganizationDomain

func (this *QCoreApplication) SetOrganizationDomain(orgDomain string)

func (*QCoreApplication) SetOrganizationName

func (this *QCoreApplication) SetOrganizationName(orgName string)

func (*QCoreApplication) SetQuitLockEnabled

func (this *QCoreApplication) SetQuitLockEnabled(enabled bool)

func (*QCoreApplication) SetSetuidAllowed

func (this *QCoreApplication) SetSetuidAllowed(allow bool)

Allows the application to run setuid on UNIX platforms if allow is true.

If allow is false (the default) and Qt detects the application is running with an effective user id different than the real user id, the application will be aborted when a QCoreApplication instance is created.

Qt is not an appropriate solution for setuid programs due to its large attack surface. However some applications may be required to run in this manner for historical reasons. This flag will prevent Qt from aborting the application when this is detected, and must be set before a QCoreApplication instance is created.

Note: It is strongly recommended not to enable this option since it introduces security risks.

This function was introduced in Qt 5.3.

See also isSetuidAllowed().

func (*QCoreApplication) StartingUp

func (this *QCoreApplication) StartingUp() bool

Returns true if an application object has not been created yet; otherwise returns false.

See also closingDown().

func (*QCoreApplication) TestAttribute

func (this *QCoreApplication) TestAttribute(attribute int) bool

Returns true if attribute attribute is set; otherwise returns false.

See also setAttribute().

func (*QCoreApplication) Translate

func (this *QCoreApplication) Translate(context string, key string, disambiguation string, n int) string

Returns the translation text for sourceText, by querying the installed translation files. The translation files are searched from the most recently installed file back to the first installed file.

QObject::tr() provides this functionality more conveniently.

context is typically a class name (e.g., "MyDialog") and sourceText is either English text or a short identifying text.

disambiguation is an identifying string, for when the same sourceText is used in different roles within the same context. By default, it is null.

See the QTranslator and QObject::tr() documentation for more information about contexts, disambiguations and comments.

n is used in conjunction with %n to support plural forms. See QObject::tr() for details.

If none of the translation files contain a translation for sourceText in context, this function returns a QString equivalent of sourceText.

This function is not virtual. You can use alternative translation techniques by subclassing QTranslator.

Note: This function is thread-safe.

See also QObject::tr(), installTranslator(), removeTranslator(), and translate().

func (*QCoreApplication) Translate__

func (this *QCoreApplication) Translate__(context string, key string) string

Returns the translation text for sourceText, by querying the installed translation files. The translation files are searched from the most recently installed file back to the first installed file.

QObject::tr() provides this functionality more conveniently.

context is typically a class name (e.g., "MyDialog") and sourceText is either English text or a short identifying text.

disambiguation is an identifying string, for when the same sourceText is used in different roles within the same context. By default, it is null.

See the QTranslator and QObject::tr() documentation for more information about contexts, disambiguations and comments.

n is used in conjunction with %n to support plural forms. See QObject::tr() for details.

If none of the translation files contain a translation for sourceText in context, this function returns a QString equivalent of sourceText.

This function is not virtual. You can use alternative translation techniques by subclassing QTranslator.

Note: This function is thread-safe.

See also QObject::tr(), installTranslator(), removeTranslator(), and translate().

func (*QCoreApplication) Translate__1

func (this *QCoreApplication) Translate__1(context string, key string, disambiguation string) string

Returns the translation text for sourceText, by querying the installed translation files. The translation files are searched from the most recently installed file back to the first installed file.

QObject::tr() provides this functionality more conveniently.

context is typically a class name (e.g., "MyDialog") and sourceText is either English text or a short identifying text.

disambiguation is an identifying string, for when the same sourceText is used in different roles within the same context. By default, it is null.

See the QTranslator and QObject::tr() documentation for more information about contexts, disambiguations and comments.

n is used in conjunction with %n to support plural forms. See QObject::tr() for details.

If none of the translation files contain a translation for sourceText in context, this function returns a QString equivalent of sourceText.

This function is not virtual. You can use alternative translation techniques by subclassing QTranslator.

Note: This function is thread-safe.

See also QObject::tr(), installTranslator(), removeTranslator(), and translate().

type QCoreApplication_ITF

type QCoreApplication_ITF interface {
	QObject_ITF
	QCoreApplication_PTR() *QCoreApplication
}

type QCoreApplication__

type QCoreApplication__ = int
const QCoreApplication__ApplicationFlags QCoreApplication__ = 330241

type QCryptographicHash

type QCryptographicHash struct {
	*qtrt.CObject
}

func NewQCryptographicHash

func NewQCryptographicHash(method int) *QCryptographicHash

Constructs an object that can be used to create a cryptographic hash from data using method.

func NewQCryptographicHashFromPointer

func NewQCryptographicHashFromPointer(cthis unsafe.Pointer) *QCryptographicHash

func (*QCryptographicHash) AddData

func (this *QCryptographicHash) AddData(data string, length int)

Adds the first length chars of data to the cryptographic hash.

func (*QCryptographicHash) AddData_1

func (this *QCryptographicHash) AddData_1(data QByteArray_ITF)

Adds the first length chars of data to the cryptographic hash.

func (*QCryptographicHash) AddData_2

func (this *QCryptographicHash) AddData_2(device QIODevice_ITF) bool

Adds the first length chars of data to the cryptographic hash.

func (*QCryptographicHash) GetCthis

func (this *QCryptographicHash) GetCthis() unsafe.Pointer

func (*QCryptographicHash) Hash

func (this *QCryptographicHash) Hash(data QByteArray_ITF, method int) *QByteArray

Returns the hash of data using method.

func (*QCryptographicHash) NewFromPointer

func (*QCryptographicHash) NewFromPointer(cthis unsafe.Pointer) *QCryptographicHash

func (*QCryptographicHash) QCryptographicHash_PTR

func (ptr *QCryptographicHash) QCryptographicHash_PTR() *QCryptographicHash

func (*QCryptographicHash) Reset

func (this *QCryptographicHash) Reset()

Resets the object.

func (*QCryptographicHash) Result

func (this *QCryptographicHash) Result() *QByteArray

Returns the final hash value.

See also QByteArray::toHex().

func (*QCryptographicHash) SetCthis

func (this *QCryptographicHash) SetCthis(cthis unsafe.Pointer)

type QCryptographicHash_ITF

type QCryptographicHash_ITF interface {
	QCryptographicHash_PTR() *QCryptographicHash
}

type QCryptographicHash__Algorithm

type QCryptographicHash__Algorithm = int

Note: In Qt versions before 5.9, when asked to generate a SHA3 hash sum, QCryptographicHash actually calculated Keccak. If you need compatibility with SHA-3 hashes produced by those versions of Qt, use the Keccak_ enumerators. Alternatively, if source compatibility is required, define the macro QT_SHA3_KECCAK_COMPAT.

const QCryptographicHash__Keccak_224 QCryptographicHash__Algorithm = 7
const QCryptographicHash__Keccak_256 QCryptographicHash__Algorithm = 8
const QCryptographicHash__Keccak_384 QCryptographicHash__Algorithm = 9
const QCryptographicHash__Keccak_512 QCryptographicHash__Algorithm = 10
const QCryptographicHash__Md4 QCryptographicHash__Algorithm = 0
const QCryptographicHash__Md5 QCryptographicHash__Algorithm = 1
const QCryptographicHash__RealSha3_224 QCryptographicHash__Algorithm = 11
const QCryptographicHash__RealSha3_256 QCryptographicHash__Algorithm = 12
const QCryptographicHash__RealSha3_384 QCryptographicHash__Algorithm = 13
const QCryptographicHash__RealSha3_512 QCryptographicHash__Algorithm = 14
const QCryptographicHash__Sha1 QCryptographicHash__Algorithm = 2
const QCryptographicHash__Sha224 QCryptographicHash__Algorithm = 3
const QCryptographicHash__Sha256 QCryptographicHash__Algorithm = 4
const QCryptographicHash__Sha384 QCryptographicHash__Algorithm = 5
const QCryptographicHash__Sha3_224 QCryptographicHash__Algorithm = 11
const QCryptographicHash__Sha3_256 QCryptographicHash__Algorithm = 12
const QCryptographicHash__Sha3_384 QCryptographicHash__Algorithm = 13
const QCryptographicHash__Sha3_512 QCryptographicHash__Algorithm = 14
const QCryptographicHash__Sha512 QCryptographicHash__Algorithm = 6

type QDataStream

type QDataStream struct {
	*qtrt.CObject
}

func NewQDataStream

func NewQDataStream() *QDataStream

Constructs a data stream that has no I/O device.

See also setDevice().

func NewQDataStreamFromPointer

func NewQDataStreamFromPointer(cthis unsafe.Pointer) *QDataStream

func NewQDataStream_1

func NewQDataStream_1(arg0 QIODevice_ITF) *QDataStream

Constructs a data stream that has no I/O device.

See also setDevice().

func NewQDataStream_2

func NewQDataStream_2(arg0 QByteArray_ITF, flags int) *QDataStream

Constructs a data stream that has no I/O device.

See also setDevice().

func NewQDataStream_3

func NewQDataStream_3(arg0 QByteArray_ITF) *QDataStream

Constructs a data stream that has no I/O device.

See also setDevice().

func (*QDataStream) AbortTransaction

func (this *QDataStream) AbortTransaction()

Aborts a read transaction.

This function is commonly used to discard the transaction after higher-level protocol errors or loss of stream synchronization.

If called on an inner transaction, aborting is delegated to the outermost transaction, and subsequently started inner transactions are forced to fail.

For the outermost transaction, discards the restoration point and any internally duplicated data of the stream. Will not affect the current read position of the stream.

Sets the status of the data stream to

ConstantDescription ReadCorruptData.

This function was introduced in Qt 5.7.

See also startTransaction(), commitTransaction(), and rollbackTransaction().

func (*QDataStream) AtEnd

func (this *QDataStream) AtEnd() bool

Returns true if the I/O device has reached the end position (end of the stream or file) or if there is no I/O device set; otherwise returns false.

See also QIODevice::atEnd().

func (*QDataStream) ByteOrder

func (this *QDataStream) ByteOrder() int

Returns the current byte order setting -- either BigEndian or LittleEndian.

See also setByteOrder().

func (*QDataStream) CommitTransaction

func (this *QDataStream) CommitTransaction() bool

Completes a read transaction. Returns true if no read errors have occurred during the transaction; otherwise returns false.

If called on an inner transaction, committing will be postponed until the outermost commitTransaction(), rollbackTransaction(), or abortTransaction() call occurs.

Otherwise, if the stream status indicates reading past the end of the data, this function restores the stream data to the point of the startTransaction() call. When this situation occurs, you need to wait for more data to arrive, after which you start a new transaction. If the data stream has read corrupt data or any of the inner transactions was aborted, this function aborts the transaction.

This function was introduced in Qt 5.7.

See also startTransaction(), rollbackTransaction(), and abortTransaction().

func (*QDataStream) Device

func (this *QDataStream) Device() *QIODevice

Returns the I/O device currently set, or 0 if no device is currently set.

See also setDevice().

func (*QDataStream) FloatingPointPrecision

func (this *QDataStream) FloatingPointPrecision() int

Returns the floating point precision of the data stream.

This function was introduced in Qt 4.6.

See also FloatingPointPrecision and setFloatingPointPrecision().

func (*QDataStream) GetCthis

func (this *QDataStream) GetCthis() unsafe.Pointer

func (*QDataStream) NewFromPointer

func (*QDataStream) NewFromPointer(cthis unsafe.Pointer) *QDataStream

func (*QDataStream) Operator_left_shift

func (this *QDataStream) Operator_left_shift(i byte) *QDataStream

func (*QDataStream) Operator_left_shift_1

func (this *QDataStream) Operator_left_shift_1(i int16) *QDataStream

func (*QDataStream) Operator_left_shift_10

func (this *QDataStream) Operator_left_shift_10(str string) *QDataStream

func (*QDataStream) Operator_left_shift_2

func (this *QDataStream) Operator_left_shift_2(i uint16) *QDataStream

func (*QDataStream) Operator_left_shift_3

func (this *QDataStream) Operator_left_shift_3(i int) *QDataStream

func (*QDataStream) Operator_left_shift_4

func (this *QDataStream) Operator_left_shift_4(i uint) *QDataStream

func (*QDataStream) Operator_left_shift_5

func (this *QDataStream) Operator_left_shift_5(i int64) *QDataStream

func (*QDataStream) Operator_left_shift_6

func (this *QDataStream) Operator_left_shift_6(i uint64) *QDataStream

func (*QDataStream) Operator_left_shift_7

func (this *QDataStream) Operator_left_shift_7(i bool) *QDataStream

func (*QDataStream) Operator_left_shift_8

func (this *QDataStream) Operator_left_shift_8(f float32) *QDataStream

func (*QDataStream) Operator_left_shift_9

func (this *QDataStream) Operator_left_shift_9(f float64) *QDataStream

func (*QDataStream) Operator_right_shift

func (this *QDataStream) Operator_right_shift(i byte) *QDataStream

func (*QDataStream) Operator_right_shift_1

func (this *QDataStream) Operator_right_shift_1(i int16) *QDataStream

func (*QDataStream) Operator_right_shift_10

func (this *QDataStream) Operator_right_shift_10(str unsafe.Pointer) *QDataStream

func (*QDataStream) Operator_right_shift_2

func (this *QDataStream) Operator_right_shift_2(i uint16) *QDataStream

func (*QDataStream) Operator_right_shift_3

func (this *QDataStream) Operator_right_shift_3(i int) *QDataStream

func (*QDataStream) Operator_right_shift_4

func (this *QDataStream) Operator_right_shift_4(i uint) *QDataStream

func (*QDataStream) Operator_right_shift_5

func (this *QDataStream) Operator_right_shift_5(i int64) *QDataStream

func (*QDataStream) Operator_right_shift_6

func (this *QDataStream) Operator_right_shift_6(i uint64) *QDataStream

func (*QDataStream) Operator_right_shift_7

func (this *QDataStream) Operator_right_shift_7(i bool) *QDataStream

func (*QDataStream) Operator_right_shift_8

func (this *QDataStream) Operator_right_shift_8(f float32) *QDataStream

func (*QDataStream) Operator_right_shift_9

func (this *QDataStream) Operator_right_shift_9(f float64) *QDataStream

func (*QDataStream) QDataStream_PTR

func (ptr *QDataStream) QDataStream_PTR() *QDataStream

func (*QDataStream) ReadBytes

func (this *QDataStream) ReadBytes(arg0 unsafe.Pointer, len_ uint) *QDataStream

Reads the buffer s from the stream and returns a reference to the stream.

The buffer s is allocated using new []. Destroy it with the delete [] operator.

The l parameter is set to the length of the buffer. If the string read is empty, l is set to 0 and s is set to a null pointer.

The serialization format is a quint32 length specifier first, then l bytes of data.

See also readRawData() and writeBytes().

func (*QDataStream) ReadRawData

func (this *QDataStream) ReadRawData(arg0 string, len_ int) int

Reads at most len bytes from the stream into s and returns the number of bytes read. If an error occurs, this function returns -1.

The buffer s must be preallocated. The data is not encoded.

See also readBytes(), QIODevice::read(), and writeRawData().

func (*QDataStream) ResetStatus

func (this *QDataStream) ResetStatus()

Resets the status of the data stream.

See also Status, status(), and setStatus().

func (*QDataStream) RollbackTransaction

func (this *QDataStream) RollbackTransaction()

Reverts a read transaction.

This function is commonly used to rollback the transaction when an incomplete read was detected prior to committing the transaction.

If called on an inner transaction, reverting is delegated to the outermost transaction, and subsequently started inner transactions are forced to fail.

For the outermost transaction, restores the stream data to the point of the startTransaction() call. If the data stream has read corrupt data or any of the inner transactions was aborted, this function aborts the transaction.

If the preceding stream operations were successful, sets the status of the data stream to

ConstantDescription ReadPastEnd.

This function was introduced in Qt 5.7.

See also startTransaction(), commitTransaction(), and abortTransaction().

func (*QDataStream) SetByteOrder

func (this *QDataStream) SetByteOrder(arg0 int)

Sets the serialization byte order to bo.

The bo parameter can be QDataStream::BigEndian or QDataStream::LittleEndian.

The default setting is big endian. We recommend leaving this setting unless you have special requirements.

See also byteOrder().

func (*QDataStream) SetCthis

func (this *QDataStream) SetCthis(cthis unsafe.Pointer)

func (*QDataStream) SetDevice

func (this *QDataStream) SetDevice(arg0 QIODevice_ITF)

void QDataStream::setDevice(QIODevice *d)

Sets the I/O device to d, which can be 0 to unset to current I/O device.

See also device().

func (*QDataStream) SetFloatingPointPrecision

func (this *QDataStream) SetFloatingPointPrecision(precision int)

Sets the floating point precision of the data stream to precision. If the floating point precision is DoublePrecision and the version of the data stream is Qt_4_6 or higher, all floating point numbers will be written and read with 64-bit precision. If the floating point precision is SinglePrecision and the version is Qt_4_6 or higher, all floating point numbers will be written and read with 32-bit precision.

For versions prior to Qt_4_6, the precision of floating point numbers in the data stream depends on the stream operator called.

The default is DoublePrecision.

Note that this property does not affect the serialization or deserialization of qfloat16 instances.

Warning: This property must be set to the same value on the object that writes and the object that reads the data stream.

This function was introduced in Qt 4.6.

See also floatingPointPrecision().

func (*QDataStream) SetStatus

func (this *QDataStream) SetStatus(status int)

Sets the status of the data stream to the status given.

Subsequent calls to setStatus() are ignored until resetStatus() is called.

See also Status, status(), and resetStatus().

func (*QDataStream) SetVersion

func (this *QDataStream) SetVersion(arg0 int)

Sets the version number of the data serialization format to v, a value of the Version enum.

You don't have to set a version if you are using the current version of Qt, but for your own custom binary formats we recommend that you do; see Versioning in the Detailed Description.

To accommodate new functionality, the datastream serialization format of some Qt classes has changed in some versions of Qt. If you want to read data that was created by an earlier version of Qt, or write data that can be read by a program that was compiled with an earlier version of Qt, use this function to modify the serialization format used by QDataStream.

The Version enum provides symbolic constants for the different versions of Qt. For example:

QDataStream out(file);
out.setVersion(QDataStream::Qt_4_0);

See also version() and Version.

func (*QDataStream) SkipRawData

func (this *QDataStream) SkipRawData(len_ int) int

Skips len bytes from the device. Returns the number of bytes actually skipped, or -1 on error.

This is equivalent to calling readRawData() on a buffer of length len and ignoring the buffer.

This function was introduced in Qt 4.1.

See also QIODevice::seek().

func (*QDataStream) StartTransaction

func (this *QDataStream) StartTransaction()

Starts a new read transaction on the stream.

Defines a restorable point within the sequence of read operations. For sequential devices, read data will be duplicated internally to allow recovery in case of incomplete reads. For random-access devices, this function saves the current position of the stream. Call commitTransaction(), rollbackTransaction(), or abortTransaction() to finish the current transaction.

Once a transaction is started, subsequent calls to this function will make the transaction recursive. Inner transactions act as agents of the outermost transaction (i.e., report the status of read operations to the outermost transaction, which can restore the position of the stream).

Note: Restoring to the point of the nested startTransaction() call is not supported.

When an error occurs during a transaction (including an inner transaction failing), reading from the data stream is suspended (all subsequent read operations return empty/zero values) and subsequent inner transactions are forced to fail. Starting a new outermost transaction recovers from this state. This behavior makes it unnecessary to error-check every read operation separately.

This function was introduced in Qt 5.7.

See also commitTransaction(), rollbackTransaction(), and abortTransaction().

func (*QDataStream) Status

func (this *QDataStream) Status() int

Returns the status of the data stream.

See also Status, setStatus(), and resetStatus().

func (*QDataStream) UnsetDevice

func (this *QDataStream) UnsetDevice()

func (*QDataStream) Version

func (this *QDataStream) Version() int

Returns the version number of the data serialization format.

See also setVersion() and Version.

func (*QDataStream) WriteBytes

func (this *QDataStream) WriteBytes(arg0 string, len_ uint) *QDataStream

Writes the length specifier len and the buffer s to the stream and returns a reference to the stream.

The len is serialized as a quint32, followed by len bytes from s. Note that the data is not encoded.

See also writeRawData() and readBytes().

func (*QDataStream) WriteRawData

func (this *QDataStream) WriteRawData(arg0 string, len_ int) int

Writes len bytes from s to the stream. Returns the number of bytes actually written, or -1 on error. The data is not encoded.

See also writeBytes(), QIODevice::write(), and readRawData().

type QDataStream_ITF

type QDataStream_ITF interface {
	QDataStream_PTR() *QDataStream
}

type QDataStream__ByteOrder

type QDataStream__ByteOrder = int

The byte order used for reading/writing the data.

QDataStream::BigEndianQSysInfo::BigEndianMost significant byte first (the default) QDataStream::LittleEndianQSysInfo::LittleEndianLeast significant byte first

const QDataStream__BigEndian QDataStream__ByteOrder = 0
const QDataStream__LittleEndian QDataStream__ByteOrder = 1

type QDataStream__FloatingPointPrecision

type QDataStream__FloatingPointPrecision = int

The precision of floating point numbers used for reading/writing the data. This will only have an effect if the version of the data stream is Qt_4_6 or higher.

Warning: The floating point precision must be set to the same value on the object that writes and the object that reads the data stream.

See also setFloatingPointPrecision() and floatingPointPrecision().

const QDataStream__DoublePrecision QDataStream__FloatingPointPrecision = 1
const QDataStream__SinglePrecision QDataStream__FloatingPointPrecision = 0

type QDataStream__Status

type QDataStream__Status = int

This enum describes the current status of the data stream.

const QDataStream__Ok QDataStream__Status = 0

The data stream is operating normally.

const QDataStream__ReadCorruptData QDataStream__Status = 2

The data stream has read corrupt data.

const QDataStream__ReadPastEnd QDataStream__Status = 1

The data stream has read past the end of the data in the underlying device.

const QDataStream__WriteFailed QDataStream__Status = 3

The data stream cannot write to the underlying device.

type QDataStream__Version

type QDataStream__Version = int

This enum provides symbolic synonyms for the data serialization format version numbers.

See also setVersion() and version().

const QDataStream__Qt_1_0 QDataStream__Version = 1
const QDataStream__Qt_2_0 QDataStream__Version = 2
const QDataStream__Qt_2_1 QDataStream__Version = 3
const QDataStream__Qt_3_0 QDataStream__Version = 4
const QDataStream__Qt_3_1 QDataStream__Version = 5
const QDataStream__Qt_3_3 QDataStream__Version = 6
const QDataStream__Qt_4_0 QDataStream__Version = 7
const QDataStream__Qt_4_1 QDataStream__Version = 7
const QDataStream__Qt_4_2 QDataStream__Version = 8
const QDataStream__Qt_4_3 QDataStream__Version = 9
const QDataStream__Qt_4_4 QDataStream__Version = 10
const QDataStream__Qt_4_5 QDataStream__Version = 11
const QDataStream__Qt_4_6 QDataStream__Version = 12
const QDataStream__Qt_4_7 QDataStream__Version = 12
const QDataStream__Qt_4_8 QDataStream__Version = 12
const QDataStream__Qt_4_9 QDataStream__Version = 12
const QDataStream__Qt_5_0 QDataStream__Version = 13
const QDataStream__Qt_5_1 QDataStream__Version = 14
const QDataStream__Qt_5_10 QDataStream__Version = 17
const QDataStream__Qt_5_2 QDataStream__Version = 15
const QDataStream__Qt_5_3 QDataStream__Version = 15
const QDataStream__Qt_5_4 QDataStream__Version = 16
const QDataStream__Qt_5_5 QDataStream__Version = 16
const QDataStream__Qt_5_6 QDataStream__Version = 17
const QDataStream__Qt_5_7 QDataStream__Version = 17
const QDataStream__Qt_5_8 QDataStream__Version = 17
const QDataStream__Qt_5_9 QDataStream__Version = 17
const QDataStream__Qt_DefaultCompiledVersion QDataStream__Version = 17

type QDate

type QDate struct {
	*qtrt.CObject
}

func NewQDate

func NewQDate() *QDate

func NewQDateFromPointer

func NewQDateFromPointer(cthis unsafe.Pointer) *QDate

func NewQDate_1

func NewQDate_1(y int, m int, d int) *QDate

func QDate_CurrentDate

func QDate_CurrentDate() *QDate

func QDate_FromJulianDay

func QDate_FromJulianDay(jd_ int64) *QDate

func QDate_FromString

func QDate_FromString(s string, f int) *QDate

func QDate_FromString_1

func QDate_FromString_1(s string, format string) *QDate

func (*QDate) AddDays

func (this *QDate) AddDays(days int64) *QDate

Returns a QDateTime object containing a datetime ndays days later than the datetime of this object (or earlier if ndays is negative).

If the timeSpec() is Qt::LocalTime and the resulting date and time fall in the Standard Time to Daylight-Saving Time transition hour then the result will be adjusted accordingly, i.e. if the transition is at 2am and the clock goes forward to 3am and the result falls between 2am and 3am then the result will be adjusted to fall after 3am.

See also daysTo(), addMonths(), addYears(), and addSecs().

func (*QDate) AddMonths

func (this *QDate) AddMonths(months int) *QDate

Returns a QDateTime object containing a datetime nmonths months later than the datetime of this object (or earlier if nmonths is negative).

If the timeSpec() is Qt::LocalTime and the resulting date and time fall in the Standard Time to Daylight-Saving Time transition hour then the result will be adjusted accordingly, i.e. if the transition is at 2am and the clock goes forward to 3am and the result falls between 2am and 3am then the result will be adjusted to fall after 3am.

See also daysTo(), addDays(), addYears(), and addSecs().

func (*QDate) AddYears

func (this *QDate) AddYears(years int) *QDate

Returns a QDateTime object containing a datetime nyears years later than the datetime of this object (or earlier if nyears is negative).

If the timeSpec() is Qt::LocalTime and the resulting date and time fall in the Standard Time to Daylight-Saving Time transition hour then the result will be adjusted accordingly, i.e. if the transition is at 2am and the clock goes forward to 3am and the result falls between 2am and 3am then the result will be adjusted to fall after 3am.

See also daysTo(), addDays(), addMonths(), and addSecs().

func (*QDate) CurrentDate

func (this *QDate) CurrentDate() *QDate

func (*QDate) Day

func (this *QDate) Day() int

func (*QDate) DayOfWeek

func (this *QDate) DayOfWeek() int

func (*QDate) DayOfYear

func (this *QDate) DayOfYear() int

func (*QDate) DaysInMonth

func (this *QDate) DaysInMonth() int

func (*QDate) DaysInYear

func (this *QDate) DaysInYear() int

func (*QDate) DaysTo

func (this *QDate) DaysTo(arg0 QDate_ITF) int64

Returns the number of days from this datetime to the other datetime. The number of days is counted as the number of times midnight is reached between this datetime to the other datetime. This means that a 10 minute difference from 23:55 to 0:05 the next day counts as one day.

If the other datetime is earlier than this datetime, the value returned is negative.

Example:

QDateTime startDate(QDate(2012, 7, 6), QTime(8, 30, 0));
QDateTime endDate(QDate(2012, 7, 7), QTime(16, 30, 0));
qDebug() << "Days from startDate to endDate: " << startDate.daysTo(endDate);

startDate = QDateTime(QDate(2012, 7, 6), QTime(23, 55, 0));
endDate = QDateTime(QDate(2012, 7, 7), QTime(0, 5, 0));
qDebug() << "Days from startDate to endDate: " << startDate.daysTo(endDate);

qSwap(startDate, endDate); // Make endDate before startDate.
qDebug() << "Days from startDate to endDate: " << startDate.daysTo(endDate);

See also addDays(), secsTo(), and msecsTo().

func (*QDate) FromJulianDay

func (this *QDate) FromJulianDay(jd_ int64) *QDate

func (*QDate) FromString

func (this *QDate) FromString(s string, f int) *QDate

Returns the QDateTime represented by the string, using the format given, or an invalid datetime if this is not possible.

Note for Qt::TextDate: It is recommended that you use the English short month names (e.g. "Jan"). Although localized month names can also be used, they depend on the user's locale settings.

See also toString() and QLocale::toDateTime().

func (*QDate) FromString_1

func (this *QDate) FromString_1(s string, format string) *QDate

Returns the QDateTime represented by the string, using the format given, or an invalid datetime if this is not possible.

Note for Qt::TextDate: It is recommended that you use the English short month names (e.g. "Jan"). Although localized month names can also be used, they depend on the user's locale settings.

See also toString() and QLocale::toDateTime().

func (*QDate) FromString__

func (this *QDate) FromString__(s string) *QDate

Returns the QDateTime represented by the string, using the format given, or an invalid datetime if this is not possible.

Note for Qt::TextDate: It is recommended that you use the English short month names (e.g. "Jan"). Although localized month names can also be used, they depend on the user's locale settings.

See also toString() and QLocale::toDateTime().

func (*QDate) GetCthis

func (this *QDate) GetCthis() unsafe.Pointer

func (*QDate) GetDate

func (this *QDate) GetDate(year unsafe.Pointer, month unsafe.Pointer, day unsafe.Pointer)

func (*QDate) GetDate_1

func (this *QDate) GetDate_1(year unsafe.Pointer, month unsafe.Pointer, day unsafe.Pointer)

func (*QDate) IsLeapYear

func (this *QDate) IsLeapYear(year int) bool

func (*QDate) IsNull

func (this *QDate) IsNull() bool

Returns true if both the date and the time are null; otherwise returns false. A null datetime is invalid.

See also QDate::isNull(), QTime::isNull(), and isValid().

func (*QDate) IsValid

func (this *QDate) IsValid() bool

Returns true if both the date and the time are valid and they are valid in the current Qt::TimeSpec, otherwise returns false.

If the timeSpec() is Qt::LocalTime or Qt::TimeZone then the date and time are checked to see if they fall in the Standard Time to Daylight-Saving Time transition hour, i.e. if the transition is at 2am and the clock goes forward to 3am then the time from 02:00:00 to 02:59:59.999 is considered to be invalid.

See also QDate::isValid() and QTime::isValid().

func (*QDate) IsValid_1

func (this *QDate) IsValid_1(y int, m int, d int) bool

Returns true if both the date and the time are valid and they are valid in the current Qt::TimeSpec, otherwise returns false.

If the timeSpec() is Qt::LocalTime or Qt::TimeZone then the date and time are checked to see if they fall in the Standard Time to Daylight-Saving Time transition hour, i.e. if the transition is at 2am and the clock goes forward to 3am then the time from 02:00:00 to 02:59:59.999 is considered to be invalid.

See also QDate::isValid() and QTime::isValid().

func (*QDate) LongDayName

func (this *QDate) LongDayName(weekday int, type_ int) string

func (*QDate) LongDayName__

func (this *QDate) LongDayName__(weekday int) string

func (*QDate) LongMonthName

func (this *QDate) LongMonthName(month int, type_ int) string

func (*QDate) LongMonthName__

func (this *QDate) LongMonthName__(month int) string

func (*QDate) Month

func (this *QDate) Month() int

func (*QDate) NewFromPointer

func (*QDate) NewFromPointer(cthis unsafe.Pointer) *QDate

func (*QDate) Operator_equal_equal

func (this *QDate) Operator_equal_equal(other QDate_ITF) bool

func (*QDate) Operator_greater_than

func (this *QDate) Operator_greater_than(other QDate_ITF) bool

func (*QDate) Operator_greater_than_equal

func (this *QDate) Operator_greater_than_equal(other QDate_ITF) bool

func (*QDate) Operator_less_than

func (this *QDate) Operator_less_than(other QDate_ITF) bool

func (*QDate) Operator_less_than_equal

func (this *QDate) Operator_less_than_equal(other QDate_ITF) bool

func (*QDate) Operator_not_equal

func (this *QDate) Operator_not_equal(other QDate_ITF) bool

func (*QDate) QDate_PTR

func (ptr *QDate) QDate_PTR() *QDate

func (*QDate) SetCthis

func (this *QDate) SetCthis(cthis unsafe.Pointer)

func (*QDate) SetDate

func (this *QDate) SetDate(year int, month int, day int) bool

Sets the date part of this datetime to date. If no time is set yet, it is set to midnight. If date is invalid, this QDateTime becomes invalid.

See also date(), setTime(), and setTimeSpec().

func (*QDate) ShortDayName

func (this *QDate) ShortDayName(weekday int, type_ int) string

func (*QDate) ShortDayName__

func (this *QDate) ShortDayName__(weekday int) string

func (*QDate) ShortMonthName

func (this *QDate) ShortMonthName(month int, type_ int) string

func (*QDate) ShortMonthName__

func (this *QDate) ShortMonthName__(month int) string

func (*QDate) ToJulianDay

func (this *QDate) ToJulianDay() int64

func (*QDate) ToString

func (this *QDate) ToString(f int) string

Returns the datetime as a string. The format parameter determines the format of the result string.

These expressions may be used for the date:

ExpressionOutput

dthe day as number without a leading zero (1 to 31) ddthe day as number with a leading zero (01 to 31) dddthe abbreviated localized day name (e.g. 'Mon' to 'Sun'). Uses the system locale to localize the name, i.e. QLocale::system(). ddddthe long localized day name (e.g. 'Monday' to 'Sunday'). Uses the system locale to localize the name, i.e. QLocale::system(). Mthe month as number without a leading zero (1-12) MMthe month as number with a leading zero (01-12) MMMthe abbreviated localized month name (e.g. 'Jan' to 'Dec'). Uses the system locale to localize the name, i.e. QLocale::system(). MMMMthe long localized month name (e.g. 'January' to 'December'). Uses the system locale to localize the name, i.e. QLocale::system(). yythe year as two digit number (00-99) yyyythe year as four digit number

These expressions may be used for the time:

ExpressionOutput

hthe hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display) hhthe hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display) Hthe hour without a leading zero (0 to 23, even with AM/PM display) HHthe hour with a leading zero (00 to 23, even with AM/PM display) mthe minute without a leading zero (0 to 59) mmthe minute with a leading zero (00 to 59) sthe whole second without a leading zero (0 to 59) ssthe whole second with a leading zero where applicable (00 to 59) zthe fractional part of the second, to go after a decimal point, without trailing zeroes (0 to 999). Thus "s.z" reports the seconds to full available (millisecond) precision without trailing zeroes. zzzthe fractional part of the second, to millisecond precision, including trailing zeroes where applicable (000 to 999). AP or Ause AM/PM display. A/AP will be replaced by either "AM" or "PM". ap or ause am/pm display. a/ap will be replaced by either "am" or "pm". tthe timezone (for example "CEST")

All other input characters will be ignored. Any sequence of characters that are enclosed in single quotes will be treated as text and not be used as an expression. Two consecutive single quotes ("”") are replaced by a singlequote in the output. Formats without separators (e.g. "HHmm") are currently not supported.

Example format strings (assumed that the QDateTime is 21 May 2001 14:13:09.120):

FormatResult

dd.MM.yyyy21.05.2001 ddd MMMM d yyTue May 21 01 hh:mm:ss.zzz14:13:09.120 hh:mm:ss.z14:13:09.12 h:m:s ap2:13:9 pm

If the datetime is invalid, an empty string will be returned.

See also fromString(), QDate::toString(), QTime::toString(), and QLocale::toString().

func (*QDate) ToString_1

func (this *QDate) ToString_1(format string) string

Returns the datetime as a string. The format parameter determines the format of the result string.

These expressions may be used for the date:

ExpressionOutput

dthe day as number without a leading zero (1 to 31) ddthe day as number with a leading zero (01 to 31) dddthe abbreviated localized day name (e.g. 'Mon' to 'Sun'). Uses the system locale to localize the name, i.e. QLocale::system(). ddddthe long localized day name (e.g. 'Monday' to 'Sunday'). Uses the system locale to localize the name, i.e. QLocale::system(). Mthe month as number without a leading zero (1-12) MMthe month as number with a leading zero (01-12) MMMthe abbreviated localized month name (e.g. 'Jan' to 'Dec'). Uses the system locale to localize the name, i.e. QLocale::system(). MMMMthe long localized month name (e.g. 'January' to 'December'). Uses the system locale to localize the name, i.e. QLocale::system(). yythe year as two digit number (00-99) yyyythe year as four digit number

These expressions may be used for the time:

ExpressionOutput

hthe hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display) hhthe hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display) Hthe hour without a leading zero (0 to 23, even with AM/PM display) HHthe hour with a leading zero (00 to 23, even with AM/PM display) mthe minute without a leading zero (0 to 59) mmthe minute with a leading zero (00 to 59) sthe whole second without a leading zero (0 to 59) ssthe whole second with a leading zero where applicable (00 to 59) zthe fractional part of the second, to go after a decimal point, without trailing zeroes (0 to 999). Thus "s.z" reports the seconds to full available (millisecond) precision without trailing zeroes. zzzthe fractional part of the second, to millisecond precision, including trailing zeroes where applicable (000 to 999). AP or Ause AM/PM display. A/AP will be replaced by either "AM" or "PM". ap or ause am/pm display. a/ap will be replaced by either "am" or "pm". tthe timezone (for example "CEST")

All other input characters will be ignored. Any sequence of characters that are enclosed in single quotes will be treated as text and not be used as an expression. Two consecutive single quotes ("”") are replaced by a singlequote in the output. Formats without separators (e.g. "HHmm") are currently not supported.

Example format strings (assumed that the QDateTime is 21 May 2001 14:13:09.120):

FormatResult

dd.MM.yyyy21.05.2001 ddd MMMM d yyTue May 21 01 hh:mm:ss.zzz14:13:09.120 hh:mm:ss.z14:13:09.12 h:m:s ap2:13:9 pm

If the datetime is invalid, an empty string will be returned.

See also fromString(), QDate::toString(), QTime::toString(), and QLocale::toString().

func (*QDate) ToString_2

func (this *QDate) ToString_2(format QStringView_ITF) string

Returns the datetime as a string. The format parameter determines the format of the result string.

These expressions may be used for the date:

ExpressionOutput

dthe day as number without a leading zero (1 to 31) ddthe day as number with a leading zero (01 to 31) dddthe abbreviated localized day name (e.g. 'Mon' to 'Sun'). Uses the system locale to localize the name, i.e. QLocale::system(). ddddthe long localized day name (e.g. 'Monday' to 'Sunday'). Uses the system locale to localize the name, i.e. QLocale::system(). Mthe month as number without a leading zero (1-12) MMthe month as number with a leading zero (01-12) MMMthe abbreviated localized month name (e.g. 'Jan' to 'Dec'). Uses the system locale to localize the name, i.e. QLocale::system(). MMMMthe long localized month name (e.g. 'January' to 'December'). Uses the system locale to localize the name, i.e. QLocale::system(). yythe year as two digit number (00-99) yyyythe year as four digit number

These expressions may be used for the time:

ExpressionOutput

hthe hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display) hhthe hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display) Hthe hour without a leading zero (0 to 23, even with AM/PM display) HHthe hour with a leading zero (00 to 23, even with AM/PM display) mthe minute without a leading zero (0 to 59) mmthe minute with a leading zero (00 to 59) sthe whole second without a leading zero (0 to 59) ssthe whole second with a leading zero where applicable (00 to 59) zthe fractional part of the second, to go after a decimal point, without trailing zeroes (0 to 999). Thus "s.z" reports the seconds to full available (millisecond) precision without trailing zeroes. zzzthe fractional part of the second, to millisecond precision, including trailing zeroes where applicable (000 to 999). AP or Ause AM/PM display. A/AP will be replaced by either "AM" or "PM". ap or ause am/pm display. a/ap will be replaced by either "am" or "pm". tthe timezone (for example "CEST")

All other input characters will be ignored. Any sequence of characters that are enclosed in single quotes will be treated as text and not be used as an expression. Two consecutive single quotes ("”") are replaced by a singlequote in the output. Formats without separators (e.g. "HHmm") are currently not supported.

Example format strings (assumed that the QDateTime is 21 May 2001 14:13:09.120):

FormatResult

dd.MM.yyyy21.05.2001 ddd MMMM d yyTue May 21 01 hh:mm:ss.zzz14:13:09.120 hh:mm:ss.z14:13:09.12 h:m:s ap2:13:9 pm

If the datetime is invalid, an empty string will be returned.

See also fromString(), QDate::toString(), QTime::toString(), and QLocale::toString().

func (*QDate) ToString__

func (this *QDate) ToString__() string

Returns the datetime as a string. The format parameter determines the format of the result string.

These expressions may be used for the date:

ExpressionOutput

dthe day as number without a leading zero (1 to 31) ddthe day as number with a leading zero (01 to 31) dddthe abbreviated localized day name (e.g. 'Mon' to 'Sun'). Uses the system locale to localize the name, i.e. QLocale::system(). ddddthe long localized day name (e.g. 'Monday' to 'Sunday'). Uses the system locale to localize the name, i.e. QLocale::system(). Mthe month as number without a leading zero (1-12) MMthe month as number with a leading zero (01-12) MMMthe abbreviated localized month name (e.g. 'Jan' to 'Dec'). Uses the system locale to localize the name, i.e. QLocale::system(). MMMMthe long localized month name (e.g. 'January' to 'December'). Uses the system locale to localize the name, i.e. QLocale::system(). yythe year as two digit number (00-99) yyyythe year as four digit number

These expressions may be used for the time:

ExpressionOutput

hthe hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display) hhthe hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display) Hthe hour without a leading zero (0 to 23, even with AM/PM display) HHthe hour with a leading zero (00 to 23, even with AM/PM display) mthe minute without a leading zero (0 to 59) mmthe minute with a leading zero (00 to 59) sthe whole second without a leading zero (0 to 59) ssthe whole second with a leading zero where applicable (00 to 59) zthe fractional part of the second, to go after a decimal point, without trailing zeroes (0 to 999). Thus "s.z" reports the seconds to full available (millisecond) precision without trailing zeroes. zzzthe fractional part of the second, to millisecond precision, including trailing zeroes where applicable (000 to 999). AP or Ause AM/PM display. A/AP will be replaced by either "AM" or "PM". ap or ause am/pm display. a/ap will be replaced by either "am" or "pm". tthe timezone (for example "CEST")

All other input characters will be ignored. Any sequence of characters that are enclosed in single quotes will be treated as text and not be used as an expression. Two consecutive single quotes ("”") are replaced by a singlequote in the output. Formats without separators (e.g. "HHmm") are currently not supported.

Example format strings (assumed that the QDateTime is 21 May 2001 14:13:09.120):

FormatResult

dd.MM.yyyy21.05.2001 ddd MMMM d yyTue May 21 01 hh:mm:ss.zzz14:13:09.120 hh:mm:ss.z14:13:09.12 h:m:s ap2:13:9 pm

If the datetime is invalid, an empty string will be returned.

See also fromString(), QDate::toString(), QTime::toString(), and QLocale::toString().

func (*QDate) WeekNumber

func (this *QDate) WeekNumber(yearNum unsafe.Pointer) int

func (*QDate) WeekNumber__

func (this *QDate) WeekNumber__() int

func (*QDate) Year

func (this *QDate) Year() int

type QDateTime

type QDateTime struct {
	*qtrt.CObject
}

func NewQDateTime

func NewQDateTime() *QDateTime

Constructs a null datetime (i.e. null date and null time). A null datetime is invalid, since the date is invalid.

See also isValid().

func NewQDateTimeFromPointer

func NewQDateTimeFromPointer(cthis unsafe.Pointer) *QDateTime

func NewQDateTime_1

func NewQDateTime_1(arg0 QDate_ITF) *QDateTime

Constructs a null datetime (i.e. null date and null time). A null datetime is invalid, since the date is invalid.

See also isValid().

func NewQDateTime_2

func NewQDateTime_2(arg0 QDate_ITF, arg1 QTime_ITF, spec int) *QDateTime

Constructs a null datetime (i.e. null date and null time). A null datetime is invalid, since the date is invalid.

See also isValid().

func NewQDateTime_2_

func NewQDateTime_2_(arg0 QDate_ITF, arg1 QTime_ITF) *QDateTime

Constructs a null datetime (i.e. null date and null time). A null datetime is invalid, since the date is invalid.

See also isValid().

func NewQDateTime_3

func NewQDateTime_3(date QDate_ITF, time QTime_ITF, spec int, offsetSeconds int) *QDateTime

Constructs a null datetime (i.e. null date and null time). A null datetime is invalid, since the date is invalid.

See also isValid().

func NewQDateTime_4

func NewQDateTime_4(date QDate_ITF, time QTime_ITF, timeZone QTimeZone_ITF) *QDateTime

Constructs a null datetime (i.e. null date and null time). A null datetime is invalid, since the date is invalid.

See also isValid().

func QDateTime_CurrentDateTime

func QDateTime_CurrentDateTime() *QDateTime

func QDateTime_CurrentDateTimeUtc

func QDateTime_CurrentDateTimeUtc() *QDateTime

func QDateTime_FromMSecsSinceEpoch

func QDateTime_FromMSecsSinceEpoch(msecs int64) *QDateTime

func QDateTime_FromMSecsSinceEpoch_1

func QDateTime_FromMSecsSinceEpoch_1(msecs int64, spec int, offsetFromUtc int) *QDateTime

func QDateTime_FromMSecsSinceEpoch_2

func QDateTime_FromMSecsSinceEpoch_2(msecs int64, timeZone QTimeZone_ITF) *QDateTime

func QDateTime_FromSecsSinceEpoch

func QDateTime_FromSecsSinceEpoch(secs int64, spe int, offsetFromUtc int) *QDateTime

func QDateTime_FromSecsSinceEpoch_1

func QDateTime_FromSecsSinceEpoch_1(secs int64, timeZone QTimeZone_ITF) *QDateTime

func QDateTime_FromString

func QDateTime_FromString(s string, f int) *QDateTime

func QDateTime_FromString_1

func QDateTime_FromString_1(s string, format string) *QDateTime

func QDateTime_FromTime_t

func QDateTime_FromTime_t(secsSince1Jan1970UTC uint) *QDateTime

func QDateTime_FromTime_t_1

func QDateTime_FromTime_t_1(secsSince1Jan1970UTC uint, spec int, offsetFromUtc int) *QDateTime

func QDateTime_FromTime_t_2

func QDateTime_FromTime_t_2(secsSince1Jan1970UTC uint, timeZone QTimeZone_ITF) *QDateTime

func (*QDateTime) AddDays

func (this *QDateTime) AddDays(days int64) *QDateTime

Returns a QDateTime object containing a datetime ndays days later than the datetime of this object (or earlier if ndays is negative).

If the timeSpec() is Qt::LocalTime and the resulting date and time fall in the Standard Time to Daylight-Saving Time transition hour then the result will be adjusted accordingly, i.e. if the transition is at 2am and the clock goes forward to 3am and the result falls between 2am and 3am then the result will be adjusted to fall after 3am.

See also daysTo(), addMonths(), addYears(), and addSecs().

func (*QDateTime) AddMSecs

func (this *QDateTime) AddMSecs(msecs int64) *QDateTime

Returns a QDateTime object containing a datetime msecs miliseconds later than the datetime of this object (or earlier if msecs is negative).

If this datetime is invalid, an invalid datetime will be returned.

See also addSecs(), msecsTo(), addDays(), addMonths(), and addYears().

func (*QDateTime) AddMonths

func (this *QDateTime) AddMonths(months int) *QDateTime

Returns a QDateTime object containing a datetime nmonths months later than the datetime of this object (or earlier if nmonths is negative).

If the timeSpec() is Qt::LocalTime and the resulting date and time fall in the Standard Time to Daylight-Saving Time transition hour then the result will be adjusted accordingly, i.e. if the transition is at 2am and the clock goes forward to 3am and the result falls between 2am and 3am then the result will be adjusted to fall after 3am.

See also daysTo(), addDays(), addYears(), and addSecs().

func (*QDateTime) AddSecs

func (this *QDateTime) AddSecs(secs int64) *QDateTime

Returns a QDateTime object containing a datetime s seconds later than the datetime of this object (or earlier if s is negative).

If this datetime is invalid, an invalid datetime will be returned.

See also addMSecs(), secsTo(), addDays(), addMonths(), and addYears().

func (*QDateTime) AddYears

func (this *QDateTime) AddYears(years int) *QDateTime

Returns a QDateTime object containing a datetime nyears years later than the datetime of this object (or earlier if nyears is negative).

If the timeSpec() is Qt::LocalTime and the resulting date and time fall in the Standard Time to Daylight-Saving Time transition hour then the result will be adjusted accordingly, i.e. if the transition is at 2am and the clock goes forward to 3am and the result falls between 2am and 3am then the result will be adjusted to fall after 3am.

See also daysTo(), addDays(), addMonths(), and addSecs().

func (*QDateTime) CurrentDateTime

func (this *QDateTime) CurrentDateTime() *QDateTime

Returns the current datetime, as reported by the system clock, in the local time zone.

See also currentDateTimeUtc(), QDate::currentDate(), QTime::currentTime(), and toTimeSpec().

func (*QDateTime) CurrentDateTimeUtc

func (this *QDateTime) CurrentDateTimeUtc() *QDateTime

Returns the current datetime, as reported by the system clock, in UTC.

This function was introduced in Qt 4.7.

See also currentDateTime(), QDate::currentDate(), QTime::currentTime(), and toTimeSpec().

func (*QDateTime) CurrentMSecsSinceEpoch

func (this *QDateTime) CurrentMSecsSinceEpoch() int64

Returns the number of milliseconds since 1970-01-01T00:00:00 Universal Coordinated Time. This number is like the POSIX time_t variable, but expressed in milliseconds instead.

This function was introduced in Qt 4.7.

See also currentDateTime(), currentDateTimeUtc(), toTime_t(), and toTimeSpec().

func (*QDateTime) CurrentSecsSinceEpoch

func (this *QDateTime) CurrentSecsSinceEpoch() int64

Returns the number of seconds since 1970-01-01T00:00:00 Universal Coordinated Time.

This function was introduced in Qt 5.8.

See also currentMSecsSinceEpoch().

func (*QDateTime) Date

func (this *QDateTime) Date() *QDate

Returns the date part of the datetime.

See also setDate(), time(), and timeSpec().

func (*QDateTime) DaysTo

func (this *QDateTime) DaysTo(arg0 QDateTime_ITF) int64

Returns the number of days from this datetime to the other datetime. The number of days is counted as the number of times midnight is reached between this datetime to the other datetime. This means that a 10 minute difference from 23:55 to 0:05 the next day counts as one day.

If the other datetime is earlier than this datetime, the value returned is negative.

Example:

QDateTime startDate(QDate(2012, 7, 6), QTime(8, 30, 0));
QDateTime endDate(QDate(2012, 7, 7), QTime(16, 30, 0));
qDebug() << "Days from startDate to endDate: " << startDate.daysTo(endDate);

startDate = QDateTime(QDate(2012, 7, 6), QTime(23, 55, 0));
endDate = QDateTime(QDate(2012, 7, 7), QTime(0, 5, 0));
qDebug() << "Days from startDate to endDate: " << startDate.daysTo(endDate);

qSwap(startDate, endDate); // Make endDate before startDate.
qDebug() << "Days from startDate to endDate: " << startDate.daysTo(endDate);

See also addDays(), secsTo(), and msecsTo().

func (*QDateTime) FromMSecsSinceEpoch

func (this *QDateTime) FromMSecsSinceEpoch(msecs int64) *QDateTime

Returns a datetime whose date and time are the number of milliseconds, msecs, that have passed since 1970-01-01T00:00:00.000, Coordinated Universal Time (Qt::UTC), and converted to Qt::LocalTime. On systems that do not support time zones, the time will be set as if local time were Qt::UTC.

Note that there are possible values for msecs that lie outside the valid range of QDateTime, both negative and positive. The behavior of this function is undefined for those values.

This function was introduced in Qt 4.7.

See also toMSecsSinceEpoch() and setMSecsSinceEpoch().

func (*QDateTime) FromMSecsSinceEpoch_1

func (this *QDateTime) FromMSecsSinceEpoch_1(msecs int64, spec int, offsetFromUtc int) *QDateTime

Returns a datetime whose date and time are the number of milliseconds, msecs, that have passed since 1970-01-01T00:00:00.000, Coordinated Universal Time (Qt::UTC), and converted to Qt::LocalTime. On systems that do not support time zones, the time will be set as if local time were Qt::UTC.

Note that there are possible values for msecs that lie outside the valid range of QDateTime, both negative and positive. The behavior of this function is undefined for those values.

This function was introduced in Qt 4.7.

See also toMSecsSinceEpoch() and setMSecsSinceEpoch().

func (*QDateTime) FromMSecsSinceEpoch_1_

func (this *QDateTime) FromMSecsSinceEpoch_1_(msecs int64, spec int) *QDateTime

Returns a datetime whose date and time are the number of milliseconds, msecs, that have passed since 1970-01-01T00:00:00.000, Coordinated Universal Time (Qt::UTC), and converted to Qt::LocalTime. On systems that do not support time zones, the time will be set as if local time were Qt::UTC.

Note that there are possible values for msecs that lie outside the valid range of QDateTime, both negative and positive. The behavior of this function is undefined for those values.

This function was introduced in Qt 4.7.

See also toMSecsSinceEpoch() and setMSecsSinceEpoch().

func (*QDateTime) FromMSecsSinceEpoch_2

func (this *QDateTime) FromMSecsSinceEpoch_2(msecs int64, timeZone QTimeZone_ITF) *QDateTime

Returns a datetime whose date and time are the number of milliseconds, msecs, that have passed since 1970-01-01T00:00:00.000, Coordinated Universal Time (Qt::UTC), and converted to Qt::LocalTime. On systems that do not support time zones, the time will be set as if local time were Qt::UTC.

Note that there are possible values for msecs that lie outside the valid range of QDateTime, both negative and positive. The behavior of this function is undefined for those values.

This function was introduced in Qt 4.7.

See also toMSecsSinceEpoch() and setMSecsSinceEpoch().

func (*QDateTime) FromSecsSinceEpoch

func (this *QDateTime) FromSecsSinceEpoch(secs int64, spe int, offsetFromUtc int) *QDateTime

Returns a datetime whose date and time are the number of seconds secs that have passed since 1970-01-01T00:00:00.000, Coordinated Universal Time (Qt::UTC) and converted to the given spec.

Note that there are possible values for secs that lie outside the valid range of QDateTime, both negative and positive. The behavior of this function is undefined for those values.

If the spec is not Qt::OffsetFromUTC then the offsetSeconds will be ignored. If the spec is Qt::OffsetFromUTC and the offsetSeconds is 0 then the spec will be set to Qt::UTC, i.e. an offset of 0 seconds.

If spec is Qt::TimeZone then the spec will be set to Qt::LocalTime, i.e. the current system time zone.

This function was introduced in Qt 5.8.

See also toSecsSinceEpoch() and setSecsSinceEpoch().

func (*QDateTime) FromSecsSinceEpoch_1

func (this *QDateTime) FromSecsSinceEpoch_1(secs int64, timeZone QTimeZone_ITF) *QDateTime

Returns a datetime whose date and time are the number of seconds secs that have passed since 1970-01-01T00:00:00.000, Coordinated Universal Time (Qt::UTC) and converted to the given spec.

Note that there are possible values for secs that lie outside the valid range of QDateTime, both negative and positive. The behavior of this function is undefined for those values.

If the spec is not Qt::OffsetFromUTC then the offsetSeconds will be ignored. If the spec is Qt::OffsetFromUTC and the offsetSeconds is 0 then the spec will be set to Qt::UTC, i.e. an offset of 0 seconds.

If spec is Qt::TimeZone then the spec will be set to Qt::LocalTime, i.e. the current system time zone.

This function was introduced in Qt 5.8.

See also toSecsSinceEpoch() and setSecsSinceEpoch().

func (*QDateTime) FromSecsSinceEpoch__

func (this *QDateTime) FromSecsSinceEpoch__(secs int64) *QDateTime

Returns a datetime whose date and time are the number of seconds secs that have passed since 1970-01-01T00:00:00.000, Coordinated Universal Time (Qt::UTC) and converted to the given spec.

Note that there are possible values for secs that lie outside the valid range of QDateTime, both negative and positive. The behavior of this function is undefined for those values.

If the spec is not Qt::OffsetFromUTC then the offsetSeconds will be ignored. If the spec is Qt::OffsetFromUTC and the offsetSeconds is 0 then the spec will be set to Qt::UTC, i.e. an offset of 0 seconds.

If spec is Qt::TimeZone then the spec will be set to Qt::LocalTime, i.e. the current system time zone.

This function was introduced in Qt 5.8.

See also toSecsSinceEpoch() and setSecsSinceEpoch().

func (*QDateTime) FromSecsSinceEpoch__1

func (this *QDateTime) FromSecsSinceEpoch__1(secs int64, spe int) *QDateTime

Returns a datetime whose date and time are the number of seconds secs that have passed since 1970-01-01T00:00:00.000, Coordinated Universal Time (Qt::UTC) and converted to the given spec.

Note that there are possible values for secs that lie outside the valid range of QDateTime, both negative and positive. The behavior of this function is undefined for those values.

If the spec is not Qt::OffsetFromUTC then the offsetSeconds will be ignored. If the spec is Qt::OffsetFromUTC and the offsetSeconds is 0 then the spec will be set to Qt::UTC, i.e. an offset of 0 seconds.

If spec is Qt::TimeZone then the spec will be set to Qt::LocalTime, i.e. the current system time zone.

This function was introduced in Qt 5.8.

See also toSecsSinceEpoch() and setSecsSinceEpoch().

func (*QDateTime) FromString

func (this *QDateTime) FromString(s string, f int) *QDateTime

Returns the QDateTime represented by the string, using the format given, or an invalid datetime if this is not possible.

Note for Qt::TextDate: It is recommended that you use the English short month names (e.g. "Jan"). Although localized month names can also be used, they depend on the user's locale settings.

See also toString() and QLocale::toDateTime().

func (*QDateTime) FromString_1

func (this *QDateTime) FromString_1(s string, format string) *QDateTime

Returns the QDateTime represented by the string, using the format given, or an invalid datetime if this is not possible.

Note for Qt::TextDate: It is recommended that you use the English short month names (e.g. "Jan"). Although localized month names can also be used, they depend on the user's locale settings.

See also toString() and QLocale::toDateTime().

func (*QDateTime) FromString__

func (this *QDateTime) FromString__(s string) *QDateTime

Returns the QDateTime represented by the string, using the format given, or an invalid datetime if this is not possible.

Note for Qt::TextDate: It is recommended that you use the English short month names (e.g. "Jan"). Although localized month names can also be used, they depend on the user's locale settings.

See also toString() and QLocale::toDateTime().

func (*QDateTime) FromTime_t

func (this *QDateTime) FromTime_t(secsSince1Jan1970UTC uint) *QDateTime

func (*QDateTime) FromTime_t_1

func (this *QDateTime) FromTime_t_1(secsSince1Jan1970UTC uint, spec int, offsetFromUtc int) *QDateTime

func (*QDateTime) FromTime_t_1_

func (this *QDateTime) FromTime_t_1_(secsSince1Jan1970UTC uint, spec int) *QDateTime

func (*QDateTime) FromTime_t_2

func (this *QDateTime) FromTime_t_2(secsSince1Jan1970UTC uint, timeZone QTimeZone_ITF) *QDateTime

func (*QDateTime) GetCthis

func (this *QDateTime) GetCthis() unsafe.Pointer

func (*QDateTime) IsDaylightTime

func (this *QDateTime) IsDaylightTime() bool

Returns if this datetime falls in Daylight-Saving Time.

If the Qt::TimeSpec is not Qt::LocalTime or Qt::TimeZone then will always return false.

This function was introduced in Qt 5.2.

See also timeSpec().

func (*QDateTime) IsNull

func (this *QDateTime) IsNull() bool

Returns true if both the date and the time are null; otherwise returns false. A null datetime is invalid.

See also QDate::isNull(), QTime::isNull(), and isValid().

func (*QDateTime) IsValid

func (this *QDateTime) IsValid() bool

Returns true if both the date and the time are valid and they are valid in the current Qt::TimeSpec, otherwise returns false.

If the timeSpec() is Qt::LocalTime or Qt::TimeZone then the date and time are checked to see if they fall in the Standard Time to Daylight-Saving Time transition hour, i.e. if the transition is at 2am and the clock goes forward to 3am then the time from 02:00:00 to 02:59:59.999 is considered to be invalid.

See also QDate::isValid() and QTime::isValid().

func (*QDateTime) MsecsTo

func (this *QDateTime) MsecsTo(arg0 QDateTime_ITF) int64

Returns the number of milliseconds from this datetime to the other datetime. If the other datetime is earlier than this datetime, the value returned is negative.

Before performing the comparison, the two datetimes are converted to Qt::UTC to ensure that the result is correct if daylight-saving (DST) applies to one of the two datetimes and but not the other.

Returns 0 if either datetime is invalid.

See also addMSecs(), daysTo(), and QTime::msecsTo().

func (*QDateTime) NewFromPointer

func (*QDateTime) NewFromPointer(cthis unsafe.Pointer) *QDateTime

func (*QDateTime) OffsetFromUtc

func (this *QDateTime) OffsetFromUtc() int

Returns the current Offset From UTC in seconds.

If the timeSpec() is Qt::OffsetFromUTC this will be the value originally set.

If the timeSpec() is Qt::TimeZone this will be the offset effective in the Time Zone including any Daylight-Saving Offset.

If the timeSpec() is Qt::LocalTime this will be the difference between the Local Time and UTC including any Daylight-Saving Offset.

If the timeSpec() is Qt::UTC this will be 0.

This function was introduced in Qt 5.2.

See also setOffsetFromUtc().

func (*QDateTime) Operator_equal

func (this *QDateTime) Operator_equal(other unsafe.Pointer) *QDateTime

func (*QDateTime) Operator_equal_1

func (this *QDateTime) Operator_equal_1(other QDateTime_ITF) *QDateTime

func (*QDateTime) Operator_equal_equal

func (this *QDateTime) Operator_equal_equal(other QDateTime_ITF) bool

func (*QDateTime) Operator_greater_than

func (this *QDateTime) Operator_greater_than(other QDateTime_ITF) bool

func (*QDateTime) Operator_greater_than_equal

func (this *QDateTime) Operator_greater_than_equal(other QDateTime_ITF) bool

func (*QDateTime) Operator_less_than

func (this *QDateTime) Operator_less_than(other QDateTime_ITF) bool

func (*QDateTime) Operator_less_than_equal

func (this *QDateTime) Operator_less_than_equal(other QDateTime_ITF) bool

func (*QDateTime) Operator_not_equal

func (this *QDateTime) Operator_not_equal(other QDateTime_ITF) bool

func (*QDateTime) QDateTime_PTR

func (ptr *QDateTime) QDateTime_PTR() *QDateTime

func (*QDateTime) SecsTo

func (this *QDateTime) SecsTo(arg0 QDateTime_ITF) int64

Returns the number of seconds from this datetime to the other datetime. If the other datetime is earlier than this datetime, the value returned is negative.

Before performing the comparison, the two datetimes are converted to Qt::UTC to ensure that the result is correct if daylight-saving (DST) applies to one of the two datetimes but not the other.

Returns 0 if either datetime is invalid.

Example:

QDateTime now = QDateTime::currentDateTime();
QDateTime xmas(QDate(now.date().year(), 12, 25), QTime(0, 0));
qDebug("There are %d seconds to Christmas", now.secsTo(xmas));

See also addSecs(), daysTo(), and QTime::secsTo().

func (*QDateTime) SetCthis

func (this *QDateTime) SetCthis(cthis unsafe.Pointer)

func (*QDateTime) SetDate

func (this *QDateTime) SetDate(date QDate_ITF)

Sets the date part of this datetime to date. If no time is set yet, it is set to midnight. If date is invalid, this QDateTime becomes invalid.

See also date(), setTime(), and setTimeSpec().

func (*QDateTime) SetMSecsSinceEpoch

func (this *QDateTime) SetMSecsSinceEpoch(msecs int64)

Sets the date and time given the number of milliseconds msecs that have passed since 1970-01-01T00:00:00.000, Coordinated Universal Time (Qt::UTC). On systems that do not support time zones this function will behave as if local time were Qt::UTC.

Note that passing the minimum of qint64 (std::numeric_limits<qint64>::min()) to msecs will result in undefined behavior.

This function was introduced in Qt 4.7.

See also toMSecsSinceEpoch() and setSecsSinceEpoch().

func (*QDateTime) SetOffsetFromUtc

func (this *QDateTime) SetOffsetFromUtc(offsetSeconds int)

Sets the timeSpec() to Qt::OffsetFromUTC and the offset to offsetSeconds. The datetime will refer to a different point in time.

The maximum and minimum offset is 14 positive or negative hours. If offsetSeconds is larger or smaller than that, then the result is undefined.

If offsetSeconds is 0 then the timeSpec() will be set to Qt::UTC.

This function was introduced in Qt 5.2.

See also isValid() and offsetFromUtc().

func (*QDateTime) SetSecsSinceEpoch

func (this *QDateTime) SetSecsSinceEpoch(secs int64)

Sets the date and time given the number of seconds secs that have passed since 1970-01-01T00:00:00.000, Coordinated Universal Time (Qt::UTC). On systems that do not support time zones this function will behave as if local time were Qt::UTC.

This function was introduced in Qt 5.8.

See also toSecsSinceEpoch() and setMSecsSinceEpoch().

func (*QDateTime) SetTime

func (this *QDateTime) SetTime(time QTime_ITF)

Sets the time part of this datetime to time. If time is not valid, this function sets it to midnight. Therefore, it's possible to clear any set time in a QDateTime by setting it to a default QTime:

QDateTime dt = QDateTime::currentDateTime();
dt.setTime(QTime());

See also time(), setDate(), and setTimeSpec().

func (*QDateTime) SetTimeSpec

func (this *QDateTime) SetTimeSpec(spec int)

Sets the time specification used in this datetime to spec. The datetime will refer to a different point in time.

If spec is Qt::OffsetFromUTC then the timeSpec() will be set to Qt::UTC, i.e. an effective offset of 0.

If spec is Qt::TimeZone then the spec will be set to Qt::LocalTime, i.e. the current system time zone.

Example:

QDateTime local(QDateTime::currentDateTime());
qDebug() << "Local time is:" << local;

QDateTime UTC(local);
UTC.setTimeSpec(Qt::UTC);
qDebug() << "UTC time is:" << UTC;

qDebug() << "There are" << local.secsTo(UTC) << "seconds difference between the datetimes.";

See also timeSpec(), setDate(), setTime(), setTimeZone(), and Qt::TimeSpec.

func (*QDateTime) SetTimeZone

func (this *QDateTime) SetTimeZone(toZone QTimeZone_ITF)

Sets the time zone used in this datetime to toZone. The datetime will refer to a different point in time.

If toZone is invalid then the datetime will be invalid.

This function was introduced in Qt 5.2.

See also timeZone() and Qt::TimeSpec.

func (*QDateTime) SetTime_t

func (this *QDateTime) SetTime_t(secsSince1Jan1970UTC uint)

func (*QDateTime) SetUtcOffset

func (this *QDateTime) SetUtcOffset(seconds int)

func (*QDateTime) Swap

func (this *QDateTime) Swap(other QDateTime_ITF)

Swaps this datetime with other. This operation is very fast and never fails.

This function was introduced in Qt 5.0.

func (*QDateTime) Time

func (this *QDateTime) Time() *QTime

Returns the time part of the datetime.

See also setTime(), date(), and timeSpec().

func (*QDateTime) TimeSpec

func (this *QDateTime) TimeSpec() int

Returns the time specification of the datetime.

See also setTimeSpec(), date(), time(), and Qt::TimeSpec.

func (*QDateTime) TimeZone

func (this *QDateTime) TimeZone() *QTimeZone

Returns the time zone of the datetime.

If the timeSpec() is Qt::LocalTime then an instance of the current system time zone will be returned. Note however that if you copy this time zone the instance will not remain in sync if the system time zone changes.

This function was introduced in Qt 5.2.

See also setTimeZone() and Qt::TimeSpec.

func (*QDateTime) TimeZoneAbbreviation

func (this *QDateTime) TimeZoneAbbreviation() string

Returns the Time Zone Abbreviation for the datetime.

If the timeSpec() is Qt::UTC this will be "UTC".

If the timeSpec() is Qt::OffsetFromUTC this will be in the format "UTC[+-]00:00".

If the timeSpec() is Qt::LocalTime then the host system is queried for the correct abbreviation.

Note that abbreviations may or may not be localized.

Note too that the abbreviation is not guaranteed to be a unique value, i.e. different time zones may have the same abbreviation.

This function was introduced in Qt 5.2.

See also timeSpec().

func (*QDateTime) ToLocalTime

func (this *QDateTime) ToLocalTime() *QDateTime

Returns a datetime containing the date and time information in this datetime, but specified using the Qt::LocalTime definition.

Example:

QDateTime UTC(QDateTime::currentDateTimeUtc());
QDateTime local(UTC.toLocalTime());
qDebug() << "UTC time is:" << UTC;
qDebug() << "Local time is:" << local;
qDebug() << "No difference between times:" << UTC.secsTo(local);

See also toTimeSpec().

func (*QDateTime) ToMSecsSinceEpoch

func (this *QDateTime) ToMSecsSinceEpoch() int64

Returns the datetime as the number of milliseconds that have passed since 1970-01-01T00:00:00.000, Coordinated Universal Time (Qt::UTC).

On systems that do not support time zones, this function will behave as if local time were Qt::UTC.

The behavior for this function is undefined if the datetime stored in this object is not valid. However, for all valid dates, this function returns a unique value.

This function was introduced in Qt 4.7.

See also toSecsSinceEpoch() and setMSecsSinceEpoch().

func (*QDateTime) ToOffsetFromUtc

func (this *QDateTime) ToOffsetFromUtc(offsetSeconds int) *QDateTime

Returns a copy of this datetime converted to a spec of Qt::OffsetFromUTC with the given offsetSeconds.

If the offsetSeconds equals 0 then a UTC datetime will be returned

This function was introduced in Qt 5.2.

See also setOffsetFromUtc(), offsetFromUtc(), and toTimeSpec().

func (*QDateTime) ToSecsSinceEpoch

func (this *QDateTime) ToSecsSinceEpoch() int64

Returns the datetime as the number of seconds that have passed since 1970-01-01T00:00:00.000, Coordinated Universal Time (Qt::UTC).

On systems that do not support time zones, this function will behave as if local time were Qt::UTC.

The behavior for this function is undefined if the datetime stored in this object is not valid. However, for all valid dates, this function returns a unique value.

This function was introduced in Qt 5.8.

See also toMSecsSinceEpoch() and setSecsSinceEpoch().

func (*QDateTime) ToString

func (this *QDateTime) ToString(f int) string

Returns the datetime as a string. The format parameter determines the format of the result string.

These expressions may be used for the date:

ExpressionOutput

dthe day as number without a leading zero (1 to 31) ddthe day as number with a leading zero (01 to 31) dddthe abbreviated localized day name (e.g. 'Mon' to 'Sun'). Uses the system locale to localize the name, i.e. QLocale::system(). ddddthe long localized day name (e.g. 'Monday' to 'Sunday'). Uses the system locale to localize the name, i.e. QLocale::system(). Mthe month as number without a leading zero (1-12) MMthe month as number with a leading zero (01-12) MMMthe abbreviated localized month name (e.g. 'Jan' to 'Dec'). Uses the system locale to localize the name, i.e. QLocale::system(). MMMMthe long localized month name (e.g. 'January' to 'December'). Uses the system locale to localize the name, i.e. QLocale::system(). yythe year as two digit number (00-99) yyyythe year as four digit number

These expressions may be used for the time:

ExpressionOutput

hthe hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display) hhthe hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display) Hthe hour without a leading zero (0 to 23, even with AM/PM display) HHthe hour with a leading zero (00 to 23, even with AM/PM display) mthe minute without a leading zero (0 to 59) mmthe minute with a leading zero (00 to 59) sthe whole second without a leading zero (0 to 59) ssthe whole second with a leading zero where applicable (00 to 59) zthe fractional part of the second, to go after a decimal point, without trailing zeroes (0 to 999). Thus "s.z" reports the seconds to full available (millisecond) precision without trailing zeroes. zzzthe fractional part of the second, to millisecond precision, including trailing zeroes where applicable (000 to 999). AP or Ause AM/PM display. A/AP will be replaced by either "AM" or "PM". ap or ause am/pm display. a/ap will be replaced by either "am" or "pm". tthe timezone (for example "CEST")

All other input characters will be ignored. Any sequence of characters that are enclosed in single quotes will be treated as text and not be used as an expression. Two consecutive single quotes ("”") are replaced by a singlequote in the output. Formats without separators (e.g. "HHmm") are currently not supported.

Example format strings (assumed that the QDateTime is 21 May 2001 14:13:09.120):

FormatResult

dd.MM.yyyy21.05.2001 ddd MMMM d yyTue May 21 01 hh:mm:ss.zzz14:13:09.120 hh:mm:ss.z14:13:09.12 h:m:s ap2:13:9 pm

If the datetime is invalid, an empty string will be returned.

See also fromString(), QDate::toString(), QTime::toString(), and QLocale::toString().

func (*QDateTime) ToString_1

func (this *QDateTime) ToString_1(format string) string

Returns the datetime as a string. The format parameter determines the format of the result string.

These expressions may be used for the date:

ExpressionOutput

dthe day as number without a leading zero (1 to 31) ddthe day as number with a leading zero (01 to 31) dddthe abbreviated localized day name (e.g. 'Mon' to 'Sun'). Uses the system locale to localize the name, i.e. QLocale::system(). ddddthe long localized day name (e.g. 'Monday' to 'Sunday'). Uses the system locale to localize the name, i.e. QLocale::system(). Mthe month as number without a leading zero (1-12) MMthe month as number with a leading zero (01-12) MMMthe abbreviated localized month name (e.g. 'Jan' to 'Dec'). Uses the system locale to localize the name, i.e. QLocale::system(). MMMMthe long localized month name (e.g. 'January' to 'December'). Uses the system locale to localize the name, i.e. QLocale::system(). yythe year as two digit number (00-99) yyyythe year as four digit number

These expressions may be used for the time:

ExpressionOutput

hthe hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display) hhthe hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display) Hthe hour without a leading zero (0 to 23, even with AM/PM display) HHthe hour with a leading zero (00 to 23, even with AM/PM display) mthe minute without a leading zero (0 to 59) mmthe minute with a leading zero (00 to 59) sthe whole second without a leading zero (0 to 59) ssthe whole second with a leading zero where applicable (00 to 59) zthe fractional part of the second, to go after a decimal point, without trailing zeroes (0 to 999). Thus "s.z" reports the seconds to full available (millisecond) precision without trailing zeroes. zzzthe fractional part of the second, to millisecond precision, including trailing zeroes where applicable (000 to 999). AP or Ause AM/PM display. A/AP will be replaced by either "AM" or "PM". ap or ause am/pm display. a/ap will be replaced by either "am" or "pm". tthe timezone (for example "CEST")

All other input characters will be ignored. Any sequence of characters that are enclosed in single quotes will be treated as text and not be used as an expression. Two consecutive single quotes ("”") are replaced by a singlequote in the output. Formats without separators (e.g. "HHmm") are currently not supported.

Example format strings (assumed that the QDateTime is 21 May 2001 14:13:09.120):

FormatResult

dd.MM.yyyy21.05.2001 ddd MMMM d yyTue May 21 01 hh:mm:ss.zzz14:13:09.120 hh:mm:ss.z14:13:09.12 h:m:s ap2:13:9 pm

If the datetime is invalid, an empty string will be returned.

See also fromString(), QDate::toString(), QTime::toString(), and QLocale::toString().

func (*QDateTime) ToString_2

func (this *QDateTime) ToString_2(format QStringView_ITF) string

Returns the datetime as a string. The format parameter determines the format of the result string.

These expressions may be used for the date:

ExpressionOutput

dthe day as number without a leading zero (1 to 31) ddthe day as number with a leading zero (01 to 31) dddthe abbreviated localized day name (e.g. 'Mon' to 'Sun'). Uses the system locale to localize the name, i.e. QLocale::system(). ddddthe long localized day name (e.g. 'Monday' to 'Sunday'). Uses the system locale to localize the name, i.e. QLocale::system(). Mthe month as number without a leading zero (1-12) MMthe month as number with a leading zero (01-12) MMMthe abbreviated localized month name (e.g. 'Jan' to 'Dec'). Uses the system locale to localize the name, i.e. QLocale::system(). MMMMthe long localized month name (e.g. 'January' to 'December'). Uses the system locale to localize the name, i.e. QLocale::system(). yythe year as two digit number (00-99) yyyythe year as four digit number

These expressions may be used for the time:

ExpressionOutput

hthe hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display) hhthe hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display) Hthe hour without a leading zero (0 to 23, even with AM/PM display) HHthe hour with a leading zero (00 to 23, even with AM/PM display) mthe minute without a leading zero (0 to 59) mmthe minute with a leading zero (00 to 59) sthe whole second without a leading zero (0 to 59) ssthe whole second with a leading zero where applicable (00 to 59) zthe fractional part of the second, to go after a decimal point, without trailing zeroes (0 to 999). Thus "s.z" reports the seconds to full available (millisecond) precision without trailing zeroes. zzzthe fractional part of the second, to millisecond precision, including trailing zeroes where applicable (000 to 999). AP or Ause AM/PM display. A/AP will be replaced by either "AM" or "PM". ap or ause am/pm display. a/ap will be replaced by either "am" or "pm". tthe timezone (for example "CEST")

All other input characters will be ignored. Any sequence of characters that are enclosed in single quotes will be treated as text and not be used as an expression. Two consecutive single quotes ("”") are replaced by a singlequote in the output. Formats without separators (e.g. "HHmm") are currently not supported.

Example format strings (assumed that the QDateTime is 21 May 2001 14:13:09.120):

FormatResult

dd.MM.yyyy21.05.2001 ddd MMMM d yyTue May 21 01 hh:mm:ss.zzz14:13:09.120 hh:mm:ss.z14:13:09.12 h:m:s ap2:13:9 pm

If the datetime is invalid, an empty string will be returned.

See also fromString(), QDate::toString(), QTime::toString(), and QLocale::toString().

func (*QDateTime) ToString__

func (this *QDateTime) ToString__() string

Returns the datetime as a string. The format parameter determines the format of the result string.

These expressions may be used for the date:

ExpressionOutput

dthe day as number without a leading zero (1 to 31) ddthe day as number with a leading zero (01 to 31) dddthe abbreviated localized day name (e.g. 'Mon' to 'Sun'). Uses the system locale to localize the name, i.e. QLocale::system(). ddddthe long localized day name (e.g. 'Monday' to 'Sunday'). Uses the system locale to localize the name, i.e. QLocale::system(). Mthe month as number without a leading zero (1-12) MMthe month as number with a leading zero (01-12) MMMthe abbreviated localized month name (e.g. 'Jan' to 'Dec'). Uses the system locale to localize the name, i.e. QLocale::system(). MMMMthe long localized month name (e.g. 'January' to 'December'). Uses the system locale to localize the name, i.e. QLocale::system(). yythe year as two digit number (00-99) yyyythe year as four digit number

These expressions may be used for the time:

ExpressionOutput

hthe hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display) hhthe hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display) Hthe hour without a leading zero (0 to 23, even with AM/PM display) HHthe hour with a leading zero (00 to 23, even with AM/PM display) mthe minute without a leading zero (0 to 59) mmthe minute with a leading zero (00 to 59) sthe whole second without a leading zero (0 to 59) ssthe whole second with a leading zero where applicable (00 to 59) zthe fractional part of the second, to go after a decimal point, without trailing zeroes (0 to 999). Thus "s.z" reports the seconds to full available (millisecond) precision without trailing zeroes. zzzthe fractional part of the second, to millisecond precision, including trailing zeroes where applicable (000 to 999). AP or Ause AM/PM display. A/AP will be replaced by either "AM" or "PM". ap or ause am/pm display. a/ap will be replaced by either "am" or "pm". tthe timezone (for example "CEST")

All other input characters will be ignored. Any sequence of characters that are enclosed in single quotes will be treated as text and not be used as an expression. Two consecutive single quotes ("”") are replaced by a singlequote in the output. Formats without separators (e.g. "HHmm") are currently not supported.

Example format strings (assumed that the QDateTime is 21 May 2001 14:13:09.120):

FormatResult

dd.MM.yyyy21.05.2001 ddd MMMM d yyTue May 21 01 hh:mm:ss.zzz14:13:09.120 hh:mm:ss.z14:13:09.12 h:m:s ap2:13:9 pm

If the datetime is invalid, an empty string will be returned.

See also fromString(), QDate::toString(), QTime::toString(), and QLocale::toString().

func (*QDateTime) ToTimeSpec

func (this *QDateTime) ToTimeSpec(spec int) *QDateTime

Returns a copy of this datetime converted to the given time spec.

If spec is Qt::OffsetFromUTC then it is set to Qt::UTC. To set to a spec of Qt::OffsetFromUTC use toOffsetFromUtc().

If spec is Qt::TimeZone then it is set to Qt::LocalTime, i.e. the local Time Zone.

Example:

QDateTime local(QDateTime::currentDateTime());
QDateTime UTC(local.toTimeSpec(Qt::UTC));
qDebug() << "Local time is:" << local;
qDebug() << "UTC time is:" << UTC;
qDebug() << "No difference between times:" << local.secsTo(UTC);

See also timeSpec(), toTimeZone(), toUTC(), and toLocalTime().

func (*QDateTime) ToTimeZone

func (this *QDateTime) ToTimeZone(toZone QTimeZone_ITF) *QDateTime

Returns a copy of this datetime converted to the given timeZone

This function was introduced in Qt 5.2.

See also timeZone() and toTimeSpec().

func (*QDateTime) ToTime_t

func (this *QDateTime) ToTime_t() uint

func (*QDateTime) ToUTC

func (this *QDateTime) ToUTC() *QDateTime

Returns a datetime containing the date and time information in this datetime, but specified using the Qt::UTC definition.

Example:

QDateTime local(QDateTime::currentDateTime());
QDateTime UTC(local.toUTC());
qDebug() << "Local time is:" << local;
qDebug() << "UTC time is:" << UTC;
qDebug() << "No difference between times:" << local.secsTo(UTC);

See also toTimeSpec().

func (*QDateTime) UtcOffset

func (this *QDateTime) UtcOffset() int

type QDateTime_ITF

type QDateTime_ITF interface {
	QDateTime_PTR() *QDateTime
}

type QDate_ITF

type QDate_ITF interface {
	QDate_PTR() *QDate
}

type QDate__MonthNameType

type QDate__MonthNameType = int
const QDate__DateFormat QDate__MonthNameType = 0
const QDate__StandaloneFormat QDate__MonthNameType = 1

type QDeadlineTimer

type QDeadlineTimer struct {
	*qtrt.CObject
}

func NewQDeadlineTimer

func NewQDeadlineTimer(type_ int) *QDeadlineTimer

Constructs an expired QDeadlineTimer object. For this object, remainingTime() will return 0.

The timer type timerType may be ignored, since the timer is already expired. Similarly, for optimization purposes, this function will not attempt to obtain the current time and will use a value known to be in the past. Therefore, deadline() may return an unexpected value and this object cannot be used in calculation of how long it is overdue. If that functionality is required, use QDeadlineTimer::current().

See also hasExpired(), remainingTime(), Qt::TimerType, and current().

func NewQDeadlineTimerFromPointer

func NewQDeadlineTimerFromPointer(cthis unsafe.Pointer) *QDeadlineTimer

func NewQDeadlineTimer_1

func NewQDeadlineTimer_1(arg0 int, type_ int) *QDeadlineTimer

Constructs an expired QDeadlineTimer object. For this object, remainingTime() will return 0.

The timer type timerType may be ignored, since the timer is already expired. Similarly, for optimization purposes, this function will not attempt to obtain the current time and will use a value known to be in the past. Therefore, deadline() may return an unexpected value and this object cannot be used in calculation of how long it is overdue. If that functionality is required, use QDeadlineTimer::current().

See also hasExpired(), remainingTime(), Qt::TimerType, and current().

func NewQDeadlineTimer_1_

func NewQDeadlineTimer_1_(arg0 int) *QDeadlineTimer

Constructs an expired QDeadlineTimer object. For this object, remainingTime() will return 0.

The timer type timerType may be ignored, since the timer is already expired. Similarly, for optimization purposes, this function will not attempt to obtain the current time and will use a value known to be in the past. Therefore, deadline() may return an unexpected value and this object cannot be used in calculation of how long it is overdue. If that functionality is required, use QDeadlineTimer::current().

See also hasExpired(), remainingTime(), Qt::TimerType, and current().

func NewQDeadlineTimer_2

func NewQDeadlineTimer_2(msecs int64, type_ int) *QDeadlineTimer

Constructs an expired QDeadlineTimer object. For this object, remainingTime() will return 0.

The timer type timerType may be ignored, since the timer is already expired. Similarly, for optimization purposes, this function will not attempt to obtain the current time and will use a value known to be in the past. Therefore, deadline() may return an unexpected value and this object cannot be used in calculation of how long it is overdue. If that functionality is required, use QDeadlineTimer::current().

See also hasExpired(), remainingTime(), Qt::TimerType, and current().

func NewQDeadlineTimer_2_

func NewQDeadlineTimer_2_(msecs int64) *QDeadlineTimer

Constructs an expired QDeadlineTimer object. For this object, remainingTime() will return 0.

The timer type timerType may be ignored, since the timer is already expired. Similarly, for optimization purposes, this function will not attempt to obtain the current time and will use a value known to be in the past. Therefore, deadline() may return an unexpected value and this object cannot be used in calculation of how long it is overdue. If that functionality is required, use QDeadlineTimer::current().

See also hasExpired(), remainingTime(), Qt::TimerType, and current().

func NewQDeadlineTimer__

func NewQDeadlineTimer__() *QDeadlineTimer

Constructs an expired QDeadlineTimer object. For this object, remainingTime() will return 0.

The timer type timerType may be ignored, since the timer is already expired. Similarly, for optimization purposes, this function will not attempt to obtain the current time and will use a value known to be in the past. Therefore, deadline() may return an unexpected value and this object cannot be used in calculation of how long it is overdue. If that functionality is required, use QDeadlineTimer::current().

See also hasExpired(), remainingTime(), Qt::TimerType, and current().

func QDeadlineTimer_AddNSecs

func QDeadlineTimer_AddNSecs(dt QDeadlineTimer_ITF, nsecs int64) *QDeadlineTimer

func QDeadlineTimer_Current

func QDeadlineTimer_Current(timerType int) *QDeadlineTimer

func (*QDeadlineTimer) AddNSecs

func (this *QDeadlineTimer) AddNSecs(dt QDeadlineTimer_ITF, nsecs int64) *QDeadlineTimer

Returns a QDeadlineTimer object whose deadline is extended from dt's deadline by nsecs nanoseconds. If dt was set to never expire, this function returns a QDeadlineTimer that will not expire either.

Note: if dt was created as expired, its deadline is indeterminate and adding an amount of time may or may not cause it to become unexpired.

func (*QDeadlineTimer) Current

func (this *QDeadlineTimer) Current(timerType int) *QDeadlineTimer

Returns a QDeadlineTimer that is expired but is guaranteed to contain the current time. Objects created by this function can participate in the calculation of how long a timer is overdue, using the deadline() function.

The QDeadlineTimer object will be constructed with the specified timerType.

func (*QDeadlineTimer) Current__

func (this *QDeadlineTimer) Current__() *QDeadlineTimer

Returns a QDeadlineTimer that is expired but is guaranteed to contain the current time. Objects created by this function can participate in the calculation of how long a timer is overdue, using the deadline() function.

The QDeadlineTimer object will be constructed with the specified timerType.

func (*QDeadlineTimer) Deadline

func (this *QDeadlineTimer) Deadline() int64

Returns the absolute time point for the deadline stored in QDeadlineTimer object, calculated in milliseconds relative to the reference clock, the same as QElapsedTimer::msecsSinceReference(). The value will be in the past if this QDeadlineTimer has expired.

If this QDeadlineTimer never expires, this function returns std::numeric_limits<qint64>::max().

This function can be used to calculate the amount of time a timer is overdue, by subtracting QDeadlineTimer::current() or QElapsedTimer::msecsSinceReference(), as in the following example:

qint64 realTimeLeft = deadline.deadline();
if (realTimeLeft != (std::numeric_limits<qint64>::max)()) {
    realTimeLeft -= QDeadlineTimer::current().deadline();
    // or:
    //QElapsedTimer timer;
    //timer.start();
    //realTimeLeft -= timer.msecsSinceReference();
}

Note: Timers that were created as expired have an indetermine time point in the past as their deadline, so the above calculation may not work.

See also remainingTime(), deadlineNSecs(), and setDeadline().

func (*QDeadlineTimer) DeadlineNSecs

func (this *QDeadlineTimer) DeadlineNSecs() int64

Returns the absolute time point for the deadline stored in QDeadlineTimer object, calculated in nanoseconds relative to the reference clock, the same as QElapsedTimer::msecsSinceReference(). The value will be in the past if this QDeadlineTimer has expired.

If this QDeadlineTimer never expires, this function returns std::numeric_limits<qint64>::max().

This function can be used to calculate the amount of time a timer is overdue, by subtracting QDeadlineTimer::current(), as in the following example:

qint64 realTimeLeft = deadline.deadlineNSecs();
if (realTimeLeft != std::numeric_limits<qint64>::max())
    realTimeLeft -= QDeadlineTimer::current().deadlineNSecs();

Note: Timers that were created as expired have an indetermine time point in the past as their deadline, so the above calculation may not work.

See also remainingTime() and deadlineNSecs().

func (*QDeadlineTimer) GetCthis

func (this *QDeadlineTimer) GetCthis() unsafe.Pointer

func (*QDeadlineTimer) HasExpired

func (this *QDeadlineTimer) HasExpired() bool

Returns true if this QDeadlineTimer object has expired, false if there remains time left. For objects that have expired, remainingTime() will return zero and deadline() will return a time point in the past.

QDeadlineTimer objects created with the ForeverConstant never expire and this function always returns false for them.

See also isForever() and remainingTime().

func (*QDeadlineTimer) IsForever

func (this *QDeadlineTimer) IsForever() bool

Returns true if this QDeadlineTimer object never expires, false otherwise. For timers that never expire, remainingTime() always returns -1 and deadline() returns the maximum value.

See also ForeverConstant, hasExpired(), and remainingTime().

func (*QDeadlineTimer) NewFromPointer

func (*QDeadlineTimer) NewFromPointer(cthis unsafe.Pointer) *QDeadlineTimer

func (*QDeadlineTimer) Operator_add_equal

func (this *QDeadlineTimer) Operator_add_equal(msecs int64) *QDeadlineTimer

func (*QDeadlineTimer) Operator_minus_equal

func (this *QDeadlineTimer) Operator_minus_equal(msecs int64) *QDeadlineTimer

func (*QDeadlineTimer) QDeadlineTimer_PTR

func (ptr *QDeadlineTimer) QDeadlineTimer_PTR() *QDeadlineTimer

func (*QDeadlineTimer) RemainingTime

func (this *QDeadlineTimer) RemainingTime() int64

Returns the remaining time in this QDeadlineTimer object in milliseconds. If the timer has already expired, this function will return zero and it is not possible to obtain the amount of time overdue with this function (to do that, see deadline()). If the timer was set to never expire, this function returns -1.

This function is suitable for use in Qt APIs that take a millisecond timeout, such as the many QIODevice waitFor functions or the timed lock functions in QMutex, QWaitCondition, QSemaphore, or QReadWriteLock. For example:

mutex.tryLock(deadline.remainingTime());

See also setRemainingTime(), remainingTimeNSecs(), isForever(), and hasExpired().

func (*QDeadlineTimer) RemainingTimeAsDuration

func (this *QDeadlineTimer) RemainingTimeAsDuration() int

Returns the time remaining before the deadline.

func (*QDeadlineTimer) RemainingTimeNSecs

func (this *QDeadlineTimer) RemainingTimeNSecs() int64

Returns the remaining time in this QDeadlineTimer object in nanoseconds. If the timer has already expired, this function will return zero and it is not possible to obtain the amount of time overdue with this function. If the timer was set to never expire, this function returns -1.

See also remainingTime(), isForever(), and hasExpired().

func (*QDeadlineTimer) SetCthis

func (this *QDeadlineTimer) SetCthis(cthis unsafe.Pointer)

func (*QDeadlineTimer) SetDeadline

func (this *QDeadlineTimer) SetDeadline(msecs int64, timerType int)

Sets the deadline for this QDeadlineTimer object to be the msecs absolute time point, counted in milliseconds since the reference clock (the same as QElapsedTimer::msecsSinceReference()), and the timer type to timerType. If the value is in the past, this QDeadlineTimer will be marked as expired.

If msecs is std::numeric_limits<qint64>::max(), this QDeadlineTimer will be set to never expire.

See also setPreciseDeadline(), deadline(), deadlineNSecs(), and setRemainingTime().

func (*QDeadlineTimer) SetDeadline__

func (this *QDeadlineTimer) SetDeadline__(msecs int64)

Sets the deadline for this QDeadlineTimer object to be the msecs absolute time point, counted in milliseconds since the reference clock (the same as QElapsedTimer::msecsSinceReference()), and the timer type to timerType. If the value is in the past, this QDeadlineTimer will be marked as expired.

If msecs is std::numeric_limits<qint64>::max(), this QDeadlineTimer will be set to never expire.

See also setPreciseDeadline(), deadline(), deadlineNSecs(), and setRemainingTime().

func (*QDeadlineTimer) SetPreciseDeadline

func (this *QDeadlineTimer) SetPreciseDeadline(secs int64, nsecs int64, type_ int)

Sets the deadline for this QDeadlineTimer object to be secs seconds and nsecs nanoseconds since the reference clock epoch (the same as QElapsedTimer::msecsSinceReference()), and the timer type to timerType. If the value is in the past, this QDeadlineTimer will be marked as expired.

If secs or nsecs is std::numeric_limits<qint64>::max(), this QDeadlineTimer will be set to never expire. If nsecs is more than 1 billion nanoseconds (1 second), then secs will be adjusted accordingly.

See also setDeadline(), deadline(), deadlineNSecs(), and setRemainingTime().

func (*QDeadlineTimer) SetPreciseDeadline__

func (this *QDeadlineTimer) SetPreciseDeadline__(secs int64)

Sets the deadline for this QDeadlineTimer object to be secs seconds and nsecs nanoseconds since the reference clock epoch (the same as QElapsedTimer::msecsSinceReference()), and the timer type to timerType. If the value is in the past, this QDeadlineTimer will be marked as expired.

If secs or nsecs is std::numeric_limits<qint64>::max(), this QDeadlineTimer will be set to never expire. If nsecs is more than 1 billion nanoseconds (1 second), then secs will be adjusted accordingly.

See also setDeadline(), deadline(), deadlineNSecs(), and setRemainingTime().

func (*QDeadlineTimer) SetPreciseDeadline__1

func (this *QDeadlineTimer) SetPreciseDeadline__1(secs int64, nsecs int64)

Sets the deadline for this QDeadlineTimer object to be secs seconds and nsecs nanoseconds since the reference clock epoch (the same as QElapsedTimer::msecsSinceReference()), and the timer type to timerType. If the value is in the past, this QDeadlineTimer will be marked as expired.

If secs or nsecs is std::numeric_limits<qint64>::max(), this QDeadlineTimer will be set to never expire. If nsecs is more than 1 billion nanoseconds (1 second), then secs will be adjusted accordingly.

See also setDeadline(), deadline(), deadlineNSecs(), and setRemainingTime().

func (*QDeadlineTimer) SetPreciseRemainingTime

func (this *QDeadlineTimer) SetPreciseRemainingTime(secs int64, nsecs int64, type_ int)

Sets the remaining time for this QDeadlineTimer object to secs seconds plus nsecs nanoseconds from now, if secs has a positive value. If secs is -1, this QDeadlineTimer will be set it to never expire. If both parameters are zero, this QDeadlineTimer will be marked as expired.

The timer type for this QDeadlineTimer object will be set to the specified timerType.

See also setRemainingTime(), hasExpired(), isForever(), and remainingTime().

func (*QDeadlineTimer) SetPreciseRemainingTime__

func (this *QDeadlineTimer) SetPreciseRemainingTime__(secs int64)

Sets the remaining time for this QDeadlineTimer object to secs seconds plus nsecs nanoseconds from now, if secs has a positive value. If secs is -1, this QDeadlineTimer will be set it to never expire. If both parameters are zero, this QDeadlineTimer will be marked as expired.

The timer type for this QDeadlineTimer object will be set to the specified timerType.

See also setRemainingTime(), hasExpired(), isForever(), and remainingTime().

func (*QDeadlineTimer) SetPreciseRemainingTime__1

func (this *QDeadlineTimer) SetPreciseRemainingTime__1(secs int64, nsecs int64)

Sets the remaining time for this QDeadlineTimer object to secs seconds plus nsecs nanoseconds from now, if secs has a positive value. If secs is -1, this QDeadlineTimer will be set it to never expire. If both parameters are zero, this QDeadlineTimer will be marked as expired.

The timer type for this QDeadlineTimer object will be set to the specified timerType.

See also setRemainingTime(), hasExpired(), isForever(), and remainingTime().

func (*QDeadlineTimer) SetRemainingTime

func (this *QDeadlineTimer) SetRemainingTime(msecs int64, type_ int)

Sets the remaining time for this QDeadlineTimer object to msecs milliseconds from now, if msecs has a positive value. If msecs is zero, this QDeadlineTimer object will be marked as expired, whereas a value of -1 will set it to never expire.

The timer type for this QDeadlineTimer object will be set to the specified timerType.

See also setPreciseRemainingTime(), hasExpired(), isForever(), and remainingTime().

func (*QDeadlineTimer) SetRemainingTime__

func (this *QDeadlineTimer) SetRemainingTime__(msecs int64)

Sets the remaining time for this QDeadlineTimer object to msecs milliseconds from now, if msecs has a positive value. If msecs is zero, this QDeadlineTimer object will be marked as expired, whereas a value of -1 will set it to never expire.

The timer type for this QDeadlineTimer object will be set to the specified timerType.

See also setPreciseRemainingTime(), hasExpired(), isForever(), and remainingTime().

func (*QDeadlineTimer) SetTimerType

func (this *QDeadlineTimer) SetTimerType(type_ int)

Changes the timer type for this object to timerType.

The behavior for each possible value of timerType is operating-system dependent. Qt::PreciseTimer will use the most precise timer that Qt can find, with resolution of 1 millisecond or better, whereas QDeadlineTimer will try to use a more coarse timer for Qt::CoarseTimer and Qt::VeryCoarseTimer.

See also timerType() and Qt::TimerType.

func (*QDeadlineTimer) Swap

func (this *QDeadlineTimer) Swap(other QDeadlineTimer_ITF)

Swaps this deadline timer with the other deadline timer.

func (*QDeadlineTimer) TimerType

func (this *QDeadlineTimer) TimerType() int

Returns the timer type is active for this object.

See also setTimerType().

type QDeadlineTimer_ITF

type QDeadlineTimer_ITF interface {
	QDeadlineTimer_PTR() *QDeadlineTimer
}

type QDeadlineTimer__ForeverConstant

type QDeadlineTimer__ForeverConstant = int
const QDeadlineTimer__Forever QDeadlineTimer__ForeverConstant = 0

Used when creating a QDeadlineTimer to indicate the deadline should not expire

type QDeferredDeleteEvent

type QDeferredDeleteEvent struct {
	*QEvent
}

func NewQDeferredDeleteEvent

func NewQDeferredDeleteEvent() *QDeferredDeleteEvent

func NewQDeferredDeleteEventFromPointer

func NewQDeferredDeleteEventFromPointer(cthis unsafe.Pointer) *QDeferredDeleteEvent

func (*QDeferredDeleteEvent) GetCthis

func (this *QDeferredDeleteEvent) GetCthis() unsafe.Pointer

func (*QDeferredDeleteEvent) LoopLevel

func (this *QDeferredDeleteEvent) LoopLevel() int

func (*QDeferredDeleteEvent) NewFromPointer

func (*QDeferredDeleteEvent) NewFromPointer(cthis unsafe.Pointer) *QDeferredDeleteEvent

func (*QDeferredDeleteEvent) QDeferredDeleteEvent_PTR

func (ptr *QDeferredDeleteEvent) QDeferredDeleteEvent_PTR() *QDeferredDeleteEvent

func (*QDeferredDeleteEvent) SetCthis

func (this *QDeferredDeleteEvent) SetCthis(cthis unsafe.Pointer)

type QDeferredDeleteEvent_ITF

type QDeferredDeleteEvent_ITF interface {
	QEvent_ITF
	QDeferredDeleteEvent_PTR() *QDeferredDeleteEvent
}

type QDir

type QDir struct {
	*qtrt.CObject
}

func NewQDir

func NewQDir(path string) *QDir

Constructs a QDir object that is a copy of the QDir object for directory dir.

See also operator=().

func NewQDirFromPointer

func NewQDirFromPointer(cthis unsafe.Pointer) *QDir

func NewQDir_1

func NewQDir_1(path string, nameFilter string, sort int, filter int) *QDir

Constructs a QDir object that is a copy of the QDir object for directory dir.

See also operator=().

func NewQDir_1_

func NewQDir_1_(path string, nameFilter string) *QDir

Constructs a QDir object that is a copy of the QDir object for directory dir.

See also operator=().

func NewQDir_1_1

func NewQDir_1_1(path string, nameFilter string, sort int) *QDir

Constructs a QDir object that is a copy of the QDir object for directory dir.

See also operator=().

func NewQDir__

func NewQDir__() *QDir

Constructs a QDir object that is a copy of the QDir object for directory dir.

See also operator=().

func QDir_Current

func QDir_Current() *QDir

func QDir_Home

func QDir_Home() *QDir

func QDir_Root

func QDir_Root() *QDir

func QDir_Temp

func QDir_Temp() *QDir

func (*QDir) AbsoluteFilePath

func (this *QDir) AbsoluteFilePath(fileName string) string

Returns the absolute path name of a file in the directory. Does not check if the file actually exists in the directory; but see exists(). Redundant multiple separators or "." and ".." directories in fileName are not removed (see cleanPath()).

See also relativeFilePath(), filePath(), and canonicalPath().

func (*QDir) AbsolutePath

func (this *QDir) AbsolutePath() string

Returns the absolute path (a path that starts with "/" or with a drive specification), which may contain symbolic links, but never contains redundant ".", ".." or multiple separators.

See also setPath(), canonicalPath(), exists(), cleanPath(), dirName(), and absoluteFilePath().

func (*QDir) AddResourceSearchPath

func (this *QDir) AddResourceSearchPath(path string)

func (*QDir) AddSearchPath

func (this *QDir) AddSearchPath(prefix string, path string)

Adds path to the search path for prefix.

This function was introduced in Qt 4.3.

See also setSearchPaths().

func (*QDir) CanonicalPath

func (this *QDir) CanonicalPath() string

Returns the canonical path, i.e. a path without symbolic links or redundant "." or ".." elements.

On systems that do not have symbolic links this function will always return the same string that absolutePath() returns. If the canonical path does not exist (normally due to dangling symbolic links) canonicalPath() returns an empty string.

Example:

QString bin = "/local/bin";         // where /local/bin is a symlink to /usr/bin
QDir binDir(bin);
QString canonicalBin = binDir.canonicalPath();
// canonicalBin now equals "/usr/bin"

QString ls = "/local/bin/ls";       // where ls is the executable "ls"
QDir lsDir(ls);
QString canonicalLs = lsDir.canonicalPath();
// canonicalLS now equals "/usr/bin/ls".

See also path(), absolutePath(), exists(), cleanPath(), dirName(), and absoluteFilePath().

func (*QDir) Cd

func (this *QDir) Cd(dirName string) bool

Changes the QDir's directory to dirName.

Returns true if the new directory exists; otherwise returns false. Note that the logical cd() operation is not performed if the new directory does not exist.

Calling cd("..") is equivalent to calling cdUp().

See also cdUp(), isReadable(), exists(), and path().

func (*QDir) CdUp

func (this *QDir) CdUp() bool

Changes directory by moving one directory up from the QDir's current directory.

Returns true if the new directory exists; otherwise returns false. Note that the logical cdUp() operation is not performed if the new directory does not exist.

See also cd(), isReadable(), exists(), and path().

func (*QDir) CleanPath

func (this *QDir) CleanPath(path string) string

Returns path with directory separators normalized (converted to "/") and redundant ones removed, and "."s and ".."s resolved (as far as possible).

Symbolic links are kept. This function does not return the canonical path, but rather the simplest version of the input. For example, "./local" becomes "local", "local/../bin" becomes "bin" and "/local/usr/../bin" becomes "/local/bin".

See also absolutePath() and canonicalPath().

func (*QDir) Count

func (this *QDir) Count() uint

Returns the total number of directories and files in the directory.

Equivalent to entryList().count().

See also operator[]() and entryList().

func (*QDir) Current

func (this *QDir) Current() *QDir

Returns the application's current directory.

The directory is constructed using the absolute path of the current directory, ensuring that its path() will be the same as its absolutePath().

See also currentPath(), setCurrent(), home(), root(), and temp().

func (*QDir) CurrentPath

func (this *QDir) CurrentPath() string

Returns the absolute path of the application's current directory. The current directory is the last directory set with QDir::setCurrent() or, if that was never called, the directory at which this application was started at by the parent process.

See also current(), setCurrent(), homePath(), rootPath(), tempPath(), and QCoreApplication::applicationDirPath().

func (*QDir) DirName

func (this *QDir) DirName() string

Returns the name of the directory; this is not the same as the path, e.g. a directory with the name "mail", might have the path "/var/spool/mail". If the directory has no name (e.g. it is the root directory) an empty string is returned.

No check is made to ensure that a directory with this name actually exists; but see exists().

See also path(), filePath(), absolutePath(), and absoluteFilePath().

func (*QDir) Drives

func (this *QDir) Drives() *QFileInfoList

Returns a list of the root directories on this system.

On Windows this returns a list of QFileInfo objects containing "C:/", "D:/", etc. On other operating systems, it returns a list containing just one root directory (i.e. "/").

See also root() and rootPath().

func (*QDir) EntryInfoList

func (this *QDir) EntryInfoList(filters int, sort int) *QFileInfoList

Returns a list of QFileInfo objects for all the files and directories in the directory, ordered according to the name and attribute filters previously set with setNameFilters() and setFilter(), and sorted according to the flags set with setSorting().

The name filter, file attribute filter, and sorting specification can be overridden using the nameFilters, filters, and sort arguments.

Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.

See also entryList(), setNameFilters(), setSorting(), setFilter(), isReadable(), and exists().

func (*QDir) EntryInfoList_1

func (this *QDir) EntryInfoList_1(nameFilters QStringList_ITF, filters int, sort int) *QFileInfoList

Returns a list of QFileInfo objects for all the files and directories in the directory, ordered according to the name and attribute filters previously set with setNameFilters() and setFilter(), and sorted according to the flags set with setSorting().

The name filter, file attribute filter, and sorting specification can be overridden using the nameFilters, filters, and sort arguments.

Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.

See also entryList(), setNameFilters(), setSorting(), setFilter(), isReadable(), and exists().

func (*QDir) EntryInfoList_1_

func (this *QDir) EntryInfoList_1_(nameFilters QStringList_ITF) *QFileInfoList

Returns a list of QFileInfo objects for all the files and directories in the directory, ordered according to the name and attribute filters previously set with setNameFilters() and setFilter(), and sorted according to the flags set with setSorting().

The name filter, file attribute filter, and sorting specification can be overridden using the nameFilters, filters, and sort arguments.

Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.

See also entryList(), setNameFilters(), setSorting(), setFilter(), isReadable(), and exists().

func (*QDir) EntryInfoList_1_1

func (this *QDir) EntryInfoList_1_1(nameFilters QStringList_ITF, filters int) *QFileInfoList

Returns a list of QFileInfo objects for all the files and directories in the directory, ordered according to the name and attribute filters previously set with setNameFilters() and setFilter(), and sorted according to the flags set with setSorting().

The name filter, file attribute filter, and sorting specification can be overridden using the nameFilters, filters, and sort arguments.

Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.

See also entryList(), setNameFilters(), setSorting(), setFilter(), isReadable(), and exists().

func (*QDir) EntryInfoList__

func (this *QDir) EntryInfoList__() *QFileInfoList

Returns a list of QFileInfo objects for all the files and directories in the directory, ordered according to the name and attribute filters previously set with setNameFilters() and setFilter(), and sorted according to the flags set with setSorting().

The name filter, file attribute filter, and sorting specification can be overridden using the nameFilters, filters, and sort arguments.

Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.

See also entryList(), setNameFilters(), setSorting(), setFilter(), isReadable(), and exists().

func (*QDir) EntryInfoList__1

func (this *QDir) EntryInfoList__1(filters int) *QFileInfoList

Returns a list of QFileInfo objects for all the files and directories in the directory, ordered according to the name and attribute filters previously set with setNameFilters() and setFilter(), and sorted according to the flags set with setSorting().

The name filter, file attribute filter, and sorting specification can be overridden using the nameFilters, filters, and sort arguments.

Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.

See also entryList(), setNameFilters(), setSorting(), setFilter(), isReadable(), and exists().

func (*QDir) EntryList

func (this *QDir) EntryList(filters int, sort int) *QStringList

Returns a list of the names of all the files and directories in the directory, ordered according to the name and attribute filters previously set with setNameFilters() and setFilter(), and sorted according to the flags set with setSorting().

The name filter, file attribute filter, and sorting specification can be overridden using the nameFilters, filters, and sort arguments.

Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.

See also entryInfoList(), setNameFilters(), setSorting(), and setFilter().

func (*QDir) EntryList_1

func (this *QDir) EntryList_1(nameFilters QStringList_ITF, filters int, sort int) *QStringList

Returns a list of the names of all the files and directories in the directory, ordered according to the name and attribute filters previously set with setNameFilters() and setFilter(), and sorted according to the flags set with setSorting().

The name filter, file attribute filter, and sorting specification can be overridden using the nameFilters, filters, and sort arguments.

Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.

See also entryInfoList(), setNameFilters(), setSorting(), and setFilter().

func (*QDir) EntryList_1_

func (this *QDir) EntryList_1_(nameFilters QStringList_ITF) *QStringList

Returns a list of the names of all the files and directories in the directory, ordered according to the name and attribute filters previously set with setNameFilters() and setFilter(), and sorted according to the flags set with setSorting().

The name filter, file attribute filter, and sorting specification can be overridden using the nameFilters, filters, and sort arguments.

Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.

See also entryInfoList(), setNameFilters(), setSorting(), and setFilter().

func (*QDir) EntryList_1_1

func (this *QDir) EntryList_1_1(nameFilters QStringList_ITF, filters int) *QStringList

Returns a list of the names of all the files and directories in the directory, ordered according to the name and attribute filters previously set with setNameFilters() and setFilter(), and sorted according to the flags set with setSorting().

The name filter, file attribute filter, and sorting specification can be overridden using the nameFilters, filters, and sort arguments.

Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.

See also entryInfoList(), setNameFilters(), setSorting(), and setFilter().

func (*QDir) EntryList__

func (this *QDir) EntryList__() *QStringList

Returns a list of the names of all the files and directories in the directory, ordered according to the name and attribute filters previously set with setNameFilters() and setFilter(), and sorted according to the flags set with setSorting().

The name filter, file attribute filter, and sorting specification can be overridden using the nameFilters, filters, and sort arguments.

Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.

See also entryInfoList(), setNameFilters(), setSorting(), and setFilter().

func (*QDir) EntryList__1

func (this *QDir) EntryList__1(filters int) *QStringList

Returns a list of the names of all the files and directories in the directory, ordered according to the name and attribute filters previously set with setNameFilters() and setFilter(), and sorted according to the flags set with setSorting().

The name filter, file attribute filter, and sorting specification can be overridden using the nameFilters, filters, and sort arguments.

Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.

See also entryInfoList(), setNameFilters(), setSorting(), and setFilter().

func (*QDir) Exists

func (this *QDir) Exists() bool

Returns true if the file called name exists; otherwise returns false.

Unless name contains an absolute file path, the file name is assumed to be relative to the directory itself, so this function is typically used to check for the presence of files within a directory.

See also QFileInfo::exists() and QFile::exists().

func (*QDir) Exists_1

func (this *QDir) Exists_1(name string) bool

Returns true if the file called name exists; otherwise returns false.

Unless name contains an absolute file path, the file name is assumed to be relative to the directory itself, so this function is typically used to check for the presence of files within a directory.

See also QFileInfo::exists() and QFile::exists().

func (*QDir) FilePath

func (this *QDir) FilePath(fileName string) string

Returns the path name of a file in the directory. Does not check if the file actually exists in the directory; but see exists(). If the QDir is relative the returned path name will also be relative. Redundant multiple separators or "." and ".." directories in fileName are not removed (see cleanPath()).

See also dirName(), absoluteFilePath(), isRelative(), and canonicalPath().

func (*QDir) Filter

func (this *QDir) Filter() int

Returns the value set by setFilter()

See also setFilter().

func (*QDir) FromNativeSeparators

func (this *QDir) FromNativeSeparators(pathName string) string

Returns pathName using '/' as file separator. On Windows, for instance, fromNativeSeparators("c:\\winnt\\system32") returns "c:/winnt/system32".

The returned string may be the same as the argument on some operating systems, for example on Unix.

This function was introduced in Qt 4.2.

See also toNativeSeparators() and separator().

func (*QDir) GetCthis

func (this *QDir) GetCthis() unsafe.Pointer

func (*QDir) Home

func (this *QDir) Home() *QDir

Returns the user's home directory.

The directory is constructed using the absolute path of the home directory, ensuring that its path() will be the same as its absolutePath().

See homePath() for details.

See also drives(), current(), root(), and temp().

func (*QDir) HomePath

func (this *QDir) HomePath() string

Returns the absolute path of the user's home directory.

Under Windows this function will return the directory of the current user's profile. Typically, this is:

C:/Documents and Settings/Username

Use the toNativeSeparators() function to convert the separators to the ones that are appropriate for the underlying operating system.

If the directory of the current user's profile does not exist or cannot be retrieved, the following alternatives will be checked (in the given order) until an existing and available path is found:

func (*QDir) IsAbsolute

func (this *QDir) IsAbsolute() bool

Returns true if the directory's path is absolute; otherwise returns false. See isAbsolutePath().

See also isRelative(), makeAbsolute(), and cleanPath().

func (*QDir) IsAbsolutePath

func (this *QDir) IsAbsolutePath(path string) bool

Returns true if path is absolute; returns false if it is relative.

See also isAbsolute(), isRelativePath(), makeAbsolute(), and cleanPath().

func (*QDir) IsEmpty

func (this *QDir) IsEmpty(filters int) bool

Returns whether the directory is empty.

Equivalent to count() == 0 with filters QDir::AllEntries | QDir::NoDotAndDotDot, but faster as it just checks whether the directory contains at least one entry.

Note: Unless you set the filters flags to include QDir::NoDotAndDotDot (as the default value does), no directory is empty.

This function was introduced in Qt 5.9.

See also count(), entryList(), and setFilter().

func (*QDir) IsEmpty__

func (this *QDir) IsEmpty__() bool

Returns whether the directory is empty.

Equivalent to count() == 0 with filters QDir::AllEntries | QDir::NoDotAndDotDot, but faster as it just checks whether the directory contains at least one entry.

Note: Unless you set the filters flags to include QDir::NoDotAndDotDot (as the default value does), no directory is empty.

This function was introduced in Qt 5.9.

See also count(), entryList(), and setFilter().

func (*QDir) IsReadable

func (this *QDir) IsReadable() bool

Returns true if the directory is readable and we can open files by name; otherwise returns false.

Warning: A false value from this function is not a guarantee that files in the directory are not accessible.

See also QFileInfo::isReadable().

func (*QDir) IsRelative

func (this *QDir) IsRelative() bool

Returns true if the directory path is relative; otherwise returns false. (Under Unix a path is relative if it does not start with a "/").

See also makeAbsolute(), isAbsolute(), isAbsolutePath(), and cleanPath().

func (*QDir) IsRelativePath

func (this *QDir) IsRelativePath(path string) bool

Returns true if path is relative; returns false if it is absolute.

See also isRelative(), isAbsolutePath(), and makeAbsolute().

func (*QDir) IsRoot

func (this *QDir) IsRoot() bool

Returns true if the directory is the root directory; otherwise returns false.

Note: If the directory is a symbolic link to the root directory this function returns false. If you want to test for this use canonicalPath(), e.g.

QDir dir("/tmp/root_link");
dir = dir.canonicalPath();
if (dir.isRoot())
    qWarning("It is a root link");

See also root() and rootPath().

func (*QDir) ListSeparator

func (this *QDir) ListSeparator() *QChar

Returns the native path list separator: ':' under Unix and ';' under Windows.

This function was introduced in Qt 5.6.

See also separator().

func (*QDir) MakeAbsolute

func (this *QDir) MakeAbsolute() bool

Converts the directory path to an absolute path. If it is already absolute nothing happens. Returns true if the conversion succeeded; otherwise returns false.

See also isAbsolute(), isAbsolutePath(), isRelative(), and cleanPath().

func (*QDir) Match

func (this *QDir) Match(filters QStringList_ITF, fileName string) bool

Returns true if the fileName matches the wildcard (glob) pattern filter; otherwise returns false. The filter may contain multiple patterns separated by spaces or semicolons. The matching is case insensitive.

See also QRegExp wildcard matching, QRegExp::exactMatch(), entryList(), and entryInfoList().

func (*QDir) Match_1

func (this *QDir) Match_1(filter string, fileName string) bool

Returns true if the fileName matches the wildcard (glob) pattern filter; otherwise returns false. The filter may contain multiple patterns separated by spaces or semicolons. The matching is case insensitive.

See also QRegExp wildcard matching, QRegExp::exactMatch(), entryList(), and entryInfoList().

func (*QDir) Mkdir

func (this *QDir) Mkdir(dirName string) bool

Creates a sub-directory called dirName.

Returns true on success; otherwise returns false.

If the directory already exists when this function is called, it will return false.

See also rmdir().

func (*QDir) Mkpath

func (this *QDir) Mkpath(dirPath string) bool

Creates the directory path dirPath.

The function will create all parent directories necessary to create the directory.

Returns true if successful; otherwise returns false.

If the path already exists when this function is called, it will return true.

See also rmpath().

func (*QDir) NameFilters

func (this *QDir) NameFilters() *QStringList

Returns the string list set by setNameFilters()

See also setNameFilters().

func (*QDir) NameFiltersFromString

func (this *QDir) NameFiltersFromString(nameFilter string) *QStringList

func (*QDir) NewFromPointer

func (*QDir) NewFromPointer(cthis unsafe.Pointer) *QDir

func (*QDir) Operator_equal

func (this *QDir) Operator_equal(arg0 QDir_ITF) *QDir

func (*QDir) Operator_equal_1

func (this *QDir) Operator_equal_1(path string) *QDir

func (*QDir) Operator_equal_2

func (this *QDir) Operator_equal_2(other unsafe.Pointer) *QDir

func (*QDir) Operator_equal_equal

func (this *QDir) Operator_equal_equal(dir QDir_ITF) bool

func (*QDir) Operator_get_index

func (this *QDir) Operator_get_index(arg0 int) string

func (*QDir) Operator_not_equal

func (this *QDir) Operator_not_equal(dir QDir_ITF) bool

func (*QDir) Path

func (this *QDir) Path() string

Returns the path. This may contain symbolic links, but never contains redundant ".", ".." or multiple separators.

The returned path can be either absolute or relative (see setPath()).

See also setPath(), absolutePath(), exists(), cleanPath(), dirName(), absoluteFilePath(), toNativeSeparators(), and makeAbsolute().

func (*QDir) QDir_PTR

func (ptr *QDir) QDir_PTR() *QDir

func (*QDir) Refresh

func (this *QDir) Refresh()

Refreshes the directory information.

func (*QDir) RelativeFilePath

func (this *QDir) RelativeFilePath(fileName string) string

Returns the path to fileName relative to the directory.

QDir dir("/home/bob");
QString s;

s = dir.relativeFilePath("images/file.jpg");     // s is "images/file.jpg"
s = dir.relativeFilePath("/home/mary/file.txt"); // s is "../mary/file.txt"

See also absoluteFilePath(), filePath(), and canonicalPath().

func (*QDir) Remove

func (this *QDir) Remove(fileName string) bool

Removes the file, fileName.

Returns true if the file is removed successfully; otherwise returns false.

func (*QDir) RemoveRecursively

func (this *QDir) RemoveRecursively() bool

Removes the directory, including all its contents.

Returns true if successful, otherwise false.

If a file or directory cannot be removed, removeRecursively() keeps going and attempts to delete as many files and sub-directories as possible, then returns false.

If the directory was already removed, the method returns true (expected result already reached).

Note: this function is meant for removing a small application-internal directory (such as a temporary directory), but not user-visible directories. For user-visible operations, it is rather recommended to report errors more precisely to the user, to offer solutions in case of errors, to show progress during the deletion since it could take several minutes, etc.

This function was introduced in Qt 5.0.

func (*QDir) Rename

func (this *QDir) Rename(oldName string, newName string) bool

Renames a file or directory from oldName to newName, and returns true if successful; otherwise returns false.

On most file systems, rename() fails only if oldName does not exist, or if a file with the new name already exists. However, there are also other reasons why rename() can fail. For example, on at least one file system rename() fails if newName points to an open file.

If oldName is a file (not a directory) that can't be renamed right away, Qt will try to copy oldName to newName and remove oldName.

See also QFile::rename().

func (*QDir) Rmdir

func (this *QDir) Rmdir(dirName string) bool

Removes the directory specified by dirName.

The directory must be empty for rmdir() to succeed.

Returns true if successful; otherwise returns false.

See also mkdir().

func (*QDir) Rmpath

func (this *QDir) Rmpath(dirPath string) bool

Removes the directory path dirPath.

The function will remove all parent directories in dirPath, provided that they are empty. This is the opposite of mkpath(dirPath).

Returns true if successful; otherwise returns false.

See also mkpath().

func (*QDir) Root

func (this *QDir) Root() *QDir

Returns the root directory.

The directory is constructed using the absolute path of the root directory, ensuring that its path() will be the same as its absolutePath().

See rootPath() for details.

See also drives(), current(), home(), and temp().

func (*QDir) RootPath

func (this *QDir) RootPath() string

Returns the absolute path of the root directory.

For Unix operating systems this returns "/". For Windows file systems this normally returns "c:/".

See also root(), drives(), currentPath(), homePath(), and tempPath().

func (*QDir) SearchPaths

func (this *QDir) SearchPaths(prefix string) *QStringList

Returns the search paths for prefix.

This function was introduced in Qt 4.3.

See also setSearchPaths() and addSearchPath().

func (*QDir) Separator

func (this *QDir) Separator() *QChar

Returns the native directory separator: "/" under Unix and "\" under Windows.

You do not need to use this function to build file paths. If you always use "/", Qt will translate your paths to conform to the underlying operating system. If you want to display paths to the user using their operating system's separator use toNativeSeparators().

See also listSeparator().

func (*QDir) SetCthis

func (this *QDir) SetCthis(cthis unsafe.Pointer)

func (*QDir) SetCurrent

func (this *QDir) SetCurrent(path string) bool

Sets the application's current working directory to path. Returns true if the directory was successfully changed; otherwise returns false.

See also current(), currentPath(), home(), root(), and temp().

func (*QDir) SetFilter

func (this *QDir) SetFilter(filter int)

Sets the filter used by entryList() and entryInfoList() to filters. The filter is used to specify the kind of files that should be returned by entryList() and entryInfoList(). See QDir::Filter.

See also filter() and setNameFilters().

func (*QDir) SetNameFilters

func (this *QDir) SetNameFilters(nameFilters QStringList_ITF)

Sets the name filters used by entryList() and entryInfoList() to the list of filters specified by nameFilters.

Each name filter is a wildcard (globbing) filter that understands * and ? wildcards. (See QRegExp wildcard matching.)

For example, the following code sets three name filters on a QDir to ensure that only files with extensions typically used for C++ source files are listed:

QStringList filters;
filters << "*.cpp" << "*.cxx" << "*.cc";
dir.setNameFilters(filters);

See also nameFilters() and setFilter().

func (*QDir) SetPath

func (this *QDir) SetPath(path string)

Sets the path of the directory to path. The path is cleaned of redundant ".", ".." and of multiple separators. No check is made to see whether a directory with this path actually exists; but you can check for yourself using exists().

The path can be either absolute or relative. Absolute paths begin with the directory separator "/" (optionally preceded by a drive specification under Windows). Relative file names begin with a directory name or a file name and specify a path relative to the current directory. An example of an absolute path is the string "/tmp/quartz", a relative path might look like "src/fatlib".

See also path(), absolutePath(), exists(), cleanPath(), dirName(), absoluteFilePath(), isRelative(), and makeAbsolute().

func (*QDir) SetSearchPaths

func (this *QDir) SetSearchPaths(prefix string, searchPaths QStringList_ITF)

Sets or replaces Qt's search paths for file names with the prefix prefix to searchPaths.

To specify a prefix for a file name, prepend the prefix followed by a single colon (e.g., "images:undo.png", "xmldocs:books.xml"). prefix can only contain letters or numbers (e.g., it cannot contain a colon, nor a slash).

Qt uses this search path to locate files with a known prefix. The search path entries are tested in order, starting with the first entry.

QDir::setSearchPaths("icons", QStringList(QDir::homePath() + "/images"));
QDir::setSearchPaths("docs", QStringList(":/embeddedDocuments"));
...
QPixmap pixmap("icons:undo.png"); // will look for undo.png in QDir::homePath() + "/images"
QFile file("docs:design.odf"); // will look in the :/embeddedDocuments resource path

File name prefix must be at least 2 characters long to avoid conflicts with Windows drive letters.

Search paths may contain paths to The Qt Resource System.

This function was introduced in Qt 4.3.

See also searchPaths().

func (*QDir) SetSorting

func (this *QDir) SetSorting(sort int)

Sets the sort order used by entryList() and entryInfoList().

The sort is specified by OR-ing values from the enum QDir::SortFlag.

See also sorting() and SortFlag.

func (*QDir) Sorting

func (this *QDir) Sorting() int

Returns the value set by setSorting()

See also setSorting() and SortFlag.

func (*QDir) Swap

func (this *QDir) Swap(other QDir_ITF)

Swaps this QDir instance with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func (*QDir) Temp

func (this *QDir) Temp() *QDir

Returns the system's temporary directory.

The directory is constructed using the absolute path of the temporary directory, ensuring that its path() will be the same as its absolutePath().

See tempPath() for details.

See also drives(), current(), home(), and root().

func (*QDir) TempPath

func (this *QDir) TempPath() string

Returns the absolute path of the system's temporary directory.

On Unix/Linux systems this is the path in the TMPDIR environment variable or /tmp if TMPDIR is not defined. On Windows this is usually the path in the TEMP or TMP environment variable. The path returned by this method doesn't end with a directory separator unless it is the root directory (of a drive).

See also temp(), currentPath(), homePath(), and rootPath().

func (*QDir) ToNativeSeparators

func (this *QDir) ToNativeSeparators(pathName string) string

Returns pathName with the '/' separators converted to separators that are appropriate for the underlying operating system.

On Windows, toNativeSeparators("c:/winnt/system32") returns "c:\winnt\system32".

The returned string may be the same as the argument on some operating systems, for example on Unix.

This function was introduced in Qt 4.2.

See also fromNativeSeparators() and separator().

type QDirIterator

type QDirIterator struct {
	*qtrt.CObject
}

func NewQDirIterator

func NewQDirIterator(dir QDir_ITF, flags int) *QDirIterator

Constructs a QDirIterator that can iterate over dir's entrylist, using dir's name filters and regular filters. You can pass options via flags to decide how the directory should be iterated.

By default, flags is NoIteratorFlags, which provides the same behavior as in QDir::entryList().

The sorting in dir is ignored.

Note: To list symlinks that point to non existing files, QDir::System must be passed to the flags.

See also hasNext(), next(), and IteratorFlags.

func NewQDirIteratorFromPointer

func NewQDirIteratorFromPointer(cthis unsafe.Pointer) *QDirIterator

func NewQDirIterator_1

func NewQDirIterator_1(path string, flags int) *QDirIterator

Constructs a QDirIterator that can iterate over dir's entrylist, using dir's name filters and regular filters. You can pass options via flags to decide how the directory should be iterated.

By default, flags is NoIteratorFlags, which provides the same behavior as in QDir::entryList().

The sorting in dir is ignored.

Note: To list symlinks that point to non existing files, QDir::System must be passed to the flags.

See also hasNext(), next(), and IteratorFlags.

func NewQDirIterator_1_

func NewQDirIterator_1_(path string) *QDirIterator

Constructs a QDirIterator that can iterate over dir's entrylist, using dir's name filters and regular filters. You can pass options via flags to decide how the directory should be iterated.

By default, flags is NoIteratorFlags, which provides the same behavior as in QDir::entryList().

The sorting in dir is ignored.

Note: To list symlinks that point to non existing files, QDir::System must be passed to the flags.

See also hasNext(), next(), and IteratorFlags.

func NewQDirIterator_2

func NewQDirIterator_2(path string, filter int, flags int) *QDirIterator

Constructs a QDirIterator that can iterate over dir's entrylist, using dir's name filters and regular filters. You can pass options via flags to decide how the directory should be iterated.

By default, flags is NoIteratorFlags, which provides the same behavior as in QDir::entryList().

The sorting in dir is ignored.

Note: To list symlinks that point to non existing files, QDir::System must be passed to the flags.

See also hasNext(), next(), and IteratorFlags.

func NewQDirIterator_2_

func NewQDirIterator_2_(path string, filter int) *QDirIterator

Constructs a QDirIterator that can iterate over dir's entrylist, using dir's name filters and regular filters. You can pass options via flags to decide how the directory should be iterated.

By default, flags is NoIteratorFlags, which provides the same behavior as in QDir::entryList().

The sorting in dir is ignored.

Note: To list symlinks that point to non existing files, QDir::System must be passed to the flags.

See also hasNext(), next(), and IteratorFlags.

func NewQDirIterator_3

func NewQDirIterator_3(path string, nameFilters QStringList_ITF, filters int, flags int) *QDirIterator

Constructs a QDirIterator that can iterate over dir's entrylist, using dir's name filters and regular filters. You can pass options via flags to decide how the directory should be iterated.

By default, flags is NoIteratorFlags, which provides the same behavior as in QDir::entryList().

The sorting in dir is ignored.

Note: To list symlinks that point to non existing files, QDir::System must be passed to the flags.

See also hasNext(), next(), and IteratorFlags.

func NewQDirIterator_3_

func NewQDirIterator_3_(path string, nameFilters QStringList_ITF) *QDirIterator

Constructs a QDirIterator that can iterate over dir's entrylist, using dir's name filters and regular filters. You can pass options via flags to decide how the directory should be iterated.

By default, flags is NoIteratorFlags, which provides the same behavior as in QDir::entryList().

The sorting in dir is ignored.

Note: To list symlinks that point to non existing files, QDir::System must be passed to the flags.

See also hasNext(), next(), and IteratorFlags.

func NewQDirIterator_3_1

func NewQDirIterator_3_1(path string, nameFilters QStringList_ITF, filters int) *QDirIterator

Constructs a QDirIterator that can iterate over dir's entrylist, using dir's name filters and regular filters. You can pass options via flags to decide how the directory should be iterated.

By default, flags is NoIteratorFlags, which provides the same behavior as in QDir::entryList().

The sorting in dir is ignored.

Note: To list symlinks that point to non existing files, QDir::System must be passed to the flags.

See also hasNext(), next(), and IteratorFlags.

func NewQDirIterator__

func NewQDirIterator__(dir QDir_ITF) *QDirIterator

Constructs a QDirIterator that can iterate over dir's entrylist, using dir's name filters and regular filters. You can pass options via flags to decide how the directory should be iterated.

By default, flags is NoIteratorFlags, which provides the same behavior as in QDir::entryList().

The sorting in dir is ignored.

Note: To list symlinks that point to non existing files, QDir::System must be passed to the flags.

See also hasNext(), next(), and IteratorFlags.

func (*QDirIterator) FileInfo

func (this *QDirIterator) FileInfo() *QFileInfo

Returns a QFileInfo for the current directory entry.

See also filePath() and fileName().

func (*QDirIterator) FileName

func (this *QDirIterator) FileName() string

Returns the file name for the current directory entry, without the path prepended.

This function is convenient when iterating a single directory. When using the QDirIterator::Subdirectories flag, you can use filePath() to get the full path.

See also filePath() and fileInfo().

func (*QDirIterator) FilePath

func (this *QDirIterator) FilePath() string

Returns the full file path for the current directory entry.

See also fileInfo() and fileName().

func (*QDirIterator) GetCthis

func (this *QDirIterator) GetCthis() unsafe.Pointer

func (*QDirIterator) HasNext

func (this *QDirIterator) HasNext() bool

Returns true if there is at least one more entry in the directory; otherwise, false is returned.

See also next(), fileName(), filePath(), and fileInfo().

func (*QDirIterator) NewFromPointer

func (*QDirIterator) NewFromPointer(cthis unsafe.Pointer) *QDirIterator

func (*QDirIterator) Next

func (this *QDirIterator) Next() string

Advances the iterator to the next entry, and returns the file path of this new entry. If hasNext() returns false, this function does nothing, and returns an empty QString.

You can call fileName() or filePath() to get the current entry file name or path, or fileInfo() to get a QFileInfo for the current entry.

See also hasNext(), fileName(), filePath(), and fileInfo().

func (*QDirIterator) Path

func (this *QDirIterator) Path() string

Returns the base directory of the iterator.

func (*QDirIterator) QDirIterator_PTR

func (ptr *QDirIterator) QDirIterator_PTR() *QDirIterator

func (*QDirIterator) SetCthis

func (this *QDirIterator) SetCthis(cthis unsafe.Pointer)

type QDirIterator_ITF

type QDirIterator_ITF interface {
	QDirIterator_PTR() *QDirIterator
}

type QDirIterator__IteratorFlag

type QDirIterator__IteratorFlag = int
const QDirIterator__FollowSymlinks QDirIterator__IteratorFlag = 1
const QDirIterator__NoIteratorFlags QDirIterator__IteratorFlag = 0
const QDirIterator__Subdirectories QDirIterator__IteratorFlag = 2

type QDir_ITF

type QDir_ITF interface {
	QDir_PTR() *QDir
}

type QDir__Filter

type QDir__Filter = int
const QDir__AccessMask QDir__Filter = 1008
const QDir__AllDirs QDir__Filter = 1024
const QDir__AllEntries QDir__Filter = 7
const QDir__CaseSensitive QDir__Filter = 2048
const QDir__Dirs QDir__Filter = 1
const QDir__Drives QDir__Filter = 4
const QDir__Executable QDir__Filter = 64
const QDir__Files QDir__Filter = 2
const QDir__Hidden QDir__Filter = 256
const QDir__Modified QDir__Filter = 128
const QDir__NoDot QDir__Filter = 8192
const QDir__NoDotAndDotDot QDir__Filter = 24576
const QDir__NoDotDot QDir__Filter = 16384
const QDir__NoFilter QDir__Filter = -1
const QDir__NoSymLinks QDir__Filter = 8
const QDir__PermissionMask QDir__Filter = 112
const QDir__Readable QDir__Filter = 16
const QDir__System QDir__Filter = 512
const QDir__TypeMask QDir__Filter = 15
const QDir__Writable QDir__Filter = 32

type QDir__SortFlag

type QDir__SortFlag = int
const QDir__DirsFirst QDir__SortFlag = 4
const QDir__DirsLast QDir__SortFlag = 32
const QDir__IgnoreCase QDir__SortFlag = 16
const QDir__LocaleAware QDir__SortFlag = 64
const QDir__Name QDir__SortFlag = 0
const QDir__NoSort QDir__SortFlag = -1
const QDir__Reversed QDir__SortFlag = 8
const QDir__Size QDir__SortFlag = 2
const QDir__SortByMask QDir__SortFlag = 3
const QDir__Time QDir__SortFlag = 1
const QDir__Type QDir__SortFlag = 128
const QDir__Unsorted QDir__SortFlag = 3

type QDynamicPropertyChangeEvent

type QDynamicPropertyChangeEvent struct {
	*QEvent
}

func NewQDynamicPropertyChangeEvent

func NewQDynamicPropertyChangeEvent(name QByteArray_ITF) *QDynamicPropertyChangeEvent

func NewQDynamicPropertyChangeEventFromPointer

func NewQDynamicPropertyChangeEventFromPointer(cthis unsafe.Pointer) *QDynamicPropertyChangeEvent

func (*QDynamicPropertyChangeEvent) GetCthis

func (this *QDynamicPropertyChangeEvent) GetCthis() unsafe.Pointer

func (*QDynamicPropertyChangeEvent) NewFromPointer

func (*QDynamicPropertyChangeEvent) PropertyName

func (this *QDynamicPropertyChangeEvent) PropertyName() *QByteArray

func (*QDynamicPropertyChangeEvent) QDynamicPropertyChangeEvent_PTR

func (ptr *QDynamicPropertyChangeEvent) QDynamicPropertyChangeEvent_PTR() *QDynamicPropertyChangeEvent

func (*QDynamicPropertyChangeEvent) SetCthis

func (this *QDynamicPropertyChangeEvent) SetCthis(cthis unsafe.Pointer)

type QDynamicPropertyChangeEvent_ITF

type QDynamicPropertyChangeEvent_ITF interface {
	QEvent_ITF
	QDynamicPropertyChangeEvent_PTR() *QDynamicPropertyChangeEvent
}

type QEasingCurve

type QEasingCurve struct {
	*qtrt.CObject
}

func NewQEasingCurve

func NewQEasingCurve(type_ int) *QEasingCurve

Constructs an easing curve of the given type.

func NewQEasingCurveFromPointer

func NewQEasingCurveFromPointer(cthis unsafe.Pointer) *QEasingCurve

func NewQEasingCurve__

func NewQEasingCurve__() *QEasingCurve

Constructs an easing curve of the given type.

func (*QEasingCurve) AddCubicBezierSegment

func (this *QEasingCurve) AddCubicBezierSegment(c1 QPointF_ITF, c2 QPointF_ITF, endPoint QPointF_ITF)

Adds a segment of a cubic bezier spline to define a custom easing curve. It is only applicable if type() is QEasingCurve::BezierSpline. Note that the spline implicitly starts at (0.0, 0.0) and has to end at (1.0, 1.0) to be a valid easing curve. c1 and c2 are the control points used for drawing the curve. endPoint is the endpoint of the curve.

func (*QEasingCurve) AddTCBSegment

func (this *QEasingCurve) AddTCBSegment(nextPoint QPointF_ITF, t float64, c float64, b float64)

Adds a segment of a TCB bezier spline to define a custom easing curve. It is only applicable if type() is QEasingCurve::TCBSpline. The spline has to start explitly at (0.0, 0.0) and has to end at (1.0, 1.0) to be a valid easing curve. The tension t changes the length of the tangent vector. The continuity c changes the sharpness in change between the tangents. The bias b changes the direction of the tangent vector. nextPoint is the sample position. All three parameters are valid between -1 and 1 and define the tangent of the control point. If all three parameters are 0 the resulting spline is a Catmull-Rom spline. The begin and endpoint always have a bias of -1 and 1, since the outer tangent is not defined.

func (*QEasingCurve) Amplitude

func (this *QEasingCurve) Amplitude() float64

Returns the amplitude. This is not applicable for all curve types. It is only applicable for bounce and elastic curves (curves of type() QEasingCurve::InBounce, QEasingCurve::OutBounce, QEasingCurve::InOutBounce, QEasingCurve::OutInBounce, QEasingCurve::InElastic, QEasingCurve::OutElastic, QEasingCurve::InOutElastic or QEasingCurve::OutInElastic).

See also setAmplitude().

func (*QEasingCurve) CustomType

func (this *QEasingCurve) CustomType() unsafe.Pointer

Returns the function pointer to the custom easing curve. If type() does not return QEasingCurve::Custom, this function will return 0.

See also setCustomType().

func (*QEasingCurve) GetCthis

func (this *QEasingCurve) GetCthis() unsafe.Pointer

func (*QEasingCurve) NewFromPointer

func (*QEasingCurve) NewFromPointer(cthis unsafe.Pointer) *QEasingCurve

func (*QEasingCurve) Operator_equal

func (this *QEasingCurve) Operator_equal(other QEasingCurve_ITF) *QEasingCurve

func (*QEasingCurve) Operator_equal_1

func (this *QEasingCurve) Operator_equal_1(other unsafe.Pointer) *QEasingCurve

func (*QEasingCurve) Operator_equal_equal

func (this *QEasingCurve) Operator_equal_equal(other QEasingCurve_ITF) bool

func (*QEasingCurve) Operator_not_equal

func (this *QEasingCurve) Operator_not_equal(other QEasingCurve_ITF) bool

func (*QEasingCurve) Overshoot

func (this *QEasingCurve) Overshoot() float64

Returns the overshoot. This is not applicable for all curve types. It is only applicable if type() is QEasingCurve::InBack, QEasingCurve::OutBack, QEasingCurve::InOutBack or QEasingCurve::OutInBack.

See also setOvershoot().

func (*QEasingCurve) Period

func (this *QEasingCurve) Period() float64

Returns the period. This is not applicable for all curve types. It is only applicable if type() is QEasingCurve::InElastic, QEasingCurve::OutElastic, QEasingCurve::InOutElastic or QEasingCurve::OutInElastic.

See also setPeriod().

func (*QEasingCurve) QEasingCurve_PTR

func (ptr *QEasingCurve) QEasingCurve_PTR() *QEasingCurve

func (*QEasingCurve) SetAmplitude

func (this *QEasingCurve) SetAmplitude(amplitude float64)

Sets the amplitude to amplitude.

This will set the amplitude of the bounce or the amplitude of the elastic "spring" effect. The higher the number, the higher the amplitude.

See also amplitude().

func (*QEasingCurve) SetCthis

func (this *QEasingCurve) SetCthis(cthis unsafe.Pointer)

func (*QEasingCurve) SetOvershoot

func (this *QEasingCurve) SetOvershoot(overshoot float64)

Sets the overshoot to overshoot.

0 produces no overshoot, and the default value of 1.70158 produces an overshoot of 10 percent.

See also overshoot().

func (*QEasingCurve) SetPeriod

func (this *QEasingCurve) SetPeriod(period float64)

Sets the period to period. Setting a small period value will give a high frequency of the curve. A large period will give it a small frequency.

See also period().

func (*QEasingCurve) SetType

func (this *QEasingCurve) SetType(type_ int)

Sets the type of the easing curve to type.

See also type().

func (*QEasingCurve) Swap

func (this *QEasingCurve) Swap(other QEasingCurve_ITF)

Swaps curve other with this curve. This operation is very fast and never fails.

This function was introduced in Qt 5.0.

func (*QEasingCurve) Type

func (this *QEasingCurve) Type() int

Returns the type of the easing curve.

See also setType().

func (*QEasingCurve) ValueForProgress

func (this *QEasingCurve) ValueForProgress(progress float64) float64

Return the effective progress for the easing curve at progress. Whereas progress must be between 0 and 1, the returned effective progress can be outside those bounds. For example, QEasingCurve::InBack will return negative values in the beginning of the function.

type QEasingCurve_ITF

type QEasingCurve_ITF interface {
	QEasingCurve_PTR() *QEasingCurve
}

type QEasingCurve__Type

type QEasingCurve__Type = int

The type of easing curve.

ConstantValue QEasingCurve::Linear0

Easing curve for a linear (t) function: velocity is constant.

ConstantValue QEasingCurve::InQuad1

Easing curve for a quadratic (t^2) function: accelerating from zero velocity.

ConstantValue QEasingCurve::OutQuad2

Easing curve for a quadratic (t^2) function: decelerating to zero velocity.

ConstantValue QEasingCurve::InOutQuad3

Easing curve for a quadratic (t^2) function: acceleration until halfway, then deceleration.

ConstantValue QEasingCurve::OutInQuad4

Easing curve for a quadratic (t^2) function: deceleration until halfway, then acceleration.

ConstantValue QEasingCurve::InCubic5

Easing curve for a cubic (t^3) function: accelerating from zero velocity.

ConstantValue QEasingCurve::OutCubic6

Easing curve for a cubic (t^3) function: decelerating to zero velocity.

ConstantValue QEasingCurve::InOutCubic7

Easing curve for a cubic (t^3) function: acceleration until halfway, then deceleration.

ConstantValue QEasingCurve::OutInCubic8

Easing curve for a cubic (t^3) function: deceleration until halfway, then acceleration.

ConstantValue QEasingCurve::InQuart9

Easing curve for a quartic (t^4) function: accelerating from zero velocity.

ConstantValue

Easing curve for a quartic (t^4) function: decelerating to zero velocity.

ConstantValue

Easing curve for a quartic (t^4) function: acceleration until halfway, then deceleration.

ConstantValue

Easing curve for a quartic (t^4) function: deceleration until halfway, then acceleration.

ConstantValue

Easing curve for a quintic (t^5) easing in: accelerating from zero velocity.

ConstantValue

Easing curve for a quintic (t^5) function: decelerating to zero velocity.

ConstantValue

Easing curve for a quintic (t^5) function: acceleration until halfway, then deceleration.

ConstantValue

Easing curve for a quintic (t^5) function: deceleration until halfway, then acceleration.

ConstantValue

Easing curve for a sinusoidal (sin(t)) function: accelerating from zero velocity.

ConstantValue

Easing curve for a sinusoidal (sin(t)) function: decelerating to zero velocity.

ConstantValue

Easing curve for a sinusoidal (sin(t)) function: acceleration until halfway, then deceleration.

ConstantValue

Easing curve for a sinusoidal (sin(t)) function: deceleration until halfway, then acceleration.

ConstantValue

Easing curve for an exponential (2^t) function: accelerating from zero velocity.

ConstantValue

Easing curve for an exponential (2^t) function: decelerating to zero velocity.

ConstantValue

Easing curve for an exponential (2^t) function: acceleration until halfway, then deceleration.

ConstantValue

Easing curve for an exponential (2^t) function: deceleration until halfway, then acceleration.

ConstantValue

Easing curve for a circular (sqrt(1-t^2)) function: accelerating from zero velocity.

ConstantValue

Easing curve for a circular (sqrt(1-t^2)) function: decelerating to zero velocity.

ConstantValue

Easing curve for a circular (sqrt(1-t^2)) function: acceleration until halfway, then deceleration.

ConstantValue

Easing curve for a circular (sqrt(1-t^2)) function: deceleration until halfway, then acceleration.

ConstantValue

Easing curve for an elastic (exponentially decaying sine wave) function: accelerating from zero velocity. The peak amplitude can be set with the amplitude parameter, and the period of decay by the period parameter.

ConstantValue

Easing curve for an elastic (exponentially decaying sine wave) function: decelerating to zero velocity. The peak amplitude can be set with the amplitude parameter, and the period of decay by the period parameter.

ConstantValue

Easing curve for an elastic (exponentially decaying sine wave) function: acceleration until halfway, then deceleration.

ConstantValue

Easing curve for an elastic (exponentially decaying sine wave) function: deceleration until halfway, then acceleration.

ConstantValue

Easing curve for a back (overshooting cubic function: (s+1)*t^3 - s*t^2) easing in: accelerating from zero velocity.

ConstantValue

Easing curve for a back (overshooting cubic function: (s+1)*t^3 - s*t^2) easing out: decelerating to zero velocity.

ConstantValue

Easing curve for a back (overshooting cubic function: (s+1)*t^3 - s*t^2) easing in/out: acceleration until halfway, then deceleration.

ConstantValue

Easing curve for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing out/in: deceleration until halfway, then acceleration.

ConstantValue

Easing curve for a bounce (exponentially decaying parabolic bounce) function: accelerating from zero velocity.

ConstantValue

Easing curve for a bounce (exponentially decaying parabolic bounce) function: decelerating from zero velocity.

ConstantValue

Easing curve for a bounce (exponentially decaying parabolic bounce) function easing in/out: acceleration until halfway, then deceleration.

ConstantValue

Easing curve for a bounce (exponentially decaying parabolic bounce) function easing out/in: deceleration until halfway, then acceleration.

See also addCubicBezierSegment() and addTCBSegment().

const QEasingCurve__BezierSpline QEasingCurve__Type = 45
const QEasingCurve__CosineCurve QEasingCurve__Type = 44
const QEasingCurve__Custom QEasingCurve__Type = 47
const QEasingCurve__InBack QEasingCurve__Type = 33

3

const QEasingCurve__InBounce QEasingCurve__Type = 37

7

const QEasingCurve__InCirc QEasingCurve__Type = 25

5

const QEasingCurve__InCubic QEasingCurve__Type = 5
const QEasingCurve__InCurve QEasingCurve__Type = 41
const QEasingCurve__InElastic QEasingCurve__Type = 29

9

const QEasingCurve__InExpo QEasingCurve__Type = 21

1

const QEasingCurve__InOutBack QEasingCurve__Type = 35

5

const QEasingCurve__InOutBounce QEasingCurve__Type = 39

9

const QEasingCurve__InOutCirc QEasingCurve__Type = 27

7

const QEasingCurve__InOutCubic QEasingCurve__Type = 7
const QEasingCurve__InOutElastic QEasingCurve__Type = 31

1

const QEasingCurve__InOutExpo QEasingCurve__Type = 23

3

const QEasingCurve__InOutQuad QEasingCurve__Type = 3
const QEasingCurve__InOutQuart QEasingCurve__Type = 11

1

const QEasingCurve__InOutQuint QEasingCurve__Type = 15

5

const QEasingCurve__InOutSine QEasingCurve__Type = 19

9

const QEasingCurve__InQuad QEasingCurve__Type = 1
const QEasingCurve__InQuart QEasingCurve__Type = 9
const QEasingCurve__InQuint QEasingCurve__Type = 13

3

const QEasingCurve__InSine QEasingCurve__Type = 17

7

const QEasingCurve__Linear QEasingCurve__Type = 0
const QEasingCurve__NCurveTypes QEasingCurve__Type = 48
const QEasingCurve__OutBack QEasingCurve__Type = 34

4

const QEasingCurve__OutBounce QEasingCurve__Type = 38

8

const QEasingCurve__OutCirc QEasingCurve__Type = 26

6

const QEasingCurve__OutCubic QEasingCurve__Type = 6
const QEasingCurve__OutCurve QEasingCurve__Type = 42
const QEasingCurve__OutElastic QEasingCurve__Type = 30

0

const QEasingCurve__OutExpo QEasingCurve__Type = 22

2

const QEasingCurve__OutInBack QEasingCurve__Type = 36

6

const QEasingCurve__OutInBounce QEasingCurve__Type = 40

0

const QEasingCurve__OutInCirc QEasingCurve__Type = 28

8

const QEasingCurve__OutInCubic QEasingCurve__Type = 8
const QEasingCurve__OutInElastic QEasingCurve__Type = 32

2

const QEasingCurve__OutInExpo QEasingCurve__Type = 24

4

const QEasingCurve__OutInQuad QEasingCurve__Type = 4
const QEasingCurve__OutInQuart QEasingCurve__Type = 12

2

const QEasingCurve__OutInQuint QEasingCurve__Type = 16

6

const QEasingCurve__OutInSine QEasingCurve__Type = 20

0

const QEasingCurve__OutQuad QEasingCurve__Type = 2
const QEasingCurve__OutQuart QEasingCurve__Type = 10

0

const QEasingCurve__OutQuint QEasingCurve__Type = 14

4

const QEasingCurve__OutSine QEasingCurve__Type = 18

8

const QEasingCurve__SineCurve QEasingCurve__Type = 43
const QEasingCurve__TCBSpline QEasingCurve__Type = 46

type QElapsedTimer

type QElapsedTimer struct {
	*qtrt.CObject
}

func NewQElapsedTimer

func NewQElapsedTimer() *QElapsedTimer

Constructs an invalid QElapsedTimer. A timer becomes valid once it has been started.

This function was introduced in Qt 5.4.

See also isValid() and start().

func NewQElapsedTimerFromPointer

func NewQElapsedTimerFromPointer(cthis unsafe.Pointer) *QElapsedTimer

func (*QElapsedTimer) ClockType

func (this *QElapsedTimer) ClockType() int

Returns the clock type that this QElapsedTimer implementation uses.

See also isMonotonic().

func (*QElapsedTimer) Elapsed

func (this *QElapsedTimer) Elapsed() int64

Returns the number of milliseconds since this QElapsedTimer was last started.

Calling this function on a QElapsedTimer that is invalid results in undefined behavior.

See also start(), restart(), hasExpired(), isValid(), and invalidate().

func (*QElapsedTimer) GetCthis

func (this *QElapsedTimer) GetCthis() unsafe.Pointer

func (*QElapsedTimer) HasExpired

func (this *QElapsedTimer) HasExpired(timeout int64) bool

Returns true if this QElapsedTimer has already expired by timeout milliseconds (that is, more than timeout milliseconds have elapsed). The value of timeout can be -1 to indicate that this timer does not expire, in which case this function will always return false.

See also elapsed() and QDeadlineTimer.

func (*QElapsedTimer) Invalidate

func (this *QElapsedTimer) Invalidate()

Marks this QElapsedTimer object as invalid.

An invalid object can be checked with isValid(). Calculations of timer elapsed since invalid data are undefined and will likely produce bizarre results.

See also isValid(), start(), and restart().

func (*QElapsedTimer) IsMonotonic

func (this *QElapsedTimer) IsMonotonic() bool

Returns true if this is a monotonic clock, false otherwise. See the information on the different clock types to understand which ones are monotonic.

See also clockType() and QElapsedTimer::ClockType.

func (*QElapsedTimer) IsValid

func (this *QElapsedTimer) IsValid() bool

Returns false if the timer has never been started or invalidated by a call to invalidate().

See also invalidate(), start(), and restart().

func (*QElapsedTimer) MsecsSinceReference

func (this *QElapsedTimer) MsecsSinceReference() int64

Returns the number of milliseconds between last time this QElapsedTimer object was started and its reference clock's start.

This number is usually arbitrary for all clocks except the QElapsedTimer::SystemTime clock. For that clock type, this number is the number of milliseconds since January 1st, 1970 at 0:00 UTC (that is, it is the Unix time expressed in milliseconds).

On Linux, Windows and Apple platforms, this value is usually the time since the system boot, though it usually does not include the time the system has spent in sleep states.

See also clockType() and elapsed().

func (*QElapsedTimer) MsecsTo

func (this *QElapsedTimer) MsecsTo(other QElapsedTimer_ITF) int64

Returns the number of milliseconds between this QElapsedTimer and other. If other was started before this object, the returned value will be negative. If it was started later, the returned value will be positive.

The return value is undefined if this object or other were invalidated.

See also secsTo() and elapsed().

func (*QElapsedTimer) NewFromPointer

func (*QElapsedTimer) NewFromPointer(cthis unsafe.Pointer) *QElapsedTimer

func (*QElapsedTimer) NsecsElapsed

func (this *QElapsedTimer) NsecsElapsed() int64

Returns the number of nanoseconds since this QElapsedTimer was last started.

Calling this function on a QElapsedTimer that is invalid results in undefined behavior.

On platforms that do not provide nanosecond resolution, the value returned will be the best estimate available.

This function was introduced in Qt 4.8.

See also start(), restart(), hasExpired(), and invalidate().

func (*QElapsedTimer) Operator_equal_equal

func (this *QElapsedTimer) Operator_equal_equal(other QElapsedTimer_ITF) bool

func (*QElapsedTimer) Operator_not_equal

func (this *QElapsedTimer) Operator_not_equal(other QElapsedTimer_ITF) bool

func (*QElapsedTimer) QElapsedTimer_PTR

func (ptr *QElapsedTimer) QElapsedTimer_PTR() *QElapsedTimer

func (*QElapsedTimer) Restart

func (this *QElapsedTimer) Restart() int64

Restarts the timer and returns the time elapsed since the previous start. This function is equivalent to obtaining the elapsed time with elapsed() and then starting the timer again with start(), but it does so in one single operation, avoiding the need to obtain the clock value twice.

Calling this function on a QElapsedTimer that is invalid results in undefined behavior.

The following example illustrates how to use this function to calibrate a parameter to a slow operation (for example, an iteration count) so that this operation takes at least 250 milliseconds:

QElapsedTimer timer;

int count = 1;
timer.start();
do {
    count *= 2;
    slowOperation2(count);
} while (timer.restart() < 250);

return count;

See also start(), invalidate(), elapsed(), and isValid().

func (*QElapsedTimer) SecsTo

func (this *QElapsedTimer) SecsTo(other QElapsedTimer_ITF) int64

Returns the number of seconds between this QElapsedTimer and other. If other was started before this object, the returned value will be negative. If it was started later, the returned value will be positive.

Calling this function on or with a QElapsedTimer that is invalid results in undefined behavior.

See also msecsTo() and elapsed().

func (*QElapsedTimer) SetCthis

func (this *QElapsedTimer) SetCthis(cthis unsafe.Pointer)

func (*QElapsedTimer) Start

func (this *QElapsedTimer) Start()

Starts this timer. Once started, a timer value can be checked with elapsed() or msecsSinceReference().

Normally, a timer is started just before a lengthy operation, such as:

QElapsedTimer timer;
timer.start();

slowOperation1();

qDebug() << "The slow operation took" << timer.elapsed() << "milliseconds";

Also, starting a timer makes it valid again.

See also restart(), invalidate(), and elapsed().

type QElapsedTimer_ITF

type QElapsedTimer_ITF interface {
	QElapsedTimer_PTR() *QElapsedTimer
}

type QElapsedTimer__ClockType

type QElapsedTimer__ClockType = int

This enum contains the different clock types that QElapsedTimer may use.

QElapsedTimer will always use the same clock type in a particular machine, so this value will not change during the lifetime of a program. It is provided so that QElapsedTimer can be used with other non-Qt implementations, to guarantee that the same reference clock is being used.

const QElapsedTimer__MachAbsoluteTime QElapsedTimer__ClockType = 3

The Mach kernel's absolute time (macOS and iOS). This clock is monotonic and does not overflow.

const QElapsedTimer__MonotonicClock QElapsedTimer__ClockType = 1

The system's monotonic clock, usually found in Unix systems. This clock is monotonic and does not overflow.

const QElapsedTimer__PerformanceCounter QElapsedTimer__ClockType = 4

The high-resolution performance counter provided by Windows. This clock is monotonic and does not overflow.

const QElapsedTimer__SystemTime QElapsedTimer__ClockType = 0

The human-readable system time. This clock is not monotonic.

const QElapsedTimer__TickCounter QElapsedTimer__ClockType = 2

The system's tick counter, used on Windows systems. This clock may overflow.

type QEvent

type QEvent struct {
	*qtrt.CObject
}

func NewQEvent

func NewQEvent(type_ int) *QEvent

func NewQEventFromPointer

func NewQEventFromPointer(cthis unsafe.Pointer) *QEvent

func (*QEvent) Accept

func (this *QEvent) Accept()

func (*QEvent) GetCthis

func (this *QEvent) GetCthis() unsafe.Pointer

func (*QEvent) Ignore

func (this *QEvent) Ignore()

func (*QEvent) IsAccepted

func (this *QEvent) IsAccepted() bool

func (*QEvent) NewFromPointer

func (*QEvent) NewFromPointer(cthis unsafe.Pointer) *QEvent

func (*QEvent) Operator_equal

func (this *QEvent) Operator_equal(other QEvent_ITF) *QEvent

func (*QEvent) QEvent_PTR

func (ptr *QEvent) QEvent_PTR() *QEvent

func (*QEvent) RegisterEventType

func (this *QEvent) RegisterEventType(hint int) int

func (*QEvent) RegisterEventType__

func (this *QEvent) RegisterEventType__() int

func (*QEvent) SetAccepted

func (this *QEvent) SetAccepted(accepted bool)

func (*QEvent) SetCthis

func (this *QEvent) SetCthis(cthis unsafe.Pointer)

func (*QEvent) Spontaneous

func (this *QEvent) Spontaneous() bool

func (*QEvent) Type

func (this *QEvent) Type() int

type QEventLoop

type QEventLoop struct {
	*QObject
}

func NewQEventLoop

func NewQEventLoop(parent QObject_ITF) *QEventLoop

Constructs an event loop object with the given parent.

func NewQEventLoopFromPointer

func NewQEventLoopFromPointer(cthis unsafe.Pointer) *QEventLoop

func NewQEventLoop__

func NewQEventLoop__() *QEventLoop

Constructs an event loop object with the given parent.

func (*QEventLoop) Event

func (this *QEventLoop) Event(event QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QEventLoop) Exec

func (this *QEventLoop) Exec(flags int) int

Enters the main event loop and waits until exit() is called. Returns the value that was passed to exit().

If flags are specified, only events of the types allowed by the flags will be processed.

It is necessary to call this function to start event handling. The main event loop receives events from the window system and dispatches these to the application widgets.

Generally speaking, no user interaction can take place before calling exec(). As a special case, modal widgets like QMessageBox can be used before calling exec(), because modal widgets use their own local event loop.

To make your application perform idle processing (i.e. executing a special function whenever there are no pending events), use a QTimer with 0 timeout. More sophisticated idle processing schemes can be achieved using processEvents().

See also QCoreApplication::quit(), exit(), and processEvents().

func (*QEventLoop) Exec__

func (this *QEventLoop) Exec__() int

Enters the main event loop and waits until exit() is called. Returns the value that was passed to exit().

If flags are specified, only events of the types allowed by the flags will be processed.

It is necessary to call this function to start event handling. The main event loop receives events from the window system and dispatches these to the application widgets.

Generally speaking, no user interaction can take place before calling exec(). As a special case, modal widgets like QMessageBox can be used before calling exec(), because modal widgets use their own local event loop.

To make your application perform idle processing (i.e. executing a special function whenever there are no pending events), use a QTimer with 0 timeout. More sophisticated idle processing schemes can be achieved using processEvents().

See also QCoreApplication::quit(), exit(), and processEvents().

func (*QEventLoop) Exit

func (this *QEventLoop) Exit(returnCode int)

Tells the event loop to exit with a return code.

After this function has been called, the event loop returns from the call to exec(). The exec() function returns returnCode.

By convention, a returnCode of 0 means success, and any non-zero value indicates an error.

Note that unlike the C library function of the same name, this function does return to the caller -- it is event processing that stops.

See also QCoreApplication::quit(), quit(), and exec().

func (*QEventLoop) Exit__

func (this *QEventLoop) Exit__()

Tells the event loop to exit with a return code.

After this function has been called, the event loop returns from the call to exec(). The exec() function returns returnCode.

By convention, a returnCode of 0 means success, and any non-zero value indicates an error.

Note that unlike the C library function of the same name, this function does return to the caller -- it is event processing that stops.

See also QCoreApplication::quit(), quit(), and exec().

func (*QEventLoop) GetCthis

func (this *QEventLoop) GetCthis() unsafe.Pointer

func (*QEventLoop) IsRunning

func (this *QEventLoop) IsRunning() bool

Returns true if the event loop is running; otherwise returns false. The event loop is considered running from the time when exec() is called until exit() is called.

See also exec() and exit().

func (*QEventLoop) MetaObject

func (this *QEventLoop) MetaObject() *QMetaObject

func (*QEventLoop) NewFromPointer

func (*QEventLoop) NewFromPointer(cthis unsafe.Pointer) *QEventLoop

func (*QEventLoop) ProcessEvents

func (this *QEventLoop) ProcessEvents(flags int) bool

Processes pending events that match flags until there are no more events to process. Returns true if pending events were handled; otherwise returns false.

This function is especially useful if you have a long running operation and want to show its progress without allowing user input; i.e. by using the ExcludeUserInputEvents flag.

This function is simply a wrapper for QAbstractEventDispatcher::processEvents(). See the documentation for that function for details.

func (*QEventLoop) ProcessEvents_1

func (this *QEventLoop) ProcessEvents_1(flags int, maximumTime int)

Processes pending events that match flags until there are no more events to process. Returns true if pending events were handled; otherwise returns false.

This function is especially useful if you have a long running operation and want to show its progress without allowing user input; i.e. by using the ExcludeUserInputEvents flag.

This function is simply a wrapper for QAbstractEventDispatcher::processEvents(). See the documentation for that function for details.

func (*QEventLoop) ProcessEvents__

func (this *QEventLoop) ProcessEvents__() bool

Processes pending events that match flags until there are no more events to process. Returns true if pending events were handled; otherwise returns false.

This function is especially useful if you have a long running operation and want to show its progress without allowing user input; i.e. by using the ExcludeUserInputEvents flag.

This function is simply a wrapper for QAbstractEventDispatcher::processEvents(). See the documentation for that function for details.

func (*QEventLoop) QEventLoop_PTR

func (ptr *QEventLoop) QEventLoop_PTR() *QEventLoop

func (*QEventLoop) Quit

func (this *QEventLoop) Quit()

Tells the event loop to exit normally.

Same as exit(0).

See also QCoreApplication::quit() and exit().

func (*QEventLoop) SetCthis

func (this *QEventLoop) SetCthis(cthis unsafe.Pointer)

func (*QEventLoop) WakeUp

func (this *QEventLoop) WakeUp()

Wakes up the event loop.

See also QAbstractEventDispatcher::wakeUp().

type QEventLoopLocker

type QEventLoopLocker struct {
	*qtrt.CObject
}

func NewQEventLoopLocker

func NewQEventLoopLocker() *QEventLoopLocker

func NewQEventLoopLockerFromPointer

func NewQEventLoopLockerFromPointer(cthis unsafe.Pointer) *QEventLoopLocker

func NewQEventLoopLocker_1

func NewQEventLoopLocker_1(loop QEventLoop_ITF) *QEventLoopLocker

func NewQEventLoopLocker_2

func NewQEventLoopLocker_2(thread QThread_ITF) *QEventLoopLocker

func (*QEventLoopLocker) GetCthis

func (this *QEventLoopLocker) GetCthis() unsafe.Pointer

func (*QEventLoopLocker) NewFromPointer

func (*QEventLoopLocker) NewFromPointer(cthis unsafe.Pointer) *QEventLoopLocker

func (*QEventLoopLocker) QEventLoopLocker_PTR

func (ptr *QEventLoopLocker) QEventLoopLocker_PTR() *QEventLoopLocker

func (*QEventLoopLocker) SetCthis

func (this *QEventLoopLocker) SetCthis(cthis unsafe.Pointer)

type QEventLoopLocker_ITF

type QEventLoopLocker_ITF interface {
	QEventLoopLocker_PTR() *QEventLoopLocker
}

type QEventLoop_ITF

type QEventLoop_ITF interface {
	QObject_ITF
	QEventLoop_PTR() *QEventLoop
}

type QEventLoop__ProcessEventsFlag

type QEventLoop__ProcessEventsFlag = int
const QEventLoop__AllEvents QEventLoop__ProcessEventsFlag = 0
const QEventLoop__DialogExec QEventLoop__ProcessEventsFlag = 64
const QEventLoop__EventLoopExec QEventLoop__ProcessEventsFlag = 32
const QEventLoop__ExcludeSocketNotifiers QEventLoop__ProcessEventsFlag = 2
const QEventLoop__ExcludeUserInputEvents QEventLoop__ProcessEventsFlag = 1
const QEventLoop__WaitForMoreEvents QEventLoop__ProcessEventsFlag = 4
const QEventLoop__X11ExcludeTimers QEventLoop__ProcessEventsFlag = 8

type QEventTransition

type QEventTransition struct {
	*QAbstractTransition
}

func NewQEventTransition

func NewQEventTransition(sourceState QState_ITF) *QEventTransition

Constructs a new QEventTransition object with the given sourceState.

func NewQEventTransitionFromPointer

func NewQEventTransitionFromPointer(cthis unsafe.Pointer) *QEventTransition

func NewQEventTransition_1

func NewQEventTransition_1(object QObject_ITF, type_ int, sourceState QState_ITF) *QEventTransition

Constructs a new QEventTransition object with the given sourceState.

func NewQEventTransition_1_

func NewQEventTransition_1_(object QObject_ITF, type_ int) *QEventTransition

Constructs a new QEventTransition object with the given sourceState.

func NewQEventTransition__

func NewQEventTransition__() *QEventTransition

Constructs a new QEventTransition object with the given sourceState.

func (*QEventTransition) Event

func (this *QEventTransition) Event(e QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QEventTransition) EventSource

func (this *QEventTransition) EventSource() *QObject

Returns the event source associated with this event transition.

Note: Getter function for property eventSource.

See also setEventSource().

func (*QEventTransition) EventTest

func (this *QEventTransition) EventTest(event QEvent_ITF) bool

Reimplemented from QAbstractTransition::eventTest().

func (*QEventTransition) EventType

func (this *QEventTransition) EventType() int

Returns the event type that this event transition is associated with.

Note: Getter function for property eventType.

See also setEventType().

func (*QEventTransition) GetCthis

func (this *QEventTransition) GetCthis() unsafe.Pointer

func (*QEventTransition) InheritEvent

func (this *QEventTransition) InheritEvent(f func(e *QEvent) bool)

bool event(class QEvent *)

func (*QEventTransition) InheritEventTest

func (this *QEventTransition) InheritEventTest(f func(event *QEvent) bool)

bool eventTest(class QEvent *)

func (*QEventTransition) InheritOnTransition

func (this *QEventTransition) InheritOnTransition(f func(event *QEvent))

void onTransition(class QEvent *)

func (*QEventTransition) MetaObject

func (this *QEventTransition) MetaObject() *QMetaObject

func (*QEventTransition) NewFromPointer

func (*QEventTransition) NewFromPointer(cthis unsafe.Pointer) *QEventTransition

func (*QEventTransition) OnTransition

func (this *QEventTransition) OnTransition(event QEvent_ITF)

Reimplemented from QAbstractTransition::onTransition().

func (*QEventTransition) QEventTransition_PTR

func (ptr *QEventTransition) QEventTransition_PTR() *QEventTransition

func (*QEventTransition) SetCthis

func (this *QEventTransition) SetCthis(cthis unsafe.Pointer)

func (*QEventTransition) SetEventSource

func (this *QEventTransition) SetEventSource(object QObject_ITF)

Sets the event source associated with this event transition to be the given object.

Note: Setter function for property eventSource.

See also eventSource().

func (*QEventTransition) SetEventType

func (this *QEventTransition) SetEventType(type_ int)

Sets the event type that this event transition is associated with.

Note: Setter function for property eventType.

See also eventType().

type QEventTransition_ITF

type QEventTransition_ITF interface {
	QAbstractTransition_ITF
	QEventTransition_PTR() *QEventTransition
}

type QEvent_ITF

type QEvent_ITF interface {
	QEvent_PTR() *QEvent
}

type QEvent__Type

type QEvent__Type = int
const QEvent__AcceptDropsChange QEvent__Type = 152
const QEvent__ActionAdded QEvent__Type = 114
const QEvent__ActionChanged QEvent__Type = 113
const QEvent__ActionRemoved QEvent__Type = 115
const QEvent__ActivateControl QEvent__Type = 80
const QEvent__ActivationChange QEvent__Type = 99
const QEvent__ApplicationActivate QEvent__Type = 121
const QEvent__ApplicationActivated QEvent__Type = 121
const QEvent__ApplicationDeactivate QEvent__Type = 122
const QEvent__ApplicationDeactivated QEvent__Type = 122
const QEvent__ApplicationFontChange QEvent__Type = 36
const QEvent__ApplicationLayoutDirectionChange QEvent__Type = 37
const QEvent__ApplicationPaletteChange QEvent__Type = 38
const QEvent__ApplicationStateChange QEvent__Type = 214
const QEvent__ApplicationWindowIconChange QEvent__Type = 35
const QEvent__ChildAdded QEvent__Type = 68
const QEvent__ChildPolished QEvent__Type = 69
const QEvent__ChildRemoved QEvent__Type = 71
const QEvent__Clipboard QEvent__Type = 40
const QEvent__Close QEvent__Type = 19
const QEvent__CloseSoftwareInputPanel QEvent__Type = 200
const QEvent__ContentsRectChange QEvent__Type = 178
const QEvent__ContextMenu QEvent__Type = 82
const QEvent__Create QEvent__Type = 15
const QEvent__CursorChange QEvent__Type = 183
const QEvent__DeactivateControl QEvent__Type = 81
const QEvent__DeferredDelete QEvent__Type = 52
const QEvent__Destroy QEvent__Type = 16
const QEvent__DragEnter QEvent__Type = 60
const QEvent__DragLeave QEvent__Type = 62
const QEvent__DragMove QEvent__Type = 61
const QEvent__DragResponse QEvent__Type = 64
const QEvent__Drop QEvent__Type = 63
const QEvent__DynamicPropertyChange QEvent__Type = 170
const QEvent__EmbeddingControl QEvent__Type = 79
const QEvent__EnabledChange QEvent__Type = 98
const QEvent__Enter QEvent__Type = 10
const QEvent__EnterWhatsThisMode QEvent__Type = 124
const QEvent__Expose QEvent__Type = 206
const QEvent__FileOpen QEvent__Type = 116
const QEvent__FocusAboutToChange QEvent__Type = 23
const QEvent__FocusIn QEvent__Type = 8
const QEvent__FocusOut QEvent__Type = 9
const QEvent__FontChange QEvent__Type = 97
const QEvent__FutureCallOut QEvent__Type = 180
const QEvent__Gesture QEvent__Type = 198
const QEvent__GestureOverride QEvent__Type = 202
const QEvent__GrabKeyboard QEvent__Type = 188
const QEvent__GrabMouse QEvent__Type = 186
const QEvent__GraphicsSceneContextMenu QEvent__Type = 159
const QEvent__GraphicsSceneDragEnter QEvent__Type = 164
const QEvent__GraphicsSceneDragLeave QEvent__Type = 166
const QEvent__GraphicsSceneDragMove QEvent__Type = 165
const QEvent__GraphicsSceneDrop QEvent__Type = 167
const QEvent__GraphicsSceneHelp QEvent__Type = 163
const QEvent__GraphicsSceneHoverEnter QEvent__Type = 160
const QEvent__GraphicsSceneHoverLeave QEvent__Type = 162
const QEvent__GraphicsSceneHoverMove QEvent__Type = 161
const QEvent__GraphicsSceneMouseDoubleClick QEvent__Type = 158
const QEvent__GraphicsSceneMouseMove QEvent__Type = 155
const QEvent__GraphicsSceneMousePress QEvent__Type = 156
const QEvent__GraphicsSceneMouseRelease QEvent__Type = 157
const QEvent__GraphicsSceneMove QEvent__Type = 182
const QEvent__GraphicsSceneResize QEvent__Type = 181
const QEvent__GraphicsSceneWheel QEvent__Type = 168
const QEvent__HelpRequest QEvent__Type = 95
const QEvent__Hide QEvent__Type = 18
const QEvent__HideToParent QEvent__Type = 27
const QEvent__HoverEnter QEvent__Type = 127
const QEvent__HoverLeave QEvent__Type = 128
const QEvent__HoverMove QEvent__Type = 129
const QEvent__IconDrag QEvent__Type = 96
const QEvent__IconTextChange QEvent__Type = 101
const QEvent__InputMethod QEvent__Type = 83
const QEvent__InputMethodQuery QEvent__Type = 207
const QEvent__KeyPress QEvent__Type = 6
const QEvent__KeyRelease QEvent__Type = 7
const QEvent__KeyboardLayoutChange QEvent__Type = 169
const QEvent__LanguageChange QEvent__Type = 89
const QEvent__LayoutDirectionChange QEvent__Type = 90
const QEvent__LayoutRequest QEvent__Type = 76
const QEvent__Leave QEvent__Type = 11
const QEvent__LeaveWhatsThisMode QEvent__Type = 125
const QEvent__LocaleChange QEvent__Type = 88
const QEvent__MacGLClearDrawable QEvent__Type = 191
const QEvent__MacGLWindowChange QEvent__Type = 179
const QEvent__MacSizeChange QEvent__Type = 177
const QEvent__MaxUser QEvent__Type = 65535
const QEvent__MetaCall QEvent__Type = 43
const QEvent__ModifiedChange QEvent__Type = 102
const QEvent__MouseButtonDblClick QEvent__Type = 4
const QEvent__MouseButtonPress QEvent__Type = 2
const QEvent__MouseButtonRelease QEvent__Type = 3
const QEvent__MouseMove QEvent__Type = 5
const QEvent__MouseTrackingChange QEvent__Type = 109
const QEvent__Move QEvent__Type = 13
const QEvent__NativeGesture QEvent__Type = 197
const QEvent__NetworkReplyUpdated QEvent__Type = 185
const QEvent__NonClientAreaMouseButtonDblClick QEvent__Type = 176
const QEvent__NonClientAreaMouseButtonPress QEvent__Type = 174
const QEvent__NonClientAreaMouseButtonRelease QEvent__Type = 175
const QEvent__NonClientAreaMouseMove QEvent__Type = 173
const QEvent__None QEvent__Type = 0
const QEvent__OkRequest QEvent__Type = 94
const QEvent__OrientationChange QEvent__Type = 208
const QEvent__Paint QEvent__Type = 12
const QEvent__PaletteChange QEvent__Type = 39
const QEvent__ParentAboutToChange QEvent__Type = 131
const QEvent__ParentChange QEvent__Type = 21
const QEvent__PlatformPanel QEvent__Type = 212
const QEvent__PlatformSurface QEvent__Type = 217
const QEvent__Pointer QEvent__Type = 218
const QEvent__Polish QEvent__Type = 75
const QEvent__PolishRequest QEvent__Type = 74
const QEvent__QueryWhatsThis QEvent__Type = 123
const QEvent__Quit QEvent__Type = 20
const QEvent__ReadOnlyChange QEvent__Type = 106
const QEvent__RequestSoftwareInputPanel QEvent__Type = 199
const QEvent__Resize QEvent__Type = 14
const QEvent__ScreenChangeInternal QEvent__Type = 216
const QEvent__Scroll QEvent__Type = 205
const QEvent__ScrollPrepare QEvent__Type = 204
const QEvent__Shortcut QEvent__Type = 117
const QEvent__ShortcutOverride QEvent__Type = 51
const QEvent__Show QEvent__Type = 17
const QEvent__ShowToParent QEvent__Type = 26
const QEvent__ShowWindowRequest QEvent__Type = 73
const QEvent__SockAct QEvent__Type = 50
const QEvent__SockClose QEvent__Type = 211
const QEvent__Speech QEvent__Type = 42
const QEvent__StateMachineSignal QEvent__Type = 192
const QEvent__StateMachineWrapped QEvent__Type = 193
const QEvent__StatusTip QEvent__Type = 112
const QEvent__Style QEvent__Type = 91
const QEvent__StyleAnimationUpdate QEvent__Type = 213
const QEvent__StyleChange QEvent__Type = 100
const QEvent__TabletEnterProximity QEvent__Type = 171
const QEvent__TabletLeaveProximity QEvent__Type = 172
const QEvent__TabletMove QEvent__Type = 87
const QEvent__TabletPress QEvent__Type = 92
const QEvent__TabletRelease QEvent__Type = 93
const QEvent__TabletTrackingChange QEvent__Type = 219
const QEvent__ThemeChange QEvent__Type = 210
const QEvent__ThreadChange QEvent__Type = 22
const QEvent__Timer QEvent__Type = 1
const QEvent__ToolBarChange QEvent__Type = 120
const QEvent__ToolTip QEvent__Type = 110
const QEvent__ToolTipChange QEvent__Type = 184
const QEvent__TouchBegin QEvent__Type = 194
const QEvent__TouchCancel QEvent__Type = 209
const QEvent__TouchEnd QEvent__Type = 196
const QEvent__TouchUpdate QEvent__Type = 195
const QEvent__UngrabKeyboard QEvent__Type = 189
const QEvent__UngrabMouse QEvent__Type = 187
const QEvent__UpdateLater QEvent__Type = 78
const QEvent__UpdateRequest QEvent__Type = 77
const QEvent__User QEvent__Type = 1000
const QEvent__WhatsThis QEvent__Type = 111
const QEvent__WhatsThisClicked QEvent__Type = 118
const QEvent__Wheel QEvent__Type = 31
const QEvent__WinEventAct QEvent__Type = 132
const QEvent__WinIdChange QEvent__Type = 203
const QEvent__WindowActivate QEvent__Type = 24
const QEvent__WindowBlocked QEvent__Type = 103
const QEvent__WindowChangeInternal QEvent__Type = 215
const QEvent__WindowDeactivate QEvent__Type = 25
const QEvent__WindowIconChange QEvent__Type = 34
const QEvent__WindowStateChange QEvent__Type = 105
const QEvent__WindowTitleChange QEvent__Type = 33
const QEvent__WindowUnblocked QEvent__Type = 104
const QEvent__ZOrderChange QEvent__Type = 126
const QEvent__ZeroTimerEvent QEvent__Type = 154

type QFactoryInterface

type QFactoryInterface struct {
	*qtrt.CObject
}

func NewQFactoryInterfaceFromPointer

func NewQFactoryInterfaceFromPointer(cthis unsafe.Pointer) *QFactoryInterface

func (*QFactoryInterface) GetCthis

func (this *QFactoryInterface) GetCthis() unsafe.Pointer

func (*QFactoryInterface) Keys

func (this *QFactoryInterface) Keys() *QStringList

func (*QFactoryInterface) NewFromPointer

func (*QFactoryInterface) NewFromPointer(cthis unsafe.Pointer) *QFactoryInterface

func (*QFactoryInterface) QFactoryInterface_PTR

func (ptr *QFactoryInterface) QFactoryInterface_PTR() *QFactoryInterface

func (*QFactoryInterface) SetCthis

func (this *QFactoryInterface) SetCthis(cthis unsafe.Pointer)

type QFactoryInterface_ITF

type QFactoryInterface_ITF interface {
	QFactoryInterface_PTR() *QFactoryInterface
}

type QFile

type QFile struct {
	*QFileDevice
}

func NewQFile

func NewQFile() *QFile

Constructs a QFile object.

func NewQFileFromPointer

func NewQFileFromPointer(cthis unsafe.Pointer) *QFile

func NewQFile_1

func NewQFile_1(name string) *QFile

Constructs a QFile object.

func NewQFile_2

func NewQFile_2(parent QObject_ITF) *QFile

Constructs a QFile object.

func NewQFile_3

func NewQFile_3(name string, parent QObject_ITF) *QFile

Constructs a QFile object.

func (*QFile) Copy

func (this *QFile) Copy(newName string) bool

Copies the file currently specified by fileName() to a file called newName. Returns true if successful; otherwise returns false.

Note that if a file with the name newName already exists, copy() returns false (i.e. QFile will not overwrite it).

The source file is closed before it is copied.

See also setFileName().

func (*QFile) Copy_1

func (this *QFile) Copy_1(fileName string, newName string) bool

Copies the file currently specified by fileName() to a file called newName. Returns true if successful; otherwise returns false.

Note that if a file with the name newName already exists, copy() returns false (i.e. QFile will not overwrite it).

The source file is closed before it is copied.

See also setFileName().

func (*QFile) DecodeName

func (this *QFile) DecodeName(localFileName QByteArray_ITF) string

This does the reverse of QFile::encodeName() using localFileName.

See also encodeName().

func (*QFile) DecodeName_1

func (this *QFile) DecodeName_1(localFileName string) string

This does the reverse of QFile::encodeName() using localFileName.

See also encodeName().

func (*QFile) EncodeName

func (this *QFile) EncodeName(fileName string) *QByteArray

Converts fileName to the local 8-bit encoding determined by the user's locale. This is sufficient for file names that the user chooses. File names hard-coded into the application should only use 7-bit ASCII filename characters.

See also decodeName().

func (*QFile) Exists

func (this *QFile) Exists() bool

Returns true if the file specified by fileName exists; otherwise returns false.

Note: If fileName is a symlink that points to a non-existing file, false is returned.

func (*QFile) Exists_1

func (this *QFile) Exists_1(fileName string) bool

Returns true if the file specified by fileName exists; otherwise returns false.

Note: If fileName is a symlink that points to a non-existing file, false is returned.

func (*QFile) FileName

func (this *QFile) FileName() string

Reimplemented from QFileDevice::fileName().

Returns the name set by setFileName() or to the QFile constructors.

See also setFileName() and QFileInfo::fileName().

func (*QFile) GetCthis

func (this *QFile) GetCthis() unsafe.Pointer
func (this *QFile) Link(newName string) bool

Creates a link named linkName that points to the file currently specified by fileName(). What a link is depends on the underlying filesystem (be it a shortcut on Windows or a symbolic link on Unix). Returns true if successful; otherwise returns false.

This function will not overwrite an already existing entity in the file system; in this case, link() will return false and set error() to return RenameError.

Note: To create a valid link on Windows, linkName must have a .lnk file extension.

See also setFileName().

func (this *QFile) Link_1(oldname string, newName string) bool

Creates a link named linkName that points to the file currently specified by fileName(). What a link is depends on the underlying filesystem (be it a shortcut on Windows or a symbolic link on Unix). Returns true if successful; otherwise returns false.

This function will not overwrite an already existing entity in the file system; in this case, link() will return false and set error() to return RenameError.

Note: To create a valid link on Windows, linkName must have a .lnk file extension.

See also setFileName().

func (*QFile) MetaObject

func (this *QFile) MetaObject() *QMetaObject

func (*QFile) NewFromPointer

func (*QFile) NewFromPointer(cthis unsafe.Pointer) *QFile

func (*QFile) Open

func (this *QFile) Open(flags int) bool

Reimplemented from QIODevice::open().

Opens the file using OpenMode mode, returning true if successful; otherwise false.

The mode must be QIODevice::ReadOnly, QIODevice::WriteOnly, or QIODevice::ReadWrite. It may also have additional flags, such as QIODevice::Text and QIODevice::Unbuffered.

Note: In WriteOnly or ReadWrite mode, if the relevant file does not already exist, this function will try to create a new file before opening it.

See also QIODevice::OpenMode and setFileName().

func (*QFile) Open_1

func (this *QFile) Open_1(fd int, ioFlags int, handleFlags int) bool

Reimplemented from QIODevice::open().

Opens the file using OpenMode mode, returning true if successful; otherwise false.

The mode must be QIODevice::ReadOnly, QIODevice::WriteOnly, or QIODevice::ReadWrite. It may also have additional flags, such as QIODevice::Text and QIODevice::Unbuffered.

Note: In WriteOnly or ReadWrite mode, if the relevant file does not already exist, this function will try to create a new file before opening it.

See also QIODevice::OpenMode and setFileName().

func (*QFile) Open_1_

func (this *QFile) Open_1_(fd int, ioFlags int) bool

Reimplemented from QIODevice::open().

Opens the file using OpenMode mode, returning true if successful; otherwise false.

The mode must be QIODevice::ReadOnly, QIODevice::WriteOnly, or QIODevice::ReadWrite. It may also have additional flags, such as QIODevice::Text and QIODevice::Unbuffered.

Note: In WriteOnly or ReadWrite mode, if the relevant file does not already exist, this function will try to create a new file before opening it.

See also QIODevice::OpenMode and setFileName().

func (*QFile) Permissions

func (this *QFile) Permissions() int

Reimplemented from QFileDevice::permissions().

See also setPermissions().

func (*QFile) Permissions_1

func (this *QFile) Permissions_1(filename string) int

Reimplemented from QFileDevice::permissions().

See also setPermissions().

func (*QFile) QFile_PTR

func (ptr *QFile) QFile_PTR() *QFile
func (this *QFile) ReadLink() string
func (this *QFile) ReadLink_1(fileName string) string

func (*QFile) Remove

func (this *QFile) Remove() bool

Removes the file specified by fileName(). Returns true if successful; otherwise returns false.

The file is closed before it is removed.

See also setFileName().

func (*QFile) Remove_1

func (this *QFile) Remove_1(fileName string) bool

Removes the file specified by fileName(). Returns true if successful; otherwise returns false.

The file is closed before it is removed.

See also setFileName().

func (*QFile) Rename

func (this *QFile) Rename(newName string) bool

Renames the file currently specified by fileName() to newName. Returns true if successful; otherwise returns false.

If a file with the name newName already exists, rename() returns false (i.e., QFile will not overwrite it).

The file is closed before it is renamed.

If the rename operation fails, Qt will attempt to copy this file's contents to newName, and then remove this file, keeping only newName. If that copy operation fails or this file can't be removed, the destination file newName is removed to restore the old state.

See also setFileName().

func (*QFile) Rename_1

func (this *QFile) Rename_1(oldName string, newName string) bool

Renames the file currently specified by fileName() to newName. Returns true if successful; otherwise returns false.

If a file with the name newName already exists, rename() returns false (i.e., QFile will not overwrite it).

The file is closed before it is renamed.

If the rename operation fails, Qt will attempt to copy this file's contents to newName, and then remove this file, keeping only newName. If that copy operation fails or this file can't be removed, the destination file newName is removed to restore the old state.

See also setFileName().

func (*QFile) Resize

func (this *QFile) Resize(sz int64) bool

Reimplemented from QFileDevice::resize().

func (*QFile) Resize_1

func (this *QFile) Resize_1(filename string, sz int64) bool

Reimplemented from QFileDevice::resize().

func (*QFile) SetCthis

func (this *QFile) SetCthis(cthis unsafe.Pointer)

func (*QFile) SetFileName

func (this *QFile) SetFileName(name string)

Sets the name of the file. The name can have no path, a relative path, or an absolute path.

Do not call this function if the file has already been opened.

If the file name has no path or a relative path, the path used will be the application's current directory path at the time of the open() call.

Example:

QFile file;
QDir::setCurrent("/tmp");
file.setFileName("readme.txt");
QDir::setCurrent("/home");
file.open(QIODevice::ReadOnly);      // opens "/home/readme.txt" under Unix

Note that the directory separator "/" works for all operating systems supported by Qt.

See also fileName(), QFileInfo, and QDir.

func (*QFile) SetPermissions

func (this *QFile) SetPermissions(permissionSpec int) bool

Reimplemented from QFileDevice::setPermissions().

Sets the permissions for the file to the permissions specified. Returns true if successful, or false if the permissions cannot be modified.

Warning: This function does not manipulate ACLs, which may limit its effectiveness.

See also permissions() and setFileName().

func (*QFile) SetPermissions_1

func (this *QFile) SetPermissions_1(filename string, permissionSpec int) bool

Reimplemented from QFileDevice::setPermissions().

Sets the permissions for the file to the permissions specified. Returns true if successful, or false if the permissions cannot be modified.

Warning: This function does not manipulate ACLs, which may limit its effectiveness.

See also permissions() and setFileName().

func (*QFile) Size

func (this *QFile) Size() int64

Reimplemented from QIODevice::size().

func (*QFile) SymLinkTarget

func (this *QFile) SymLinkTarget() string

Returns the absolute path of the file or directory referred to by the symlink (or shortcut on Windows) specified by fileName, or returns an empty string if the fileName does not correspond to a symbolic link.

This name may not represent an existing file; it is only a string. QFile::exists() returns true if the symlink points to an existing file.

This function was introduced in Qt 4.2.

func (*QFile) SymLinkTarget_1

func (this *QFile) SymLinkTarget_1(fileName string) string

Returns the absolute path of the file or directory referred to by the symlink (or shortcut on Windows) specified by fileName, or returns an empty string if the fileName does not correspond to a symbolic link.

This name may not represent an existing file; it is only a string. QFile::exists() returns true if the symlink points to an existing file.

This function was introduced in Qt 4.2.

type QFileDevice

type QFileDevice struct {
	*QIODevice
}

func NewQFileDevice

func NewQFileDevice() *QFileDevice

func NewQFileDeviceFromPointer

func NewQFileDeviceFromPointer(cthis unsafe.Pointer) *QFileDevice

func NewQFileDevice_1

func NewQFileDevice_1(parent QObject_ITF) *QFileDevice

func (*QFileDevice) AtEnd

func (this *QFileDevice) AtEnd() bool

Reimplemented from QIODevice::atEnd().

Returns true if the end of the file has been reached; otherwise returns false.

For regular empty files on Unix (e.g. those in /proc), this function returns true, since the file system reports that the size of such a file is 0. Therefore, you should not depend on atEnd() when reading data from such a file, but rather call read() until no more data can be read.

func (*QFileDevice) Close

func (this *QFileDevice) Close()

Reimplemented from QIODevice::close().

Calls QFileDevice::flush() and closes the file. Errors from flush are ignored.

See also QIODevice::close().

func (*QFileDevice) Error

func (this *QFileDevice) Error() int

Returns the file error status.

The I/O device status returns an error code. For example, if open() returns false, or a read/write operation returns -1, this function can be called to find out the reason why the operation failed.

See also unsetError().

func (*QFileDevice) FileName

func (this *QFileDevice) FileName() string

Returns the name of the file. The default implementation in QFileDevice returns a null string.

func (*QFileDevice) FileTime

func (this *QFileDevice) FileTime(time int) *QDateTime

Returns the file time specified by time. If the time cannot be determined return QDateTime() (an invalid date time).

This function was introduced in Qt 5.10.

See also setFileTime(), FileTime, and QDateTime::isValid().

func (*QFileDevice) Flush

func (this *QFileDevice) Flush() bool

Flushes any buffered data to the file. Returns true if successful; otherwise returns false.

func (*QFileDevice) GetCthis

func (this *QFileDevice) GetCthis() unsafe.Pointer

func (*QFileDevice) Handle

func (this *QFileDevice) Handle() int

Returns the file handle of the file.

This is a small positive integer, suitable for use with C library functions such as fdopen() and fcntl(). On systems that use file descriptors for sockets (i.e. Unix systems, but not Windows) the handle can be used with QSocketNotifier as well.

If the file is not open, or there is an error, handle() returns -1.

See also QSocketNotifier.

func (*QFileDevice) InheritReadData

func (this *QFileDevice) InheritReadData(f func(data string, maxlen int64) int64)

long long readData(char *, qint64)

func (*QFileDevice) InheritReadLineData

func (this *QFileDevice) InheritReadLineData(f func(data string, maxlen int64) int64)

long long readLineData(char *, qint64)

func (*QFileDevice) InheritWriteData

func (this *QFileDevice) InheritWriteData(f func(data string, len_ int64) int64)

long long writeData(const char *, qint64)

func (*QFileDevice) IsSequential

func (this *QFileDevice) IsSequential() bool

Reimplemented from QIODevice::isSequential().

Returns true if the file can only be manipulated sequentially; otherwise returns false.

Most files support random-access, but some special files may not.

See also QIODevice::isSequential().

func (*QFileDevice) Map

func (this *QFileDevice) Map(offset int64, size int64, flags int) unsafe.Pointer

Maps size bytes of the file into memory starting at offset. A file should be open for a map to succeed but the file does not need to stay open after the memory has been mapped. When the QFile is destroyed or a new file is opened with this object, any maps that have not been unmapped will automatically be unmapped.

The mapping will have the same open mode as the file (read and/or write), except when using MapPrivateOption, in which case it is always possible to write to the mapped memory.

Any mapping options can be passed through flags.

Returns a pointer to the memory or 0 if there is an error.

See also unmap().

func (*QFileDevice) Map__

func (this *QFileDevice) Map__(offset int64, size int64) unsafe.Pointer

Maps size bytes of the file into memory starting at offset. A file should be open for a map to succeed but the file does not need to stay open after the memory has been mapped. When the QFile is destroyed or a new file is opened with this object, any maps that have not been unmapped will automatically be unmapped.

The mapping will have the same open mode as the file (read and/or write), except when using MapPrivateOption, in which case it is always possible to write to the mapped memory.

Any mapping options can be passed through flags.

Returns a pointer to the memory or 0 if there is an error.

See also unmap().

func (*QFileDevice) MetaObject

func (this *QFileDevice) MetaObject() *QMetaObject

func (*QFileDevice) NewFromPointer

func (*QFileDevice) NewFromPointer(cthis unsafe.Pointer) *QFileDevice

func (*QFileDevice) Permissions

func (this *QFileDevice) Permissions() int

Returns the complete OR-ed together combination of QFile::Permission for the file.

See also setPermissions().

func (*QFileDevice) Pos

func (this *QFileDevice) Pos() int64

Reimplemented from QIODevice::pos().

func (*QFileDevice) QFileDevice_PTR

func (ptr *QFileDevice) QFileDevice_PTR() *QFileDevice

func (*QFileDevice) ReadData

func (this *QFileDevice) ReadData(data string, maxlen int64) int64

Reimplemented from QIODevice::readData().

func (*QFileDevice) ReadLineData

func (this *QFileDevice) ReadLineData(data string, maxlen int64) int64

Reimplemented from QIODevice::readLineData().

func (*QFileDevice) Resize

func (this *QFileDevice) Resize(sz int64) bool

Sets the file size (in bytes) sz. Returns true if the resize succeeds; false otherwise. If sz is larger than the file currently is, the new bytes will be set to 0; if sz is smaller, the file is simply truncated.

Warning: This function can fail if the file doesn't exist.

See also size().

func (*QFileDevice) Seek

func (this *QFileDevice) Seek(offset int64) bool

Reimplemented from QIODevice::seek().

For random-access devices, this function sets the current position to pos, returning true on success, or false if an error occurred. For sequential devices, the default behavior is to do nothing and return false.

Seeking beyond the end of a file: If the position is beyond the end of a file, then seek() will not immediately extend the file. If a write is performed at this position, then the file will be extended. The content of the file between the previous end of file and the newly written data is UNDEFINED and varies between platforms and file systems.

func (*QFileDevice) SetCthis

func (this *QFileDevice) SetCthis(cthis unsafe.Pointer)

func (*QFileDevice) SetFileTime

func (this *QFileDevice) SetFileTime(newDate QDateTime_ITF, fileTime int) bool

Sets the file time specified by fileTime to newDate, returning true if successful; otherwise returns false.

Note: The file must be open to use this function.

This function was introduced in Qt 5.10.

See also fileTime() and FileTime.

func (*QFileDevice) SetPermissions

func (this *QFileDevice) SetPermissions(permissionSpec int) bool

Sets the permissions for the file to the permissions specified. Returns true if successful, or false if the permissions cannot be modified.

Warning: This function does not manipulate ACLs, which may limit its effectiveness.

See also permissions().

func (*QFileDevice) Size

func (this *QFileDevice) Size() int64

Reimplemented from QIODevice::size().

Returns the size of the file.

For regular empty files on Unix (e.g. those in /proc), this function returns 0; the contents of such a file are generated on demand in response to you calling read().

func (*QFileDevice) Unmap

func (this *QFileDevice) Unmap(address unsafe.Pointer) bool

Unmaps the memory address.

Returns true if the unmap succeeds; false otherwise.

See also map().

func (*QFileDevice) UnsetError

func (this *QFileDevice) UnsetError()

Sets the file's error to QFileDevice::NoError.

See also error().

func (*QFileDevice) WriteData

func (this *QFileDevice) WriteData(data string, len_ int64) int64

Reimplemented from QIODevice::writeData().

type QFileDevice_ITF

type QFileDevice_ITF interface {
	QIODevice_ITF
	QFileDevice_PTR() *QFileDevice
}

type QFileDevice__FileError

type QFileDevice__FileError = int

This enum describes the errors that may be returned by the error() function.

const QFileDevice__AbortError QFileDevice__FileError = 6

The operation was aborted.

const QFileDevice__CopyError QFileDevice__FileError = 14
const QFileDevice__FatalError QFileDevice__FileError = 3

A fatal error occurred.

const QFileDevice__NoError QFileDevice__FileError = 0

No error occurred.

const QFileDevice__OpenError QFileDevice__FileError = 5

The file could not be opened.

const QFileDevice__PermissionsError QFileDevice__FileError = 13
const QFileDevice__PositionError QFileDevice__FileError = 11
const QFileDevice__ReadError QFileDevice__FileError = 1

An error occurred when reading from the file.

const QFileDevice__RemoveError QFileDevice__FileError = 9

The file could not be removed.

const QFileDevice__RenameError QFileDevice__FileError = 10
const QFileDevice__ResizeError QFileDevice__FileError = 12
const QFileDevice__ResourceError QFileDevice__FileError = 4

Out of resources (e.g., too many open files, out of memory, etc.)

const QFileDevice__TimeOutError QFileDevice__FileError = 7

A timeout occurred.

const QFileDevice__UnspecifiedError QFileDevice__FileError = 8

An unspecified error occurred.

const QFileDevice__WriteError QFileDevice__FileError = 2

An error occurred when writing to the file.

type QFileDevice__FileHandleFlag

type QFileDevice__FileHandleFlag = int
const QFileDevice__AutoCloseHandle QFileDevice__FileHandleFlag = 1
const QFileDevice__DontCloseHandle QFileDevice__FileHandleFlag = 0

type QFileDevice__FileTime

type QFileDevice__FileTime = int

This enum is used by the fileTime() and setFileTime() functions.

This enum was introduced or modified in Qt 5.10.

See also setFileTime(), fileTime(), and QFileInfo::fileTime().

const QFileDevice__FileAccessTime QFileDevice__FileTime = 0

When the file was most recently accessed (e.g. read or written to).

const QFileDevice__FileBirthTime QFileDevice__FileTime = 1

When the file was created (may not be not supported on UNIX).

const QFileDevice__FileMetadataChangeTime QFileDevice__FileTime = 2

When the file's metadata was last changed.

const QFileDevice__FileModificationTime QFileDevice__FileTime = 3

When the file was most recently modified.

type QFileDevice__MemoryMapFlags

type QFileDevice__MemoryMapFlags = int

This enum describes special options that may be used by the map() function.

This enum was introduced or modified in Qt 4.4.

const QFileDevice__MapPrivateOption QFileDevice__MemoryMapFlags = 1
const QFileDevice__NoOptions QFileDevice__MemoryMapFlags = 0

No options.

type QFileDevice__Permission

type QFileDevice__Permission = int
const QFileDevice__ExeGroup QFileDevice__Permission = 16
const QFileDevice__ExeOther QFileDevice__Permission = 1
const QFileDevice__ExeOwner QFileDevice__Permission = 4096
const QFileDevice__ExeUser QFileDevice__Permission = 256
const QFileDevice__ReadGroup QFileDevice__Permission = 64
const QFileDevice__ReadOther QFileDevice__Permission = 4
const QFileDevice__ReadOwner QFileDevice__Permission = 16384
const QFileDevice__ReadUser QFileDevice__Permission = 1024
const QFileDevice__WriteGroup QFileDevice__Permission = 32
const QFileDevice__WriteOther QFileDevice__Permission = 2
const QFileDevice__WriteOwner QFileDevice__Permission = 8192
const QFileDevice__WriteUser QFileDevice__Permission = 512

type QFileInfo

type QFileInfo struct {
	*qtrt.CObject
}

func NewQFileInfo

func NewQFileInfo() *QFileInfo

Constructs an empty QFileInfo object.

Note that an empty QFileInfo object contain no file reference.

See also setFile().

func NewQFileInfoFromPointer

func NewQFileInfoFromPointer(cthis unsafe.Pointer) *QFileInfo

func NewQFileInfo_1

func NewQFileInfo_1(file string) *QFileInfo

Constructs an empty QFileInfo object.

Note that an empty QFileInfo object contain no file reference.

See also setFile().

func NewQFileInfo_2

func NewQFileInfo_2(file QFile_ITF) *QFileInfo

Constructs an empty QFileInfo object.

Note that an empty QFileInfo object contain no file reference.

See also setFile().

func NewQFileInfo_3

func NewQFileInfo_3(dir QDir_ITF, file string) *QFileInfo

Constructs an empty QFileInfo object.

Note that an empty QFileInfo object contain no file reference.

See also setFile().

func (*QFileInfo) AbsoluteDir

func (this *QFileInfo) AbsoluteDir() *QDir

Returns the file's absolute path as a QDir object.

See also dir(), filePath(), fileName(), and isRelative().

func (*QFileInfo) AbsoluteFilePath

func (this *QFileInfo) AbsoluteFilePath() string

Returns an absolute path including the file name.

The absolute path name consists of the full path and the file name. On Unix this will always begin with the root, '/', directory. On Windows this will always begin 'D:/' where D is a drive letter, except for network shares that are not mapped to a drive letter, in which case the path will begin '//sharename/'. QFileInfo will uppercase drive letters. Note that QDir does not do this. The code snippet below shows this.

QFileInfo fi("c:/temp/foo"); => fi.absoluteFilePath() => "C:/temp/foo"

This function returns the same as filePath(), unless isRelative() is true. In contrast to canonicalFilePath(), symbolic links or redundant "." or ".." elements are not necessarily removed.

Warning: If filePath() is empty the behavior of this function is undefined.

See also filePath(), canonicalFilePath(), and isRelative().

func (*QFileInfo) AbsolutePath

func (this *QFileInfo) AbsolutePath() string

Returns a file's path absolute path. This doesn't include the file name.

On Unix the absolute path will always begin with the root, '/', directory. On Windows this will always begin 'D:/' where D is a drive letter, except for network shares that are not mapped to a drive letter, in which case the path will begin '//sharename/'.

In contrast to canonicalPath() symbolic links or redundant "." or ".." elements are not necessarily removed.

Warning: If filePath() is empty the behavior of this function is undefined.

See also absoluteFilePath(), path(), canonicalPath(), fileName(), and isRelative().

func (*QFileInfo) BaseName

func (this *QFileInfo) BaseName() string

Returns the base name of the file without the path.

The base name consists of all characters in the file up to (but not including) the first '.' character.

Example:

QFileInfo fi("/tmp/archive.tar.gz");
QString base = fi.baseName();  // base = "archive"

The base name of a file is computed equally on all platforms, independent of file naming conventions (e.g., ".bashrc" on Unix has an empty base name, and the suffix is "bashrc").

See also fileName(), suffix(), completeSuffix(), and completeBaseName().

func (*QFileInfo) BirthTime

func (this *QFileInfo) BirthTime() *QDateTime

Returns the date and time when the file was created / born.

If the file birth time is not available, this function returns an invalid QDateTime.

This function was introduced in Qt 5.10.

See also lastModified(), lastRead(), and metadataChangeTime().

func (*QFileInfo) BundleName

func (this *QFileInfo) BundleName() string

Returns the name of the bundle.

On macOS and iOS this returns the proper localized name for a bundle if the path isBundle(). On all other platforms an empty QString is returned.

Example:

QFileInfo fi("/Applications/Safari.app");
QString bundle = fi.bundleName();                // name = "Safari"

This function was introduced in Qt 4.3.

See also isBundle(), filePath(), baseName(), and suffix().

func (*QFileInfo) Caching

func (this *QFileInfo) Caching() bool

Returns true if caching is enabled; otherwise returns false.

See also setCaching() and refresh().

func (*QFileInfo) CanonicalFilePath

func (this *QFileInfo) CanonicalFilePath() string

Returns the canonical path including the file name, i.e. an absolute path without symbolic links or redundant "." or ".." elements.

If the file does not exist, canonicalFilePath() returns an empty string.

See also filePath(), absoluteFilePath(), and dir().

func (*QFileInfo) CanonicalPath

func (this *QFileInfo) CanonicalPath() string

Returns the file's path canonical path (excluding the file name), i.e. an absolute path without symbolic links or redundant "." or ".." elements.

If the file does not exist, canonicalPath() returns an empty string.

See also path() and absolutePath().

func (*QFileInfo) CompleteBaseName

func (this *QFileInfo) CompleteBaseName() string

Returns the complete base name of the file without the path.

The complete base name consists of all characters in the file up to (but not including) the last '.' character.

Example:

QFileInfo fi("/tmp/archive.tar.gz");
QString base = fi.completeBaseName();  // base = "archive.tar"

See also fileName(), suffix(), completeSuffix(), and baseName().

func (*QFileInfo) CompleteSuffix

func (this *QFileInfo) CompleteSuffix() string

Returns the complete suffix (extension) of the file.

The complete suffix consists of all characters in the file after (but not including) the first '.'.

Example:

QFileInfo fi("/tmp/archive.tar.gz");
QString ext = fi.completeSuffix();  // ext = "tar.gz"

See also fileName(), suffix(), baseName(), and completeBaseName().

func (*QFileInfo) Created

func (this *QFileInfo) Created() *QDateTime

func (*QFileInfo) Dir

func (this *QFileInfo) Dir() *QDir

Returns the path of the object's parent directory as a QDir object.

Note: The QDir returned always corresponds to the object's parent directory, even if the QFileInfo represents a directory.

For each of the following, dir() returns the QDir "~/examples/191697".

QFileInfo fileInfo1("~/examples/191697/.");
QFileInfo fileInfo2("~/examples/191697/..");
QFileInfo fileInfo3("~/examples/191697/main.cpp");

For each of the following, dir() returns the QDir ".".

QFileInfo fileInfo4(".");
QFileInfo fileInfo5("..");
QFileInfo fileInfo6("main.cpp");

See also absolutePath(), filePath(), fileName(), isRelative(), and absoluteDir().

func (*QFileInfo) Exists

func (this *QFileInfo) Exists() bool

Returns true if the file exists; otherwise returns false.

Note: If the file is a symlink that points to a non-existing file, false is returned.

func (*QFileInfo) Exists_1

func (this *QFileInfo) Exists_1(file string) bool

Returns true if the file exists; otherwise returns false.

Note: If the file is a symlink that points to a non-existing file, false is returned.

func (*QFileInfo) FileName

func (this *QFileInfo) FileName() string

Returns the name of the file, excluding the path.

Example:

QFileInfo fi("/tmp/archive.tar.gz");
QString name = fi.fileName();                // name = "archive.tar.gz"

Note that, if this QFileInfo object is given a path ending in a slash, the name of the file is considered empty.

See also isRelative(), filePath(), baseName(), and suffix().

func (*QFileInfo) FilePath

func (this *QFileInfo) FilePath() string

Returns the file name, including the path (which may be absolute or relative).

See also absoluteFilePath(), canonicalFilePath(), and isRelative().

func (*QFileInfo) FileTime

func (this *QFileInfo) FileTime(time int) *QDateTime

Returns the file time specified by time. If the time cannot be determined, an invalid date time is returned.

This function was introduced in Qt 5.10.

See also QFile::FileTime and QDateTime::isValid().

func (*QFileInfo) GetCthis

func (this *QFileInfo) GetCthis() unsafe.Pointer

func (*QFileInfo) Group

func (this *QFileInfo) Group() string

Returns the group of the file. On Windows, on systems where files do not have groups, or if an error occurs, an empty string is returned.

This function can be time consuming under Unix (in the order of milliseconds).

See also groupId(), owner(), and ownerId().

func (*QFileInfo) GroupId

func (this *QFileInfo) GroupId() uint

Returns the id of the group the file belongs to.

On Windows and on systems where files do not have groups this function always returns (uint) -2.

See also group(), owner(), and ownerId().

func (*QFileInfo) IsAbsolute

func (this *QFileInfo) IsAbsolute() bool

Returns true if the file path name is absolute, otherwise returns false if the path is relative.

See also isRelative().

func (*QFileInfo) IsBundle

func (this *QFileInfo) IsBundle() bool

Returns true if this object points to a bundle or to a symbolic link to a bundle on macOS and iOS; otherwise returns false.

This function was introduced in Qt 4.3.

See also isDir(), isSymLink(), and isFile().

func (*QFileInfo) IsDir

func (this *QFileInfo) IsDir() bool

Returns true if this object points to a directory or to a symbolic link to a directory; otherwise returns false.

See also isFile(), isSymLink(), and isBundle().

func (*QFileInfo) IsExecutable

func (this *QFileInfo) IsExecutable() bool

Returns true if the file is executable; otherwise returns false.

See also isReadable(), isWritable(), and permission().

func (*QFileInfo) IsFile

func (this *QFileInfo) IsFile() bool

Returns true if this object points to a file or to a symbolic link to a file. Returns false if the object points to something which isn't a file, such as a directory.

See also isDir(), isSymLink(), and isBundle().

func (*QFileInfo) IsHidden

func (this *QFileInfo) IsHidden() bool

Returns true if this is a `hidden' file; otherwise returns false.

Note: This function returns true for the special entries "." and ".." on Unix, even though QDir::entryList threats them as shown.

func (*QFileInfo) IsNativePath

func (this *QFileInfo) IsNativePath() bool

Returns true if the file path can be used directly with native APIs. Returns false if the file is otherwise supported by a virtual file system inside Qt, such as the Qt Resource System.

Note: Native paths may still require conversion of path separators and character encoding, depending on platform and input requirements of the native API.

This function was introduced in Qt 5.0.

See also QDir::toNativeSeparators(), QFile::encodeName(), filePath(), absoluteFilePath(), and canonicalFilePath().

func (*QFileInfo) IsReadable

func (this *QFileInfo) IsReadable() bool

Returns true if the user can read the file; otherwise returns false.

Note: If the NTFS permissions check has not been enabled, the result on Windows will merely reflect whether the file exists.

See also isWritable(), isExecutable(), and permission().

func (*QFileInfo) IsRelative

func (this *QFileInfo) IsRelative() bool

Returns true if the file path name is relative, otherwise returns false if the path is absolute (e.g. under Unix a path is absolute if it begins with a "/").

See also isAbsolute().

func (*QFileInfo) IsRoot

func (this *QFileInfo) IsRoot() bool

Returns true if the object points to a directory or to a symbolic link to a directory, and that directory is the root directory; otherwise returns false.

func (this *QFileInfo) IsSymLink() bool

Returns true if this object points to a symbolic link; otherwise returns false.

Symbolic links exist on Unix (including macOS and iOS) and Windows and are typically created by the ln -s or mklink commands, respectively. Opening a symbolic link effectively opens the link's target.

In addition, true will be returned for shortcuts (*.lnk files) on Windows. Opening those will open the .lnk file itself.

Example:

QFileInfo info(fileName);
if (info.isSymLink())
    fileName = info.symLinkTarget();

Note: If the symlink points to a non existing file, exists() returns false.

See also isFile(), isDir(), and symLinkTarget().

func (*QFileInfo) IsWritable

func (this *QFileInfo) IsWritable() bool

Returns true if the user can write to the file; otherwise returns false.

Note: If the NTFS permissions check has not been enabled, the result on Windows will merely reflect whether the file is marked as Read Only.

See also isReadable(), isExecutable(), and permission().

func (*QFileInfo) LastModified

func (this *QFileInfo) LastModified() *QDateTime

Returns the date and local time when the file was last modified.

See also birthTime(), lastRead(), metadataChangeTime(), and fileTime().

func (*QFileInfo) LastRead

func (this *QFileInfo) LastRead() *QDateTime

Returns the date and local time when the file was last read (accessed).

On platforms where this information is not available, returns the same as lastModified().

See also birthTime(), lastModified(), metadataChangeTime(), and fileTime().

func (*QFileInfo) MakeAbsolute

func (this *QFileInfo) MakeAbsolute() bool

Converts the file's path to an absolute path if it is not already in that form. Returns true to indicate that the path was converted; otherwise returns false to indicate that the path was already absolute.

See also filePath() and isRelative().

func (*QFileInfo) MetadataChangeTime

func (this *QFileInfo) MetadataChangeTime() *QDateTime

Returns the date and time when the file metadata was changed. A metadata change occurs when the file is created, but it also occurs whenever the user writes or sets inode information (for example, changing the file permissions).

This function was introduced in Qt 5.10.

See also lastModified() and lastRead().

func (*QFileInfo) NewFromPointer

func (*QFileInfo) NewFromPointer(cthis unsafe.Pointer) *QFileInfo

func (*QFileInfo) Operator_equal

func (this *QFileInfo) Operator_equal(fileinfo QFileInfo_ITF) *QFileInfo

func (*QFileInfo) Operator_equal_1

func (this *QFileInfo) Operator_equal_1(other unsafe.Pointer) *QFileInfo

func (*QFileInfo) Operator_equal_equal

func (this *QFileInfo) Operator_equal_equal(fileinfo QFileInfo_ITF) bool

func (*QFileInfo) Operator_not_equal

func (this *QFileInfo) Operator_not_equal(fileinfo QFileInfo_ITF) bool

func (*QFileInfo) Owner

func (this *QFileInfo) Owner() string

Returns the owner of the file. On systems where files do not have owners, or if an error occurs, an empty string is returned.

This function can be time consuming under Unix (in the order of milliseconds). On Windows, it will return an empty string unless the NTFS permissions check has been enabled.

See also ownerId(), group(), and groupId().

func (*QFileInfo) OwnerId

func (this *QFileInfo) OwnerId() uint

Returns the id of the owner of the file.

On Windows and on systems where files do not have owners this function returns ((uint) -2).

See also owner(), group(), and groupId().

func (*QFileInfo) Path

func (this *QFileInfo) Path() string

Returns the file's path. This doesn't include the file name.

Note that, if this QFileInfo object is given a path ending in a slash, the name of the file is considered empty and this function will return the entire path.

See also filePath(), absolutePath(), canonicalPath(), dir(), fileName(), and isRelative().

func (*QFileInfo) Permission

func (this *QFileInfo) Permission(permissions int) bool

Tests for file permissions. The permissions argument can be several flags of type QFile::Permissions OR-ed together to check for permission combinations.

On systems where files do not have permissions this function always returns true.

Note: The result might be inaccurate on Windows if the NTFS permissions check has not been enabled.

Example:

QFileInfo fi("/tmp/archive.tar.gz");
if (fi.permission(QFile::WriteUser | QFile::ReadGroup))
    qWarning("I can change the file; my group can read the file");
if (fi.permission(QFile::WriteGroup | QFile::WriteOther))
    qWarning("The group or others can change the file");

See also isReadable(), isWritable(), and isExecutable().

func (*QFileInfo) Permissions

func (this *QFileInfo) Permissions() int

Returns the complete OR-ed together combination of QFile::Permissions for the file.

Note: The result might be inaccurate on Windows if the NTFS permissions check has not been enabled.

func (*QFileInfo) QFileInfo_PTR

func (ptr *QFileInfo) QFileInfo_PTR() *QFileInfo
func (this *QFileInfo) ReadLink() string

func (*QFileInfo) Refresh

func (this *QFileInfo) Refresh()

Refreshes the information about the file, i.e. reads in information from the file system the next time a cached property is fetched.

func (*QFileInfo) SetCaching

func (this *QFileInfo) SetCaching(on bool)

If enable is true, enables caching of file information. If enable is false caching is disabled.

When caching is enabled, QFileInfo reads the file information from the file system the first time it's needed, but generally not later.

Caching is enabled by default.

See also refresh() and caching().

func (*QFileInfo) SetCthis

func (this *QFileInfo) SetCthis(cthis unsafe.Pointer)

func (*QFileInfo) SetFile

func (this *QFileInfo) SetFile(file string)

Sets the file that the QFileInfo provides information about to file.

The file can also include an absolute or relative file path. Absolute paths begin with the directory separator (e.g. "/" under Unix) or a drive specification (under Windows). Relative file names begin with a directory name or a file name and specify a path relative to the current directory.

Example:

QString absolute = "/local/bin";
QString relative = "local/bin";
QFileInfo absFile(absolute);
QFileInfo relFile(relative);

QDir::setCurrent(QDir::rootPath());
// absFile and relFile now point to the same file

QDir::setCurrent("/tmp");
// absFile now points to "/local/bin",
// while relFile points to "/tmp/local/bin"

See also isFile(), isRelative(), QDir::setCurrent(), and QDir::isRelativePath().

func (*QFileInfo) SetFile_1

func (this *QFileInfo) SetFile_1(file QFile_ITF)

Sets the file that the QFileInfo provides information about to file.

The file can also include an absolute or relative file path. Absolute paths begin with the directory separator (e.g. "/" under Unix) or a drive specification (under Windows). Relative file names begin with a directory name or a file name and specify a path relative to the current directory.

Example:

QString absolute = "/local/bin";
QString relative = "local/bin";
QFileInfo absFile(absolute);
QFileInfo relFile(relative);

QDir::setCurrent(QDir::rootPath());
// absFile and relFile now point to the same file

QDir::setCurrent("/tmp");
// absFile now points to "/local/bin",
// while relFile points to "/tmp/local/bin"

See also isFile(), isRelative(), QDir::setCurrent(), and QDir::isRelativePath().

func (*QFileInfo) SetFile_2

func (this *QFileInfo) SetFile_2(dir QDir_ITF, file string)

Sets the file that the QFileInfo provides information about to file.

The file can also include an absolute or relative file path. Absolute paths begin with the directory separator (e.g. "/" under Unix) or a drive specification (under Windows). Relative file names begin with a directory name or a file name and specify a path relative to the current directory.

Example:

QString absolute = "/local/bin";
QString relative = "local/bin";
QFileInfo absFile(absolute);
QFileInfo relFile(relative);

QDir::setCurrent(QDir::rootPath());
// absFile and relFile now point to the same file

QDir::setCurrent("/tmp");
// absFile now points to "/local/bin",
// while relFile points to "/tmp/local/bin"

See also isFile(), isRelative(), QDir::setCurrent(), and QDir::isRelativePath().

func (*QFileInfo) Size

func (this *QFileInfo) Size() int64

Returns the file size in bytes. If the file does not exist or cannot be fetched, 0 is returned.

See also exists().

func (*QFileInfo) Suffix

func (this *QFileInfo) Suffix() string

Returns the suffix (extension) of the file.

The suffix consists of all characters in the file after (but not including) the last '.'.

Example:

QFileInfo fi("/tmp/archive.tar.gz");
QString ext = fi.suffix();  // ext = "gz"

The suffix of a file is computed equally on all platforms, independent of file naming conventions (e.g., ".bashrc" on Unix has an empty base name, and the suffix is "bashrc").

See also fileName(), completeSuffix(), baseName(), and completeBaseName().

func (*QFileInfo) Swap

func (this *QFileInfo) Swap(other QFileInfo_ITF)

Swaps this file info with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func (*QFileInfo) SymLinkTarget

func (this *QFileInfo) SymLinkTarget() string

Returns the absolute path to the file or directory a symbolic link points to, or an empty string if the object isn't a symbolic link.

This name may not represent an existing file; it is only a string. QFileInfo::exists() returns true if the symlink points to an existing file.

This function was introduced in Qt 4.2.

See also exists(), isSymLink(), isDir(), and isFile().

type QFileInfoList

type QFileInfoList struct {
	*qtrt.CObject
}

body block begin

func NewQFileInfoListFromPointer

func NewQFileInfoListFromPointer(cthis unsafe.Pointer) *QFileInfoList

func QDir_Drives

func QDir_Drives() *QFileInfoList

func (*QFileInfoList) Append_0

func (this *QFileInfoList) Append_0()

void append(const T &)

func (*QFileInfoList) Append_1

func (this *QFileInfoList) Append_1()

void append(const QList<T> &)

func (*QFileInfoList) At_0

func (this *QFileInfoList) At_0() *QFileInfo

const T & at(int)

func (*QFileInfoList) Back_0

func (this *QFileInfoList) Back_0() *QFileInfo

T & back()

func (*QFileInfoList) Back_1

func (this *QFileInfoList) Back_1() *QFileInfo

const T & back()

func (*QFileInfoList) Begin_0

func (this *QFileInfoList) Begin_0()

QList::iterator begin()

func (*QFileInfoList) Begin_1

func (this *QFileInfoList) Begin_1()

QList::const_iterator begin()

func (*QFileInfoList) Cbegin_0

func (this *QFileInfoList) Cbegin_0()

QList::const_iterator cbegin()

func (*QFileInfoList) Cend_0

func (this *QFileInfoList) Cend_0()

QList::const_iterator cend()

func (*QFileInfoList) Clear_0

func (this *QFileInfoList) Clear_0()

void clear()

func (*QFileInfoList) ConstBegin_0

func (this *QFileInfoList) ConstBegin_0()

QList::const_iterator constBegin()

func (*QFileInfoList) ConstEnd_0

func (this *QFileInfoList) ConstEnd_0()

QList::const_iterator constEnd()

func (*QFileInfoList) ConstFirst_0

func (this *QFileInfoList) ConstFirst_0() *QFileInfo

const T & constFirst()

func (*QFileInfoList) ConstLast_0

func (this *QFileInfoList) ConstLast_0() *QFileInfo

const T & constLast()

func (*QFileInfoList) Contains_0

func (this *QFileInfoList) Contains_0() bool

bool contains(const T &)

func (*QFileInfoList) Contains_impl_0

func (this *QFileInfoList) Contains_impl_0() bool

bool contains_impl(const T &, struct QListData::NotArrayCompatibleLayout)

func (*QFileInfoList) Contains_impl_1

func (this *QFileInfoList) Contains_impl_1() bool

bool contains_impl(const T &, struct QListData::ArrayCompatibleLayout)

func (*QFileInfoList) Count_0

func (this *QFileInfoList) Count_0() int

int count(const T &)

func (*QFileInfoList) Count_1

func (this *QFileInfoList) Count_1() int

int count()

func (*QFileInfoList) Count_impl_0

func (this *QFileInfoList) Count_impl_0() int

int count_impl(const T &, struct QListData::NotArrayCompatibleLayout)

func (*QFileInfoList) Count_impl_1

func (this *QFileInfoList) Count_impl_1() int

int count_impl(const T &, struct QListData::ArrayCompatibleLayout)

func (*QFileInfoList) Crbegin_0

func (this *QFileInfoList) Crbegin_0()

QList::const_reverse_iterator crbegin()

func (*QFileInfoList) Crend_0

func (this *QFileInfoList) Crend_0()

QList::const_reverse_iterator crend()

func (*QFileInfoList) Dealloc_0

func (this *QFileInfoList) Dealloc_0()

void dealloc(struct QListData::Data *)

func (*QFileInfoList) DetachShared_0

func (this *QFileInfoList) DetachShared_0()

void detachShared()

func (*QFileInfoList) Detach_0

func (this *QFileInfoList) Detach_0()

void detach()

func (*QFileInfoList) Detach_helper_0

func (this *QFileInfoList) Detach_helper_0()

void detach_helper(int)

func (*QFileInfoList) Detach_helper_1

func (this *QFileInfoList) Detach_helper_1()

void detach_helper()

func (*QFileInfoList) Detach_helper_grow_0

func (this *QFileInfoList) Detach_helper_grow_0()

QList::Node * detach_helper_grow(int, int)

func (*QFileInfoList) Empty_0

func (this *QFileInfoList) Empty_0() bool

bool empty()

func (*QFileInfoList) End_0

func (this *QFileInfoList) End_0()

QList::iterator end()

func (*QFileInfoList) End_1

func (this *QFileInfoList) End_1()

QList::const_iterator end()

func (*QFileInfoList) EndsWith_0

func (this *QFileInfoList) EndsWith_0() bool

bool endsWith(const T &)

func (*QFileInfoList) Erase_0

func (this *QFileInfoList) Erase_0()

QList::iterator erase(class QList::iterator)

func (*QFileInfoList) Erase_1

func (this *QFileInfoList) Erase_1()

QList::iterator erase(class QList::iterator, class QList::iterator)

func (*QFileInfoList) First_0

func (this *QFileInfoList) First_0() *QFileInfo

T & first()

func (*QFileInfoList) First_1

func (this *QFileInfoList) First_1() *QFileInfo

const T & first()

func (*QFileInfoList) FromSet_0

func (this *QFileInfoList) FromSet_0() *QFileInfoList

QList<T> fromSet(const QSet<T> &)

func (*QFileInfoList) FromStdList_0

func (this *QFileInfoList) FromStdList_0() *QFileInfoList

QList<T> fromStdList(const std::list<T> &)

func (*QFileInfoList) FromVector_0

func (this *QFileInfoList) FromVector_0() *QFileInfoList

QList<T> fromVector(const QVector<T> &)

func (*QFileInfoList) Front_0

func (this *QFileInfoList) Front_0() *QFileInfo

T & front()

func (*QFileInfoList) Front_1

func (this *QFileInfoList) Front_1() *QFileInfo

const T & front()

func (*QFileInfoList) IndexOf_0

func (this *QFileInfoList) IndexOf_0() int

int indexOf(const T &, int)

func (*QFileInfoList) Insert_0

func (this *QFileInfoList) Insert_0()

void insert(int, const T &)

func (*QFileInfoList) Insert_1

func (this *QFileInfoList) Insert_1()

QList::iterator insert(class QList::iterator, const T &)

func (*QFileInfoList) IsDetached_0

func (this *QFileInfoList) IsDetached_0() bool

bool isDetached()

func (*QFileInfoList) IsEmpty_0

func (this *QFileInfoList) IsEmpty_0() bool

bool isEmpty()

func (*QFileInfoList) IsSharedWith_0

func (this *QFileInfoList) IsSharedWith_0() bool

bool isSharedWith(const QList<T> &)

func (*QFileInfoList) IsValidIterator_0

func (this *QFileInfoList) IsValidIterator_0() bool

bool isValidIterator(const class QList::iterator &)

func (*QFileInfoList) LastIndexOf_0

func (this *QFileInfoList) LastIndexOf_0() int

int lastIndexOf(const T &, int)

func (*QFileInfoList) Last_0

func (this *QFileInfoList) Last_0() *QFileInfo

T & last()

func (*QFileInfoList) Last_1

func (this *QFileInfoList) Last_1() *QFileInfo

const T & last()

func (*QFileInfoList) Length_0

func (this *QFileInfoList) Length_0() int

int length()

func (*QFileInfoList) Mid_0

func (this *QFileInfoList) Mid_0() *QFileInfoList

QList<T> mid(int, int)

func (*QFileInfoList) Move_0

func (this *QFileInfoList) Move_0()

void move(int, int)

func (*QFileInfoList) Node_construct_0

func (this *QFileInfoList) Node_construct_0()

void node_construct(struct QList::Node *, const T &)

func (*QFileInfoList) Node_copy_0

func (this *QFileInfoList) Node_copy_0()

void node_copy(struct QList::Node *, struct QList::Node *, struct QList::Node *)

func (*QFileInfoList) Node_destruct_0

func (this *QFileInfoList) Node_destruct_0()

void node_destruct(struct QList::Node *)

func (*QFileInfoList) Node_destruct_1

func (this *QFileInfoList) Node_destruct_1()

void node_destruct(struct QList::Node *, struct QList::Node *)

func (*QFileInfoList) Op_eq_impl_0

func (this *QFileInfoList) Op_eq_impl_0() bool

bool op_eq_impl(const QList<T> &, struct QListData::NotArrayCompatibleLayout)

func (*QFileInfoList) Op_eq_impl_1

func (this *QFileInfoList) Op_eq_impl_1() bool

bool op_eq_impl(const QList<T> &, struct QListData::ArrayCompatibleLayout)

func (*QFileInfoList) Operator_add_0

func (this *QFileInfoList) Operator_add_0() *QFileInfoList

QList<T> operator+(const QList<T> &)

func (*QFileInfoList) Operator_add_equal_0

func (this *QFileInfoList) Operator_add_equal_0() *QFileInfoList

QList<T> & operator+=(const QList<T> &)

func (*QFileInfoList) Operator_add_equal_1

func (this *QFileInfoList) Operator_add_equal_1() *QFileInfoList

QList<T> & operator+=(const T &)

func (*QFileInfoList) Operator_equal_0

func (this *QFileInfoList) Operator_equal_0() *QFileInfoList

QList<T> & operator=(const QList<T> &)

func (*QFileInfoList) Operator_equal_1

func (this *QFileInfoList) Operator_equal_1() *QFileInfoList

QList<T> & operator=(QList<T> &&)

func (*QFileInfoList) Operator_equal_equal_0

func (this *QFileInfoList) Operator_equal_equal_0() bool

bool operator==(const QList<T> &)

func (*QFileInfoList) Operator_get_index_0

func (this *QFileInfoList) Operator_get_index_0() *QFileInfo

const T & operator[](int)

func (*QFileInfoList) Operator_get_index_1

func (this *QFileInfoList) Operator_get_index_1() *QFileInfo

T & operator[](int)

func (*QFileInfoList) Operator_left_shift_0

func (this *QFileInfoList) Operator_left_shift_0() *QFileInfoList

QList<T> & operator<<(const T &)

func (*QFileInfoList) Operator_left_shift_1

func (this *QFileInfoList) Operator_left_shift_1() *QFileInfoList

QList<T> & operator<<(const QList<T> &)

func (*QFileInfoList) Operator_not_equal_0

func (this *QFileInfoList) Operator_not_equal_0() bool

bool operator!=(const QList<T> &)

func (*QFileInfoList) Pop_back_0

func (this *QFileInfoList) Pop_back_0()

void pop_back()

func (*QFileInfoList) Pop_front_0

func (this *QFileInfoList) Pop_front_0()

void pop_front()

func (*QFileInfoList) Prepend_0

func (this *QFileInfoList) Prepend_0()

void prepend(const T &)

func (*QFileInfoList) Push_back_0

func (this *QFileInfoList) Push_back_0()

void push_back(const T &)

func (*QFileInfoList) Push_front_0

func (this *QFileInfoList) Push_front_0()

void push_front(const T &)

func (*QFileInfoList) Rbegin_0

func (this *QFileInfoList) Rbegin_0()

QList::reverse_iterator rbegin()

func (*QFileInfoList) Rbegin_1

func (this *QFileInfoList) Rbegin_1()

QList::const_reverse_iterator rbegin()

func (*QFileInfoList) RemoveAll_0

func (this *QFileInfoList) RemoveAll_0() int

int removeAll(const T &)

func (*QFileInfoList) RemoveAt_0

func (this *QFileInfoList) RemoveAt_0()

void removeAt(int)

func (*QFileInfoList) RemoveFirst_0

func (this *QFileInfoList) RemoveFirst_0()

void removeFirst()

func (*QFileInfoList) RemoveLast_0

func (this *QFileInfoList) RemoveLast_0()

void removeLast()

func (*QFileInfoList) RemoveOne_0

func (this *QFileInfoList) RemoveOne_0() bool

bool removeOne(const T &)

func (*QFileInfoList) Rend_0

func (this *QFileInfoList) Rend_0()

QList::reverse_iterator rend()

func (*QFileInfoList) Rend_1

func (this *QFileInfoList) Rend_1()

QList::const_reverse_iterator rend()

func (*QFileInfoList) Replace_0

func (this *QFileInfoList) Replace_0()

void replace(int, const T &)

func (*QFileInfoList) Reserve_0

func (this *QFileInfoList) Reserve_0()

void reserve(int)

func (*QFileInfoList) SetSharable_0

func (this *QFileInfoList) SetSharable_0()

void setSharable(_Bool)

func (*QFileInfoList) Size_0

func (this *QFileInfoList) Size_0() int

int size()

func (*QFileInfoList) StartsWith_0

func (this *QFileInfoList) StartsWith_0() bool

bool startsWith(const T &)

func (*QFileInfoList) Swap_0

func (this *QFileInfoList) Swap_0()

void swap(QList<T> &)

func (*QFileInfoList) Swap_1

func (this *QFileInfoList) Swap_1()

void swap(int, int)

func (*QFileInfoList) TakeAt_0

func (this *QFileInfoList) TakeAt_0() *QFileInfo

T takeAt(int)

func (*QFileInfoList) TakeFirst_0

func (this *QFileInfoList) TakeFirst_0() *QFileInfo

T takeFirst()

func (*QFileInfoList) TakeLast_0

func (this *QFileInfoList) TakeLast_0() *QFileInfo

T takeLast()

func (*QFileInfoList) ToSet_0

func (this *QFileInfoList) ToSet_0()

QSet<T> toSet()

func (*QFileInfoList) ToStdList_0

func (this *QFileInfoList) ToStdList_0()

std::list<T> toStdList()

func (*QFileInfoList) ToVector_0

func (this *QFileInfoList) ToVector_0()

QVector<T> toVector()

func (*QFileInfoList) Value_0

func (this *QFileInfoList) Value_0() *QFileInfo

T value(int)

func (*QFileInfoList) Value_1

func (this *QFileInfoList) Value_1() *QFileInfo

T value(int, const T &)

type QFileInfoListx

type QFileInfoListx struct {
	*qtrt.CObject
}

///

func NewQFileInfoListxFromPointer

func NewQFileInfoListxFromPointer(cthis unsafe.Pointer) *QFileInfoListx

func (*QFileInfoListx) At

func (this *QFileInfoListx) At(i int) *QFileInfo

func (*QFileInfoListx) ConvertFromSlice

func (*QFileInfoListx) ConvertFromSlice(lst []*QFileInfo) *QFileInfoListx

func (*QFileInfoListx) ConvertToSlice

func (this *QFileInfoListx) ConvertToSlice() (lst []*QFileInfo)

func (*QFileInfoListx) Count

func (this *QFileInfoListx) Count() int

func (*QFileInfoListx) GetCthis

func (this *QFileInfoListx) GetCthis() unsafe.Pointer

func (*QFileInfoListx) NewFromPointer

func (*QFileInfoListx) NewFromPointer(cthis unsafe.Pointer) *QFileInfoListx

func (*QFileInfoListx) SetCthis

func (this *QFileInfoListx) SetCthis(cthis unsafe.Pointer)

type QFileInfo_ITF

type QFileInfo_ITF interface {
	QFileInfo_PTR() *QFileInfo
}

type QFileSelector

type QFileSelector struct {
	*QObject
}

func NewQFileSelector

func NewQFileSelector(parent QObject_ITF) *QFileSelector

Create a QFileSelector instance. This instance will have the same static selectors as other QFileSelector instances, but its own set of extra selectors.

If supplied, it will have the given QObject parent.

func NewQFileSelectorFromPointer

func NewQFileSelectorFromPointer(cthis unsafe.Pointer) *QFileSelector

func NewQFileSelector__

func NewQFileSelector__() *QFileSelector

Create a QFileSelector instance. This instance will have the same static selectors as other QFileSelector instances, but its own set of extra selectors.

If supplied, it will have the given QObject parent.

func (*QFileSelector) AllSelectors

func (this *QFileSelector) AllSelectors() *QStringList

Returns the complete, ordered list of selectors used by this instance

func (*QFileSelector) ExtraSelectors

func (this *QFileSelector) ExtraSelectors() *QStringList

Returns the list of extra selectors which have been added programmatically to this instance.

See also setExtraSelectors().

func (*QFileSelector) GetCthis

func (this *QFileSelector) GetCthis() unsafe.Pointer

func (*QFileSelector) MetaObject

func (this *QFileSelector) MetaObject() *QMetaObject

func (*QFileSelector) NewFromPointer

func (*QFileSelector) NewFromPointer(cthis unsafe.Pointer) *QFileSelector

func (*QFileSelector) QFileSelector_PTR

func (ptr *QFileSelector) QFileSelector_PTR() *QFileSelector

func (*QFileSelector) Select

func (this *QFileSelector) Select(filePath string) string

This function returns the selected version of the path, based on the conditions at runtime. If no selectable files are present, returns the original filePath.

If the original file does not exist, the original filePath is returned. This means that you must have a base file to fall back on, you cannot have only files in selectable sub-directories.

See the class overview for the selection algorithm.

func (*QFileSelector) Select_1

func (this *QFileSelector) Select_1(filePath QUrl_ITF) *QUrl

This function returns the selected version of the path, based on the conditions at runtime. If no selectable files are present, returns the original filePath.

If the original file does not exist, the original filePath is returned. This means that you must have a base file to fall back on, you cannot have only files in selectable sub-directories.

See the class overview for the selection algorithm.

func (*QFileSelector) SetCthis

func (this *QFileSelector) SetCthis(cthis unsafe.Pointer)

func (*QFileSelector) SetExtraSelectors

func (this *QFileSelector) SetExtraSelectors(list QStringList_ITF)

Sets the list of extra selectors which have been added programmatically to this instance.

These selectors have priority over any which have been automatically picked up.

See also extraSelectors().

type QFileSelector_ITF

type QFileSelector_ITF interface {
	QObject_ITF
	QFileSelector_PTR() *QFileSelector
}

type QFileSystemWatcher

type QFileSystemWatcher struct {
	*QObject
}

func NewQFileSystemWatcher

func NewQFileSystemWatcher(parent QObject_ITF) *QFileSystemWatcher

Constructs a new file system watcher object with the given parent.

func NewQFileSystemWatcherFromPointer

func NewQFileSystemWatcherFromPointer(cthis unsafe.Pointer) *QFileSystemWatcher

func NewQFileSystemWatcher_1

func NewQFileSystemWatcher_1(paths QStringList_ITF, parent QObject_ITF) *QFileSystemWatcher

Constructs a new file system watcher object with the given parent.

func NewQFileSystemWatcher_1_

func NewQFileSystemWatcher_1_(paths QStringList_ITF) *QFileSystemWatcher

Constructs a new file system watcher object with the given parent.

func NewQFileSystemWatcher__

func NewQFileSystemWatcher__() *QFileSystemWatcher

Constructs a new file system watcher object with the given parent.

func (*QFileSystemWatcher) AddPath

func (this *QFileSystemWatcher) AddPath(file string) bool

Adds path to the file system watcher if path exists. The path is not added if it does not exist, or if it is already being monitored by the file system watcher.

If path specifies a directory, the directoryChanged() signal will be emitted when path is modified or removed from disk; otherwise the fileChanged() signal is emitted when path is modified, renamed or removed.

If the watch was successful, true is returned.

Reasons for a watch failure are generally system-dependent, but may include the resource not existing, access failures, or the total watch count limit, if the platform has one.

Note: There may be a system dependent limit to the number of files and directories that can be monitored simultaneously. If this limit is been reached, path will not be monitored, and false is returned.

See also addPaths() and removePath().

func (*QFileSystemWatcher) AddPaths

func (this *QFileSystemWatcher) AddPaths(files QStringList_ITF) *QStringList

Adds each path in paths to the file system watcher. Paths are not added if they not exist, or if they are already being monitored by the file system watcher.

If a path specifies a directory, the directoryChanged() signal will be emitted when the path is modified or removed from disk; otherwise the fileChanged() signal is emitted when the path is modified, renamed, or removed.

The return value is a list of paths that could not be watched.

Reasons for a watch failure are generally system-dependent, but may include the resource not existing, access failures, or the total watch count limit, if the platform has one.

Note: There may be a system dependent limit to the number of files and directories that can be monitored simultaneously. If this limit has been reached, the excess paths will not be monitored, and they will be added to the returned QStringList.

See also addPath() and removePaths().

func (*QFileSystemWatcher) Directories

func (this *QFileSystemWatcher) Directories() *QStringList

Returns a list of paths to directories that are being watched.

See also files().

func (*QFileSystemWatcher) Files

func (this *QFileSystemWatcher) Files() *QStringList

Returns a list of paths to files that are being watched.

See also directories().

func (*QFileSystemWatcher) GetCthis

func (this *QFileSystemWatcher) GetCthis() unsafe.Pointer

func (*QFileSystemWatcher) MetaObject

func (this *QFileSystemWatcher) MetaObject() *QMetaObject

func (*QFileSystemWatcher) NewFromPointer

func (*QFileSystemWatcher) NewFromPointer(cthis unsafe.Pointer) *QFileSystemWatcher

func (*QFileSystemWatcher) QFileSystemWatcher_PTR

func (ptr *QFileSystemWatcher) QFileSystemWatcher_PTR() *QFileSystemWatcher

func (*QFileSystemWatcher) RemovePath

func (this *QFileSystemWatcher) RemovePath(file string) bool

Removes the specified path from the file system watcher.

If the watch is successfully removed, true is returned.

Reasons for watch removal failing are generally system-dependent, but may be due to the path having already been deleted, for example.

See also removePaths() and addPath().

func (*QFileSystemWatcher) RemovePaths

func (this *QFileSystemWatcher) RemovePaths(files QStringList_ITF) *QStringList

Removes the specified paths from the file system watcher.

The return value is a list of paths which were not able to be unwatched successfully.

Reasons for watch removal failing are generally system-dependent, but may be due to the path having already been deleted, for example.

See also removePath() and addPaths().

func (*QFileSystemWatcher) SetCthis

func (this *QFileSystemWatcher) SetCthis(cthis unsafe.Pointer)

type QFileSystemWatcher_ITF

type QFileSystemWatcher_ITF interface {
	QObject_ITF
	QFileSystemWatcher_PTR() *QFileSystemWatcher
}

type QFile_ITF

type QFile_ITF interface {
	QFileDevice_ITF
	QFile_PTR() *QFile
}

type QFinalState

type QFinalState struct {
	*QAbstractState
}

func NewQFinalState

func NewQFinalState(parent QState_ITF) *QFinalState

Constructs a new QFinalState object with the given parent state.

func NewQFinalStateFromPointer

func NewQFinalStateFromPointer(cthis unsafe.Pointer) *QFinalState

func NewQFinalState__

func NewQFinalState__() *QFinalState

Constructs a new QFinalState object with the given parent state.

func (*QFinalState) Event

func (this *QFinalState) Event(e QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QFinalState) GetCthis

func (this *QFinalState) GetCthis() unsafe.Pointer

func (*QFinalState) InheritEvent

func (this *QFinalState) InheritEvent(f func(e *QEvent) bool)

bool event(class QEvent *)

func (*QFinalState) InheritOnEntry

func (this *QFinalState) InheritOnEntry(f func(event *QEvent))

void onEntry(class QEvent *)

func (*QFinalState) InheritOnExit

func (this *QFinalState) InheritOnExit(f func(event *QEvent))

void onExit(class QEvent *)

func (*QFinalState) MetaObject

func (this *QFinalState) MetaObject() *QMetaObject

func (*QFinalState) NewFromPointer

func (*QFinalState) NewFromPointer(cthis unsafe.Pointer) *QFinalState

func (*QFinalState) OnEntry

func (this *QFinalState) OnEntry(event QEvent_ITF)

Reimplemented from QAbstractState::onEntry().

func (*QFinalState) OnExit

func (this *QFinalState) OnExit(event QEvent_ITF)

Reimplemented from QAbstractState::onExit().

func (*QFinalState) QFinalState_PTR

func (ptr *QFinalState) QFinalState_PTR() *QFinalState

func (*QFinalState) SetCthis

func (this *QFinalState) SetCthis(cthis unsafe.Pointer)

type QFinalState_ITF

type QFinalState_ITF interface {
	QAbstractState_ITF
	QFinalState_PTR() *QFinalState
}

type QFlag

type QFlag struct {
	*qtrt.CObject
}

func NewQFlag

func NewQFlag(ai int) *QFlag

func NewQFlagFromPointer

func NewQFlagFromPointer(cthis unsafe.Pointer) *QFlag

func NewQFlag_1

func NewQFlag_1(ai uint) *QFlag

func NewQFlag_2

func NewQFlag_2(ai int16) *QFlag

func NewQFlag_3

func NewQFlag_3(ai uint16) *QFlag

func (*QFlag) GetCthis

func (this *QFlag) GetCthis() unsafe.Pointer

func (*QFlag) NewFromPointer

func (*QFlag) NewFromPointer(cthis unsafe.Pointer) *QFlag

func (*QFlag) QFlag_PTR

func (ptr *QFlag) QFlag_PTR() *QFlag

func (*QFlag) SetCthis

func (this *QFlag) SetCthis(cthis unsafe.Pointer)

type QFlag_ITF

type QFlag_ITF interface {
	QFlag_PTR() *QFlag
}

type QFutureInterfaceBase

type QFutureInterfaceBase struct {
	*qtrt.CObject
}

func NewQFutureInterfaceBase

func NewQFutureInterfaceBase(initialState int) *QFutureInterfaceBase

func NewQFutureInterfaceBaseFromPointer

func NewQFutureInterfaceBaseFromPointer(cthis unsafe.Pointer) *QFutureInterfaceBase

func NewQFutureInterfaceBase__

func NewQFutureInterfaceBase__() *QFutureInterfaceBase

func (*QFutureInterfaceBase) Cancel

func (this *QFutureInterfaceBase) Cancel()

func (*QFutureInterfaceBase) DerefT

func (this *QFutureInterfaceBase) DerefT() bool

func (*QFutureInterfaceBase) ExceptionStore

func (this *QFutureInterfaceBase) ExceptionStore() int

func (*QFutureInterfaceBase) ExpectedResultCount

func (this *QFutureInterfaceBase) ExpectedResultCount() int

func (*QFutureInterfaceBase) GetCthis

func (this *QFutureInterfaceBase) GetCthis() unsafe.Pointer

func (*QFutureInterfaceBase) InheritDerefT

func (this *QFutureInterfaceBase) InheritDerefT(f func() bool)

bool derefT()

func (*QFutureInterfaceBase) InheritRefT

func (this *QFutureInterfaceBase) InheritRefT(f func() bool)

bool refT()

func (*QFutureInterfaceBase) IsCanceled

func (this *QFutureInterfaceBase) IsCanceled() bool

func (*QFutureInterfaceBase) IsFinished

func (this *QFutureInterfaceBase) IsFinished() bool

func (*QFutureInterfaceBase) IsPaused

func (this *QFutureInterfaceBase) IsPaused() bool

func (*QFutureInterfaceBase) IsProgressUpdateNeeded

func (this *QFutureInterfaceBase) IsProgressUpdateNeeded() bool

func (*QFutureInterfaceBase) IsResultReadyAt

func (this *QFutureInterfaceBase) IsResultReadyAt(index int) bool

func (*QFutureInterfaceBase) IsRunning

func (this *QFutureInterfaceBase) IsRunning() bool

func (*QFutureInterfaceBase) IsStarted

func (this *QFutureInterfaceBase) IsStarted() bool

func (*QFutureInterfaceBase) IsThrottled

func (this *QFutureInterfaceBase) IsThrottled() bool

func (*QFutureInterfaceBase) Mutex

func (this *QFutureInterfaceBase) Mutex() *QMutex

func (*QFutureInterfaceBase) NewFromPointer

func (*QFutureInterfaceBase) NewFromPointer(cthis unsafe.Pointer) *QFutureInterfaceBase

func (*QFutureInterfaceBase) Operator_equal

func (*QFutureInterfaceBase) Operator_equal_equal

func (this *QFutureInterfaceBase) Operator_equal_equal(other QFutureInterfaceBase_ITF) bool

func (*QFutureInterfaceBase) Operator_not_equal

func (this *QFutureInterfaceBase) Operator_not_equal(other QFutureInterfaceBase_ITF) bool

func (*QFutureInterfaceBase) ProgressMaximum

func (this *QFutureInterfaceBase) ProgressMaximum() int

func (*QFutureInterfaceBase) ProgressMinimum

func (this *QFutureInterfaceBase) ProgressMinimum() int

func (*QFutureInterfaceBase) ProgressText

func (this *QFutureInterfaceBase) ProgressText() string

func (*QFutureInterfaceBase) ProgressValue

func (this *QFutureInterfaceBase) ProgressValue() int

func (*QFutureInterfaceBase) QFutureInterfaceBase_PTR

func (ptr *QFutureInterfaceBase) QFutureInterfaceBase_PTR() *QFutureInterfaceBase

func (*QFutureInterfaceBase) QueryState

func (this *QFutureInterfaceBase) QueryState(state int) bool

func (*QFutureInterfaceBase) RefT

func (this *QFutureInterfaceBase) RefT() bool

func (*QFutureInterfaceBase) ReportCanceled

func (this *QFutureInterfaceBase) ReportCanceled()

func (*QFutureInterfaceBase) ReportFinished

func (this *QFutureInterfaceBase) ReportFinished()

func (*QFutureInterfaceBase) ReportResultsReady

func (this *QFutureInterfaceBase) ReportResultsReady(beginIndex int, endIndex int)

func (*QFutureInterfaceBase) ReportStarted

func (this *QFutureInterfaceBase) ReportStarted()

func (*QFutureInterfaceBase) ResultCount

func (this *QFutureInterfaceBase) ResultCount() int

func (*QFutureInterfaceBase) ResultStoreBase

func (this *QFutureInterfaceBase) ResultStoreBase() int

func (*QFutureInterfaceBase) ResultStoreBase_1

func (this *QFutureInterfaceBase) ResultStoreBase_1() int

func (*QFutureInterfaceBase) SetCthis

func (this *QFutureInterfaceBase) SetCthis(cthis unsafe.Pointer)

func (*QFutureInterfaceBase) SetExpectedResultCount

func (this *QFutureInterfaceBase) SetExpectedResultCount(resultCount int)

func (*QFutureInterfaceBase) SetFilterMode

func (this *QFutureInterfaceBase) SetFilterMode(enable bool)

func (*QFutureInterfaceBase) SetPaused

func (this *QFutureInterfaceBase) SetPaused(paused bool)

func (*QFutureInterfaceBase) SetProgressRange

func (this *QFutureInterfaceBase) SetProgressRange(minimum int, maximum int)

func (*QFutureInterfaceBase) SetProgressValue

func (this *QFutureInterfaceBase) SetProgressValue(progressValue int)

func (*QFutureInterfaceBase) SetProgressValueAndText

func (this *QFutureInterfaceBase) SetProgressValueAndText(progressValue int, progressText string)

func (*QFutureInterfaceBase) SetRunnable

func (this *QFutureInterfaceBase) SetRunnable(runnable QRunnable_ITF)

func (*QFutureInterfaceBase) SetThreadPool

func (this *QFutureInterfaceBase) SetThreadPool(pool QThreadPool_ITF)

func (*QFutureInterfaceBase) SetThrottled

func (this *QFutureInterfaceBase) SetThrottled(enable bool)

func (*QFutureInterfaceBase) TogglePaused

func (this *QFutureInterfaceBase) TogglePaused()

func (*QFutureInterfaceBase) WaitForFinished

func (this *QFutureInterfaceBase) WaitForFinished()

func (*QFutureInterfaceBase) WaitForNextResult

func (this *QFutureInterfaceBase) WaitForNextResult() bool

func (*QFutureInterfaceBase) WaitForResult

func (this *QFutureInterfaceBase) WaitForResult(resultIndex int)

func (*QFutureInterfaceBase) WaitForResume

func (this *QFutureInterfaceBase) WaitForResume()

type QFutureInterfaceBase_ITF

type QFutureInterfaceBase_ITF interface {
	QFutureInterfaceBase_PTR() *QFutureInterfaceBase
}

type QFutureInterfaceBase__State

type QFutureInterfaceBase__State = int
const QFutureInterfaceBase__Canceled QFutureInterfaceBase__State = 8
const QFutureInterfaceBase__Finished QFutureInterfaceBase__State = 4
const QFutureInterfaceBase__NoState QFutureInterfaceBase__State = 0
const QFutureInterfaceBase__Paused QFutureInterfaceBase__State = 16
const QFutureInterfaceBase__Running QFutureInterfaceBase__State = 1
const QFutureInterfaceBase__Started QFutureInterfaceBase__State = 2
const QFutureInterfaceBase__Throttled QFutureInterfaceBase__State = 32

type QFutureWatcherBase

type QFutureWatcherBase struct {
	*QObject
}

func NewQFutureWatcherBase

func NewQFutureWatcherBase(parent QObject_ITF) *QFutureWatcherBase

func NewQFutureWatcherBaseFromPointer

func NewQFutureWatcherBaseFromPointer(cthis unsafe.Pointer) *QFutureWatcherBase

func NewQFutureWatcherBase__

func NewQFutureWatcherBase__() *QFutureWatcherBase

func (*QFutureWatcherBase) Cancel

func (this *QFutureWatcherBase) Cancel()

Cancels the asynchronous computation represented by the future(). Note that the cancelation is asynchronous. Use waitForFinished() after calling cancel() when you need synchronous cancelation.

Currently available results may still be accessed on a canceled QFuture, but new results will not become available after calling this function. Also, this QFutureWatcher will not deliver progress and result ready signals once canceled. This includes the progressValueChanged(), progressRangeChanged(), progressTextChanged(), resultReadyAt(), and resultsReadyAt() signals.

Be aware that not all asynchronous computations can be canceled. For example, the QFuture returned by QtConcurrent::run() cannot be canceled; but the QFuture returned by QtConcurrent::mappedReduced() can.

func (*QFutureWatcherBase) Canceled

func (this *QFutureWatcherBase) Canceled()

This signal is emitted if the watched future is canceled.

func (*QFutureWatcherBase) ConnectNotify

func (this *QFutureWatcherBase) ConnectNotify(signal QMetaMethod_ITF)

func (*QFutureWatcherBase) ConnectOutputInterface

func (this *QFutureWatcherBase) ConnectOutputInterface()

func (*QFutureWatcherBase) DisconnectNotify

func (this *QFutureWatcherBase) DisconnectNotify(signal QMetaMethod_ITF)

func (*QFutureWatcherBase) DisconnectOutputInterface

func (this *QFutureWatcherBase) DisconnectOutputInterface(pendingAssignment bool)

func (*QFutureWatcherBase) DisconnectOutputInterface__

func (this *QFutureWatcherBase) DisconnectOutputInterface__()

func (*QFutureWatcherBase) Event

func (this *QFutureWatcherBase) Event(event QEvent_ITF) bool

func (*QFutureWatcherBase) Finished

func (this *QFutureWatcherBase) Finished()

This signal is emitted when the watched future finishes.

func (*QFutureWatcherBase) GetCthis

func (this *QFutureWatcherBase) GetCthis() unsafe.Pointer

func (*QFutureWatcherBase) InheritConnectNotify

func (this *QFutureWatcherBase) InheritConnectNotify(f func(signal *QMetaMethod))

void connectNotify(const class QMetaMethod &)

func (*QFutureWatcherBase) InheritConnectOutputInterface

func (this *QFutureWatcherBase) InheritConnectOutputInterface(f func())

void connectOutputInterface()

func (*QFutureWatcherBase) InheritDisconnectNotify

func (this *QFutureWatcherBase) InheritDisconnectNotify(f func(signal *QMetaMethod))

void disconnectNotify(const class QMetaMethod &)

func (*QFutureWatcherBase) InheritDisconnectOutputInterface

func (this *QFutureWatcherBase) InheritDisconnectOutputInterface(f func(pendingAssignment bool))

void disconnectOutputInterface(_Bool)

func (*QFutureWatcherBase) IsCanceled

func (this *QFutureWatcherBase) IsCanceled() bool

Returns true if the asynchronous computation has been canceled with the cancel() function; otherwise returns false.

Be aware that the computation may still be running even though this function returns true. See cancel() for more details.

func (*QFutureWatcherBase) IsFinished

func (this *QFutureWatcherBase) IsFinished() bool

Returns true if the asynchronous computation represented by the future() has finished, or if no future has been set; otherwise returns false.

func (*QFutureWatcherBase) IsPaused

func (this *QFutureWatcherBase) IsPaused() bool

Returns true if the asynchronous computation has been paused with the pause() function; otherwise returns false.

Be aware that the computation may still be running even though this function returns true. See setPaused() for more details.

See also setPaused() and togglePaused().

func (*QFutureWatcherBase) IsRunning

func (this *QFutureWatcherBase) IsRunning() bool

Returns true if the asynchronous computation represented by the future() is currently running; otherwise returns false.

func (*QFutureWatcherBase) IsStarted

func (this *QFutureWatcherBase) IsStarted() bool

Returns true if the asynchronous computation represented by the future() has been started; otherwise returns false.

func (*QFutureWatcherBase) MetaObject

func (this *QFutureWatcherBase) MetaObject() *QMetaObject

func (*QFutureWatcherBase) NewFromPointer

func (*QFutureWatcherBase) NewFromPointer(cthis unsafe.Pointer) *QFutureWatcherBase

func (*QFutureWatcherBase) Pause

func (this *QFutureWatcherBase) Pause()

Pauses the asynchronous computation represented by the future(). This is a convenience method that simply calls setPaused(true).

See also resume().

func (*QFutureWatcherBase) Paused

func (this *QFutureWatcherBase) Paused()

This signal is emitted when the watched future is paused.

See also setPaused().

func (*QFutureWatcherBase) ProgressMaximum

func (this *QFutureWatcherBase) ProgressMaximum() int

Returns the maximum progressValue().

See also progressValue() and progressMinimum().

func (*QFutureWatcherBase) ProgressMinimum

func (this *QFutureWatcherBase) ProgressMinimum() int

Returns the minimum progressValue().

See also progressValue() and progressMaximum().

func (*QFutureWatcherBase) ProgressRangeChanged

func (this *QFutureWatcherBase) ProgressRangeChanged(minimum int, maximum int)

The progress range for the watched future has changed to minimum and maximum

func (*QFutureWatcherBase) ProgressText

func (this *QFutureWatcherBase) ProgressText() string

Returns the (optional) textual representation of the progress as reported by the asynchronous computation.

Be aware that not all computations provide a textual representation of the progress, and as such, this function may return an empty string.

func (*QFutureWatcherBase) ProgressTextChanged

func (this *QFutureWatcherBase) ProgressTextChanged(progressText string)

This signal is emitted when the watched future reports textual progress information, progressText.

func (*QFutureWatcherBase) ProgressValue

func (this *QFutureWatcherBase) ProgressValue() int

Returns the current progress value, which is between the progressMinimum() and progressMaximum().

See also progressMinimum() and progressMaximum().

func (*QFutureWatcherBase) ProgressValueChanged

func (this *QFutureWatcherBase) ProgressValueChanged(progressValue int)

This signal is emitted when the watched future reports progress, progressValue gives the current progress. In order to avoid overloading the GUI event loop, QFutureWatcher limits the progress signal emission rate. This means that listeners connected to this slot might not get all progress reports the future makes. The last progress update (where progressValue equals the maximum value) will always be delivered.

func (*QFutureWatcherBase) QFutureWatcherBase_PTR

func (ptr *QFutureWatcherBase) QFutureWatcherBase_PTR() *QFutureWatcherBase

func (*QFutureWatcherBase) ResultReadyAt

func (this *QFutureWatcherBase) ResultReadyAt(resultIndex int)

This signal is emitted when the watched future reports a ready result at index. If the future reports multiple results, the index will indicate which one it is. Results can be reported out-of-order. To get the result, call future().result(index);

func (*QFutureWatcherBase) ResultsReadyAt

func (this *QFutureWatcherBase) ResultsReadyAt(beginIndex int, endIndex int)

This signal is emitted when the watched future reports ready results. The results are indexed from beginIndex to endIndex.

func (*QFutureWatcherBase) Resume

func (this *QFutureWatcherBase) Resume()

Resumes the asynchronous computation represented by the future(). This is a convenience method that simply calls setPaused(false).

See also pause().

func (*QFutureWatcherBase) Resumed

func (this *QFutureWatcherBase) Resumed()

This signal is emitted when the watched future is resumed.

func (*QFutureWatcherBase) SetCthis

func (this *QFutureWatcherBase) SetCthis(cthis unsafe.Pointer)

func (*QFutureWatcherBase) SetPaused

func (this *QFutureWatcherBase) SetPaused(paused bool)

If paused is true, this function pauses the asynchronous computation represented by the future(). If the computation is already paused, this function does nothing. This QFutureWatcher will stop delivering progress and result ready signals while the future is paused. Signal delivery will continue once the computation is resumed.

If paused is false, this function resumes the asynchronous computation. If the computation was not previously paused, this function does nothing.

Be aware that not all computations can be paused. For example, the QFuture returned by QtConcurrent::run() cannot be paused; but the QFuture returned by QtConcurrent::mappedReduced() can.

See also paused(), pause(), resume(), and togglePaused().

func (*QFutureWatcherBase) SetPendingResultsLimit

func (this *QFutureWatcherBase) SetPendingResultsLimit(limit int)

The setPendingResultsLimit() provides throttling control. When the number of pending resultReadyAt() or resultsReadyAt() signals exceeds the limit, the computation represented by the future will be throttled automatically. The computation will resume once the number of pending signals drops below the limit.

func (*QFutureWatcherBase) Started

func (this *QFutureWatcherBase) Started()

This signal is emitted when this QFutureWatcher starts watching the future set with setFuture().

func (*QFutureWatcherBase) TogglePaused

func (this *QFutureWatcherBase) TogglePaused()

Toggles the paused state of the asynchronous computation. In other words, if the computation is currently paused, calling this function resumes it; if the computation is running, it becomes paused. This is a convenience method for calling setPaused(!isPaused()).

See also setPaused(), pause(), and resume().

func (*QFutureWatcherBase) WaitForFinished

func (this *QFutureWatcherBase) WaitForFinished()

Waits for the asynchronous computation to finish (including cancel()ed computations).

type QFutureWatcherBase_ITF

type QFutureWatcherBase_ITF interface {
	QObject_ITF
	QFutureWatcherBase_PTR() *QFutureWatcherBase
}

type QGenericArgument

type QGenericArgument struct {
	*qtrt.CObject
}

func NewQGenericArgument

func NewQGenericArgument(aName string, aData unsafe.Pointer) *QGenericArgument

func NewQGenericArgumentFromPointer

func NewQGenericArgumentFromPointer(cthis unsafe.Pointer) *QGenericArgument

func NewQGenericArgument__

func NewQGenericArgument__() *QGenericArgument

func NewQGenericArgument__1

func NewQGenericArgument__1(aName string) *QGenericArgument

func (*QGenericArgument) Data

func (this *QGenericArgument) Data() unsafe.Pointer

func (*QGenericArgument) GetCthis

func (this *QGenericArgument) GetCthis() unsafe.Pointer

func (*QGenericArgument) Name

func (this *QGenericArgument) Name() string

func (*QGenericArgument) NewFromPointer

func (*QGenericArgument) NewFromPointer(cthis unsafe.Pointer) *QGenericArgument

func (*QGenericArgument) QGenericArgument_PTR

func (ptr *QGenericArgument) QGenericArgument_PTR() *QGenericArgument

func (*QGenericArgument) SetCthis

func (this *QGenericArgument) SetCthis(cthis unsafe.Pointer)

type QGenericArgument_ITF

type QGenericArgument_ITF interface {
	QGenericArgument_PTR() *QGenericArgument
}

type QGenericReturnArgument

type QGenericReturnArgument struct {
	*QGenericArgument
}

func NewQGenericReturnArgument

func NewQGenericReturnArgument(aName string, aData unsafe.Pointer) *QGenericReturnArgument

func NewQGenericReturnArgumentFromPointer

func NewQGenericReturnArgumentFromPointer(cthis unsafe.Pointer) *QGenericReturnArgument

func NewQGenericReturnArgument__

func NewQGenericReturnArgument__() *QGenericReturnArgument

func NewQGenericReturnArgument__1

func NewQGenericReturnArgument__1(aName string) *QGenericReturnArgument

func (*QGenericReturnArgument) GetCthis

func (this *QGenericReturnArgument) GetCthis() unsafe.Pointer

func (*QGenericReturnArgument) NewFromPointer

func (*QGenericReturnArgument) QGenericReturnArgument_PTR

func (ptr *QGenericReturnArgument) QGenericReturnArgument_PTR() *QGenericReturnArgument

func (*QGenericReturnArgument) SetCthis

func (this *QGenericReturnArgument) SetCthis(cthis unsafe.Pointer)

type QGenericReturnArgument_ITF

type QGenericReturnArgument_ITF interface {
	QGenericArgument_ITF
	QGenericReturnArgument_PTR() *QGenericReturnArgument
}

type QHashCombine

type QHashCombine struct {
	*qtrt.CObject
}

func NewQHashCombineFromPointer

func NewQHashCombineFromPointer(cthis unsafe.Pointer) *QHashCombine

func (*QHashCombine) GetCthis

func (this *QHashCombine) GetCthis() unsafe.Pointer

func (*QHashCombine) NewFromPointer

func (*QHashCombine) NewFromPointer(cthis unsafe.Pointer) *QHashCombine

func (*QHashCombine) QHashCombine_PTR

func (ptr *QHashCombine) QHashCombine_PTR() *QHashCombine

func (*QHashCombine) SetCthis

func (this *QHashCombine) SetCthis(cthis unsafe.Pointer)

type QHashCombineCommutative

type QHashCombineCommutative struct {
	*qtrt.CObject
}

func NewQHashCombineCommutativeFromPointer

func NewQHashCombineCommutativeFromPointer(cthis unsafe.Pointer) *QHashCombineCommutative

func (*QHashCombineCommutative) GetCthis

func (this *QHashCombineCommutative) GetCthis() unsafe.Pointer

func (*QHashCombineCommutative) NewFromPointer

func (*QHashCombineCommutative) QHashCombineCommutative_PTR

func (ptr *QHashCombineCommutative) QHashCombineCommutative_PTR() *QHashCombineCommutative

func (*QHashCombineCommutative) SetCthis

func (this *QHashCombineCommutative) SetCthis(cthis unsafe.Pointer)

type QHashCombineCommutative_ITF

type QHashCombineCommutative_ITF interface {
	QHashCombineCommutative_PTR() *QHashCombineCommutative
}

type QHashCombine_ITF

type QHashCombine_ITF interface {
	QHashCombine_PTR() *QHashCombine
}

type QHashData

type QHashData struct {
	*qtrt.CObject
}

func NewQHashDataFromPointer

func NewQHashDataFromPointer(cthis unsafe.Pointer) *QHashData

func (*QHashData) AllocateNode

func (this *QHashData) AllocateNode(nodeAlign int) unsafe.Pointer

func (*QHashData) Detach_helper

func (this *QHashData) Detach_helper(node_duplicate unsafe.Pointer, node_delete unsafe.Pointer, nodeSize int, nodeAlign int) *QHashData

func (*QHashData) FirstNode

func (this *QHashData) FirstNode() unsafe.Pointer

func (*QHashData) FreeNode

func (this *QHashData) FreeNode(node unsafe.Pointer)

func (*QHashData) Free_helper

func (this *QHashData) Free_helper(node_delete unsafe.Pointer)

func (*QHashData) GetCthis

func (this *QHashData) GetCthis() unsafe.Pointer

func (*QHashData) HasShrunk

func (this *QHashData) HasShrunk()

func (*QHashData) NewFromPointer

func (*QHashData) NewFromPointer(cthis unsafe.Pointer) *QHashData

func (*QHashData) QHashData_PTR

func (ptr *QHashData) QHashData_PTR() *QHashData

func (*QHashData) Rehash

func (this *QHashData) Rehash(hint int)

func (*QHashData) SetCthis

func (this *QHashData) SetCthis(cthis unsafe.Pointer)

func (*QHashData) WillGrow

func (this *QHashData) WillGrow() bool

type QHashData_ITF

type QHashData_ITF interface {
	QHashData_PTR() *QHashData
}

type QHashDummyValue

type QHashDummyValue struct {
	*qtrt.CObject
}

func NewQHashDummyValueFromPointer

func NewQHashDummyValueFromPointer(cthis unsafe.Pointer) *QHashDummyValue

func (*QHashDummyValue) GetCthis

func (this *QHashDummyValue) GetCthis() unsafe.Pointer

func (*QHashDummyValue) NewFromPointer

func (*QHashDummyValue) NewFromPointer(cthis unsafe.Pointer) *QHashDummyValue

func (*QHashDummyValue) QHashDummyValue_PTR

func (ptr *QHashDummyValue) QHashDummyValue_PTR() *QHashDummyValue

func (*QHashDummyValue) SetCthis

func (this *QHashDummyValue) SetCthis(cthis unsafe.Pointer)

type QHashDummyValue_ITF

type QHashDummyValue_ITF interface {
	QHashDummyValue_PTR() *QHashDummyValue
}

type QHistoryState

type QHistoryState struct {
	*QAbstractState
}

func NewQHistoryState

func NewQHistoryState(parent QState_ITF) *QHistoryState

Constructs a new shallow history state with the given parent state.

func NewQHistoryStateFromPointer

func NewQHistoryStateFromPointer(cthis unsafe.Pointer) *QHistoryState

func NewQHistoryState_1

func NewQHistoryState_1(type_ int, parent QState_ITF) *QHistoryState

Constructs a new shallow history state with the given parent state.

func NewQHistoryState_1_

func NewQHistoryState_1_(type_ int) *QHistoryState

Constructs a new shallow history state with the given parent state.

func NewQHistoryState__

func NewQHistoryState__() *QHistoryState

Constructs a new shallow history state with the given parent state.

func (*QHistoryState) DefaultState

func (this *QHistoryState) DefaultState() *QAbstractState

Returns this history state's default state. The default state indicates the state to transition to if the parent state has never been entered before.

Note: Getter function for property defaultState.

See also setDefaultState().

func (*QHistoryState) DefaultTransition

func (this *QHistoryState) DefaultTransition() *QAbstractTransition

Returns this history state's default transition. The default transition is taken when the history state has never been entered before. The target states of the default transition therefore make up the default state.

This function was introduced in Qt 5.6.

Note: Getter function for property defaultTransition.

See also setDefaultTransition().

func (*QHistoryState) Event

func (this *QHistoryState) Event(e QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QHistoryState) GetCthis

func (this *QHistoryState) GetCthis() unsafe.Pointer

func (*QHistoryState) HistoryType

func (this *QHistoryState) HistoryType() int

Returns the type of history that this history state records.

Note: Getter function for property historyType.

See also setHistoryType().

func (*QHistoryState) InheritEvent

func (this *QHistoryState) InheritEvent(f func(e *QEvent) bool)

bool event(class QEvent *)

func (*QHistoryState) InheritOnEntry

func (this *QHistoryState) InheritOnEntry(f func(event *QEvent))

void onEntry(class QEvent *)

func (*QHistoryState) InheritOnExit

func (this *QHistoryState) InheritOnExit(f func(event *QEvent))

void onExit(class QEvent *)

func (*QHistoryState) MetaObject

func (this *QHistoryState) MetaObject() *QMetaObject

func (*QHistoryState) NewFromPointer

func (*QHistoryState) NewFromPointer(cthis unsafe.Pointer) *QHistoryState

func (*QHistoryState) OnEntry

func (this *QHistoryState) OnEntry(event QEvent_ITF)

Reimplemented from QAbstractState::onEntry().

func (*QHistoryState) OnExit

func (this *QHistoryState) OnExit(event QEvent_ITF)

Reimplemented from QAbstractState::onExit().

func (*QHistoryState) QHistoryState_PTR

func (ptr *QHistoryState) QHistoryState_PTR() *QHistoryState

func (*QHistoryState) SetCthis

func (this *QHistoryState) SetCthis(cthis unsafe.Pointer)

func (*QHistoryState) SetDefaultState

func (this *QHistoryState) SetDefaultState(state QAbstractState_ITF)

Sets this history state's default state to be the given state. state must be a sibling of this history state.

Note that this function does not set state as the initial state of its parent.

Note: Setter function for property defaultState.

See also defaultState().

func (*QHistoryState) SetDefaultTransition

func (this *QHistoryState) SetDefaultTransition(transition QAbstractTransition_ITF)

Sets this history state's default transition to be the given transition. This will set the source state of the transition to the history state.

Note that the eventTest method of the transition will never be called.

This function was introduced in Qt 5.6.

Note: Setter function for property defaultTransition.

See also defaultTransition().

func (*QHistoryState) SetHistoryType

func (this *QHistoryState) SetHistoryType(type_ int)

Sets the type of history that this history state records.

Note: Setter function for property historyType.

See also historyType().

type QHistoryState_ITF

type QHistoryState_ITF interface {
	QAbstractState_ITF
	QHistoryState_PTR() *QHistoryState
}

type QHistoryState__HistoryType

type QHistoryState__HistoryType = int

This enum specifies the type of history that a QHistoryState records.

const QHistoryState__DeepHistory QHistoryState__HistoryType = 1

Nested states are recorded. In this case a transition with the history state as its target will end up in the most deeply nested descendant state the parent was in the last time it was exited.

const QHistoryState__ShallowHistory QHistoryState__HistoryType = 0

Only the immediate child states of the parent state are recorded. In this case a transition with the history state as its target will end up in the immediate child state that the parent was in the last time it was exited. This is the default.

type QIODevice

type QIODevice struct {
	*QObject
}

func NewQIODevice

func NewQIODevice() *QIODevice

Constructs a QIODevice object.

func NewQIODeviceFromPointer

func NewQIODeviceFromPointer(cthis unsafe.Pointer) *QIODevice

func NewQIODevice_1

func NewQIODevice_1(parent QObject_ITF) *QIODevice

Constructs a QIODevice object.

func (*QIODevice) AboutToClose

func (this *QIODevice) AboutToClose()

This signal is emitted when the device is about to close. Connect this signal if you have operations that need to be performed before the device closes (e.g., if you have data in a separate buffer that needs to be written to the device).

func (*QIODevice) AtEnd

func (this *QIODevice) AtEnd() bool

Returns true if the current read and write position is at the end of the device (i.e. there is no more data available for reading on the device); otherwise returns false.

For some devices, atEnd() can return true even though there is more data to read. This special case only applies to devices that generate data in direct response to you calling read() (e.g., /dev or /proc files on Unix and macOS, or console input / stdin on all platforms).

See also bytesAvailable(), read(), and isSequential().

func (*QIODevice) BytesAvailable

func (this *QIODevice) BytesAvailable() int64

Returns the number of bytes that are available for reading. This function is commonly used with sequential devices to determine the number of bytes to allocate in a buffer before reading.

Subclasses that reimplement this function must call the base implementation in order to include the size of the buffer of QIODevice. Example:

qint64 CustomDevice::bytesAvailable() const
{
    return buffer.size() + QIODevice::bytesAvailable();
}

See also bytesToWrite(), readyRead(), and isSequential().

func (*QIODevice) BytesToWrite

func (this *QIODevice) BytesToWrite() int64

For buffered devices, this function returns the number of bytes waiting to be written. For devices with no buffer, this function returns 0.

Subclasses that reimplement this function must call the base implementation in order to include the size of the buffer of QIODevice.

See also bytesAvailable(), bytesWritten(), and isSequential().

func (*QIODevice) BytesWritten

func (this *QIODevice) BytesWritten(bytes int64)

This signal is emitted every time a payload of data has been written to the device's current write channel. The bytes argument is set to the number of bytes that were written in this payload.

bytesWritten() is not emitted recursively; if you reenter the event loop or call waitForBytesWritten() inside a slot connected to the bytesWritten() signal, the signal will not be reemitted (although waitForBytesWritten() may still return true).

See also readyRead().

func (*QIODevice) CanReadLine

func (this *QIODevice) CanReadLine() bool

Returns true if a complete line of data can be read from the device; otherwise returns false.

Note that unbuffered devices, which have no way of determining what can be read, always return false.

This function is often called in conjunction with the readyRead() signal.

Subclasses that reimplement this function must call the base implementation in order to include the contents of the QIODevice's buffer. Example:

bool CustomDevice::canReadLine() const
{
    return buffer.contains('\n') || QIODevice::canReadLine();
}

See also readyRead() and readLine().

func (*QIODevice) ChannelBytesWritten

func (this *QIODevice) ChannelBytesWritten(channel int, bytes int64)

This signal is emitted every time a payload of data has been written to the device. The bytes argument is set to the number of bytes that were written in this payload, while channel is the channel they were written to. Unlike bytesWritten(), it is emitted regardless of the current write channel.

channelBytesWritten() can be emitted recursively - even for the same channel.

This function was introduced in Qt 5.7.

See also bytesWritten() and channelReadyRead().

func (*QIODevice) ChannelReadyRead

func (this *QIODevice) ChannelReadyRead(channel int)

This signal is emitted when new data is available for reading from the device. The channel argument is set to the index of the read channel on which the data has arrived. Unlike readyRead(), it is emitted regardless of the current read channel.

channelReadyRead() can be emitted recursively - even for the same channel.

This function was introduced in Qt 5.7.

See also readyRead() and channelBytesWritten().

func (*QIODevice) Close

func (this *QIODevice) Close()

First emits aboutToClose(), then closes the device and sets its OpenMode to NotOpen. The error string is also reset.

See also setOpenMode() and OpenMode.

func (*QIODevice) CommitTransaction

func (this *QIODevice) CommitTransaction()

Completes a read transaction.

For sequential devices, all data recorded in the internal buffer during the transaction will be discarded.

This function was introduced in Qt 5.7.

See also startTransaction() and rollbackTransaction().

func (*QIODevice) CurrentReadChannel

func (this *QIODevice) CurrentReadChannel() int

Returns the index of the current read channel.

This function was introduced in Qt 5.7.

See also setCurrentReadChannel(), readChannelCount(), and QProcess.

func (*QIODevice) CurrentWriteChannel

func (this *QIODevice) CurrentWriteChannel() int

Returns the the index of the current write channel.

This function was introduced in Qt 5.7.

See also setCurrentWriteChannel() and writeChannelCount().

func (*QIODevice) ErrorString

func (this *QIODevice) ErrorString() string

Returns a human-readable description of the last device error that occurred.

See also setErrorString().

func (*QIODevice) GetChar

func (this *QIODevice) GetChar(c string) bool

Reads one character from the device and stores it in c. If c is 0, the character is discarded. Returns true on success; otherwise returns false.

See also read(), putChar(), and ungetChar().

func (*QIODevice) GetCthis

func (this *QIODevice) GetCthis() unsafe.Pointer

func (*QIODevice) InheritReadData

func (this *QIODevice) InheritReadData(f func(data string, maxlen int64) int64)

long long readData(char *, qint64)

func (*QIODevice) InheritReadLineData

func (this *QIODevice) InheritReadLineData(f func(data string, maxlen int64) int64)

long long readLineData(char *, qint64)

func (*QIODevice) InheritSetErrorString

func (this *QIODevice) InheritSetErrorString(f func(errorString string))

void setErrorString(const class QString &)

func (*QIODevice) InheritSetOpenMode

func (this *QIODevice) InheritSetOpenMode(f func(openMode int))

void setOpenMode(QIODevice::OpenMode)

func (*QIODevice) InheritWriteData

func (this *QIODevice) InheritWriteData(f func(data string, len_ int64) int64)

long long writeData(const char *, qint64)

func (*QIODevice) IsOpen

func (this *QIODevice) IsOpen() bool

Returns true if the device is open; otherwise returns false. A device is open if it can be read from and/or written to. By default, this function returns false if openMode() returns NotOpen.

See also openMode() and OpenMode.

func (*QIODevice) IsReadable

func (this *QIODevice) IsReadable() bool

Returns true if data can be read from the device; otherwise returns false. Use bytesAvailable() to determine how many bytes can be read.

This is a convenience function which checks if the OpenMode of the device contains the ReadOnly flag.

See also openMode() and OpenMode.

func (*QIODevice) IsSequential

func (this *QIODevice) IsSequential() bool

Returns true if this device is sequential; otherwise returns false.

Sequential devices, as opposed to a random-access devices, have no concept of a start, an end, a size, or a current position, and they do not support seeking. You can only read from the device when it reports that data is available. The most common example of a sequential device is a network socket. On Unix, special files such as /dev/zero and fifo pipes are sequential.

Regular files, on the other hand, do support random access. They have both a size and a current position, and they also support seeking backwards and forwards in the data stream. Regular files are non-sequential.

See also bytesAvailable().

func (*QIODevice) IsTextModeEnabled

func (this *QIODevice) IsTextModeEnabled() bool

Returns true if the Text flag is enabled; otherwise returns false.

See also setTextModeEnabled().

func (*QIODevice) IsTransactionStarted

func (this *QIODevice) IsTransactionStarted() bool

Returns true if a transaction is in progress on the device, otherwise false.

This function was introduced in Qt 5.7.

See also startTransaction().

func (*QIODevice) IsWritable

func (this *QIODevice) IsWritable() bool

Returns true if data can be written to the device; otherwise returns false.

This is a convenience function which checks if the OpenMode of the device contains the WriteOnly flag.

See also openMode() and OpenMode.

func (*QIODevice) MetaObject

func (this *QIODevice) MetaObject() *QMetaObject

func (*QIODevice) NewFromPointer

func (*QIODevice) NewFromPointer(cthis unsafe.Pointer) *QIODevice

func (*QIODevice) Open

func (this *QIODevice) Open(mode int) bool

Opens the device and sets its OpenMode to mode. Returns true if successful; otherwise returns false. This function should be called from any reimplementations of open() or other functions that open the device.

See also openMode() and OpenMode.

func (*QIODevice) OpenMode

func (this *QIODevice) OpenMode() int

Returns the mode in which the device has been opened; i.e. ReadOnly or WriteOnly.

See also setOpenMode() and OpenMode.

func (*QIODevice) Peek

func (this *QIODevice) Peek(data string, maxlen int64) int64

Reads at most maxSize bytes from the device into data, without side effects (i.e., if you call read() after peek(), you will get the same data). Returns the number of bytes read. If an error occurs, such as when attempting to peek a device opened in WriteOnly mode, this function returns -1.

0 is returned when no more data is available for reading.

Example:

bool isExeFile(QFile *file)
{
    char buf[2];
    if (file->peek(buf, sizeof(buf)) == sizeof(buf))
        return (buf[0] == 'M' && buf[1] == 'Z');
    return false;
}

This function was introduced in Qt 4.1.

See also read().

func (*QIODevice) Peek_1

func (this *QIODevice) Peek_1(maxlen int64) *QByteArray

Reads at most maxSize bytes from the device into data, without side effects (i.e., if you call read() after peek(), you will get the same data). Returns the number of bytes read. If an error occurs, such as when attempting to peek a device opened in WriteOnly mode, this function returns -1.

0 is returned when no more data is available for reading.

Example:

bool isExeFile(QFile *file)
{
    char buf[2];
    if (file->peek(buf, sizeof(buf)) == sizeof(buf))
        return (buf[0] == 'M' && buf[1] == 'Z');
    return false;
}

This function was introduced in Qt 4.1.

See also read().

func (*QIODevice) Pos

func (this *QIODevice) Pos() int64

For random-access devices, this function returns the position that data is written to or read from. For sequential devices or closed devices, where there is no concept of a "current position", 0 is returned.

The current read/write position of the device is maintained internally by QIODevice, so reimplementing this function is not necessary. When subclassing QIODevice, use QIODevice::seek() to notify QIODevice about changes in the device position.

See also isSequential() and seek().

func (*QIODevice) PutChar

func (this *QIODevice) PutChar(c byte) bool

Writes the character c to the device. Returns true on success; otherwise returns false.

See also write(), getChar(), and ungetChar().

func (*QIODevice) QIODevice_PTR

func (ptr *QIODevice) QIODevice_PTR() *QIODevice

func (*QIODevice) Read

func (this *QIODevice) Read(data string, maxlen int64) int64

Reads at most maxSize bytes from the device into data, and returns the number of bytes read. If an error occurs, such as when attempting to read from a device opened in WriteOnly mode, this function returns -1.

0 is returned when no more data is available for reading. However, reading past the end of the stream is considered an error, so this function returns -1 in those cases (that is, reading on a closed socket or after a process has died).

See also readData(), readLine(), and write().

func (*QIODevice) ReadAll

func (this *QIODevice) ReadAll() *QByteArray

Reads all remaining data from the device, and returns it as a byte array.

This function has no way of reporting errors; returning an empty QByteArray can mean either that no data was currently available for reading, or that an error occurred.

func (*QIODevice) ReadChannelCount

func (this *QIODevice) ReadChannelCount() int

Returns the number of available read channels if the device is open; otherwise returns 0.

This function was introduced in Qt 5.7.

See also writeChannelCount() and QProcess.

func (*QIODevice) ReadChannelFinished

func (this *QIODevice) ReadChannelFinished()

This signal is emitted when the input (reading) stream is closed in this device. It is emitted as soon as the closing is detected, which means that there might still be data available for reading with read().

This function was introduced in Qt 4.4.

See also atEnd() and read().

func (*QIODevice) ReadData

func (this *QIODevice) ReadData(data string, maxlen int64) int64

Reads up to maxSize bytes from the device into data, and returns the number of bytes read or -1 if an error occurred.

If there are no bytes to be read and there can never be more bytes available (examples include socket closed, pipe closed, sub-process finished), this function returns -1.

This function is called by QIODevice. Reimplement this function when creating a subclass of QIODevice.

When reimplementing this function it is important that this function reads all the required data before returning. This is required in order for QDataStream to be able to operate on the class. QDataStream assumes all the requested information was read and therefore does not retry reading if there was a problem.

This function might be called with a maxSize of 0, which can be used to perform post-reading operations.

See also read(), readLine(), and writeData().

func (*QIODevice) ReadLine

func (this *QIODevice) ReadLine(data string, maxlen int64) int64

This function reads a line of ASCII characters from the device, up to a maximum of maxSize - 1 bytes, stores the characters in data, and returns the number of bytes read. If a line could not be read but no error ocurred, this function returns 0. If an error occurs, this function returns the length of what could be read, or -1 if nothing was read.

A terminating '\0' byte is always appended to data, so maxSize must be larger than 1.

Data is read until either of the following conditions are met:

The first '\n' character is read. maxSize - 1 bytes are read. The end of the device data is detected.

For example, the following code reads a line of characters from a file:

QFile file("box.txt");
if (file.open(QFile::ReadOnly)) {
    char buf[1024];
    qint64 lineLength = file.readLine(buf, sizeof(buf));
    if (lineLength != -1) {
        // the line is available in buf
    }
}

The newline character ('\n') is included in the buffer. If a newline is not encountered before maxSize - 1 bytes are read, a newline will not be inserted into the buffer. On windows newline characters are replaced with '\n'.

This function calls readLineData(), which is implemented using repeated calls to getChar(). You can provide a more efficient implementation by reimplementing readLineData() in your own subclass.

See also getChar(), read(), and write().

func (*QIODevice) ReadLineData

func (this *QIODevice) ReadLineData(data string, maxlen int64) int64

Reads up to maxSize characters into data and returns the number of characters read.

This function is called by readLine(), and provides its base implementation, using getChar(). Buffered devices can improve the performance of readLine() by reimplementing this function.

readLine() appends a '\0' byte to data; readLineData() does not need to do this.

If you reimplement this function, be careful to return the correct value: it should return the number of bytes read in this line, including the terminating newline, or 0 if there is no line to be read at this point. If an error occurs, it should return -1 if and only if no bytes were read. Reading past EOF is considered an error.

func (*QIODevice) ReadLine_1

func (this *QIODevice) ReadLine_1(maxlen int64) *QByteArray

This function reads a line of ASCII characters from the device, up to a maximum of maxSize - 1 bytes, stores the characters in data, and returns the number of bytes read. If a line could not be read but no error ocurred, this function returns 0. If an error occurs, this function returns the length of what could be read, or -1 if nothing was read.

A terminating '\0' byte is always appended to data, so maxSize must be larger than 1.

Data is read until either of the following conditions are met:

The first '\n' character is read. maxSize - 1 bytes are read. The end of the device data is detected.

For example, the following code reads a line of characters from a file:

QFile file("box.txt");
if (file.open(QFile::ReadOnly)) {
    char buf[1024];
    qint64 lineLength = file.readLine(buf, sizeof(buf));
    if (lineLength != -1) {
        // the line is available in buf
    }
}

The newline character ('\n') is included in the buffer. If a newline is not encountered before maxSize - 1 bytes are read, a newline will not be inserted into the buffer. On windows newline characters are replaced with '\n'.

This function calls readLineData(), which is implemented using repeated calls to getChar(). You can provide a more efficient implementation by reimplementing readLineData() in your own subclass.

See also getChar(), read(), and write().

func (*QIODevice) ReadLine_1_

func (this *QIODevice) ReadLine_1_() *QByteArray

This function reads a line of ASCII characters from the device, up to a maximum of maxSize - 1 bytes, stores the characters in data, and returns the number of bytes read. If a line could not be read but no error ocurred, this function returns 0. If an error occurs, this function returns the length of what could be read, or -1 if nothing was read.

A terminating '\0' byte is always appended to data, so maxSize must be larger than 1.

Data is read until either of the following conditions are met:

The first '\n' character is read. maxSize - 1 bytes are read. The end of the device data is detected.

For example, the following code reads a line of characters from a file:

QFile file("box.txt");
if (file.open(QFile::ReadOnly)) {
    char buf[1024];
    qint64 lineLength = file.readLine(buf, sizeof(buf));
    if (lineLength != -1) {
        // the line is available in buf
    }
}

The newline character ('\n') is included in the buffer. If a newline is not encountered before maxSize - 1 bytes are read, a newline will not be inserted into the buffer. On windows newline characters are replaced with '\n'.

This function calls readLineData(), which is implemented using repeated calls to getChar(). You can provide a more efficient implementation by reimplementing readLineData() in your own subclass.

See also getChar(), read(), and write().

func (*QIODevice) Read_1

func (this *QIODevice) Read_1(maxlen int64) *QByteArray

Reads at most maxSize bytes from the device into data, and returns the number of bytes read. If an error occurs, such as when attempting to read from a device opened in WriteOnly mode, this function returns -1.

0 is returned when no more data is available for reading. However, reading past the end of the stream is considered an error, so this function returns -1 in those cases (that is, reading on a closed socket or after a process has died).

See also readData(), readLine(), and write().

func (*QIODevice) ReadyRead

func (this *QIODevice) ReadyRead()

This signal is emitted once every time new data is available for reading from the device's current read channel. It will only be emitted again once new data is available, such as when a new payload of network data has arrived on your network socket, or when a new block of data has been appended to your device.

readyRead() is not emitted recursively; if you reenter the event loop or call waitForReadyRead() inside a slot connected to the readyRead() signal, the signal will not be reemitted (although waitForReadyRead() may still return true).

Note for developers implementing classes derived from QIODevice: you should always emit readyRead() when new data has arrived (do not emit it only because there's data still to be read in your buffers). Do not emit readyRead() in other conditions.

See also bytesWritten().

func (*QIODevice) Reset

func (this *QIODevice) Reset() bool

Seeks to the start of input for random-access devices. Returns true on success; otherwise returns false (for example, if the device is not open).

Note that when using a QTextStream on a QFile, calling reset() on the QFile will not have the expected result because QTextStream buffers the file. Use the QTextStream::seek() function instead.

See also seek().

func (*QIODevice) RollbackTransaction

func (this *QIODevice) RollbackTransaction()

Rolls back a read transaction.

Restores the input stream to the point of the startTransaction() call. This function is commonly used to rollback the transaction when an incomplete read was detected prior to committing the transaction.

This function was introduced in Qt 5.7.

See also startTransaction() and commitTransaction().

func (*QIODevice) Seek

func (this *QIODevice) Seek(pos int64) bool

For random-access devices, this function sets the current position to pos, returning true on success, or false if an error occurred. For sequential devices, the default behavior is to produce a warning and return false.

When subclassing QIODevice, you must call QIODevice::seek() at the start of your function to ensure integrity with QIODevice's built-in buffer.

See also pos() and isSequential().

func (*QIODevice) SetCthis

func (this *QIODevice) SetCthis(cthis unsafe.Pointer)

func (*QIODevice) SetCurrentReadChannel

func (this *QIODevice) SetCurrentReadChannel(channel int)

Sets the current read channel of the QIODevice to the given channel. The current input channel is used by the functions read(), readAll(), readLine(), and getChar(). It also determines which channel triggers QIODevice to emit readyRead().

This function was introduced in Qt 5.7.

See also currentReadChannel(), readChannelCount(), and QProcess.

func (*QIODevice) SetCurrentWriteChannel

func (this *QIODevice) SetCurrentWriteChannel(channel int)

Sets the current write channel of the QIODevice to the given channel. The current output channel is used by the functions write(), putChar(). It also determines which channel triggers QIODevice to emit bytesWritten().

This function was introduced in Qt 5.7.

See also currentWriteChannel() and writeChannelCount().

func (*QIODevice) SetErrorString

func (this *QIODevice) SetErrorString(errorString string)

Sets the human readable description of the last device error that occurred to str.

See also errorString().

func (*QIODevice) SetOpenMode

func (this *QIODevice) SetOpenMode(openMode int)

Sets the OpenMode of the device to openMode. Call this function to set the open mode if the flags change after the device has been opened.

See also openMode() and OpenMode.

func (*QIODevice) SetTextModeEnabled

func (this *QIODevice) SetTextModeEnabled(enabled bool)

If enabled is true, this function sets the Text flag on the device; otherwise the Text flag is removed. This feature is useful for classes that provide custom end-of-line handling on a QIODevice.

The IO device should be opened before calling this function.

See also isTextModeEnabled(), open(), and setOpenMode().

func (*QIODevice) Size

func (this *QIODevice) Size() int64

For open random-access devices, this function returns the size of the device. For open sequential devices, bytesAvailable() is returned.

If the device is closed, the size returned will not reflect the actual size of the device.

See also isSequential() and pos().

func (*QIODevice) Skip

func (this *QIODevice) Skip(maxSize int64) int64

Skips up to maxSize bytes from the device. Returns the number of bytes actually skipped, or -1 on error.

This function does not wait and only discards the data that is already available for reading.

If the device is opened in text mode, end-of-line terminators are translated to '\n' symbols and count as a single byte identically to the read() and peek() behavior.

This function works for all devices, including sequential ones that cannot seek(). It is optimized to skip unwanted data after a peek() call.

For random-access devices, skip() can be used to seek forward from the current position. Negative maxSize values are not allowed.

This function was introduced in Qt 5.10.

See also peek(), seek(), and read().

func (*QIODevice) StartTransaction

func (this *QIODevice) StartTransaction()

Starts a new read transaction on the device.

Defines a restorable point within the sequence of read operations. For sequential devices, read data will be duplicated internally to allow recovery in case of incomplete reads. For random-access devices, this function saves the current position. Call commitTransaction() or rollbackTransaction() to finish the transaction.

Note: Nesting transactions is not supported.

This function was introduced in Qt 5.7.

See also commitTransaction() and rollbackTransaction().

func (*QIODevice) UngetChar

func (this *QIODevice) UngetChar(c byte)

Puts the character c back into the device, and decrements the current position unless the position is 0. This function is usually called to "undo" a getChar() operation, such as when writing a backtracking parser.

If c was not previously read from the device, the behavior is undefined.

Note: This function is not available while a transaction is in progress.

func (*QIODevice) WaitForBytesWritten

func (this *QIODevice) WaitForBytesWritten(msecs int) bool

For buffered devices, this function waits until a payload of buffered written data has been written to the device and the bytesWritten() signal has been emitted, or until msecs milliseconds have passed. If msecs is -1, this function will not time out. For unbuffered devices, it returns immediately.

Returns true if a payload of data was written to the device; otherwise returns false (i.e. if the operation timed out, or if an error occurred).

This function can operate without an event loop. It is useful when writing non-GUI applications and when performing I/O operations in a non-GUI thread.

If called from within a slot connected to the bytesWritten() signal, bytesWritten() will not be reemitted.

Reimplement this function to provide a blocking API for a custom device. The default implementation does nothing, and returns false.

Warning: Calling this function from the main (GUI) thread might cause your user interface to freeze.

See also waitForReadyRead().

func (*QIODevice) WaitForReadyRead

func (this *QIODevice) WaitForReadyRead(msecs int) bool

Blocks until new data is available for reading and the readyRead() signal has been emitted, or until msecs milliseconds have passed. If msecs is -1, this function will not time out.

Returns true if new data is available for reading; otherwise returns false (if the operation timed out or if an error occurred).

This function can operate without an event loop. It is useful when writing non-GUI applications and when performing I/O operations in a non-GUI thread.

If called from within a slot connected to the readyRead() signal, readyRead() will not be reemitted.

Reimplement this function to provide a blocking API for a custom device. The default implementation does nothing, and returns false.

Warning: Calling this function from the main (GUI) thread might cause your user interface to freeze.

See also waitForBytesWritten().

func (*QIODevice) Write

func (this *QIODevice) Write(data string, len_ int64) int64

Writes at most maxSize bytes of data from data to the device. Returns the number of bytes that were actually written, or -1 if an error occurred.

See also read() and writeData().

func (*QIODevice) WriteChannelCount

func (this *QIODevice) WriteChannelCount() int

Returns the number of available write channels if the device is open; otherwise returns 0.

This function was introduced in Qt 5.7.

See also readChannelCount().

func (*QIODevice) WriteData

func (this *QIODevice) WriteData(data string, len_ int64) int64

Writes up to maxSize bytes from data to the device. Returns the number of bytes written, or -1 if an error occurred.

This function is called by QIODevice. Reimplement this function when creating a subclass of QIODevice.

When reimplementing this function it is important that this function writes all the data available before returning. This is required in order for QDataStream to be able to operate on the class. QDataStream assumes all the information was written and therefore does not retry writing if there was a problem.

See also read() and write().

func (*QIODevice) Write_1

func (this *QIODevice) Write_1(data string) int64

Writes at most maxSize bytes of data from data to the device. Returns the number of bytes that were actually written, or -1 if an error occurred.

See also read() and writeData().

func (*QIODevice) Write_2

func (this *QIODevice) Write_2(data QByteArray_ITF) int64

Writes at most maxSize bytes of data from data to the device. Returns the number of bytes that were actually written, or -1 if an error occurred.

See also read() and writeData().

type QIODevice_ITF

type QIODevice_ITF interface {
	QObject_ITF
	QIODevice_PTR() *QIODevice
}

type QIODevice__OpenModeFlag

type QIODevice__OpenModeFlag = int
const QIODevice__Append QIODevice__OpenModeFlag = 4
const QIODevice__NotOpen QIODevice__OpenModeFlag = 0
const QIODevice__ReadOnly QIODevice__OpenModeFlag = 1
const QIODevice__ReadWrite QIODevice__OpenModeFlag = 3
const QIODevice__Text QIODevice__OpenModeFlag = 16
const QIODevice__Truncate QIODevice__OpenModeFlag = 8
const QIODevice__Unbuffered QIODevice__OpenModeFlag = 32
const QIODevice__WriteOnly QIODevice__OpenModeFlag = 2

type QIdentityProxyModel

type QIdentityProxyModel struct {
	*QAbstractProxyModel
}

func NewQIdentityProxyModel

func NewQIdentityProxyModel(parent QObject_ITF) *QIdentityProxyModel

Constructs an identity model with the given parent.

func NewQIdentityProxyModelFromPointer

func NewQIdentityProxyModelFromPointer(cthis unsafe.Pointer) *QIdentityProxyModel

func NewQIdentityProxyModel__

func NewQIdentityProxyModel__() *QIdentityProxyModel

Constructs an identity model with the given parent.

func (*QIdentityProxyModel) ColumnCount

func (this *QIdentityProxyModel) ColumnCount(parent QModelIndex_ITF) int

Reimplemented from QAbstractItemModel::columnCount().

func (*QIdentityProxyModel) ColumnCount__

func (this *QIdentityProxyModel) ColumnCount__() int

Reimplemented from QAbstractItemModel::columnCount().

func (*QIdentityProxyModel) DropMimeData

func (this *QIdentityProxyModel) DropMimeData(data QMimeData_ITF, action int, row int, column int, parent QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::dropMimeData().

func (*QIdentityProxyModel) GetCthis

func (this *QIdentityProxyModel) GetCthis() unsafe.Pointer

func (*QIdentityProxyModel) HeaderData

func (this *QIdentityProxyModel) HeaderData(section int, orientation int, role int) *QVariant

Reimplemented from QAbstractItemModel::headerData().

func (*QIdentityProxyModel) HeaderData__

func (this *QIdentityProxyModel) HeaderData__(section int, orientation int) *QVariant

Reimplemented from QAbstractItemModel::headerData().

func (*QIdentityProxyModel) Index

func (this *QIdentityProxyModel) Index(row int, column int, parent QModelIndex_ITF) *QModelIndex

Reimplemented from QAbstractItemModel::index().

func (*QIdentityProxyModel) Index__

func (this *QIdentityProxyModel) Index__(row int, column int) *QModelIndex

Reimplemented from QAbstractItemModel::index().

func (*QIdentityProxyModel) InsertColumns

func (this *QIdentityProxyModel) InsertColumns(column int, count int, parent QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::insertColumns().

func (*QIdentityProxyModel) InsertColumns__

func (this *QIdentityProxyModel) InsertColumns__(column int, count int) bool

Reimplemented from QAbstractItemModel::insertColumns().

func (*QIdentityProxyModel) InsertRows

func (this *QIdentityProxyModel) InsertRows(row int, count int, parent QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::insertRows().

func (*QIdentityProxyModel) InsertRows__

func (this *QIdentityProxyModel) InsertRows__(row int, count int) bool

Reimplemented from QAbstractItemModel::insertRows().

func (*QIdentityProxyModel) MapFromSource

func (this *QIdentityProxyModel) MapFromSource(sourceIndex QModelIndex_ITF) *QModelIndex

Reimplemented from QAbstractProxyModel::mapFromSource().

func (*QIdentityProxyModel) MapSelectionFromSource

func (this *QIdentityProxyModel) MapSelectionFromSource(selection QItemSelection_ITF) *QItemSelection

Reimplemented from QAbstractProxyModel::mapSelectionFromSource().

func (*QIdentityProxyModel) MapSelectionToSource

func (this *QIdentityProxyModel) MapSelectionToSource(selection QItemSelection_ITF) *QItemSelection

Reimplemented from QAbstractProxyModel::mapSelectionToSource().

func (*QIdentityProxyModel) MapToSource

func (this *QIdentityProxyModel) MapToSource(proxyIndex QModelIndex_ITF) *QModelIndex

Reimplemented from QAbstractProxyModel::mapToSource().

func (*QIdentityProxyModel) Match

func (this *QIdentityProxyModel) Match(start QModelIndex_ITF, role int, value QVariant_ITF, hits int, flags int) *QModelIndexList

Reimplemented from QAbstractItemModel::match().

func (*QIdentityProxyModel) Match__

func (this *QIdentityProxyModel) Match__(start QModelIndex_ITF, role int, value QVariant_ITF) *QModelIndexList

Reimplemented from QAbstractItemModel::match().

func (*QIdentityProxyModel) Match__1

func (this *QIdentityProxyModel) Match__1(start QModelIndex_ITF, role int, value QVariant_ITF, hits int) *QModelIndexList

Reimplemented from QAbstractItemModel::match().

func (*QIdentityProxyModel) MetaObject

func (this *QIdentityProxyModel) MetaObject() *QMetaObject

func (*QIdentityProxyModel) NewFromPointer

func (*QIdentityProxyModel) NewFromPointer(cthis unsafe.Pointer) *QIdentityProxyModel

func (*QIdentityProxyModel) Parent

func (this *QIdentityProxyModel) Parent(child QModelIndex_ITF) *QModelIndex

Reimplemented from QAbstractItemModel::parent().

func (*QIdentityProxyModel) QIdentityProxyModel_PTR

func (ptr *QIdentityProxyModel) QIdentityProxyModel_PTR() *QIdentityProxyModel

func (*QIdentityProxyModel) RemoveColumns

func (this *QIdentityProxyModel) RemoveColumns(column int, count int, parent QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::removeColumns().

func (*QIdentityProxyModel) RemoveColumns__

func (this *QIdentityProxyModel) RemoveColumns__(column int, count int) bool

Reimplemented from QAbstractItemModel::removeColumns().

func (*QIdentityProxyModel) RemoveRows

func (this *QIdentityProxyModel) RemoveRows(row int, count int, parent QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::removeRows().

func (*QIdentityProxyModel) RemoveRows__

func (this *QIdentityProxyModel) RemoveRows__(row int, count int) bool

Reimplemented from QAbstractItemModel::removeRows().

func (*QIdentityProxyModel) RowCount

func (this *QIdentityProxyModel) RowCount(parent QModelIndex_ITF) int

Reimplemented from QAbstractItemModel::rowCount().

func (*QIdentityProxyModel) RowCount__

func (this *QIdentityProxyModel) RowCount__() int

Reimplemented from QAbstractItemModel::rowCount().

func (*QIdentityProxyModel) SetCthis

func (this *QIdentityProxyModel) SetCthis(cthis unsafe.Pointer)

func (*QIdentityProxyModel) SetSourceModel

func (this *QIdentityProxyModel) SetSourceModel(sourceModel QAbstractItemModel_ITF)

Reimplemented from QAbstractProxyModel::setSourceModel().

func (*QIdentityProxyModel) Sibling

func (this *QIdentityProxyModel) Sibling(row int, column int, idx QModelIndex_ITF) *QModelIndex

Reimplemented from QAbstractItemModel::sibling().

type QIdentityProxyModel_ITF

type QIdentityProxyModel_ITF interface {
	QAbstractProxyModel_ITF
	QIdentityProxyModel_PTR() *QIdentityProxyModel
}

type QIncompatibleFlag

type QIncompatibleFlag struct {
	*qtrt.CObject
}

func NewQIncompatibleFlag

func NewQIncompatibleFlag(i int) *QIncompatibleFlag

func NewQIncompatibleFlagFromPointer

func NewQIncompatibleFlagFromPointer(cthis unsafe.Pointer) *QIncompatibleFlag

func (*QIncompatibleFlag) GetCthis

func (this *QIncompatibleFlag) GetCthis() unsafe.Pointer

func (*QIncompatibleFlag) NewFromPointer

func (*QIncompatibleFlag) NewFromPointer(cthis unsafe.Pointer) *QIncompatibleFlag

func (*QIncompatibleFlag) QIncompatibleFlag_PTR

func (ptr *QIncompatibleFlag) QIncompatibleFlag_PTR() *QIncompatibleFlag

func (*QIncompatibleFlag) SetCthis

func (this *QIncompatibleFlag) SetCthis(cthis unsafe.Pointer)

type QIncompatibleFlag_ITF

type QIncompatibleFlag_ITF interface {
	QIncompatibleFlag_PTR() *QIncompatibleFlag
}

type QItemSelection

type QItemSelection struct {
	*qtrt.CObject
}

func NewQItemSelection

func NewQItemSelection() *QItemSelection

func NewQItemSelectionFromPointer

func NewQItemSelectionFromPointer(cthis unsafe.Pointer) *QItemSelection

func NewQItemSelection_1

func NewQItemSelection_1(topLeft QModelIndex_ITF, bottomRight QModelIndex_ITF) *QItemSelection

func (*QItemSelection) Contains

func (this *QItemSelection) Contains(index QModelIndex_ITF) bool

func (*QItemSelection) GetCthis

func (this *QItemSelection) GetCthis() unsafe.Pointer

func (*QItemSelection) Indexes

func (this *QItemSelection) Indexes() *QModelIndexList

func (*QItemSelection) Merge

func (this *QItemSelection) Merge(other QItemSelection_ITF, command int)

func (*QItemSelection) NewFromPointer

func (*QItemSelection) NewFromPointer(cthis unsafe.Pointer) *QItemSelection

func (*QItemSelection) QItemSelection_PTR

func (ptr *QItemSelection) QItemSelection_PTR() *QItemSelection

func (*QItemSelection) Select

func (this *QItemSelection) Select(topLeft QModelIndex_ITF, bottomRight QModelIndex_ITF)

Selects the model item index using the specified command, and emits selectionChanged().

See also QItemSelectionModel::SelectionFlags.

func (*QItemSelection) SetCthis

func (this *QItemSelection) SetCthis(cthis unsafe.Pointer)

func (*QItemSelection) Split

type QItemSelectionModel

type QItemSelectionModel struct {
	*QObject
}

func NewQItemSelectionModel

func NewQItemSelectionModel(model QAbstractItemModel_ITF) *QItemSelectionModel

Constructs a selection model that operates on the specified item model.

func NewQItemSelectionModelFromPointer

func NewQItemSelectionModelFromPointer(cthis unsafe.Pointer) *QItemSelectionModel

func NewQItemSelectionModel_1

func NewQItemSelectionModel_1(model QAbstractItemModel_ITF, parent QObject_ITF) *QItemSelectionModel

Constructs a selection model that operates on the specified item model.

func NewQItemSelectionModel__

func NewQItemSelectionModel__() *QItemSelectionModel

Constructs a selection model that operates on the specified item model.

func (*QItemSelectionModel) Clear

func (this *QItemSelectionModel) Clear()

Clears the selection model. Emits selectionChanged() and currentChanged().

func (*QItemSelectionModel) ClearCurrentIndex

func (this *QItemSelectionModel) ClearCurrentIndex()

Clears the current index. Emits currentChanged().

func (*QItemSelectionModel) ClearSelection

func (this *QItemSelectionModel) ClearSelection()

Clears the selection in the selection model. Emits selectionChanged().

This function was introduced in Qt 4.2.

func (*QItemSelectionModel) ColumnIntersectsSelection

func (this *QItemSelectionModel) ColumnIntersectsSelection(column int, parent QModelIndex_ITF) bool

Returns true if there are any items selected in the column with the given parent.

func (*QItemSelectionModel) CurrentChanged

func (this *QItemSelectionModel) CurrentChanged(current QModelIndex_ITF, previous QModelIndex_ITF)

This signal is emitted whenever the current item changes. The previous model item index is replaced by the current index as the selection's current item.

Note that this signal will not be emitted when the item model is reset.

See also currentIndex(), setCurrentIndex(), and selectionChanged().

func (*QItemSelectionModel) CurrentColumnChanged

func (this *QItemSelectionModel) CurrentColumnChanged(current QModelIndex_ITF, previous QModelIndex_ITF)

This signal is emitted if the current item changes and its column is different to the column of the previous current item.

Note that this signal will not be emitted when the item model is reset.

See also currentChanged(), currentRowChanged(), currentIndex(), and setCurrentIndex().

func (*QItemSelectionModel) CurrentIndex

func (this *QItemSelectionModel) CurrentIndex() *QModelIndex

Returns the model item index for the current item, or an invalid index if there is no current item.

See also setCurrentIndex().

func (*QItemSelectionModel) CurrentRowChanged

func (this *QItemSelectionModel) CurrentRowChanged(current QModelIndex_ITF, previous QModelIndex_ITF)

This signal is emitted if the current item changes and its row is different to the row of the previous current item.

Note that this signal will not be emitted when the item model is reset.

See also currentChanged(), currentColumnChanged(), currentIndex(), and setCurrentIndex().

func (*QItemSelectionModel) EmitSelectionChanged

func (this *QItemSelectionModel) EmitSelectionChanged(newSelection QItemSelection_ITF, oldSelection QItemSelection_ITF)

Compares the two selections newSelection and oldSelection and emits selectionChanged() with the deselected and selected items.

func (*QItemSelectionModel) GetCthis

func (this *QItemSelectionModel) GetCthis() unsafe.Pointer

func (*QItemSelectionModel) HasSelection

func (this *QItemSelectionModel) HasSelection() bool

Returns true if the selection model contains any selection ranges; otherwise returns false.

This function was introduced in Qt 4.2.

func (*QItemSelectionModel) InheritEmitSelectionChanged

func (this *QItemSelectionModel) InheritEmitSelectionChanged(f func(newSelection *QItemSelection, oldSelection *QItemSelection))

void emitSelectionChanged(const class QItemSelection &, const class QItemSelection &)

func (*QItemSelectionModel) IsColumnSelected

func (this *QItemSelectionModel) IsColumnSelected(column int, parent QModelIndex_ITF) bool

Returns true if all items are selected in the column with the given parent.

Note that this function is usually faster than calling isSelected() on all items in the same column and that unselectable items are ignored.

func (*QItemSelectionModel) IsRowSelected

func (this *QItemSelectionModel) IsRowSelected(row int, parent QModelIndex_ITF) bool

Returns true if all items are selected in the row with the given parent.

Note that this function is usually faster than calling isSelected() on all items in the same row and that unselectable items are ignored.

func (*QItemSelectionModel) IsSelected

func (this *QItemSelectionModel) IsSelected(index QModelIndex_ITF) bool

Returns true if the given model item index is selected.

func (*QItemSelectionModel) MetaObject

func (this *QItemSelectionModel) MetaObject() *QMetaObject

func (*QItemSelectionModel) Model

func (this *QItemSelectionModel) Model() *QAbstractItemModel

Returns the item model operated on by the selection model.

See also setModel().

func (*QItemSelectionModel) ModelChanged

func (this *QItemSelectionModel) ModelChanged(model QAbstractItemModel_ITF)

This signal is emitted when the model is successfully set with setModel().

This function was introduced in Qt 5.5.

See also model() and setModel().

func (*QItemSelectionModel) Model_1

func (this *QItemSelectionModel) Model_1() *QAbstractItemModel

Returns the item model operated on by the selection model.

See also setModel().

func (*QItemSelectionModel) NewFromPointer

func (*QItemSelectionModel) NewFromPointer(cthis unsafe.Pointer) *QItemSelectionModel

func (*QItemSelectionModel) QItemSelectionModel_PTR

func (ptr *QItemSelectionModel) QItemSelectionModel_PTR() *QItemSelectionModel

func (*QItemSelectionModel) Reset

func (this *QItemSelectionModel) Reset()

Clears the selection model. Does not emit any signals.

func (*QItemSelectionModel) RowIntersectsSelection

func (this *QItemSelectionModel) RowIntersectsSelection(row int, parent QModelIndex_ITF) bool

Returns true if there are any items selected in the row with the given parent.

func (*QItemSelectionModel) Select

func (this *QItemSelectionModel) Select(index QModelIndex_ITF, command int)

Selects the model item index using the specified command, and emits selectionChanged().

See also QItemSelectionModel::SelectionFlags.

func (*QItemSelectionModel) Select_1

func (this *QItemSelectionModel) Select_1(selection QItemSelection_ITF, command int)

Selects the model item index using the specified command, and emits selectionChanged().

See also QItemSelectionModel::SelectionFlags.

func (*QItemSelectionModel) SelectedColumns

func (this *QItemSelectionModel) SelectedColumns(row int) *QModelIndexList

Returns the indexes in the given row for columns where all rows are selected.

This function was introduced in Qt 4.2.

See also selectedIndexes() and selectedRows().

func (*QItemSelectionModel) SelectedColumns__

func (this *QItemSelectionModel) SelectedColumns__() *QModelIndexList

Returns the indexes in the given row for columns where all rows are selected.

This function was introduced in Qt 4.2.

See also selectedIndexes() and selectedRows().

func (*QItemSelectionModel) SelectedIndexes

func (this *QItemSelectionModel) SelectedIndexes() *QModelIndexList

Returns a list of all selected model item indexes. The list contains no duplicates, and is not sorted.

Note: Getter function for property selectedIndexes.

func (*QItemSelectionModel) SelectedRows

func (this *QItemSelectionModel) SelectedRows(column int) *QModelIndexList

Returns the indexes in the given column for the rows where all columns are selected.

This function was introduced in Qt 4.2.

See also selectedIndexes() and selectedColumns().

func (*QItemSelectionModel) SelectedRows__

func (this *QItemSelectionModel) SelectedRows__() *QModelIndexList

Returns the indexes in the given column for the rows where all columns are selected.

This function was introduced in Qt 4.2.

See also selectedIndexes() and selectedColumns().

func (*QItemSelectionModel) Selection

func (this *QItemSelectionModel) Selection() *QItemSelection

Returns the selection ranges stored in the selection model.

func (*QItemSelectionModel) SelectionChanged

func (this *QItemSelectionModel) SelectionChanged(selected QItemSelection_ITF, deselected QItemSelection_ITF)

This signal is emitted whenever the selection changes. The change in the selection is represented as an item selection of deselected items and an item selection of selected items.

Note the that the current index changes independently from the selection. Also note that this signal will not be emitted when the item model is reset.

Note: Notifier signal for property selectedIndexes.

See also select() and currentChanged().

func (*QItemSelectionModel) SetCthis

func (this *QItemSelectionModel) SetCthis(cthis unsafe.Pointer)

func (*QItemSelectionModel) SetCurrentIndex

func (this *QItemSelectionModel) SetCurrentIndex(index QModelIndex_ITF, command int)

Sets the model item index to be the current item, and emits currentChanged(). The current item is used for keyboard navigation and focus indication; it is independent of any selected items, although a selected item can also be the current item.

Depending on the specified command, the index can also become part of the current selection.

See also currentIndex() and select().

func (*QItemSelectionModel) SetModel

func (this *QItemSelectionModel) SetModel(model QAbstractItemModel_ITF)

Sets the model to model. The modelChanged() signal will be emitted.

This function was introduced in Qt 5.5.

See also model() and modelChanged().

type QItemSelectionModel_ITF

type QItemSelectionModel_ITF interface {
	QObject_ITF
	QItemSelectionModel_PTR() *QItemSelectionModel
}

type QItemSelectionModel__SelectionFlag

type QItemSelectionModel__SelectionFlag = int
const QItemSelectionModel__Clear QItemSelectionModel__SelectionFlag = 1
const QItemSelectionModel__ClearAndSelect QItemSelectionModel__SelectionFlag = 3
const QItemSelectionModel__Columns QItemSelectionModel__SelectionFlag = 64
const QItemSelectionModel__Current QItemSelectionModel__SelectionFlag = 16
const QItemSelectionModel__Deselect QItemSelectionModel__SelectionFlag = 4
const QItemSelectionModel__NoUpdate QItemSelectionModel__SelectionFlag = 0
const QItemSelectionModel__Rows QItemSelectionModel__SelectionFlag = 32
const QItemSelectionModel__Select QItemSelectionModel__SelectionFlag = 2
const QItemSelectionModel__SelectCurrent QItemSelectionModel__SelectionFlag = 18
const QItemSelectionModel__Toggle QItemSelectionModel__SelectionFlag = 8
const QItemSelectionModel__ToggleCurrent QItemSelectionModel__SelectionFlag = 24

type QItemSelectionRange

type QItemSelectionRange struct {
	*qtrt.CObject
}

func NewQItemSelectionRange

func NewQItemSelectionRange() *QItemSelectionRange

func NewQItemSelectionRangeFromPointer

func NewQItemSelectionRangeFromPointer(cthis unsafe.Pointer) *QItemSelectionRange

func NewQItemSelectionRange_1

func NewQItemSelectionRange_1(topL QModelIndex_ITF, bottomR QModelIndex_ITF) *QItemSelectionRange

func NewQItemSelectionRange_2

func NewQItemSelectionRange_2(index QModelIndex_ITF) *QItemSelectionRange

func (*QItemSelectionRange) Bottom

func (this *QItemSelectionRange) Bottom() int

func (*QItemSelectionRange) BottomRight

func (this *QItemSelectionRange) BottomRight() *QPersistentModelIndex

func (*QItemSelectionRange) Contains

func (this *QItemSelectionRange) Contains(index QModelIndex_ITF) bool

func (*QItemSelectionRange) Contains_1

func (this *QItemSelectionRange) Contains_1(row int, column int, parentIndex QModelIndex_ITF) bool

func (*QItemSelectionRange) GetCthis

func (this *QItemSelectionRange) GetCthis() unsafe.Pointer

func (*QItemSelectionRange) Height

func (this *QItemSelectionRange) Height() int

func (*QItemSelectionRange) Indexes

func (this *QItemSelectionRange) Indexes() *QModelIndexList

func (*QItemSelectionRange) Intersected

func (*QItemSelectionRange) Intersects

func (this *QItemSelectionRange) Intersects(other QItemSelectionRange_ITF) bool

func (*QItemSelectionRange) IsEmpty

func (this *QItemSelectionRange) IsEmpty() bool

func (*QItemSelectionRange) IsValid

func (this *QItemSelectionRange) IsValid() bool

func (*QItemSelectionRange) Left

func (this *QItemSelectionRange) Left() int

func (*QItemSelectionRange) Model

func (this *QItemSelectionRange) Model() *QAbstractItemModel

Returns the item model operated on by the selection model.

See also setModel().

func (*QItemSelectionRange) NewFromPointer

func (*QItemSelectionRange) NewFromPointer(cthis unsafe.Pointer) *QItemSelectionRange

func (*QItemSelectionRange) Operator_equal

func (this *QItemSelectionRange) Operator_equal(other unsafe.Pointer) *QItemSelectionRange

func (*QItemSelectionRange) Operator_equal_1

func (this *QItemSelectionRange) Operator_equal_1(other QItemSelectionRange_ITF) *QItemSelectionRange

func (*QItemSelectionRange) Operator_equal_equal

func (this *QItemSelectionRange) Operator_equal_equal(other QItemSelectionRange_ITF) bool

func (*QItemSelectionRange) Operator_less_than

func (this *QItemSelectionRange) Operator_less_than(other QItemSelectionRange_ITF) bool

func (*QItemSelectionRange) Operator_not_equal

func (this *QItemSelectionRange) Operator_not_equal(other QItemSelectionRange_ITF) bool

func (*QItemSelectionRange) Parent

func (this *QItemSelectionRange) Parent() *QModelIndex

func (*QItemSelectionRange) QItemSelectionRange_PTR

func (ptr *QItemSelectionRange) QItemSelectionRange_PTR() *QItemSelectionRange

func (*QItemSelectionRange) Right

func (this *QItemSelectionRange) Right() int

func (*QItemSelectionRange) SetCthis

func (this *QItemSelectionRange) SetCthis(cthis unsafe.Pointer)

func (*QItemSelectionRange) Swap

func (this *QItemSelectionRange) Swap(other QItemSelectionRange_ITF)

func (*QItemSelectionRange) Top

func (this *QItemSelectionRange) Top() int

func (*QItemSelectionRange) TopLeft

func (this *QItemSelectionRange) TopLeft() *QPersistentModelIndex

func (*QItemSelectionRange) Width

func (this *QItemSelectionRange) Width() int

type QItemSelectionRange_ITF

type QItemSelectionRange_ITF interface {
	QItemSelectionRange_PTR() *QItemSelectionRange
}

type QItemSelection_ITF

type QItemSelection_ITF interface {
	QItemSelection_PTR() *QItemSelection
}

type QJsonArray

type QJsonArray struct {
	*qtrt.CObject
}

func NewQJsonArray

func NewQJsonArray() *QJsonArray

Creates an empty array.

func NewQJsonArrayFromPointer

func NewQJsonArrayFromPointer(cthis unsafe.Pointer) *QJsonArray

func QJsonArray_FromStringList

func QJsonArray_FromStringList(list QStringList_ITF) *QJsonArray

func (*QJsonArray) At

func (this *QJsonArray) At(i int) *QJsonValue

Returns a QJsonValue representing the value for index i.

The returned QJsonValue is Undefined, if i is out of bounds.

func (*QJsonArray) Begin

func (this *QJsonArray) Begin() unsafe.Pointer

Returns an STL-style iterator pointing to the first item in the array.

See also constBegin() and end().

func (*QJsonArray) Begin_1

func (this *QJsonArray) Begin_1() unsafe.Pointer

Returns an STL-style iterator pointing to the first item in the array.

See also constBegin() and end().

func (*QJsonArray) ConstBegin

func (this *QJsonArray) ConstBegin() unsafe.Pointer

Returns a const STL-style iterator pointing to the first item in the array.

See also begin() and constEnd().

func (*QJsonArray) ConstEnd

func (this *QJsonArray) ConstEnd() unsafe.Pointer

Returns a const STL-style iterator pointing to the imaginary item after the last item in the array.

See also constBegin() and end().

func (*QJsonArray) Contains

func (this *QJsonArray) Contains(element QJsonValue_ITF) bool

Returns true if the array contains an occurrence of value, otherwise false.

See also count().

func (*QJsonArray) Count

func (this *QJsonArray) Count() int

Same as size().

See also size().

func (*QJsonArray) Empty

func (this *QJsonArray) Empty() bool

This function is provided for STL compatibility. It is equivalent to isEmpty() and returns true if the array is empty.

func (*QJsonArray) End

func (this *QJsonArray) End() unsafe.Pointer

Returns an STL-style iterator pointing to the imaginary item after the last item in the array.

See also begin() and constEnd().

func (*QJsonArray) End_1

func (this *QJsonArray) End_1() unsafe.Pointer

Returns an STL-style iterator pointing to the imaginary item after the last item in the array.

See also begin() and constEnd().

func (*QJsonArray) First

func (this *QJsonArray) First() *QJsonValue

Returns the first value stored in the array.

Same as at(0).

See also at().

func (*QJsonArray) FromStringList

func (this *QJsonArray) FromStringList(list QStringList_ITF) *QJsonArray

Converts the string list list to a QJsonArray.

The values in list will be converted to JSON values.

See also toVariantList() and QJsonValue::fromVariant().

func (*QJsonArray) GetCthis

func (this *QJsonArray) GetCthis() unsafe.Pointer

func (*QJsonArray) IsEmpty

func (this *QJsonArray) IsEmpty() bool

Returns true if the object is empty. This is the same as size() == 0.

See also size().

func (*QJsonArray) Last

func (this *QJsonArray) Last() *QJsonValue

Returns the last value stored in the array.

Same as at(size() - 1).

See also at().

func (*QJsonArray) NewFromPointer

func (*QJsonArray) NewFromPointer(cthis unsafe.Pointer) *QJsonArray

func (*QJsonArray) Operator_add

func (this *QJsonArray) Operator_add(v QJsonValue_ITF) *QJsonArray

func (*QJsonArray) Operator_add_equal

func (this *QJsonArray) Operator_add_equal(v QJsonValue_ITF) *QJsonArray

func (*QJsonArray) Operator_equal

func (this *QJsonArray) Operator_equal(other QJsonArray_ITF) *QJsonArray

func (*QJsonArray) Operator_equal_1

func (this *QJsonArray) Operator_equal_1(other unsafe.Pointer) *QJsonArray

func (*QJsonArray) Operator_equal_equal

func (this *QJsonArray) Operator_equal_equal(other QJsonArray_ITF) bool

func (*QJsonArray) Operator_get_index

func (this *QJsonArray) Operator_get_index(i int) *QJsonValueRef

func (*QJsonArray) Operator_get_index_1

func (this *QJsonArray) Operator_get_index_1(i int) *QJsonValue

func (*QJsonArray) Operator_left_shift

func (this *QJsonArray) Operator_left_shift(v QJsonValue_ITF) *QJsonArray

func (*QJsonArray) Operator_not_equal

func (this *QJsonArray) Operator_not_equal(other QJsonArray_ITF) bool

func (*QJsonArray) Pop_back

func (this *QJsonArray) Pop_back()

This function is provided for STL compatibility. It is equivalent to removeLast(). The array must not be empty. If the array can be empty, call isEmpty() before calling this function.

func (*QJsonArray) Pop_front

func (this *QJsonArray) Pop_front()

This function is provided for STL compatibility. It is equivalent to removeFirst(). The array must not be empty. If the array can be empty, call isEmpty() before calling this function.

func (*QJsonArray) Push_back

func (this *QJsonArray) Push_back(t QJsonValue_ITF)

This function is provided for STL compatibility. It is equivalent to append(value) and will append value to the array.

func (*QJsonArray) Push_front

func (this *QJsonArray) Push_front(t QJsonValue_ITF)

This function is provided for STL compatibility. It is equivalent to prepend(value) and will prepend value to the array.

func (*QJsonArray) QJsonArray_PTR

func (ptr *QJsonArray) QJsonArray_PTR() *QJsonArray

func (*QJsonArray) RemoveAt

func (this *QJsonArray) RemoveAt(i int)

Removes the value at index position i. i must be a valid index position in the array (i.e., 0 <= i < size()).

See also insert() and replace().

func (*QJsonArray) RemoveFirst

func (this *QJsonArray) RemoveFirst()

Removes the first item in the array. Calling this function is equivalent to calling removeAt(0). The array must not be empty. If the array can be empty, call isEmpty() before calling this function.

See also removeAt() and removeLast().

func (*QJsonArray) RemoveLast

func (this *QJsonArray) RemoveLast()

Removes the last item in the array. Calling this function is equivalent to calling removeAt(size() - 1). The array must not be empty. If the array can be empty, call isEmpty() before calling this function.

See also removeAt() and removeFirst().

func (*QJsonArray) Replace

func (this *QJsonArray) Replace(i int, value QJsonValue_ITF)

Replaces the item at index position i with value. i must be a valid index position in the array (i.e., 0 <= i < size()).

See also operator[]() and removeAt().

func (*QJsonArray) SetCthis

func (this *QJsonArray) SetCthis(cthis unsafe.Pointer)

func (*QJsonArray) Size

func (this *QJsonArray) Size() int

Returns the number of values stored in the array.

func (*QJsonArray) Swap

func (this *QJsonArray) Swap(other QJsonArray_ITF)

Swaps the array other with this. This operation is very fast and never fails.

This function was introduced in Qt 5.10.

func (*QJsonArray) TakeAt

func (this *QJsonArray) TakeAt(i int) *QJsonValue

Removes the item at index position i and returns it. i must be a valid index position in the array (i.e., 0 <= i < size()).

If you don't use the return value, removeAt() is more efficient.

See also removeAt().

func (*QJsonArray) ToVariantList

func (this *QJsonArray) ToVariantList() *QVariantList

Converts this object to a QVariantList.

Returns the created map.

type QJsonArray_ITF

type QJsonArray_ITF interface {
	QJsonArray_PTR() *QJsonArray
}

type QJsonDocument

type QJsonDocument struct {
	*qtrt.CObject
}

func NewQJsonDocument

func NewQJsonDocument() *QJsonDocument

Constructs an empty and invalid document.

func NewQJsonDocumentFromPointer

func NewQJsonDocumentFromPointer(cthis unsafe.Pointer) *QJsonDocument

func NewQJsonDocument_1

func NewQJsonDocument_1(object QJsonObject_ITF) *QJsonDocument

Constructs an empty and invalid document.

func NewQJsonDocument_2

func NewQJsonDocument_2(array QJsonArray_ITF) *QJsonDocument

Constructs an empty and invalid document.

func QJsonDocument_FromBinaryData

func QJsonDocument_FromBinaryData(data QByteArray_ITF, validation int) *QJsonDocument

func QJsonDocument_FromRawData

func QJsonDocument_FromRawData(data string, size int, validation int) *QJsonDocument

func QJsonDocument_FromVariant

func QJsonDocument_FromVariant(variant QVariant_ITF) *QJsonDocument

func (*QJsonDocument) Array

func (this *QJsonDocument) Array() *QJsonArray

Returns the QJsonArray contained in the document.

Returns an empty array if the document contains an object.

See also isArray(), object(), and setArray().

func (*QJsonDocument) FromBinaryData

func (this *QJsonDocument) FromBinaryData(data QByteArray_ITF, validation int) *QJsonDocument

Creates a QJsonDocument from data.

validation decides whether the data is checked for validity before being used. By default the data is validated. If the data is not valid, the method returns a null document.

See also toBinaryData(), fromRawData(), isNull(), and DataValidation.

func (*QJsonDocument) FromBinaryData__

func (this *QJsonDocument) FromBinaryData__(data QByteArray_ITF) *QJsonDocument

Creates a QJsonDocument from data.

validation decides whether the data is checked for validity before being used. By default the data is validated. If the data is not valid, the method returns a null document.

See also toBinaryData(), fromRawData(), isNull(), and DataValidation.

func (*QJsonDocument) FromRawData

func (this *QJsonDocument) FromRawData(data string, size int, validation int) *QJsonDocument

Creates a QJsonDocument that uses the first size bytes from data. It assumes data contains a binary encoded JSON document. The created document does not take ownership of data and the caller has to guarantee that data will not be deleted or modified as long as any QJsonDocument, QJsonObject or QJsonArray still references the data.

data has to be aligned to a 4 byte boundary.

validation decides whether the data is checked for validity before being used. By default the data is validated. If the data is not valid, the method returns a null document.

Returns a QJsonDocument representing the data.

See also rawData(), fromBinaryData(), isNull(), and DataValidation.

func (*QJsonDocument) FromRawData__

func (this *QJsonDocument) FromRawData__(data string, size int) *QJsonDocument

Creates a QJsonDocument that uses the first size bytes from data. It assumes data contains a binary encoded JSON document. The created document does not take ownership of data and the caller has to guarantee that data will not be deleted or modified as long as any QJsonDocument, QJsonObject or QJsonArray still references the data.

data has to be aligned to a 4 byte boundary.

validation decides whether the data is checked for validity before being used. By default the data is validated. If the data is not valid, the method returns a null document.

Returns a QJsonDocument representing the data.

See also rawData(), fromBinaryData(), isNull(), and DataValidation.

func (*QJsonDocument) FromVariant

func (this *QJsonDocument) FromVariant(variant QVariant_ITF) *QJsonDocument

Creates a QJsonDocument from the QVariant variant.

If the variant contains any other type than a QVariantMap, QVariantHash, QVariantList or QStringList, the returned document is invalid.

See also toVariant().

func (*QJsonDocument) GetCthis

func (this *QJsonDocument) GetCthis() unsafe.Pointer

func (*QJsonDocument) IsArray

func (this *QJsonDocument) IsArray() bool

Returns true if the document contains an array.

See also array() and isObject().

func (*QJsonDocument) IsEmpty

func (this *QJsonDocument) IsEmpty() bool

Returns true if the document doesn't contain any data.

func (*QJsonDocument) IsNull

func (this *QJsonDocument) IsNull() bool

returns true if this document is null.

Null documents are documents created through the default constructor.

Documents created from UTF-8 encoded text or the binary format are validated during parsing. If validation fails, the returned document will also be null.

func (*QJsonDocument) IsObject

func (this *QJsonDocument) IsObject() bool

Returns true if the document contains an object.

See also object() and isArray().

func (*QJsonDocument) NewFromPointer

func (*QJsonDocument) NewFromPointer(cthis unsafe.Pointer) *QJsonDocument

func (*QJsonDocument) Object

func (this *QJsonDocument) Object() *QJsonObject

Returns the QJsonObject contained in the document.

Returns an empty object if the document contains an array.

See also isObject(), array(), and setObject().

func (*QJsonDocument) Operator_equal

func (this *QJsonDocument) Operator_equal(other QJsonDocument_ITF) *QJsonDocument

func (*QJsonDocument) Operator_equal_1

func (this *QJsonDocument) Operator_equal_1(other unsafe.Pointer) *QJsonDocument

func (*QJsonDocument) Operator_equal_equal

func (this *QJsonDocument) Operator_equal_equal(other QJsonDocument_ITF) bool

func (*QJsonDocument) Operator_get_index

func (this *QJsonDocument) Operator_get_index(key string) *QJsonValue

func (*QJsonDocument) Operator_get_index_1

func (this *QJsonDocument) Operator_get_index_1(key QLatin1String_ITF) *QJsonValue

func (*QJsonDocument) Operator_get_index_2

func (this *QJsonDocument) Operator_get_index_2(i int) *QJsonValue

func (*QJsonDocument) Operator_not_equal

func (this *QJsonDocument) Operator_not_equal(other QJsonDocument_ITF) bool

func (*QJsonDocument) QJsonDocument_PTR

func (ptr *QJsonDocument) QJsonDocument_PTR() *QJsonDocument

func (*QJsonDocument) RawData

func (this *QJsonDocument) RawData(size unsafe.Pointer) string

Returns the raw binary representation of the data size will contain the size of the returned data.

This method is useful to e.g. stream the JSON document in it's binary form to a file.

func (*QJsonDocument) SetArray

func (this *QJsonDocument) SetArray(array QJsonArray_ITF)

Sets array as the main object of this document.

See also setObject() and array().

func (*QJsonDocument) SetCthis

func (this *QJsonDocument) SetCthis(cthis unsafe.Pointer)

func (*QJsonDocument) SetObject

func (this *QJsonDocument) SetObject(object QJsonObject_ITF)

Sets object as the main object of this document.

See also setArray() and object().

func (*QJsonDocument) Swap

func (this *QJsonDocument) Swap(other QJsonDocument_ITF)

Swaps the document other with this. This operation is very fast and never fails.

This function was introduced in Qt 5.10.

func (*QJsonDocument) ToBinaryData

func (this *QJsonDocument) ToBinaryData() *QByteArray

Returns a binary representation of the document.

The binary representation is also the native format used internally in Qt, and is very efficient and fast to convert to and from.

The binary format can be stored on disk and interchanged with other applications or computers. fromBinaryData() can be used to convert it back into a JSON document.

See also fromBinaryData().

func (*QJsonDocument) ToJson

func (this *QJsonDocument) ToJson() *QByteArray

Converts the QJsonDocument to a UTF-8 encoded JSON document in the provided format.

See also fromJson() and JsonFormat.

func (*QJsonDocument) ToJson_1

func (this *QJsonDocument) ToJson_1(format int) *QByteArray

Converts the QJsonDocument to a UTF-8 encoded JSON document in the provided format.

See also fromJson() and JsonFormat.

func (*QJsonDocument) ToVariant

func (this *QJsonDocument) ToVariant() *QVariant

Returns a QVariant representing the Json document.

The returned variant will be a QVariantList if the document is a QJsonArray and a QVariantMap if the document is a QJsonObject.

See also fromVariant() and QJsonValue::toVariant().

type QJsonDocument_ITF

type QJsonDocument_ITF interface {
	QJsonDocument_PTR() *QJsonDocument
}

type QJsonDocument__DataValidation

type QJsonDocument__DataValidation = int

This value is used to tell QJsonDocument whether to validate the binary data when converting to a QJsonDocument using fromBinaryData() or fromRawData().

const QJsonDocument__BypassValidation QJsonDocument__DataValidation = 1

Bypasses data validation. Only use if you received the data from a trusted place and know it's valid, as using of invalid data can crash the application.

const QJsonDocument__Validate QJsonDocument__DataValidation = 0

Validate the data before using it. This is the default.

type QJsonDocument__JsonFormat

type QJsonDocument__JsonFormat = int

This value defines the format of the JSON byte array produced when converting to a QJsonDocument using toJson().

{
    "Array": [
        true,
        999,
        "string"
    ],
    "Key": "Value",
    "null": null
}

{"Array":[true,999,"string"],"Key":"Value","null":null}
const QJsonDocument__Compact QJsonDocument__JsonFormat = 1

Defines a compact output as follows:

const QJsonDocument__Indented QJsonDocument__JsonFormat = 0

Defines human readable output as follows:

type QJsonObject

type QJsonObject struct {
	*qtrt.CObject
}

func NewQJsonObject

func NewQJsonObject() *QJsonObject

Constructs an empty JSON object.

See also isEmpty().

func NewQJsonObjectFromPointer

func NewQJsonObjectFromPointer(cthis unsafe.Pointer) *QJsonObject

func (*QJsonObject) Begin

func (this *QJsonObject) Begin() unsafe.Pointer

Returns an STL-style iterator pointing to the first item in the object.

See also constBegin() and end().

func (*QJsonObject) Begin_1

func (this *QJsonObject) Begin_1() unsafe.Pointer

Returns an STL-style iterator pointing to the first item in the object.

See also constBegin() and end().

func (*QJsonObject) ConstBegin

func (this *QJsonObject) ConstBegin() unsafe.Pointer

Returns a const STL-style iterator pointing to the first item in the object.

See also begin() and constEnd().

func (*QJsonObject) ConstEnd

func (this *QJsonObject) ConstEnd() unsafe.Pointer

Returns a const STL-style iterator pointing to the imaginary item after the last item in the object.

See also constBegin() and end().

func (*QJsonObject) ConstFind

func (this *QJsonObject) ConstFind(key string) unsafe.Pointer

Returns a const iterator pointing to the item with key key in the map.

If the map contains no item with key key, the function returns constEnd().

func (*QJsonObject) ConstFind_1

func (this *QJsonObject) ConstFind_1(key QLatin1String_ITF) unsafe.Pointer

Returns a const iterator pointing to the item with key key in the map.

If the map contains no item with key key, the function returns constEnd().

func (*QJsonObject) Contains

func (this *QJsonObject) Contains(key string) bool

Returns true if the object contains key key.

See also insert(), remove(), and take().

func (*QJsonObject) Contains_1

func (this *QJsonObject) Contains_1(key QLatin1String_ITF) bool

Returns true if the object contains key key.

See also insert(), remove(), and take().

func (*QJsonObject) Count

func (this *QJsonObject) Count() int

This is an overloaded function.

Same as size().

func (*QJsonObject) Empty

func (this *QJsonObject) Empty() bool

This function is provided for STL compatibility. It is equivalent to isEmpty(), returning true if the object is empty; otherwise returning false.

func (*QJsonObject) End

func (this *QJsonObject) End() unsafe.Pointer

Returns an STL-style iterator pointing to the imaginary item after the last item in the object.

See also begin() and constEnd().

func (*QJsonObject) End_1

func (this *QJsonObject) End_1() unsafe.Pointer

Returns an STL-style iterator pointing to the imaginary item after the last item in the object.

See also begin() and constEnd().

func (*QJsonObject) Find

func (this *QJsonObject) Find(key string) unsafe.Pointer

Returns an iterator pointing to the item with key key in the map.

If the map contains no item with key key, the function returns end().

func (*QJsonObject) Find_1

func (this *QJsonObject) Find_1(key QLatin1String_ITF) unsafe.Pointer

Returns an iterator pointing to the item with key key in the map.

If the map contains no item with key key, the function returns end().

func (*QJsonObject) Find_2

func (this *QJsonObject) Find_2(key string) unsafe.Pointer

Returns an iterator pointing to the item with key key in the map.

If the map contains no item with key key, the function returns end().

func (*QJsonObject) Find_3

func (this *QJsonObject) Find_3(key QLatin1String_ITF) unsafe.Pointer

Returns an iterator pointing to the item with key key in the map.

If the map contains no item with key key, the function returns end().

func (*QJsonObject) GetCthis

func (this *QJsonObject) GetCthis() unsafe.Pointer

func (*QJsonObject) IsEmpty

func (this *QJsonObject) IsEmpty() bool

Returns true if the object is empty. This is the same as size() == 0.

See also size().

func (*QJsonObject) Keys

func (this *QJsonObject) Keys() *QStringList

Returns a list of all keys in this object.

The list is sorted lexographically.

func (*QJsonObject) Length

func (this *QJsonObject) Length() int

This is an overloaded function.

Same as size().

func (*QJsonObject) NewFromPointer

func (*QJsonObject) NewFromPointer(cthis unsafe.Pointer) *QJsonObject

func (*QJsonObject) Operator_equal

func (this *QJsonObject) Operator_equal(other QJsonObject_ITF) *QJsonObject

func (*QJsonObject) Operator_equal_1

func (this *QJsonObject) Operator_equal_1(other unsafe.Pointer) *QJsonObject

func (*QJsonObject) Operator_equal_equal

func (this *QJsonObject) Operator_equal_equal(other QJsonObject_ITF) bool

func (*QJsonObject) Operator_get_index

func (this *QJsonObject) Operator_get_index(key string) *QJsonValue

func (*QJsonObject) Operator_get_index_1

func (this *QJsonObject) Operator_get_index_1(key QLatin1String_ITF) *QJsonValue

func (*QJsonObject) Operator_get_index_2

func (this *QJsonObject) Operator_get_index_2(key string) *QJsonValueRef

func (*QJsonObject) Operator_get_index_3

func (this *QJsonObject) Operator_get_index_3(key QLatin1String_ITF) *QJsonValueRef

func (*QJsonObject) Operator_not_equal

func (this *QJsonObject) Operator_not_equal(other QJsonObject_ITF) bool

func (*QJsonObject) QJsonObject_PTR

func (ptr *QJsonObject) QJsonObject_PTR() *QJsonObject

func (*QJsonObject) Remove

func (this *QJsonObject) Remove(key string)

Removes key from the object.

See also insert() and take().

func (*QJsonObject) SetCthis

func (this *QJsonObject) SetCthis(cthis unsafe.Pointer)

func (*QJsonObject) Size

func (this *QJsonObject) Size() int

Returns the number of (key, value) pairs stored in the object.

func (*QJsonObject) Swap

func (this *QJsonObject) Swap(other QJsonObject_ITF)

Swaps the object other with this. This operation is very fast and never fails.

This function was introduced in Qt 5.10.

func (*QJsonObject) Take

func (this *QJsonObject) Take(key string) *QJsonValue

Removes key from the object.

Returns a QJsonValue containing the value referenced by key. If key was not contained in the object, the returned QJsonValue is QJsonValue::Undefined.

See also insert(), remove(), and QJsonValue.

func (*QJsonObject) Value

func (this *QJsonObject) Value(key string) *QJsonValue

Returns a QJsonValue representing the value for the key key.

The returned QJsonValue is QJsonValue::Undefined if the key does not exist.

See also QJsonValue and QJsonValue::isUndefined().

func (*QJsonObject) Value_1

func (this *QJsonObject) Value_1(key QLatin1String_ITF) *QJsonValue

Returns a QJsonValue representing the value for the key key.

The returned QJsonValue is QJsonValue::Undefined if the key does not exist.

See also QJsonValue and QJsonValue::isUndefined().

type QJsonObject_ITF

type QJsonObject_ITF interface {
	QJsonObject_PTR() *QJsonObject
}

type QJsonParseError

type QJsonParseError struct {
	*qtrt.CObject
}

func NewQJsonParseErrorFromPointer

func NewQJsonParseErrorFromPointer(cthis unsafe.Pointer) *QJsonParseError

func (*QJsonParseError) ErrorString

func (this *QJsonParseError) ErrorString() string

func (*QJsonParseError) GetCthis

func (this *QJsonParseError) GetCthis() unsafe.Pointer

func (*QJsonParseError) NewFromPointer

func (*QJsonParseError) NewFromPointer(cthis unsafe.Pointer) *QJsonParseError

func (*QJsonParseError) QJsonParseError_PTR

func (ptr *QJsonParseError) QJsonParseError_PTR() *QJsonParseError

func (*QJsonParseError) SetCthis

func (this *QJsonParseError) SetCthis(cthis unsafe.Pointer)

type QJsonParseError_ITF

type QJsonParseError_ITF interface {
	QJsonParseError_PTR() *QJsonParseError
}

type QJsonParseError__ParseError

type QJsonParseError__ParseError = int
const QJsonParseError__DeepNesting QJsonParseError__ParseError = 12
const QJsonParseError__DocumentTooLarge QJsonParseError__ParseError = 13
const QJsonParseError__GarbageAtEnd QJsonParseError__ParseError = 14
const QJsonParseError__IllegalEscapeSequence QJsonParseError__ParseError = 8
const QJsonParseError__IllegalNumber QJsonParseError__ParseError = 7
const QJsonParseError__IllegalUTF8String QJsonParseError__ParseError = 9
const QJsonParseError__IllegalValue QJsonParseError__ParseError = 5
const QJsonParseError__MissingNameSeparator QJsonParseError__ParseError = 2
const QJsonParseError__MissingObject QJsonParseError__ParseError = 11
const QJsonParseError__MissingValueSeparator QJsonParseError__ParseError = 4
const QJsonParseError__NoError QJsonParseError__ParseError = 0
const QJsonParseError__TerminationByNumber QJsonParseError__ParseError = 6
const QJsonParseError__UnterminatedArray QJsonParseError__ParseError = 3
const QJsonParseError__UnterminatedObject QJsonParseError__ParseError = 1
const QJsonParseError__UnterminatedString QJsonParseError__ParseError = 10

type QJsonValue

type QJsonValue struct {
	*qtrt.CObject
}

func NewQJsonValue

func NewQJsonValue(arg0 int) *QJsonValue

Creates a QJsonValue of type type.

The default is to create a Null value.

func NewQJsonValueFromPointer

func NewQJsonValueFromPointer(cthis unsafe.Pointer) *QJsonValue

func NewQJsonValue_1

func NewQJsonValue_1(b bool) *QJsonValue

Creates a QJsonValue of type type.

The default is to create a Null value.

func NewQJsonValue_2

func NewQJsonValue_2(n float64) *QJsonValue

Creates a QJsonValue of type type.

The default is to create a Null value.

func NewQJsonValue_3

func NewQJsonValue_3(n int) *QJsonValue

Creates a QJsonValue of type type.

The default is to create a Null value.

func NewQJsonValue_4

func NewQJsonValue_4(n int64) *QJsonValue

Creates a QJsonValue of type type.

The default is to create a Null value.

func NewQJsonValue_5

func NewQJsonValue_5(s string) *QJsonValue

Creates a QJsonValue of type type.

The default is to create a Null value.

func NewQJsonValue_6

func NewQJsonValue_6(s QLatin1String_ITF) *QJsonValue

Creates a QJsonValue of type type.

The default is to create a Null value.

func NewQJsonValue_7

func NewQJsonValue_7(s string) *QJsonValue

Creates a QJsonValue of type type.

The default is to create a Null value.

func NewQJsonValue_8

func NewQJsonValue_8(a QJsonArray_ITF) *QJsonValue

Creates a QJsonValue of type type.

The default is to create a Null value.

func NewQJsonValue_9

func NewQJsonValue_9(o QJsonObject_ITF) *QJsonValue

Creates a QJsonValue of type type.

The default is to create a Null value.

func NewQJsonValue__

func NewQJsonValue__() *QJsonValue

Creates a QJsonValue of type type.

The default is to create a Null value.

func QJsonValue_FromVariant

func QJsonValue_FromVariant(variant QVariant_ITF) *QJsonValue

func (*QJsonValue) FromVariant

func (this *QJsonValue) FromVariant(variant QVariant_ITF) *QJsonValue

Converts variant to a QJsonValue and returns it.

The conversion will convert QVariant types as follows:

Source typeDestination type

QMetaType::Nullptr

QJsonValue::Null

QMetaType::Bool

QJsonValue::Bool

QMetaType::Int QMetaType::UInt QMetaType::LongLong QMetaType::ULongLong QMetaType::Float QMetaType::Double

QJsonValue::Double

QMetaType::QString

QJsonValue::String

QMetaType::QStringList QMetaType::QVariantList

QJsonValue::Array

QMetaType::QVariantMap QMetaType::QVariantHash

QJsonValue::Object

For all other QVariant types a conversion to a QString will be attempted. If the returned string is empty, a Null QJsonValue will be stored, otherwise a String value using the returned QString.

See also toVariant().

func (*QJsonValue) GetCthis

func (this *QJsonValue) GetCthis() unsafe.Pointer

func (*QJsonValue) IsArray

func (this *QJsonValue) IsArray() bool

Returns true if the value contains an array.

See also toArray().

func (*QJsonValue) IsBool

func (this *QJsonValue) IsBool() bool

Returns true if the value contains a boolean.

See also toBool().

func (*QJsonValue) IsDouble

func (this *QJsonValue) IsDouble() bool

Returns true if the value contains a double.

See also toDouble().

func (*QJsonValue) IsNull

func (this *QJsonValue) IsNull() bool

Returns true if the value is null.

func (*QJsonValue) IsObject

func (this *QJsonValue) IsObject() bool

Returns true if the value contains an object.

See also toObject().

func (*QJsonValue) IsString

func (this *QJsonValue) IsString() bool

Returns true if the value contains a string.

See also toString().

func (*QJsonValue) IsUndefined

func (this *QJsonValue) IsUndefined() bool

Returns true if the value is undefined. This can happen in certain error cases as e.g. accessing a non existing key in a QJsonObject.

func (*QJsonValue) NewFromPointer

func (*QJsonValue) NewFromPointer(cthis unsafe.Pointer) *QJsonValue

func (*QJsonValue) Operator_equal

func (this *QJsonValue) Operator_equal(other QJsonValue_ITF) *QJsonValue

func (*QJsonValue) Operator_equal_1

func (this *QJsonValue) Operator_equal_1(other unsafe.Pointer) *QJsonValue

func (*QJsonValue) Operator_equal_equal

func (this *QJsonValue) Operator_equal_equal(other QJsonValue_ITF) bool

func (*QJsonValue) Operator_get_index

func (this *QJsonValue) Operator_get_index(key string) *QJsonValue

func (*QJsonValue) Operator_get_index_1

func (this *QJsonValue) Operator_get_index_1(key QLatin1String_ITF) *QJsonValue

func (*QJsonValue) Operator_get_index_2

func (this *QJsonValue) Operator_get_index_2(i int) *QJsonValue

func (*QJsonValue) Operator_not_equal

func (this *QJsonValue) Operator_not_equal(other QJsonValue_ITF) bool

func (*QJsonValue) QJsonValue_PTR

func (ptr *QJsonValue) QJsonValue_PTR() *QJsonValue

func (*QJsonValue) SetCthis

func (this *QJsonValue) SetCthis(cthis unsafe.Pointer)

func (*QJsonValue) Swap

func (this *QJsonValue) Swap(other QJsonValue_ITF)

Swaps the value other with this. This operation is very fast and never fails.

This function was introduced in Qt 5.10.

func (*QJsonValue) ToArray

func (this *QJsonValue) ToArray() *QJsonArray

Converts the value to an array and returns it.

If type() is not Array, the defaultValue will be returned.

func (*QJsonValue) ToArray_1

func (this *QJsonValue) ToArray_1(defaultValue QJsonArray_ITF) *QJsonArray

Converts the value to an array and returns it.

If type() is not Array, the defaultValue will be returned.

func (*QJsonValue) ToBool

func (this *QJsonValue) ToBool(defaultValue bool) bool

Converts the value to a bool and returns it.

If type() is not bool, the defaultValue will be returned.

func (*QJsonValue) ToBool__

func (this *QJsonValue) ToBool__() bool

Converts the value to a bool and returns it.

If type() is not bool, the defaultValue will be returned.

func (*QJsonValue) ToDouble

func (this *QJsonValue) ToDouble(defaultValue float64) float64

Converts the value to a double and returns it.

If type() is not Double, the defaultValue will be returned.

func (*QJsonValue) ToDouble__

func (this *QJsonValue) ToDouble__() float64

Converts the value to a double and returns it.

If type() is not Double, the defaultValue will be returned.

func (*QJsonValue) ToInt

func (this *QJsonValue) ToInt(defaultValue int) int

Converts the value to an int and returns it.

If type() is not Double or the value is not a whole number, the defaultValue will be returned.

func (*QJsonValue) ToInt__

func (this *QJsonValue) ToInt__() int

Converts the value to an int and returns it.

If type() is not Double or the value is not a whole number, the defaultValue will be returned.

func (*QJsonValue) ToObject

func (this *QJsonValue) ToObject() *QJsonObject

Converts the value to an object and returns it.

If type() is not Object, the defaultValue will be returned.

func (*QJsonValue) ToObject_1

func (this *QJsonValue) ToObject_1(defaultValue QJsonObject_ITF) *QJsonObject

Converts the value to an object and returns it.

If type() is not Object, the defaultValue will be returned.

func (*QJsonValue) ToString

func (this *QJsonValue) ToString() string

Converts the value to a QString and returns it.

If type() is not String, a null QString will be returned.

See also QString::isNull().

func (*QJsonValue) ToString_1

func (this *QJsonValue) ToString_1(defaultValue string) string

Converts the value to a QString and returns it.

If type() is not String, a null QString will be returned.

See also QString::isNull().

func (*QJsonValue) ToVariant

func (this *QJsonValue) ToVariant() *QVariant

Converts the value to a QVariant().

The QJsonValue types will be converted as follows:

ConstantDescription NullQMetaType::Nullptr BoolQMetaType::Bool DoubleQMetaType::Double StringQString ArrayQVariantList ObjectQVariantMap UndefinedQVariant()

See also fromVariant().

func (*QJsonValue) Type

func (this *QJsonValue) Type() int

Returns the type of the value.

See also QJsonValue::Type.

type QJsonValuePtr

type QJsonValuePtr struct {
	*qtrt.CObject
}

func NewQJsonValuePtr

func NewQJsonValuePtr(val QJsonValue_ITF) *QJsonValuePtr

func NewQJsonValuePtrFromPointer

func NewQJsonValuePtrFromPointer(cthis unsafe.Pointer) *QJsonValuePtr

func (*QJsonValuePtr) GetCthis

func (this *QJsonValuePtr) GetCthis() unsafe.Pointer

func (*QJsonValuePtr) NewFromPointer

func (*QJsonValuePtr) NewFromPointer(cthis unsafe.Pointer) *QJsonValuePtr

func (*QJsonValuePtr) Operator_minus_greater

func (this *QJsonValuePtr) Operator_minus_greater() *QJsonValue

func (*QJsonValuePtr) Operator_mul

func (this *QJsonValuePtr) Operator_mul() *QJsonValue

func (*QJsonValuePtr) QJsonValuePtr_PTR

func (ptr *QJsonValuePtr) QJsonValuePtr_PTR() *QJsonValuePtr

func (*QJsonValuePtr) SetCthis

func (this *QJsonValuePtr) SetCthis(cthis unsafe.Pointer)

type QJsonValuePtr_ITF

type QJsonValuePtr_ITF interface {
	QJsonValuePtr_PTR() *QJsonValuePtr
}

type QJsonValueRef

type QJsonValueRef struct {
	*qtrt.CObject
}

func NewQJsonValueRef

func NewQJsonValueRef(array QJsonArray_ITF, idx int) *QJsonValueRef

func NewQJsonValueRefFromPointer

func NewQJsonValueRefFromPointer(cthis unsafe.Pointer) *QJsonValueRef

func NewQJsonValueRef_1

func NewQJsonValueRef_1(object QJsonObject_ITF, idx int) *QJsonValueRef

func (*QJsonValueRef) GetCthis

func (this *QJsonValueRef) GetCthis() unsafe.Pointer

func (*QJsonValueRef) IsArray

func (this *QJsonValueRef) IsArray() bool

Returns true if the value contains an array.

See also toArray().

func (*QJsonValueRef) IsBool

func (this *QJsonValueRef) IsBool() bool

Returns true if the value contains a boolean.

See also toBool().

func (*QJsonValueRef) IsDouble

func (this *QJsonValueRef) IsDouble() bool

Returns true if the value contains a double.

See also toDouble().

func (*QJsonValueRef) IsNull

func (this *QJsonValueRef) IsNull() bool

Returns true if the value is null.

func (*QJsonValueRef) IsObject

func (this *QJsonValueRef) IsObject() bool

Returns true if the value contains an object.

See also toObject().

func (*QJsonValueRef) IsString

func (this *QJsonValueRef) IsString() bool

Returns true if the value contains a string.

See also toString().

func (*QJsonValueRef) IsUndefined

func (this *QJsonValueRef) IsUndefined() bool

Returns true if the value is undefined. This can happen in certain error cases as e.g. accessing a non existing key in a QJsonObject.

func (*QJsonValueRef) NewFromPointer

func (*QJsonValueRef) NewFromPointer(cthis unsafe.Pointer) *QJsonValueRef

func (*QJsonValueRef) Operator_equal

func (this *QJsonValueRef) Operator_equal(val QJsonValue_ITF) *QJsonValueRef

func (*QJsonValueRef) Operator_equal_1

func (this *QJsonValueRef) Operator_equal_1(val QJsonValueRef_ITF) *QJsonValueRef

func (*QJsonValueRef) Operator_equal_equal

func (this *QJsonValueRef) Operator_equal_equal(other QJsonValue_ITF) bool

func (*QJsonValueRef) Operator_not_equal

func (this *QJsonValueRef) Operator_not_equal(other QJsonValue_ITF) bool

func (*QJsonValueRef) QJsonValueRef_PTR

func (ptr *QJsonValueRef) QJsonValueRef_PTR() *QJsonValueRef

func (*QJsonValueRef) SetCthis

func (this *QJsonValueRef) SetCthis(cthis unsafe.Pointer)

func (*QJsonValueRef) ToArray

func (this *QJsonValueRef) ToArray() *QJsonArray

Converts the value to an array and returns it.

If type() is not Array, the defaultValue will be returned.

func (*QJsonValueRef) ToBool

func (this *QJsonValueRef) ToBool() bool

Converts the value to a bool and returns it.

If type() is not bool, the defaultValue will be returned.

func (*QJsonValueRef) ToBool_1

func (this *QJsonValueRef) ToBool_1(defaultValue bool) bool

Converts the value to a bool and returns it.

If type() is not bool, the defaultValue will be returned.

func (*QJsonValueRef) ToDouble

func (this *QJsonValueRef) ToDouble() float64

Converts the value to a double and returns it.

If type() is not Double, the defaultValue will be returned.

func (*QJsonValueRef) ToDouble_1

func (this *QJsonValueRef) ToDouble_1(defaultValue float64) float64

Converts the value to a double and returns it.

If type() is not Double, the defaultValue will be returned.

func (*QJsonValueRef) ToInt

func (this *QJsonValueRef) ToInt() int

Converts the value to an int and returns it.

If type() is not Double or the value is not a whole number, the defaultValue will be returned.

func (*QJsonValueRef) ToInt_1

func (this *QJsonValueRef) ToInt_1(defaultValue int) int

Converts the value to an int and returns it.

If type() is not Double or the value is not a whole number, the defaultValue will be returned.

func (*QJsonValueRef) ToObject

func (this *QJsonValueRef) ToObject() *QJsonObject

Converts the value to an object and returns it.

If type() is not Object, the defaultValue will be returned.

func (*QJsonValueRef) ToString

func (this *QJsonValueRef) ToString() string

Converts the value to a QString and returns it.

If type() is not String, a null QString will be returned.

See also QString::isNull().

func (*QJsonValueRef) ToString_1

func (this *QJsonValueRef) ToString_1(defaultValue string) string

Converts the value to a QString and returns it.

If type() is not String, a null QString will be returned.

See also QString::isNull().

func (*QJsonValueRef) ToVariant

func (this *QJsonValueRef) ToVariant() *QVariant

Converts the value to a QVariant().

The QJsonValue types will be converted as follows:

ConstantDescription NullQMetaType::Nullptr BoolQMetaType::Bool DoubleQMetaType::Double StringQString ArrayQVariantList ObjectQVariantMap UndefinedQVariant()

See also fromVariant().

func (*QJsonValueRef) Type

func (this *QJsonValueRef) Type() int

Returns the type of the value.

See also QJsonValue::Type.

type QJsonValueRefPtr

type QJsonValueRefPtr struct {
	*qtrt.CObject
}

func NewQJsonValueRefPtr

func NewQJsonValueRefPtr(array QJsonArray_ITF, idx int) *QJsonValueRefPtr

func NewQJsonValueRefPtrFromPointer

func NewQJsonValueRefPtrFromPointer(cthis unsafe.Pointer) *QJsonValueRefPtr

func NewQJsonValueRefPtr_1

func NewQJsonValueRefPtr_1(object QJsonObject_ITF, idx int) *QJsonValueRefPtr

func (*QJsonValueRefPtr) GetCthis

func (this *QJsonValueRefPtr) GetCthis() unsafe.Pointer

func (*QJsonValueRefPtr) NewFromPointer

func (*QJsonValueRefPtr) NewFromPointer(cthis unsafe.Pointer) *QJsonValueRefPtr

func (*QJsonValueRefPtr) Operator_minus_greater

func (this *QJsonValueRefPtr) Operator_minus_greater() *QJsonValueRef

func (*QJsonValueRefPtr) Operator_mul

func (this *QJsonValueRefPtr) Operator_mul() *QJsonValueRef

func (*QJsonValueRefPtr) QJsonValueRefPtr_PTR

func (ptr *QJsonValueRefPtr) QJsonValueRefPtr_PTR() *QJsonValueRefPtr

func (*QJsonValueRefPtr) SetCthis

func (this *QJsonValueRefPtr) SetCthis(cthis unsafe.Pointer)

type QJsonValueRefPtr_ITF

type QJsonValueRefPtr_ITF interface {
	QJsonValueRefPtr_PTR() *QJsonValueRefPtr
}

type QJsonValueRef_ITF

type QJsonValueRef_ITF interface {
	QJsonValueRef_PTR() *QJsonValueRef
}

type QJsonValue_ITF

type QJsonValue_ITF interface {
	QJsonValue_PTR() *QJsonValue
}

type QJsonValue__Type

type QJsonValue__Type = int

This enum describes the type of the JSON value.

const QJsonValue__Array QJsonValue__Type = 4
const QJsonValue__Bool QJsonValue__Type = 1
const QJsonValue__Double QJsonValue__Type = 2
const QJsonValue__Null QJsonValue__Type = 0
const QJsonValue__Object QJsonValue__Type = 5
const QJsonValue__String QJsonValue__Type = 3
const QJsonValue__Undefined QJsonValue__Type = 128

type QLatin1Char

type QLatin1Char struct {
	*qtrt.CObject
}

func NewQLatin1Char

func NewQLatin1Char(c byte) *QLatin1Char

func NewQLatin1CharFromPointer

func NewQLatin1CharFromPointer(cthis unsafe.Pointer) *QLatin1Char

func (*QLatin1Char) GetCthis

func (this *QLatin1Char) GetCthis() unsafe.Pointer

func (*QLatin1Char) NewFromPointer

func (*QLatin1Char) NewFromPointer(cthis unsafe.Pointer) *QLatin1Char

func (*QLatin1Char) QLatin1Char_PTR

func (ptr *QLatin1Char) QLatin1Char_PTR() *QLatin1Char

func (*QLatin1Char) SetCthis

func (this *QLatin1Char) SetCthis(cthis unsafe.Pointer)

func (*QLatin1Char) ToLatin1

func (this *QLatin1Char) ToLatin1() byte

Returns the Latin-1 character equivalent to the QChar, or 0. This is mainly useful for non-internationalized software.

Note: It is not possible to distinguish a non-Latin-1 character from a Latin-1 0 (NUL) character. Prefer to use unicode(), which does not have this ambiguity.

See also unicode().

func (*QLatin1Char) Unicode

func (this *QLatin1Char) Unicode() uint16

Returns the numeric Unicode value of the QChar.

type QLatin1Char_ITF

type QLatin1Char_ITF interface {
	QLatin1Char_PTR() *QLatin1Char
}

type QLatin1String

type QLatin1String struct {
	*qtrt.CObject
}

func NewQLatin1String

func NewQLatin1String() *QLatin1String

func NewQLatin1StringFromPointer

func NewQLatin1StringFromPointer(cthis unsafe.Pointer) *QLatin1String

func NewQLatin1String_1

func NewQLatin1String_1(s string) *QLatin1String

func NewQLatin1String_2

func NewQLatin1String_2(f string, l string) *QLatin1String

func NewQLatin1String_3

func NewQLatin1String_3(s string, sz int) *QLatin1String

func NewQLatin1String_4

func NewQLatin1String_4(s QByteArray_ITF) *QLatin1String

func (*QLatin1String) At

func (this *QLatin1String) At(i int) *QLatin1Char

Returns the character at the given index position in the string.

The position must be a valid index position in the string (i.e., 0 <= position < size()).

See also operator[]().

func (*QLatin1String) Back

func (this *QLatin1String) Back() *QLatin1Char

Returns the last character in the string. Same as at(size() - 1).

This function is provided for STL compatibility.

Warning: Calling this function on an empty string constitutes undefined behavior.

This function was introduced in Qt 5.10.

See also front(), at(), and operator[]().

func (*QLatin1String) Begin

func (this *QLatin1String) Begin() string

Returns an STL-style iterator pointing to the first character in the string.

See also constBegin() and end().

func (*QLatin1String) Cbegin

func (this *QLatin1String) Cbegin() string

Returns a const STL-style iterator pointing to the first character in the string.

This function was introduced in Qt 5.0.

See also begin() and cend().

func (*QLatin1String) Cend

func (this *QLatin1String) Cend() string

Returns a const STL-style iterator pointing to the imaginary character after the last character in the list.

This function was introduced in Qt 5.0.

See also cbegin() and end().

func (*QLatin1String) Chop

func (this *QLatin1String) Chop(n int)

Removes n characters from the end of the string.

If n is greater than or equal to size(), the result is an empty string; if n is negative, it is equivalent to passing zero.

Example:

QString str("LOGOUT\r\n");
str.chop(2);
// str == "LOGOUT"

If you want to remove characters from the beginning of the string, use remove() instead.

See also truncate(), resize(), remove(), and QStringRef::chop().

func (*QLatin1String) Chopped

func (this *QLatin1String) Chopped(n int) *QLatin1String

Returns a substring that contains the size() - len leftmost characters of this string.

Note: The behavior is undefined if len is negative or greater than size().

This function was introduced in Qt 5.10.

See also endsWith(), left(), right(), mid(), chop(), and truncate().

func (*QLatin1String) Data

func (this *QLatin1String) Data() string

Returns a pointer to the data stored in the QString. The pointer can be used to access and modify the characters that compose the string.

Unlike constData() and unicode(), the returned data is always '\0'-terminated.

Example:

QString str = "Hello world";
QChar *data = str.data();
while (!data->isNull()) {
    qDebug() << data->unicode();
    ++data;
}

Note that the pointer remains valid only as long as the string is not modified by other means. For read-only access, constData() is faster because it never causes a deep copy to occur.

See also constData() and operator[]().

func (*QLatin1String) End

func (this *QLatin1String) End() string

Returns an STL-style iterator pointing to the imaginary character after the last character in the string.

See also begin() and constEnd().

func (*QLatin1String) EndsWith

func (this *QLatin1String) EndsWith(s QStringView_ITF, cs int) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QLatin1String) EndsWith_1

func (this *QLatin1String) EndsWith_1(s QLatin1String_ITF, cs int) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QLatin1String) EndsWith_1_

func (this *QLatin1String) EndsWith_1_(s QLatin1String_ITF) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QLatin1String) EndsWith_2

func (this *QLatin1String) EndsWith_2(c QChar_ITF) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QLatin1String) EndsWith_3

func (this *QLatin1String) EndsWith_3(c QChar_ITF, cs int) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QLatin1String) EndsWith__

func (this *QLatin1String) EndsWith__(s QStringView_ITF) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QLatin1String) Front

func (this *QLatin1String) Front() *QLatin1Char

Returns the first character in the string. Same as at(0).

This function is provided for STL compatibility.

Warning: Calling this function on an empty string constitutes undefined behavior.

This function was introduced in Qt 5.10.

See also back(), at(), and operator[]().

func (*QLatin1String) GetCthis

func (this *QLatin1String) GetCthis() unsafe.Pointer

func (*QLatin1String) IsEmpty

func (this *QLatin1String) IsEmpty() bool

Returns true if the string has no characters; otherwise returns false.

Example:

QString().isEmpty();            // returns true
QString("").isEmpty();          // returns true
QString("x").isEmpty();         // returns false
QString("abc").isEmpty();       // returns false

See also size().

func (*QLatin1String) IsNull

func (this *QLatin1String) IsNull() bool

Returns true if this string is null; otherwise returns false.

Example:

QString().isNull();             // returns true
QString("").isNull();           // returns false
QString("abc").isNull();        // returns false

Qt makes a distinction between null strings and empty strings for historical reasons. For most applications, what matters is whether or not a string contains any data, and this can be determined using the isEmpty() function.

See also isEmpty().

func (*QLatin1String) Latin1

func (this *QLatin1String) Latin1() string

func (*QLatin1String) Left

func (this *QLatin1String) Left(n int) *QLatin1String

Returns a substring that contains the n leftmost characters of the string.

The entire string is returned if n is greater than or equal to size(), or less than zero.

QString x = "Pineapple";
QString y = x.left(4);      // y == "Pine"

See also right(), mid(), startsWith(), chopped(), chop(), and truncate().

func (*QLatin1String) Mid

func (this *QLatin1String) Mid(pos int) *QLatin1String

Returns a string that contains n characters of this string, starting at the specified position index.

Returns a null string if the position index exceeds the length of the string. If there are less than n characters available in the string starting at the given position, or if n is -1 (default), the function returns all characters that are available from the specified position.

Example:

QString x = "Nine pineapples";
QString y = x.mid(5, 4);            // y == "pine"
QString z = x.mid(5);               // z == "pineapples"

See also left(), right(), chopped(), chop(), and truncate().

func (*QLatin1String) Mid_1

func (this *QLatin1String) Mid_1(pos int, n int) *QLatin1String

Returns a string that contains n characters of this string, starting at the specified position index.

Returns a null string if the position index exceeds the length of the string. If there are less than n characters available in the string starting at the given position, or if n is -1 (default), the function returns all characters that are available from the specified position.

Example:

QString x = "Nine pineapples";
QString y = x.mid(5, 4);            // y == "pine"
QString z = x.mid(5);               // z == "pineapples"

See also left(), right(), chopped(), chop(), and truncate().

func (*QLatin1String) NewFromPointer

func (*QLatin1String) NewFromPointer(cthis unsafe.Pointer) *QLatin1String

func (*QLatin1String) Operator_equal_equal

func (this *QLatin1String) Operator_equal_equal(s string) bool

func (*QLatin1String) Operator_equal_equal_1

func (this *QLatin1String) Operator_equal_equal_1(s string) bool

func (*QLatin1String) Operator_equal_equal_2

func (this *QLatin1String) Operator_equal_equal_2(s QByteArray_ITF) bool

func (*QLatin1String) Operator_get_index

func (this *QLatin1String) Operator_get_index(i int) *QLatin1Char

func (*QLatin1String) Operator_greater_than

func (this *QLatin1String) Operator_greater_than(s string) bool

func (*QLatin1String) Operator_greater_than_1

func (this *QLatin1String) Operator_greater_than_1(s string) bool

func (*QLatin1String) Operator_greater_than_2

func (this *QLatin1String) Operator_greater_than_2(s QByteArray_ITF) bool

func (*QLatin1String) Operator_greater_than_equal

func (this *QLatin1String) Operator_greater_than_equal(s string) bool

func (*QLatin1String) Operator_greater_than_equal_1

func (this *QLatin1String) Operator_greater_than_equal_1(s string) bool

func (*QLatin1String) Operator_greater_than_equal_2

func (this *QLatin1String) Operator_greater_than_equal_2(s QByteArray_ITF) bool

func (*QLatin1String) Operator_less_than

func (this *QLatin1String) Operator_less_than(s string) bool

func (*QLatin1String) Operator_less_than_1

func (this *QLatin1String) Operator_less_than_1(s string) bool

func (*QLatin1String) Operator_less_than_2

func (this *QLatin1String) Operator_less_than_2(s QByteArray_ITF) bool

func (*QLatin1String) Operator_less_than_equal

func (this *QLatin1String) Operator_less_than_equal(s string) bool

func (*QLatin1String) Operator_less_than_equal_1

func (this *QLatin1String) Operator_less_than_equal_1(s string) bool

func (*QLatin1String) Operator_less_than_equal_2

func (this *QLatin1String) Operator_less_than_equal_2(s QByteArray_ITF) bool

func (*QLatin1String) Operator_not_equal

func (this *QLatin1String) Operator_not_equal(s string) bool

func (*QLatin1String) Operator_not_equal_1

func (this *QLatin1String) Operator_not_equal_1(s string) bool

func (*QLatin1String) Operator_not_equal_2

func (this *QLatin1String) Operator_not_equal_2(s QByteArray_ITF) bool

func (*QLatin1String) QLatin1String_PTR

func (ptr *QLatin1String) QLatin1String_PTR() *QLatin1String

func (*QLatin1String) Right

func (this *QLatin1String) Right(n int) *QLatin1String

Returns a substring that contains the n rightmost characters of the string.

The entire string is returned if n is greater than or equal to size(), or less than zero.

QString x = "Pineapple";
QString y = x.right(5);      // y == "apple"

See also left(), mid(), endsWith(), chopped(), chop(), and truncate().

func (*QLatin1String) SetCthis

func (this *QLatin1String) SetCthis(cthis unsafe.Pointer)

func (*QLatin1String) Size

func (this *QLatin1String) Size() int

Returns the number of characters in this string.

The last character in the string is at position size() - 1.

Example:

QString str = "World";
int n = str.size();         // n == 5
str.data()[0];              // returns 'W'
str.data()[4];              // returns 'd'

See also isEmpty() and resize().

func (*QLatin1String) StartsWith

func (this *QLatin1String) StartsWith(s QStringView_ITF, cs int) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QLatin1String) StartsWith_1

func (this *QLatin1String) StartsWith_1(s QLatin1String_ITF, cs int) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QLatin1String) StartsWith_1_

func (this *QLatin1String) StartsWith_1_(s QLatin1String_ITF) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QLatin1String) StartsWith_2

func (this *QLatin1String) StartsWith_2(c QChar_ITF) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QLatin1String) StartsWith_3

func (this *QLatin1String) StartsWith_3(c QChar_ITF, cs int) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QLatin1String) StartsWith__

func (this *QLatin1String) StartsWith__(s QStringView_ITF) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QLatin1String) Trimmed

func (this *QLatin1String) Trimmed() *QLatin1String

Returns a string that has whitespace removed from the start and the end.

Whitespace means any character for which QChar::isSpace() returns true. This includes the ASCII characters '\t', '\n', '\v', '\f', '\r', and ' '.

Example:

QString str = "  lots\t of\nwhitespace\r\n ";
str = str.trimmed();
// str == "lots\t of\nwhitespace"

Unlike simplified(), trimmed() leaves internal whitespace alone.

See also simplified().

func (*QLatin1String) Truncate

func (this *QLatin1String) Truncate(n int)

Truncates the string at the given position index.

If the specified position index is beyond the end of the string, nothing happens.

Example:

QString str = "Vladivostok";
str.truncate(4);
// str == "Vlad"

If position is negative, it is equivalent to passing zero.

See also chop(), resize(), left(), and QStringRef::truncate().

type QLatin1String_ITF

type QLatin1String_ITF interface {
	QLatin1String_PTR() *QLatin1String
}

type QLibrary

type QLibrary struct {
	*QObject
}

func NewQLibrary

func NewQLibrary(parent QObject_ITF) *QLibrary

Constructs a library with the given parent.

func NewQLibraryFromPointer

func NewQLibraryFromPointer(cthis unsafe.Pointer) *QLibrary

func NewQLibrary_1

func NewQLibrary_1(fileName string, parent QObject_ITF) *QLibrary

Constructs a library with the given parent.

func NewQLibrary_1_

func NewQLibrary_1_(fileName string) *QLibrary

Constructs a library with the given parent.

func NewQLibrary_2

func NewQLibrary_2(fileName string, verNum int, parent QObject_ITF) *QLibrary

Constructs a library with the given parent.

func NewQLibrary_2_

func NewQLibrary_2_(fileName string, verNum int) *QLibrary

Constructs a library with the given parent.

func NewQLibrary_3

func NewQLibrary_3(fileName string, version string, parent QObject_ITF) *QLibrary

Constructs a library with the given parent.

func NewQLibrary_3_

func NewQLibrary_3_(fileName string, version string) *QLibrary

Constructs a library with the given parent.

func NewQLibrary__

func NewQLibrary__() *QLibrary

Constructs a library with the given parent.

func (*QLibrary) ErrorString

func (this *QLibrary) ErrorString() string

Returns a text string with the description of the last error that occurred. Currently, errorString will only be set if load(), unload() or resolve() for some reason fails.

This function was introduced in Qt 4.2.

func (*QLibrary) FileName

func (this *QLibrary) FileName() string

func (*QLibrary) GetCthis

func (this *QLibrary) GetCthis() unsafe.Pointer

func (*QLibrary) IsLibrary

func (this *QLibrary) IsLibrary(fileName string) bool

Returns true if fileName has a valid suffix for a loadable library; otherwise returns false.

PlatformValid suffixes

Windows.dll, .DLL Unix/Linux.so AIX.a HP-UX.sl, .so (HP-UXi) macOS and iOS.dylib, .bundle, .so

Trailing versioning numbers on Unix are ignored.

func (*QLibrary) IsLoaded

func (this *QLibrary) IsLoaded() bool

Returns true if the library is loaded; otherwise returns false.

See also load().

func (*QLibrary) Load

func (this *QLibrary) Load() bool

Loads the library and returns true if the library was loaded successfully; otherwise returns false. Since resolve() always calls this function before resolving any symbols it is not necessary to call it explicitly. In some situations you might want the library loaded in advance, in which case you would use this function.

See also unload().

func (*QLibrary) LoadHints

func (this *QLibrary) LoadHints() int

func (*QLibrary) MetaObject

func (this *QLibrary) MetaObject() *QMetaObject

func (*QLibrary) NewFromPointer

func (*QLibrary) NewFromPointer(cthis unsafe.Pointer) *QLibrary

func (*QLibrary) QLibrary_PTR

func (ptr *QLibrary) QLibrary_PTR() *QLibrary

func (*QLibrary) Resolve

func (this *QLibrary) Resolve(symbol string) unsafe.Pointer

Returns the address of the exported symbol symbol. The library is loaded if necessary. The function returns 0 if the symbol could not be resolved or if the library could not be loaded.

Example:

typedef int (*AvgFunction)(int, int);

AvgFunction avg = (AvgFunction) library->resolve("avg");
if (avg)
    return avg(5, 8);
else
    return -1;

The symbol must be exported as a C function from the library. This means that the function must be wrapped in an extern "C" if the library is compiled with a C++ compiler. On Windows you must also explicitly export the function from the DLL using the __declspec(dllexport) compiler directive, for example:

extern "C" MY_EXPORT int avg(int a, int b)
{
    return (a + b) / 2;
}

with MY_EXPORT defined as

#ifdef Q_OS_WIN
#define MY_EXPORT __declspec(dllexport)
#else
#define MY_EXPORT
#endif

func (*QLibrary) Resolve_1

func (this *QLibrary) Resolve_1(fileName string, symbol string) unsafe.Pointer

Returns the address of the exported symbol symbol. The library is loaded if necessary. The function returns 0 if the symbol could not be resolved or if the library could not be loaded.

Example:

typedef int (*AvgFunction)(int, int);

AvgFunction avg = (AvgFunction) library->resolve("avg");
if (avg)
    return avg(5, 8);
else
    return -1;

The symbol must be exported as a C function from the library. This means that the function must be wrapped in an extern "C" if the library is compiled with a C++ compiler. On Windows you must also explicitly export the function from the DLL using the __declspec(dllexport) compiler directive, for example:

extern "C" MY_EXPORT int avg(int a, int b)
{
    return (a + b) / 2;
}

with MY_EXPORT defined as

#ifdef Q_OS_WIN
#define MY_EXPORT __declspec(dllexport)
#else
#define MY_EXPORT
#endif

func (*QLibrary) Resolve_2

func (this *QLibrary) Resolve_2(fileName string, verNum int, symbol string) unsafe.Pointer

Returns the address of the exported symbol symbol. The library is loaded if necessary. The function returns 0 if the symbol could not be resolved or if the library could not be loaded.

Example:

typedef int (*AvgFunction)(int, int);

AvgFunction avg = (AvgFunction) library->resolve("avg");
if (avg)
    return avg(5, 8);
else
    return -1;

The symbol must be exported as a C function from the library. This means that the function must be wrapped in an extern "C" if the library is compiled with a C++ compiler. On Windows you must also explicitly export the function from the DLL using the __declspec(dllexport) compiler directive, for example:

extern "C" MY_EXPORT int avg(int a, int b)
{
    return (a + b) / 2;
}

with MY_EXPORT defined as

#ifdef Q_OS_WIN
#define MY_EXPORT __declspec(dllexport)
#else
#define MY_EXPORT
#endif

func (*QLibrary) Resolve_3

func (this *QLibrary) Resolve_3(fileName string, version string, symbol string) unsafe.Pointer

Returns the address of the exported symbol symbol. The library is loaded if necessary. The function returns 0 if the symbol could not be resolved or if the library could not be loaded.

Example:

typedef int (*AvgFunction)(int, int);

AvgFunction avg = (AvgFunction) library->resolve("avg");
if (avg)
    return avg(5, 8);
else
    return -1;

The symbol must be exported as a C function from the library. This means that the function must be wrapped in an extern "C" if the library is compiled with a C++ compiler. On Windows you must also explicitly export the function from the DLL using the __declspec(dllexport) compiler directive, for example:

extern "C" MY_EXPORT int avg(int a, int b)
{
    return (a + b) / 2;
}

with MY_EXPORT defined as

#ifdef Q_OS_WIN
#define MY_EXPORT __declspec(dllexport)
#else
#define MY_EXPORT
#endif

func (*QLibrary) SetCthis

func (this *QLibrary) SetCthis(cthis unsafe.Pointer)

func (*QLibrary) SetFileName

func (this *QLibrary) SetFileName(fileName string)

func (*QLibrary) SetFileNameAndVersion

func (this *QLibrary) SetFileNameAndVersion(fileName string, verNum int)

Sets the fileName property and major version number to fileName and versionNumber respectively. The versionNumber is ignored on Windows.

See also setFileName().

func (*QLibrary) SetFileNameAndVersion_1

func (this *QLibrary) SetFileNameAndVersion_1(fileName string, version string)

Sets the fileName property and major version number to fileName and versionNumber respectively. The versionNumber is ignored on Windows.

See also setFileName().

func (*QLibrary) SetLoadHints

func (this *QLibrary) SetLoadHints(hints int)

func (*QLibrary) Unload

func (this *QLibrary) Unload() bool

Unloads the library and returns true if the library could be unloaded; otherwise returns false.

This happens automatically on application termination, so you shouldn't normally need to call this function.

If other instances of QLibrary are using the same library, the call will fail, and unloading will only happen when every instance has called unload().

Note that on Mac OS X 10.3 (Panther), dynamic libraries cannot be unloaded.

See also resolve() and load().

type QLibrary_ITF

type QLibrary_ITF interface {
	QObject_ITF
	QLibrary_PTR() *QLibrary
}

type QLibrary__LoadHint

type QLibrary__LoadHint = int
const QLibrary__DeepBindHint QLibrary__LoadHint = 16
const QLibrary__ExportExternalSymbolsHint QLibrary__LoadHint = 2
const QLibrary__LoadArchiveMemberHint QLibrary__LoadHint = 4
const QLibrary__PreventUnloadHint QLibrary__LoadHint = 8
const QLibrary__ResolveAllSymbolsHint QLibrary__LoadHint = 1

type QLine

type QLine struct {
	*qtrt.CObject
}

func NewQLine

func NewQLine() *QLine

Constructs a null line.

func NewQLineFromPointer

func NewQLineFromPointer(cthis unsafe.Pointer) *QLine

func NewQLine_1

func NewQLine_1(pt1 QPoint_ITF, pt2 QPoint_ITF) *QLine

Constructs a null line.

func NewQLine_2

func NewQLine_2(x1 int, y1 int, x2 int, y2 int) *QLine

Constructs a null line.

func (*QLine) Center

func (this *QLine) Center() *QPoint

Returns the center point of this line. This is equivalent to (p1() + p2()) / 2, except it will never overflow.

This function was introduced in Qt 5.8.

func (*QLine) Dx

func (this *QLine) Dx() int

Returns the horizontal component of the line's vector.

See also dy().

func (*QLine) Dy

func (this *QLine) Dy() int

Returns the vertical component of the line's vector.

See also dx().

func (*QLine) GetCthis

func (this *QLine) GetCthis() unsafe.Pointer

func (*QLine) IsNull

func (this *QLine) IsNull() bool

Returns true if the line is not set up with valid start and end point; otherwise returns false.

func (*QLine) NewFromPointer

func (*QLine) NewFromPointer(cthis unsafe.Pointer) *QLine

func (*QLine) Operator_equal_equal

func (this *QLine) Operator_equal_equal(d QLine_ITF) bool

func (*QLine) Operator_not_equal

func (this *QLine) Operator_not_equal(d QLine_ITF) bool

func (*QLine) P1

func (this *QLine) P1() *QPoint

Returns the line's start point.

See also setP1(), x1(), y1(), and p2().

func (*QLine) P2

func (this *QLine) P2() *QPoint

Returns the line's end point.

See also setP2(), x2(), y2(), and p1().

func (*QLine) QLine_PTR

func (ptr *QLine) QLine_PTR() *QLine

func (*QLine) SetCthis

func (this *QLine) SetCthis(cthis unsafe.Pointer)

func (*QLine) SetLine

func (this *QLine) SetLine(x1 int, y1 int, x2 int, y2 int)

Sets this line to the start in x1, y1 and end in x2, y2.

This function was introduced in Qt 4.4.

See also setP1(), setP2(), p1(), and p2().

func (*QLine) SetP1

func (this *QLine) SetP1(p1 QPoint_ITF)

Sets the starting point of this line to p1.

This function was introduced in Qt 4.4.

See also setP2() and p1().

func (*QLine) SetP2

func (this *QLine) SetP2(p2 QPoint_ITF)

Sets the end point of this line to p2.

This function was introduced in Qt 4.4.

See also setP1() and p2().

func (*QLine) SetPoints

func (this *QLine) SetPoints(p1 QPoint_ITF, p2 QPoint_ITF)

Sets the start point of this line to p1 and the end point of this line to p2.

This function was introduced in Qt 4.4.

See also setP1(), setP2(), p1(), and p2().

func (*QLine) Translate

func (this *QLine) Translate(p QPoint_ITF)

Translates this line by the given offset.

func (*QLine) Translate_1

func (this *QLine) Translate_1(dx int, dy int)

Translates this line by the given offset.

func (*QLine) Translated

func (this *QLine) Translated(p QPoint_ITF) *QLine

Returns this line translated by the given offset.

This function was introduced in Qt 4.4.

func (*QLine) Translated_1

func (this *QLine) Translated_1(dx int, dy int) *QLine

Returns this line translated by the given offset.

This function was introduced in Qt 4.4.

func (*QLine) X1

func (this *QLine) X1() int

Returns the x-coordinate of the line's start point.

See also p1().

func (*QLine) X2

func (this *QLine) X2() int

Returns the x-coordinate of the line's end point.

See also p2().

func (*QLine) Y1

func (this *QLine) Y1() int

Returns the y-coordinate of the line's start point.

See also p1().

func (*QLine) Y2

func (this *QLine) Y2() int

Returns the y-coordinate of the line's end point.

See also p2().

type QLineF

type QLineF struct {
	*qtrt.CObject
}

func NewQLineF

func NewQLineF() *QLineF

func NewQLineFFromPointer

func NewQLineFFromPointer(cthis unsafe.Pointer) *QLineF

func NewQLineF_1

func NewQLineF_1(pt1 QPointF_ITF, pt2 QPointF_ITF) *QLineF

func NewQLineF_2

func NewQLineF_2(x1 float64, y1 float64, x2 float64, y2 float64) *QLineF

func NewQLineF_3

func NewQLineF_3(line QLine_ITF) *QLineF

func QLineF_FromPolar

func QLineF_FromPolar(length float64, angle float64) *QLineF

func (*QLineF) Angle

func (this *QLineF) Angle() float64

func (*QLineF) AngleTo

func (this *QLineF) AngleTo(l QLineF_ITF) float64

func (*QLineF) Angle_1

func (this *QLineF) Angle_1(l QLineF_ITF) float64

func (*QLineF) Center

func (this *QLineF) Center() *QPointF

Returns the center point of this line. This is equivalent to (p1() + p2()) / 2, except it will never overflow.

This function was introduced in Qt 5.8.

func (*QLineF) Dx

func (this *QLineF) Dx() float64

Returns the horizontal component of the line's vector.

See also dy().

func (*QLineF) Dy

func (this *QLineF) Dy() float64

Returns the vertical component of the line's vector.

See also dx().

func (*QLineF) FromPolar

func (this *QLineF) FromPolar(length float64, angle float64) *QLineF

func (*QLineF) GetCthis

func (this *QLineF) GetCthis() unsafe.Pointer

func (*QLineF) Intersect

func (this *QLineF) Intersect(l QLineF_ITF, intersectionPoint QPointF_ITF) int

func (*QLineF) IsNull

func (this *QLineF) IsNull() bool

Returns true if the line is not set up with valid start and end point; otherwise returns false.

func (*QLineF) Length

func (this *QLineF) Length() float64

func (*QLineF) NewFromPointer

func (*QLineF) NewFromPointer(cthis unsafe.Pointer) *QLineF

func (*QLineF) NormalVector

func (this *QLineF) NormalVector() *QLineF

func (*QLineF) Operator_equal_equal

func (this *QLineF) Operator_equal_equal(d QLineF_ITF) bool

func (*QLineF) Operator_not_equal

func (this *QLineF) Operator_not_equal(d QLineF_ITF) bool

func (*QLineF) P1

func (this *QLineF) P1() *QPointF

Returns the line's start point.

See also setP1(), x1(), y1(), and p2().

func (*QLineF) P2

func (this *QLineF) P2() *QPointF

Returns the line's end point.

See also setP2(), x2(), y2(), and p1().

func (*QLineF) PointAt

func (this *QLineF) PointAt(t float64) *QPointF

func (*QLineF) QLineF_PTR

func (ptr *QLineF) QLineF_PTR() *QLineF

func (*QLineF) SetAngle

func (this *QLineF) SetAngle(angle float64)

func (*QLineF) SetCthis

func (this *QLineF) SetCthis(cthis unsafe.Pointer)

func (*QLineF) SetLength

func (this *QLineF) SetLength(len_ float64)

func (*QLineF) SetLine

func (this *QLineF) SetLine(x1 float64, y1 float64, x2 float64, y2 float64)

Sets this line to the start in x1, y1 and end in x2, y2.

This function was introduced in Qt 4.4.

See also setP1(), setP2(), p1(), and p2().

func (*QLineF) SetP1

func (this *QLineF) SetP1(p1 QPointF_ITF)

Sets the starting point of this line to p1.

This function was introduced in Qt 4.4.

See also setP2() and p1().

func (*QLineF) SetP2

func (this *QLineF) SetP2(p2 QPointF_ITF)

Sets the end point of this line to p2.

This function was introduced in Qt 4.4.

See also setP1() and p2().

func (*QLineF) SetPoints

func (this *QLineF) SetPoints(p1 QPointF_ITF, p2 QPointF_ITF)

Sets the start point of this line to p1 and the end point of this line to p2.

This function was introduced in Qt 4.4.

See also setP1(), setP2(), p1(), and p2().

func (*QLineF) ToLine

func (this *QLineF) ToLine() *QLine

func (*QLineF) Translate

func (this *QLineF) Translate(p QPointF_ITF)

Translates this line by the given offset.

func (*QLineF) Translate_1

func (this *QLineF) Translate_1(dx float64, dy float64)

Translates this line by the given offset.

func (*QLineF) Translated

func (this *QLineF) Translated(p QPointF_ITF) *QLineF

Returns this line translated by the given offset.

This function was introduced in Qt 4.4.

func (*QLineF) Translated_1

func (this *QLineF) Translated_1(dx float64, dy float64) *QLineF

Returns this line translated by the given offset.

This function was introduced in Qt 4.4.

func (*QLineF) UnitVector

func (this *QLineF) UnitVector() *QLineF

func (*QLineF) X1

func (this *QLineF) X1() float64

Returns the x-coordinate of the line's start point.

See also p1().

func (*QLineF) X2

func (this *QLineF) X2() float64

Returns the x-coordinate of the line's end point.

See also p2().

func (*QLineF) Y1

func (this *QLineF) Y1() float64

Returns the y-coordinate of the line's start point.

See also p1().

func (*QLineF) Y2

func (this *QLineF) Y2() float64

Returns the y-coordinate of the line's end point.

See also p2().

type QLineF_ITF

type QLineF_ITF interface {
	QLineF_PTR() *QLineF
}

type QLineF__IntersectType

type QLineF__IntersectType = int
const QLineF__BoundedIntersection QLineF__IntersectType = 1
const QLineF__NoIntersection QLineF__IntersectType = 0
const QLineF__UnboundedIntersection QLineF__IntersectType = 2

type QLine_ITF

type QLine_ITF interface {
	QLine_PTR() *QLine
}

type QLinkedListData

type QLinkedListData struct {
	*qtrt.CObject
}

func NewQLinkedListDataFromPointer

func NewQLinkedListDataFromPointer(cthis unsafe.Pointer) *QLinkedListData

func (*QLinkedListData) GetCthis

func (this *QLinkedListData) GetCthis() unsafe.Pointer

func (*QLinkedListData) NewFromPointer

func (*QLinkedListData) NewFromPointer(cthis unsafe.Pointer) *QLinkedListData

func (*QLinkedListData) QLinkedListData_PTR

func (ptr *QLinkedListData) QLinkedListData_PTR() *QLinkedListData

func (*QLinkedListData) SetCthis

func (this *QLinkedListData) SetCthis(cthis unsafe.Pointer)

type QLinkedListData_ITF

type QLinkedListData_ITF interface {
	QLinkedListData_PTR() *QLinkedListData
}

type QListData

type QListData struct {
	*qtrt.CObject
}

func NewQListDataFromPointer

func NewQListDataFromPointer(cthis unsafe.Pointer) *QListData

func (*QListData) At

func (this *QListData) At(i int) unsafe.Pointer

Returns the item at index position i in the list. i must be a valid index position in the list (i.e., 0 <= i < size()).

This function is very fast (constant time).

See also value() and operator[]().

func (*QListData) Begin

func (this *QListData) Begin() unsafe.Pointer

Returns an STL-style iterator pointing to the first item in the list.

See also constBegin() and end().

func (*QListData) Detach

func (this *QListData) Detach(alloc int) unsafe.Pointer

func (*QListData) Detach_grow

func (this *QListData) Detach_grow(i unsafe.Pointer, n int) unsafe.Pointer

func (*QListData) Dispose

func (this *QListData) Dispose()

func (*QListData) End

func (this *QListData) End() unsafe.Pointer

Returns an STL-style iterator pointing to the imaginary item after the last item in the list.

See also begin() and constEnd().

func (*QListData) Erase

func (this *QListData) Erase(xi unsafe.Pointer) unsafe.Pointer

Removes the item associated with the iterator pos from the list, and returns an iterator to the next item in the list (which may be end()).

See also insert() and removeAt().

func (*QListData) GetCthis

func (this *QListData) GetCthis() unsafe.Pointer

func (*QListData) IsEmpty

func (this *QListData) IsEmpty() bool

Returns true if the list contains no items; otherwise returns false.

See also size().

func (*QListData) Move

func (this *QListData) Move(from int, to int)

Moves the item at index position from to index position to.

Example:

QList<QString> list;
list << "A" << "B" << "C" << "D" << "E" << "F";
list.move(1, 4);
// list: ["A", "C", "D", "E", "B", "F"]

This is the same as insert(to, takeAt(from)).This function assumes that both from and to are at least 0 but less than size(). To avoid failure, test that both from and to are at least 0 and less than size().

See also swap(), insert(), and takeAt().

func (*QListData) NewFromPointer

func (*QListData) NewFromPointer(cthis unsafe.Pointer) *QListData

func (*QListData) QListData_PTR

func (ptr *QListData) QListData_PTR() *QListData

func (*QListData) Realloc

func (this *QListData) Realloc(alloc int)

func (*QListData) Realloc_grow

func (this *QListData) Realloc_grow(growth int)

func (*QListData) Remove

func (this *QListData) Remove(i int)

func (*QListData) Remove_1

func (this *QListData) Remove_1(i int, n int)

func (*QListData) SetCthis

func (this *QListData) SetCthis(cthis unsafe.Pointer)

func (*QListData) Size

func (this *QListData) Size() int

Returns the number of items in the list.

See also isEmpty() and count().

type QListData_ITF

type QListData_ITF interface {
	QListData_PTR() *QListData
}

type QListData__

type QListData__ = int
const QListData__DataHeaderSize QListData__ = 16

type QLocale

type QLocale struct {
	*qtrt.CObject
}

func NewQLocale

func NewQLocale() *QLocale

Constructs a QLocale object initialized with the default locale. If no default locale was set using setDefault(), this locale will be the same as the one returned by system().

See also setDefault().

func NewQLocaleFromPointer

func NewQLocaleFromPointer(cthis unsafe.Pointer) *QLocale

func NewQLocale_1

func NewQLocale_1(name string) *QLocale

Constructs a QLocale object initialized with the default locale. If no default locale was set using setDefault(), this locale will be the same as the one returned by system().

See also setDefault().

func NewQLocale_2

func NewQLocale_2(language int, country int) *QLocale

Constructs a QLocale object initialized with the default locale. If no default locale was set using setDefault(), this locale will be the same as the one returned by system().

See also setDefault().

func NewQLocale_2_

func NewQLocale_2_(language int) *QLocale

Constructs a QLocale object initialized with the default locale. If no default locale was set using setDefault(), this locale will be the same as the one returned by system().

See also setDefault().

func NewQLocale_3

func NewQLocale_3(language int, script int, country int) *QLocale

Constructs a QLocale object initialized with the default locale. If no default locale was set using setDefault(), this locale will be the same as the one returned by system().

See also setDefault().

func QLocale_C

func QLocale_C() *QLocale

func QLocale_System

func QLocale_System() *QLocale

func (*QLocale) AmText

func (this *QLocale) AmText() string

Returns the localized name of the "AM" suffix for times specified using the conventions of the 12-hour clock.

This function was introduced in Qt 4.5.

See also pmText().

func (*QLocale) Bcp47Name

func (this *QLocale) Bcp47Name() string

Returns the dash-separated language, script and country (and possibly other BCP47 fields) of this locale as a string.

Unlike the uiLanguages() the returned value of the bcp47Name() represents the locale name of the QLocale data but not the language the user-interface should be in.

This function tries to conform the locale name to BCP47.

This function was introduced in Qt 4.8.

See also language(), country(), script(), and uiLanguages().

func (*QLocale) C

func (this *QLocale) C() *QLocale

Returns a QLocale object initialized to the "C" locale.

See also system().

func (*QLocale) Country

func (this *QLocale) Country() int

Returns the country of this locale.

See also language(), script(), countryToString(), and bcp47Name().

func (*QLocale) CountryToString

func (this *QLocale) CountryToString(country int) string

Returns a QString containing the name of country.

See also languageToString(), scriptToString(), country(), and bcp47Name().

func (*QLocale) CreateSeparatedList

func (this *QLocale) CreateSeparatedList(strl QStringList_ITF) string

Returns a string that represents a join of a given list of strings with a separator defined by the locale.

This function was introduced in Qt 4.8.

func (*QLocale) CurrencySymbol

func (this *QLocale) CurrencySymbol(arg0 int) string

Returns a currency symbol according to the format.

This function was introduced in Qt 4.8.

func (*QLocale) CurrencySymbol__

func (this *QLocale) CurrencySymbol__() string

Returns a currency symbol according to the format.

This function was introduced in Qt 4.8.

func (*QLocale) DateFormat

func (this *QLocale) DateFormat(format int) string

Returns the date format used for the current locale.

If format is LongFormat the format will be a long version. Otherwise it uses a shorter version.

This function was introduced in Qt 4.1.

See also QDate::toString() and QDate::fromString().

func (*QLocale) DateFormat__

func (this *QLocale) DateFormat__() string

Returns the date format used for the current locale.

If format is LongFormat the format will be a long version. Otherwise it uses a shorter version.

This function was introduced in Qt 4.1.

See also QDate::toString() and QDate::fromString().

func (*QLocale) DateTimeFormat

func (this *QLocale) DateTimeFormat(format int) string

Returns the date time format used for the current locale.

If format is ShortFormat the format will be a short version. Otherwise it uses a longer version.

This function was introduced in Qt 4.4.

See also QDateTime::toString() and QDateTime::fromString().

func (*QLocale) DateTimeFormat__

func (this *QLocale) DateTimeFormat__() string

Returns the date time format used for the current locale.

If format is ShortFormat the format will be a short version. Otherwise it uses a longer version.

This function was introduced in Qt 4.4.

See also QDateTime::toString() and QDateTime::fromString().

func (*QLocale) DayName

func (this *QLocale) DayName(arg0 int, format int) string

Returns the localized name of the day (where 1 represents Monday, 2 represents Tuesday and so on), in the format specified by type.

This function was introduced in Qt 4.2.

See also monthName() and standaloneDayName().

func (*QLocale) DayName__

func (this *QLocale) DayName__(arg0 int) string

Returns the localized name of the day (where 1 represents Monday, 2 represents Tuesday and so on), in the format specified by type.

This function was introduced in Qt 4.2.

See also monthName() and standaloneDayName().

func (*QLocale) DecimalPoint

func (this *QLocale) DecimalPoint() *QChar

Returns the decimal point character of this locale.

This function was introduced in Qt 4.1.

func (*QLocale) Exponential

func (this *QLocale) Exponential() *QChar

Returns the exponential character of this locale.

This function was introduced in Qt 4.1.

func (*QLocale) FirstDayOfWeek

func (this *QLocale) FirstDayOfWeek() int

Returns the first day of the week according to the current locale.

This function was introduced in Qt 4.8.

func (*QLocale) FormattedDataSize

func (this *QLocale) FormattedDataSize(bytes int64, precision int, format int) string

Converts a size in bytes to a human-readable localized string, comprising a number and a quantified unit. The quantifier is chosen such that the number is at least one, and as small as possible. For example if bytes is 16384, precision is 2, and format is DataSizeIecFormat (the default), this function returns "16.00 KiB"; for 1330409069609 bytes it returns "1.21 GiB"; and so on. If format is DataSizeIecFormat or DataSizeTraditionalFormat, the given number of bytes is divided by a power of 1024, with result less than 1024; for DataSizeSIFormat, it is divided by a power of 1000, with result less than 1000. DataSizeIecFormat uses the new IEC standard quantifiers Ki, Mi and so on, whereas DataSizeSIFormat uses the older SI quantifiers k, M, etc., and DataSizeTraditionalFormat abuses them.

This function was introduced in Qt 5.10.

func (*QLocale) FormattedDataSize__

func (this *QLocale) FormattedDataSize__(bytes int64) string

Converts a size in bytes to a human-readable localized string, comprising a number and a quantified unit. The quantifier is chosen such that the number is at least one, and as small as possible. For example if bytes is 16384, precision is 2, and format is DataSizeIecFormat (the default), this function returns "16.00 KiB"; for 1330409069609 bytes it returns "1.21 GiB"; and so on. If format is DataSizeIecFormat or DataSizeTraditionalFormat, the given number of bytes is divided by a power of 1024, with result less than 1024; for DataSizeSIFormat, it is divided by a power of 1000, with result less than 1000. DataSizeIecFormat uses the new IEC standard quantifiers Ki, Mi and so on, whereas DataSizeSIFormat uses the older SI quantifiers k, M, etc., and DataSizeTraditionalFormat abuses them.

This function was introduced in Qt 5.10.

func (*QLocale) FormattedDataSize__1

func (this *QLocale) FormattedDataSize__1(bytes int64, precision int) string

Converts a size in bytes to a human-readable localized string, comprising a number and a quantified unit. The quantifier is chosen such that the number is at least one, and as small as possible. For example if bytes is 16384, precision is 2, and format is DataSizeIecFormat (the default), this function returns "16.00 KiB"; for 1330409069609 bytes it returns "1.21 GiB"; and so on. If format is DataSizeIecFormat or DataSizeTraditionalFormat, the given number of bytes is divided by a power of 1024, with result less than 1024; for DataSizeSIFormat, it is divided by a power of 1000, with result less than 1000. DataSizeIecFormat uses the new IEC standard quantifiers Ki, Mi and so on, whereas DataSizeSIFormat uses the older SI quantifiers k, M, etc., and DataSizeTraditionalFormat abuses them.

This function was introduced in Qt 5.10.

func (*QLocale) GetCthis

func (this *QLocale) GetCthis() unsafe.Pointer

func (*QLocale) GroupSeparator

func (this *QLocale) GroupSeparator() *QChar

Returns the group separator character of this locale.

This function was introduced in Qt 4.1.

func (*QLocale) Language

func (this *QLocale) Language() int

Returns the language of this locale.

See also script(), country(), languageToString(), and bcp47Name().

func (*QLocale) LanguageToString

func (this *QLocale) LanguageToString(language int) string

Returns a QString containing the name of language.

See also countryToString(), scriptToString(), and bcp47Name().

func (*QLocale) MeasurementSystem

func (this *QLocale) MeasurementSystem() int

Returns the measurement system for the locale.

This function was introduced in Qt 4.4.

func (*QLocale) MonthName

func (this *QLocale) MonthName(arg0 int, format int) string

Returns the localized name of month, in the format specified by type.

This function was introduced in Qt 4.2.

See also dayName() and standaloneMonthName().

func (*QLocale) MonthName__

func (this *QLocale) MonthName__(arg0 int) string

Returns the localized name of month, in the format specified by type.

This function was introduced in Qt 4.2.

See also dayName() and standaloneMonthName().

func (*QLocale) Name

func (this *QLocale) Name() string

Returns the language and country of this locale as a string of the form "language_country", where language is a lowercase, two-letter ISO 639 language code, and country is an uppercase, two- or three-letter ISO 3166 country code.

Note that even if QLocale object was constructed with an explicit script, name() will not contain it for compatibility reasons. Use bcp47Name() instead if you need a full locale name.

See also QLocale(), language(), script(), country(), and bcp47Name().

func (*QLocale) NativeCountryName

func (this *QLocale) NativeCountryName() string

Returns a native name of the country for the locale. For example "España" for Spanish/Spain locale.

This function was introduced in Qt 4.8.

See also nativeLanguageName() and countryToString().

func (*QLocale) NativeLanguageName

func (this *QLocale) NativeLanguageName() string

Returns a native name of the language for the locale. For example "Schwiizertüütsch" for Swiss-German locale.

This function was introduced in Qt 4.8.

See also nativeCountryName() and languageToString().

func (*QLocale) NegativeSign

func (this *QLocale) NegativeSign() *QChar

Returns the negative sign character of this locale.

This function was introduced in Qt 4.1.

func (*QLocale) NewFromPointer

func (*QLocale) NewFromPointer(cthis unsafe.Pointer) *QLocale

func (*QLocale) NumberOptions

func (this *QLocale) NumberOptions() int

Returns the options related to number conversions for this QLocale instance.

By default, no options are set for the standard locales.

This function was introduced in Qt 4.2.

See also setNumberOptions().

func (*QLocale) Operator_equal

func (this *QLocale) Operator_equal(other unsafe.Pointer) *QLocale

func (*QLocale) Operator_equal_1

func (this *QLocale) Operator_equal_1(other QLocale_ITF) *QLocale

func (*QLocale) Operator_equal_equal

func (this *QLocale) Operator_equal_equal(other QLocale_ITF) bool

func (*QLocale) Operator_not_equal

func (this *QLocale) Operator_not_equal(other QLocale_ITF) bool

func (*QLocale) Percent

func (this *QLocale) Percent() *QChar

Returns the percent character of this locale.

This function was introduced in Qt 4.1.

func (*QLocale) PmText

func (this *QLocale) PmText() string

Returns the localized name of the "PM" suffix for times specified using the conventions of the 12-hour clock.

This function was introduced in Qt 4.5.

See also amText().

func (*QLocale) PositiveSign

func (this *QLocale) PositiveSign() *QChar

Returns the positive sign character of this locale.

This function was introduced in Qt 4.5.

func (*QLocale) QLocale_PTR

func (ptr *QLocale) QLocale_PTR() *QLocale

func (*QLocale) QuoteString

func (this *QLocale) QuoteString(str string, style int) string

Returns str quoted according to the current locale using the given quotation style.

This function was introduced in Qt 4.8.

func (*QLocale) QuoteString_1

func (this *QLocale) QuoteString_1(str QStringRef_ITF, style int) string

Returns str quoted according to the current locale using the given quotation style.

This function was introduced in Qt 4.8.

func (*QLocale) QuoteString_1_

func (this *QLocale) QuoteString_1_(str QStringRef_ITF) string

Returns str quoted according to the current locale using the given quotation style.

This function was introduced in Qt 4.8.

func (*QLocale) QuoteString__

func (this *QLocale) QuoteString__(str string) string

Returns str quoted according to the current locale using the given quotation style.

This function was introduced in Qt 4.8.

func (*QLocale) Script

func (this *QLocale) Script() int

Returns the script of this locale.

This function was introduced in Qt 4.8.

See also language(), country(), languageToString(), scriptToString(), and bcp47Name().

func (*QLocale) ScriptToString

func (this *QLocale) ScriptToString(script int) string

Returns a QString containing the name of script.

This function was introduced in Qt 4.8.

See also languageToString(), countryToString(), script(), and bcp47Name().

func (*QLocale) SetCthis

func (this *QLocale) SetCthis(cthis unsafe.Pointer)

func (*QLocale) SetDefault

func (this *QLocale) SetDefault(locale QLocale_ITF)

Sets the global default locale to locale. These values are used when a QLocale object is constructed with no arguments. If this function is not called, the system's locale is used.

Warning: In a multithreaded application, the default locale should be set at application startup, before any non-GUI threads are created.

Warning: This function is not reentrant.

See also system() and c().

func (*QLocale) SetNumberOptions

func (this *QLocale) SetNumberOptions(options int)

Sets the options related to number conversions for this QLocale instance.

This function was introduced in Qt 4.2.

See also numberOptions().

func (*QLocale) StandaloneDayName

func (this *QLocale) StandaloneDayName(arg0 int, format int) string

Returns the localized name of the day (where 1 represents Monday, 2 represents Tuesday and so on) that is used as a standalone text, in the format specified by type.

If the locale information does not specify the standalone day name then return value is the same as in dayName().

This function was introduced in Qt 4.5.

See also dayName() and standaloneMonthName().

func (*QLocale) StandaloneDayName__

func (this *QLocale) StandaloneDayName__(arg0 int) string

Returns the localized name of the day (where 1 represents Monday, 2 represents Tuesday and so on) that is used as a standalone text, in the format specified by type.

If the locale information does not specify the standalone day name then return value is the same as in dayName().

This function was introduced in Qt 4.5.

See also dayName() and standaloneMonthName().

func (*QLocale) StandaloneMonthName

func (this *QLocale) StandaloneMonthName(arg0 int, format int) string

Returns the localized name of month that is used as a standalone text, in the format specified by type.

If the locale information doesn't specify the standalone month name then return value is the same as in monthName().

This function was introduced in Qt 4.5.

See also monthName() and standaloneDayName().

func (*QLocale) StandaloneMonthName__

func (this *QLocale) StandaloneMonthName__(arg0 int) string

Returns the localized name of month that is used as a standalone text, in the format specified by type.

If the locale information doesn't specify the standalone month name then return value is the same as in monthName().

This function was introduced in Qt 4.5.

See also monthName() and standaloneDayName().

func (*QLocale) Swap

func (this *QLocale) Swap(other QLocale_ITF)

Swaps locale other with this locale. This operation is very fast and never fails.

This function was introduced in Qt 5.6.

func (*QLocale) System

func (this *QLocale) System() *QLocale

Returns a QLocale object initialized to the system locale.

On Windows and Mac, this locale will use the decimal/grouping characters and date/time formats specified in the system configuration panel.

See also c().

func (*QLocale) TextDirection

func (this *QLocale) TextDirection() int

Returns the text direction of the language.

This function was introduced in Qt 4.7.

func (*QLocale) TimeFormat

func (this *QLocale) TimeFormat(format int) string

Returns the time format used for the current locale.

If format is LongFormat the format will be a long version. Otherwise it uses a shorter version.

This function was introduced in Qt 4.1.

See also QTime::toString() and QTime::fromString().

func (*QLocale) TimeFormat__

func (this *QLocale) TimeFormat__() string

Returns the time format used for the current locale.

If format is LongFormat the format will be a long version. Otherwise it uses a shorter version.

This function was introduced in Qt 4.1.

See also QTime::toString() and QTime::fromString().

func (*QLocale) ToCurrencyString

func (this *QLocale) ToCurrencyString(arg0 int64, symbol string) string

Returns a localized string representation of value as a currency. If the symbol is provided it is used instead of the default currency symbol.

This function was introduced in Qt 4.8.

See also currencySymbol().

func (*QLocale) ToCurrencyString_1

func (this *QLocale) ToCurrencyString_1(arg0 uint64, symbol string) string

Returns a localized string representation of value as a currency. If the symbol is provided it is used instead of the default currency symbol.

This function was introduced in Qt 4.8.

See also currencySymbol().

func (*QLocale) ToCurrencyString_1_

func (this *QLocale) ToCurrencyString_1_(arg0 uint64) string

Returns a localized string representation of value as a currency. If the symbol is provided it is used instead of the default currency symbol.

This function was introduced in Qt 4.8.

See also currencySymbol().

func (*QLocale) ToCurrencyString_2

func (this *QLocale) ToCurrencyString_2(arg0 int16, symbol string) string

Returns a localized string representation of value as a currency. If the symbol is provided it is used instead of the default currency symbol.

This function was introduced in Qt 4.8.

See also currencySymbol().

func (*QLocale) ToCurrencyString_2_

func (this *QLocale) ToCurrencyString_2_(arg0 int16) string

Returns a localized string representation of value as a currency. If the symbol is provided it is used instead of the default currency symbol.

This function was introduced in Qt 4.8.

See also currencySymbol().

func (*QLocale) ToCurrencyString_3

func (this *QLocale) ToCurrencyString_3(arg0 uint16, symbol string) string

Returns a localized string representation of value as a currency. If the symbol is provided it is used instead of the default currency symbol.

This function was introduced in Qt 4.8.

See also currencySymbol().

func (*QLocale) ToCurrencyString_3_

func (this *QLocale) ToCurrencyString_3_(arg0 uint16) string

Returns a localized string representation of value as a currency. If the symbol is provided it is used instead of the default currency symbol.

This function was introduced in Qt 4.8.

See also currencySymbol().

func (*QLocale) ToCurrencyString_4

func (this *QLocale) ToCurrencyString_4(arg0 int, symbol string) string

Returns a localized string representation of value as a currency. If the symbol is provided it is used instead of the default currency symbol.

This function was introduced in Qt 4.8.

See also currencySymbol().

func (*QLocale) ToCurrencyString_4_

func (this *QLocale) ToCurrencyString_4_(arg0 int) string

Returns a localized string representation of value as a currency. If the symbol is provided it is used instead of the default currency symbol.

This function was introduced in Qt 4.8.

See also currencySymbol().

func (*QLocale) ToCurrencyString_5

func (this *QLocale) ToCurrencyString_5(arg0 uint, symbol string) string

Returns a localized string representation of value as a currency. If the symbol is provided it is used instead of the default currency symbol.

This function was introduced in Qt 4.8.

See also currencySymbol().

func (*QLocale) ToCurrencyString_5_

func (this *QLocale) ToCurrencyString_5_(arg0 uint) string

Returns a localized string representation of value as a currency. If the symbol is provided it is used instead of the default currency symbol.

This function was introduced in Qt 4.8.

See also currencySymbol().

func (*QLocale) ToCurrencyString_6

func (this *QLocale) ToCurrencyString_6(arg0 float64, symbol string) string

Returns a localized string representation of value as a currency. If the symbol is provided it is used instead of the default currency symbol.

This function was introduced in Qt 4.8.

See also currencySymbol().

func (*QLocale) ToCurrencyString_6_

func (this *QLocale) ToCurrencyString_6_(arg0 float64) string

Returns a localized string representation of value as a currency. If the symbol is provided it is used instead of the default currency symbol.

This function was introduced in Qt 4.8.

See also currencySymbol().

func (*QLocale) ToCurrencyString_7

func (this *QLocale) ToCurrencyString_7(arg0 float64, symbol string, precision int) string

Returns a localized string representation of value as a currency. If the symbol is provided it is used instead of the default currency symbol.

This function was introduced in Qt 4.8.

See also currencySymbol().

func (*QLocale) ToCurrencyString_8

func (this *QLocale) ToCurrencyString_8(i float32, symbol string) string

Returns a localized string representation of value as a currency. If the symbol is provided it is used instead of the default currency symbol.

This function was introduced in Qt 4.8.

See also currencySymbol().

func (*QLocale) ToCurrencyString_8_

func (this *QLocale) ToCurrencyString_8_(i float32) string

Returns a localized string representation of value as a currency. If the symbol is provided it is used instead of the default currency symbol.

This function was introduced in Qt 4.8.

See also currencySymbol().

func (*QLocale) ToCurrencyString_9

func (this *QLocale) ToCurrencyString_9(i float32, symbol string, precision int) string

Returns a localized string representation of value as a currency. If the symbol is provided it is used instead of the default currency symbol.

This function was introduced in Qt 4.8.

See also currencySymbol().

func (*QLocale) ToCurrencyString__

func (this *QLocale) ToCurrencyString__(arg0 int64) string

Returns a localized string representation of value as a currency. If the symbol is provided it is used instead of the default currency symbol.

This function was introduced in Qt 4.8.

See also currencySymbol().

func (*QLocale) ToDate

func (this *QLocale) ToDate(string string, arg1 int) *QDate

Parses the date string given in string and returns the date. The format of the date string is chosen according to the format parameter (see dateFormat()).

If the date could not be parsed, returns an invalid date.

This function was introduced in Qt 4.4.

See also dateFormat(), toTime(), toDateTime(), and QDate::fromString().

func (*QLocale) ToDateTime

func (this *QLocale) ToDateTime(string string, format int) *QDateTime

Parses the date/time string given in string and returns the time. The format of the date/time string is chosen according to the format parameter (see dateTimeFormat()).

If the string could not be parsed, returns an invalid QDateTime.

This function was introduced in Qt 4.4.

See also dateTimeFormat(), toTime(), toDate(), and QDateTime::fromString().

func (*QLocale) ToDateTime_1

func (this *QLocale) ToDateTime_1(string string, format string) *QDateTime

Parses the date/time string given in string and returns the time. The format of the date/time string is chosen according to the format parameter (see dateTimeFormat()).

If the string could not be parsed, returns an invalid QDateTime.

This function was introduced in Qt 4.4.

See also dateTimeFormat(), toTime(), toDate(), and QDateTime::fromString().

func (*QLocale) ToDateTime__

func (this *QLocale) ToDateTime__(string string) *QDateTime

Parses the date/time string given in string and returns the time. The format of the date/time string is chosen according to the format parameter (see dateTimeFormat()).

If the string could not be parsed, returns an invalid QDateTime.

This function was introduced in Qt 4.4.

See also dateTimeFormat(), toTime(), toDate(), and QDateTime::fromString().

func (*QLocale) ToDate_1

func (this *QLocale) ToDate_1(string string, format string) *QDate

Parses the date string given in string and returns the date. The format of the date string is chosen according to the format parameter (see dateFormat()).

If the date could not be parsed, returns an invalid date.

This function was introduced in Qt 4.4.

See also dateFormat(), toTime(), toDateTime(), and QDate::fromString().

func (*QLocale) ToDate__

func (this *QLocale) ToDate__(string string) *QDate

Parses the date string given in string and returns the date. The format of the date string is chosen according to the format parameter (see dateFormat()).

If the date could not be parsed, returns an invalid date.

This function was introduced in Qt 4.4.

See also dateFormat(), toTime(), toDateTime(), and QDate::fromString().

func (*QLocale) ToDouble

func (this *QLocale) ToDouble(s string, ok *bool) float64

Returns the double represented by the localized string s, or 0.0 if the conversion failed.

If ok is not 0, reports failure by setting *ok to false and success by setting *ok to true.

Unlike QString::toDouble(), this function does not use the 'C' locale if the string cannot be interpreted in this locale.

bool ok;
double d;

QLocale c(QLocale::C);
d = c.toDouble( "1234.56", &ok );  // ok == true, d == 1234.56
d = c.toDouble( "1,234.56", &ok ); // ok == true, d == 1234.56
d = c.toDouble( "1234,56", &ok );  // ok == false

QLocale german(QLocale::German);
d = german.toDouble( "1234,56", &ok );  // ok == true, d == 1234.56
d = german.toDouble( "1.234,56", &ok ); // ok == true, d == 1234.56
d = german.toDouble( "1234.56", &ok );  // ok == false

d = german.toDouble( "1.234", &ok );    // ok == true, d == 1234.0

Notice that the last conversion returns 1234.0, because '.' is the thousands group separator in the German locale.

This function ignores leading and trailing whitespace.

See also toFloat(), toInt(), and toString().

func (*QLocale) ToDouble_1

func (this *QLocale) ToDouble_1(s QStringRef_ITF, ok *bool) float64

Returns the double represented by the localized string s, or 0.0 if the conversion failed.

If ok is not 0, reports failure by setting *ok to false and success by setting *ok to true.

Unlike QString::toDouble(), this function does not use the 'C' locale if the string cannot be interpreted in this locale.

bool ok;
double d;

QLocale c(QLocale::C);
d = c.toDouble( "1234.56", &ok );  // ok == true, d == 1234.56
d = c.toDouble( "1,234.56", &ok ); // ok == true, d == 1234.56
d = c.toDouble( "1234,56", &ok );  // ok == false

QLocale german(QLocale::German);
d = german.toDouble( "1234,56", &ok );  // ok == true, d == 1234.56
d = german.toDouble( "1.234,56", &ok ); // ok == true, d == 1234.56
d = german.toDouble( "1234.56", &ok );  // ok == false

d = german.toDouble( "1.234", &ok );    // ok == true, d == 1234.0

Notice that the last conversion returns 1234.0, because '.' is the thousands group separator in the German locale.

This function ignores leading and trailing whitespace.

See also toFloat(), toInt(), and toString().

func (*QLocale) ToDouble_1_

func (this *QLocale) ToDouble_1_(s QStringRef_ITF) float64

Returns the double represented by the localized string s, or 0.0 if the conversion failed.

If ok is not 0, reports failure by setting *ok to false and success by setting *ok to true.

Unlike QString::toDouble(), this function does not use the 'C' locale if the string cannot be interpreted in this locale.

bool ok;
double d;

QLocale c(QLocale::C);
d = c.toDouble( "1234.56", &ok );  // ok == true, d == 1234.56
d = c.toDouble( "1,234.56", &ok ); // ok == true, d == 1234.56
d = c.toDouble( "1234,56", &ok );  // ok == false

QLocale german(QLocale::German);
d = german.toDouble( "1234,56", &ok );  // ok == true, d == 1234.56
d = german.toDouble( "1.234,56", &ok ); // ok == true, d == 1234.56
d = german.toDouble( "1234.56", &ok );  // ok == false

d = german.toDouble( "1.234", &ok );    // ok == true, d == 1234.0

Notice that the last conversion returns 1234.0, because '.' is the thousands group separator in the German locale.

This function ignores leading and trailing whitespace.

See also toFloat(), toInt(), and toString().

func (*QLocale) ToDouble_2

func (this *QLocale) ToDouble_2(s QStringView_ITF, ok *bool) float64

Returns the double represented by the localized string s, or 0.0 if the conversion failed.

If ok is not 0, reports failure by setting *ok to false and success by setting *ok to true.

Unlike QString::toDouble(), this function does not use the 'C' locale if the string cannot be interpreted in this locale.

bool ok;
double d;

QLocale c(QLocale::C);
d = c.toDouble( "1234.56", &ok );  // ok == true, d == 1234.56
d = c.toDouble( "1,234.56", &ok ); // ok == true, d == 1234.56
d = c.toDouble( "1234,56", &ok );  // ok == false

QLocale german(QLocale::German);
d = german.toDouble( "1234,56", &ok );  // ok == true, d == 1234.56
d = german.toDouble( "1.234,56", &ok ); // ok == true, d == 1234.56
d = german.toDouble( "1234.56", &ok );  // ok == false

d = german.toDouble( "1.234", &ok );    // ok == true, d == 1234.0

Notice that the last conversion returns 1234.0, because '.' is the thousands group separator in the German locale.

This function ignores leading and trailing whitespace.

See also toFloat(), toInt(), and toString().

func (*QLocale) ToDouble_2_

func (this *QLocale) ToDouble_2_(s QStringView_ITF) float64

Returns the double represented by the localized string s, or 0.0 if the conversion failed.

If ok is not 0, reports failure by setting *ok to false and success by setting *ok to true.

Unlike QString::toDouble(), this function does not use the 'C' locale if the string cannot be interpreted in this locale.

bool ok;
double d;

QLocale c(QLocale::C);
d = c.toDouble( "1234.56", &ok );  // ok == true, d == 1234.56
d = c.toDouble( "1,234.56", &ok ); // ok == true, d == 1234.56
d = c.toDouble( "1234,56", &ok );  // ok == false

QLocale german(QLocale::German);
d = german.toDouble( "1234,56", &ok );  // ok == true, d == 1234.56
d = german.toDouble( "1.234,56", &ok ); // ok == true, d == 1234.56
d = german.toDouble( "1234.56", &ok );  // ok == false

d = german.toDouble( "1.234", &ok );    // ok == true, d == 1234.0

Notice that the last conversion returns 1234.0, because '.' is the thousands group separator in the German locale.

This function ignores leading and trailing whitespace.

See also toFloat(), toInt(), and toString().

func (*QLocale) ToDouble__

func (this *QLocale) ToDouble__(s string) float64

Returns the double represented by the localized string s, or 0.0 if the conversion failed.

If ok is not 0, reports failure by setting *ok to false and success by setting *ok to true.

Unlike QString::toDouble(), this function does not use the 'C' locale if the string cannot be interpreted in this locale.

bool ok;
double d;

QLocale c(QLocale::C);
d = c.toDouble( "1234.56", &ok );  // ok == true, d == 1234.56
d = c.toDouble( "1,234.56", &ok ); // ok == true, d == 1234.56
d = c.toDouble( "1234,56", &ok );  // ok == false

QLocale german(QLocale::German);
d = german.toDouble( "1234,56", &ok );  // ok == true, d == 1234.56
d = german.toDouble( "1.234,56", &ok ); // ok == true, d == 1234.56
d = german.toDouble( "1234.56", &ok );  // ok == false

d = german.toDouble( "1.234", &ok );    // ok == true, d == 1234.0

Notice that the last conversion returns 1234.0, because '.' is the thousands group separator in the German locale.

This function ignores leading and trailing whitespace.

See also toFloat(), toInt(), and toString().

func (*QLocale) ToFloat

func (this *QLocale) ToFloat(s string, ok *bool) float32

Returns the float represented by the localized string s, or 0.0 if the conversion failed.

If ok is not 0, reports failure by setting *ok to false and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toDouble(), toInt(), and toString().

func (*QLocale) ToFloat_1

func (this *QLocale) ToFloat_1(s QStringRef_ITF, ok *bool) float32

Returns the float represented by the localized string s, or 0.0 if the conversion failed.

If ok is not 0, reports failure by setting *ok to false and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toDouble(), toInt(), and toString().

func (*QLocale) ToFloat_1_

func (this *QLocale) ToFloat_1_(s QStringRef_ITF) float32

Returns the float represented by the localized string s, or 0.0 if the conversion failed.

If ok is not 0, reports failure by setting *ok to false and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toDouble(), toInt(), and toString().

func (*QLocale) ToFloat_2

func (this *QLocale) ToFloat_2(s QStringView_ITF, ok *bool) float32

Returns the float represented by the localized string s, or 0.0 if the conversion failed.

If ok is not 0, reports failure by setting *ok to false and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toDouble(), toInt(), and toString().

func (*QLocale) ToFloat_2_

func (this *QLocale) ToFloat_2_(s QStringView_ITF) float32

Returns the float represented by the localized string s, or 0.0 if the conversion failed.

If ok is not 0, reports failure by setting *ok to false and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toDouble(), toInt(), and toString().

func (*QLocale) ToFloat__

func (this *QLocale) ToFloat__(s string) float32

Returns the float represented by the localized string s, or 0.0 if the conversion failed.

If ok is not 0, reports failure by setting *ok to false and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toDouble(), toInt(), and toString().

func (*QLocale) ToInt

func (this *QLocale) ToInt(s string, ok *bool) int

Returns the int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toUInt() and toString().

func (*QLocale) ToInt_1

func (this *QLocale) ToInt_1(s QStringRef_ITF, ok *bool) int

Returns the int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toUInt() and toString().

func (*QLocale) ToInt_1_

func (this *QLocale) ToInt_1_(s QStringRef_ITF) int

Returns the int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toUInt() and toString().

func (*QLocale) ToInt_2

func (this *QLocale) ToInt_2(s QStringView_ITF, ok *bool) int

Returns the int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toUInt() and toString().

func (*QLocale) ToInt_2_

func (this *QLocale) ToInt_2_(s QStringView_ITF) int

Returns the int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toUInt() and toString().

func (*QLocale) ToInt__

func (this *QLocale) ToInt__(s string) int

Returns the int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toUInt() and toString().

func (*QLocale) ToLongLong

func (this *QLocale) ToLongLong(s string, ok *bool) int64

Returns the long long int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toInt(), toULongLong(), toDouble(), and toString().

func (*QLocale) ToLongLong_1

func (this *QLocale) ToLongLong_1(s QStringRef_ITF, ok *bool) int64

Returns the long long int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toInt(), toULongLong(), toDouble(), and toString().

func (*QLocale) ToLongLong_1_

func (this *QLocale) ToLongLong_1_(s QStringRef_ITF) int64

Returns the long long int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toInt(), toULongLong(), toDouble(), and toString().

func (*QLocale) ToLongLong_2

func (this *QLocale) ToLongLong_2(s QStringView_ITF, ok *bool) int64

Returns the long long int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toInt(), toULongLong(), toDouble(), and toString().

func (*QLocale) ToLongLong_2_

func (this *QLocale) ToLongLong_2_(s QStringView_ITF) int64

Returns the long long int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toInt(), toULongLong(), toDouble(), and toString().

func (*QLocale) ToLongLong__

func (this *QLocale) ToLongLong__(s string) int64

Returns the long long int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toInt(), toULongLong(), toDouble(), and toString().

func (*QLocale) ToLower

func (this *QLocale) ToLower(str string) string

Returns a lowercase copy of str.

If Qt Core is using the ICU libraries, they will be used to perform the transformation according to the rules of the current locale. Otherwise the conversion may be done in a platform-dependent manner, with QString::toLower() as a generic fallback.

This function was introduced in Qt 4.8.

See also QString::toLower().

func (*QLocale) ToShort

func (this *QLocale) ToShort(s string, ok *bool) int16

Returns the short int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toUShort() and toString().

func (*QLocale) ToShort_1

func (this *QLocale) ToShort_1(s QStringRef_ITF, ok *bool) int16

Returns the short int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toUShort() and toString().

func (*QLocale) ToShort_1_

func (this *QLocale) ToShort_1_(s QStringRef_ITF) int16

Returns the short int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toUShort() and toString().

func (*QLocale) ToShort_2

func (this *QLocale) ToShort_2(s QStringView_ITF, ok *bool) int16

Returns the short int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toUShort() and toString().

func (*QLocale) ToShort_2_

func (this *QLocale) ToShort_2_(s QStringView_ITF) int16

Returns the short int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toUShort() and toString().

func (*QLocale) ToShort__

func (this *QLocale) ToShort__(s string) int16

Returns the short int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toUShort() and toString().

func (*QLocale) ToString

func (this *QLocale) ToString(i int64) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_1

func (this *QLocale) ToString_1(i uint64) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_10

func (this *QLocale) ToString_10(dateTime QDateTime_ITF, format string) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_11

func (this *QLocale) ToString_11(date QDate_ITF, formatStr QStringView_ITF) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_12

func (this *QLocale) ToString_12(time QTime_ITF, formatStr QStringView_ITF) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_13

func (this *QLocale) ToString_13(dateTime QDateTime_ITF, format QStringView_ITF) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_14

func (this *QLocale) ToString_14(date QDate_ITF, format int) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_14_

func (this *QLocale) ToString_14_(date QDate_ITF) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_15

func (this *QLocale) ToString_15(time QTime_ITF, format int) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_15_

func (this *QLocale) ToString_15_(time QTime_ITF) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_16

func (this *QLocale) ToString_16(dateTime QDateTime_ITF, format int) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_16_

func (this *QLocale) ToString_16_(dateTime QDateTime_ITF) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_2

func (this *QLocale) ToString_2(i int16) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_3

func (this *QLocale) ToString_3(i uint16) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_4

func (this *QLocale) ToString_4(i int) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_5

func (this *QLocale) ToString_5(i uint) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_6

func (this *QLocale) ToString_6(i float64, f byte, prec int) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_6_

func (this *QLocale) ToString_6_(i float64) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_6_1

func (this *QLocale) ToString_6_1(i float64, f byte) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_7

func (this *QLocale) ToString_7(i float32, f byte, prec int) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_7_

func (this *QLocale) ToString_7_(i float32) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_7_1

func (this *QLocale) ToString_7_1(i float32, f byte) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_8

func (this *QLocale) ToString_8(date QDate_ITF, formatStr string) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToString_9

func (this *QLocale) ToString_9(time QTime_ITF, formatStr string) string

Returns a localized string representation of i.

See also toLongLong().

func (*QLocale) ToTime

func (this *QLocale) ToTime(string string, arg1 int) *QTime

Parses the time string given in string and returns the time. The format of the time string is chosen according to the format parameter (see timeFormat()).

If the time could not be parsed, returns an invalid time.

This function was introduced in Qt 4.4.

See also timeFormat(), toDate(), toDateTime(), and QTime::fromString().

func (*QLocale) ToTime_1

func (this *QLocale) ToTime_1(string string, format string) *QTime

Parses the time string given in string and returns the time. The format of the time string is chosen according to the format parameter (see timeFormat()).

If the time could not be parsed, returns an invalid time.

This function was introduced in Qt 4.4.

See also timeFormat(), toDate(), toDateTime(), and QTime::fromString().

func (*QLocale) ToTime__

func (this *QLocale) ToTime__(string string) *QTime

Parses the time string given in string and returns the time. The format of the time string is chosen according to the format parameter (see timeFormat()).

If the time could not be parsed, returns an invalid time.

This function was introduced in Qt 4.4.

See also timeFormat(), toDate(), toDateTime(), and QTime::fromString().

func (*QLocale) ToUInt

func (this *QLocale) ToUInt(s string, ok *bool) uint

Returns the unsigned int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toInt() and toString().

func (*QLocale) ToUInt_1

func (this *QLocale) ToUInt_1(s QStringRef_ITF, ok *bool) uint

Returns the unsigned int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toInt() and toString().

func (*QLocale) ToUInt_1_

func (this *QLocale) ToUInt_1_(s QStringRef_ITF) uint

Returns the unsigned int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toInt() and toString().

func (*QLocale) ToUInt_2

func (this *QLocale) ToUInt_2(s QStringView_ITF, ok *bool) uint

Returns the unsigned int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toInt() and toString().

func (*QLocale) ToUInt_2_

func (this *QLocale) ToUInt_2_(s QStringView_ITF) uint

Returns the unsigned int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toInt() and toString().

func (*QLocale) ToUInt__

func (this *QLocale) ToUInt__(s string) uint

Returns the unsigned int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toInt() and toString().

func (*QLocale) ToULongLong

func (this *QLocale) ToULongLong(s string, ok *bool) uint64

Returns the unsigned long long int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toLongLong(), toInt(), toDouble(), and toString().

func (*QLocale) ToULongLong_1

func (this *QLocale) ToULongLong_1(s QStringRef_ITF, ok *bool) uint64

Returns the unsigned long long int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toLongLong(), toInt(), toDouble(), and toString().

func (*QLocale) ToULongLong_1_

func (this *QLocale) ToULongLong_1_(s QStringRef_ITF) uint64

Returns the unsigned long long int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toLongLong(), toInt(), toDouble(), and toString().

func (*QLocale) ToULongLong_2

func (this *QLocale) ToULongLong_2(s QStringView_ITF, ok *bool) uint64

Returns the unsigned long long int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toLongLong(), toInt(), toDouble(), and toString().

func (*QLocale) ToULongLong_2_

func (this *QLocale) ToULongLong_2_(s QStringView_ITF) uint64

Returns the unsigned long long int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toLongLong(), toInt(), toDouble(), and toString().

func (*QLocale) ToULongLong__

func (this *QLocale) ToULongLong__(s string) uint64

Returns the unsigned long long int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toLongLong(), toInt(), toDouble(), and toString().

func (*QLocale) ToUShort

func (this *QLocale) ToUShort(s string, ok *bool) uint16

Returns the unsigned short int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toShort() and toString().

func (*QLocale) ToUShort_1

func (this *QLocale) ToUShort_1(s QStringRef_ITF, ok *bool) uint16

Returns the unsigned short int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toShort() and toString().

func (*QLocale) ToUShort_1_

func (this *QLocale) ToUShort_1_(s QStringRef_ITF) uint16

Returns the unsigned short int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toShort() and toString().

func (*QLocale) ToUShort_2

func (this *QLocale) ToUShort_2(s QStringView_ITF, ok *bool) uint16

Returns the unsigned short int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toShort() and toString().

func (*QLocale) ToUShort_2_

func (this *QLocale) ToUShort_2_(s QStringView_ITF) uint16

Returns the unsigned short int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toShort() and toString().

func (*QLocale) ToUShort__

func (this *QLocale) ToUShort__(s string) uint16

Returns the unsigned short int represented by the localized string s.

If the conversion fails the function returns 0.

If ok is not 0, failure is reported by setting *ok to false, and success by setting *ok to true.

This function ignores leading and trailing whitespace.

See also toShort() and toString().

func (*QLocale) ToUpper

func (this *QLocale) ToUpper(str string) string

Returns an uppercase copy of str.

If Qt Core is using the ICU libraries, they will be used to perform the transformation according to the rules of the current locale. Otherwise the conversion may be done in a platform-dependent manner, with QString::toUpper() as a generic fallback.

This function was introduced in Qt 4.8.

See also QString::toUpper().

func (*QLocale) UiLanguages

func (this *QLocale) UiLanguages() *QStringList

Returns an ordered list of locale names for translation purposes in preference order (like "en-Latn-US", "en-US", "en").

The return value represents locale names that the user expects to see the UI translation in.

Most like you do not need to use this function directly, but just pass the QLocale object to the QTranslator::load() function.

The first item in the list is the most preferred one.

This function was introduced in Qt 4.8.

See also QTranslator and bcp47Name().

func (*QLocale) ZeroDigit

func (this *QLocale) ZeroDigit() *QChar

Returns the zero digit character of this locale.

This function was introduced in Qt 4.1.

type QLocale_ITF

type QLocale_ITF interface {
	QLocale_PTR() *QLocale
}

type QLocale__Country

type QLocale__Country = int

This enumerated type is used to specify a country.

QLocale::DemocraticRepublicOfCongoCongoKinshasaObsolete, please use CongoKinshasa QLocale::PeoplesRepublicOfCongoCongoBrazzavilleObsolete, please use CongoBrazzaville QLocale::DemocraticRepublicOfKoreaNorthKoreaObsolete, please use NorthKorea QLocale::RepublicOfKoreaSouthKoreaObsolete, please use SouthKorea QLocale::RussianFederationRussiasame as Russia QLocale::SyrianArabRepublicSyriaObsolete, please use Syria QLocale::TokelauTokelauCountryObsolete, please use TokelauCountry QLocale::TuvaluTuvaluCountryObsolete, please use TuvaluCountry

See also country() and countryToString().

const QLocale__Afghanistan QLocale__Country = 1
const QLocale__AlandIslands QLocale__Country = 248
const QLocale__Albania QLocale__Country = 2
const QLocale__Algeria QLocale__Country = 3
const QLocale__AmericanSamoa QLocale__Country = 4
const QLocale__Andorra QLocale__Country = 5
const QLocale__Angola QLocale__Country = 6
const QLocale__Anguilla QLocale__Country = 7
const QLocale__Antarctica QLocale__Country = 8
const QLocale__AntiguaAndBarbuda QLocale__Country = 9
const QLocale__AnyCountry QLocale__Country = 0
const QLocale__Argentina QLocale__Country = 10
const QLocale__Armenia QLocale__Country = 11
const QLocale__Aruba QLocale__Country = 12
const QLocale__AscensionIsland QLocale__Country = 247
const QLocale__Australia QLocale__Country = 13
const QLocale__Austria QLocale__Country = 14
const QLocale__Azerbaijan QLocale__Country = 15
const QLocale__Bahamas QLocale__Country = 16
const QLocale__Bahrain QLocale__Country = 17
const QLocale__Bangladesh QLocale__Country = 18
const QLocale__Barbados QLocale__Country = 19
const QLocale__Belarus QLocale__Country = 20
const QLocale__Belgium QLocale__Country = 21
const QLocale__Belize QLocale__Country = 22
const QLocale__Benin QLocale__Country = 23
const QLocale__Bermuda QLocale__Country = 24
const QLocale__Bhutan QLocale__Country = 25
const QLocale__Bolivia QLocale__Country = 26
const QLocale__Bonaire QLocale__Country = 255
const QLocale__BosniaAndHerzegowina QLocale__Country = 27
const QLocale__Botswana QLocale__Country = 28
const QLocale__BouvetIsland QLocale__Country = 29
const QLocale__Brazil QLocale__Country = 30
const QLocale__BritishIndianOceanTerritory QLocale__Country = 31
const QLocale__BritishVirginIslands QLocale__Country = 233
const QLocale__Brunei QLocale__Country = 32
const QLocale__Bulgaria QLocale__Country = 33
const QLocale__BurkinaFaso QLocale__Country = 34
const QLocale__Burundi QLocale__Country = 35
const QLocale__Cambodia QLocale__Country = 36
const QLocale__Cameroon QLocale__Country = 37
const QLocale__Canada QLocale__Country = 38
const QLocale__CanaryIslands QLocale__Country = 238
const QLocale__CapeVerde QLocale__Country = 39
const QLocale__CaymanIslands QLocale__Country = 40
const QLocale__CentralAfricanRepublic QLocale__Country = 41
const QLocale__CeutaAndMelilla QLocale__Country = 250
const QLocale__Chad QLocale__Country = 42
const QLocale__Chile QLocale__Country = 43
const QLocale__China QLocale__Country = 44
const QLocale__ChristmasIsland QLocale__Country = 45
const QLocale__ClippertonIsland QLocale__Country = 241
const QLocale__CocosIslands QLocale__Country = 46
const QLocale__Colombia QLocale__Country = 47
const QLocale__Comoros QLocale__Country = 48
const QLocale__CongoBrazzaville QLocale__Country = 50
const QLocale__CongoKinshasa QLocale__Country = 49
const QLocale__CookIslands QLocale__Country = 51
const QLocale__CostaRica QLocale__Country = 52
const QLocale__Croatia QLocale__Country = 54
const QLocale__Cuba QLocale__Country = 55
const QLocale__CuraSao QLocale__Country = 152
const QLocale__Cyprus QLocale__Country = 56
const QLocale__CzechRepublic QLocale__Country = 57
const QLocale__DemocraticRepublicOfCongo QLocale__Country = 49
const QLocale__DemocraticRepublicOfKorea QLocale__Country = 113
const QLocale__Denmark QLocale__Country = 58
const QLocale__DiegoGarcia QLocale__Country = 249
const QLocale__Djibouti QLocale__Country = 59
const QLocale__Dominica QLocale__Country = 60
const QLocale__DominicanRepublic QLocale__Country = 61
const QLocale__EastTimor QLocale__Country = 62
const QLocale__Ecuador QLocale__Country = 63
const QLocale__Egypt QLocale__Country = 64
const QLocale__ElSalvador QLocale__Country = 65
const QLocale__EquatorialGuinea QLocale__Country = 66
const QLocale__Eritrea QLocale__Country = 67
const QLocale__Estonia QLocale__Country = 68
const QLocale__Ethiopia QLocale__Country = 69
const QLocale__EuropeanUnion QLocale__Country = 258
const QLocale__FalklandIslands QLocale__Country = 70
const QLocale__FaroeIslands QLocale__Country = 71
const QLocale__Fiji QLocale__Country = 72
const QLocale__Finland QLocale__Country = 73
const QLocale__France QLocale__Country = 74
const QLocale__FrenchGuiana QLocale__Country = 76
const QLocale__FrenchPolynesia QLocale__Country = 77
const QLocale__FrenchSouthernTerritories QLocale__Country = 78
const QLocale__Gabon QLocale__Country = 79
const QLocale__Gambia QLocale__Country = 80
const QLocale__Georgia QLocale__Country = 81
const QLocale__Germany QLocale__Country = 82
const QLocale__Ghana QLocale__Country = 83
const QLocale__Gibraltar QLocale__Country = 84
const QLocale__Greece QLocale__Country = 85
const QLocale__Greenland QLocale__Country = 86
const QLocale__Grenada QLocale__Country = 87
const QLocale__Guadeloupe QLocale__Country = 88
const QLocale__Guam QLocale__Country = 89
const QLocale__Guatemala QLocale__Country = 90
const QLocale__Guernsey QLocale__Country = 75
const QLocale__Guinea QLocale__Country = 91
const QLocale__GuineaBissau QLocale__Country = 92
const QLocale__Guyana QLocale__Country = 93
const QLocale__Haiti QLocale__Country = 94
const QLocale__HeardAndMcDonaldIslands QLocale__Country = 95
const QLocale__Honduras QLocale__Country = 96
const QLocale__HongKong QLocale__Country = 97
const QLocale__Hungary QLocale__Country = 98
const QLocale__Iceland QLocale__Country = 99
const QLocale__India QLocale__Country = 100
const QLocale__Indonesia QLocale__Country = 101
const QLocale__Iran QLocale__Country = 102
const QLocale__Iraq QLocale__Country = 103
const QLocale__Ireland QLocale__Country = 104
const QLocale__IsleOfMan QLocale__Country = 251
const QLocale__Israel QLocale__Country = 105
const QLocale__Italy QLocale__Country = 106
const QLocale__IvoryCoast QLocale__Country = 53
const QLocale__Jamaica QLocale__Country = 107
const QLocale__Japan QLocale__Country = 108
const QLocale__Jersey QLocale__Country = 252
const QLocale__Jordan QLocale__Country = 109
const QLocale__Kazakhstan QLocale__Country = 110
const QLocale__Kenya QLocale__Country = 111
const QLocale__Kiribati QLocale__Country = 112
const QLocale__Kosovo QLocale__Country = 257
const QLocale__Kuwait QLocale__Country = 115
const QLocale__Kyrgyzstan QLocale__Country = 116
const QLocale__Laos QLocale__Country = 117
const QLocale__LastCountry QLocale__Country = 259
const QLocale__LatinAmericaAndTheCaribbean QLocale__Country = 246
const QLocale__Latvia QLocale__Country = 118
const QLocale__Lebanon QLocale__Country = 119
const QLocale__Lesotho QLocale__Country = 120
const QLocale__Liberia QLocale__Country = 121
const QLocale__Libya QLocale__Country = 122
const QLocale__Liechtenstein QLocale__Country = 123
const QLocale__Lithuania QLocale__Country = 124
const QLocale__Luxembourg QLocale__Country = 125
const QLocale__Macau QLocale__Country = 126
const QLocale__Macedonia QLocale__Country = 127
const QLocale__Madagascar QLocale__Country = 128
const QLocale__Malawi QLocale__Country = 129
const QLocale__Malaysia QLocale__Country = 130
const QLocale__Maldives QLocale__Country = 131
const QLocale__Mali QLocale__Country = 132
const QLocale__Malta QLocale__Country = 133
const QLocale__MarshallIslands QLocale__Country = 134
const QLocale__Martinique QLocale__Country = 135
const QLocale__Mauritania QLocale__Country = 136
const QLocale__Mauritius QLocale__Country = 137
const QLocale__Mayotte QLocale__Country = 138
const QLocale__Mexico QLocale__Country = 139
const QLocale__Micronesia QLocale__Country = 140
const QLocale__Moldova QLocale__Country = 141
const QLocale__Monaco QLocale__Country = 142
const QLocale__Mongolia QLocale__Country = 143
const QLocale__Montenegro QLocale__Country = 242
const QLocale__Montserrat QLocale__Country = 144
const QLocale__Morocco QLocale__Country = 145
const QLocale__Mozambique QLocale__Country = 146
const QLocale__Myanmar QLocale__Country = 147
const QLocale__Namibia QLocale__Country = 148
const QLocale__NauruCountry QLocale__Country = 149
const QLocale__Nepal QLocale__Country = 150
const QLocale__Netherlands QLocale__Country = 151
const QLocale__NewCaledonia QLocale__Country = 153
const QLocale__NewZealand QLocale__Country = 154
const QLocale__Nicaragua QLocale__Country = 155
const QLocale__Niger QLocale__Country = 156
const QLocale__Nigeria QLocale__Country = 157
const QLocale__Niue QLocale__Country = 158
const QLocale__NorfolkIsland QLocale__Country = 159
const QLocale__NorthKorea QLocale__Country = 113
const QLocale__NorthernMarianaIslands QLocale__Country = 160
const QLocale__Norway QLocale__Country = 161
const QLocale__Oman QLocale__Country = 162
const QLocale__OutlyingOceania QLocale__Country = 259
const QLocale__Pakistan QLocale__Country = 163
const QLocale__Palau QLocale__Country = 164
const QLocale__PalestinianTerritories QLocale__Country = 165
const QLocale__Panama QLocale__Country = 166
const QLocale__PapuaNewGuinea QLocale__Country = 167
const QLocale__Paraguay QLocale__Country = 168
const QLocale__PeoplesRepublicOfCongo QLocale__Country = 50
const QLocale__Peru QLocale__Country = 169
const QLocale__Philippines QLocale__Country = 170
const QLocale__Pitcairn QLocale__Country = 171
const QLocale__Poland QLocale__Country = 172
const QLocale__Portugal QLocale__Country = 173
const QLocale__PuertoRico QLocale__Country = 174
const QLocale__Qatar QLocale__Country = 175
const QLocale__RepublicOfKorea QLocale__Country = 114
const QLocale__Reunion QLocale__Country = 176
const QLocale__Romania QLocale__Country = 177
const QLocale__Russia QLocale__Country = 178
const QLocale__RussianFederation QLocale__Country = 178
const QLocale__Rwanda QLocale__Country = 179
const QLocale__SaintBarthelemy QLocale__Country = 244
const QLocale__SaintHelena QLocale__Country = 199
const QLocale__SaintKittsAndNevis QLocale__Country = 180
const QLocale__SaintLucia QLocale__Country = 181
const QLocale__SaintMartin QLocale__Country = 245
const QLocale__SaintPierreAndMiquelon QLocale__Country = 200
const QLocale__SaintVincentAndTheGrenadines QLocale__Country = 182
const QLocale__Samoa QLocale__Country = 183
const QLocale__SanMarino QLocale__Country = 184
const QLocale__SaoTomeAndPrincipe QLocale__Country = 185
const QLocale__SaudiArabia QLocale__Country = 186
const QLocale__Senegal QLocale__Country = 187
const QLocale__Serbia QLocale__Country = 243
const QLocale__Seychelles QLocale__Country = 188
const QLocale__SierraLeone QLocale__Country = 189
const QLocale__Singapore QLocale__Country = 190
const QLocale__SintMaarten QLocale__Country = 256
const QLocale__Slovakia QLocale__Country = 191
const QLocale__Slovenia QLocale__Country = 192
const QLocale__SolomonIslands QLocale__Country = 193
const QLocale__Somalia QLocale__Country = 194
const QLocale__SouthAfrica QLocale__Country = 195
const QLocale__SouthGeorgiaAndTheSouthSandwichIslands QLocale__Country = 196
const QLocale__SouthKorea QLocale__Country = 114
const QLocale__SouthSudan QLocale__Country = 254
const QLocale__Spain QLocale__Country = 197
const QLocale__SriLanka QLocale__Country = 198
const QLocale__Sudan QLocale__Country = 201
const QLocale__Suriname QLocale__Country = 202
const QLocale__SvalbardAndJanMayenIslands QLocale__Country = 203
const QLocale__Swaziland QLocale__Country = 204
const QLocale__Sweden QLocale__Country = 205
const QLocale__Switzerland QLocale__Country = 206
const QLocale__Syria QLocale__Country = 207
const QLocale__SyrianArabRepublic QLocale__Country = 207
const QLocale__Taiwan QLocale__Country = 208
const QLocale__Tajikistan QLocale__Country = 209
const QLocale__Tanzania QLocale__Country = 210
const QLocale__Thailand QLocale__Country = 211
const QLocale__Togo QLocale__Country = 212
const QLocale__Tokelau QLocale__Country = 213
const QLocale__TokelauCountry QLocale__Country = 213
const QLocale__Tonga QLocale__Country = 214
const QLocale__TrinidadAndTobago QLocale__Country = 215
const QLocale__TristanDaCunha QLocale__Country = 253
const QLocale__Tunisia QLocale__Country = 216
const QLocale__Turkey QLocale__Country = 217
const QLocale__Turkmenistan QLocale__Country = 218
const QLocale__TurksAndCaicosIslands QLocale__Country = 219
const QLocale__Tuvalu QLocale__Country = 220
const QLocale__TuvaluCountry QLocale__Country = 220
const QLocale__Uganda QLocale__Country = 221
const QLocale__Ukraine QLocale__Country = 222
const QLocale__UnitedArabEmirates QLocale__Country = 223
const QLocale__UnitedKingdom QLocale__Country = 224
const QLocale__UnitedStates QLocale__Country = 225
const QLocale__UnitedStatesMinorOutlyingIslands QLocale__Country = 226
const QLocale__UnitedStatesVirginIslands QLocale__Country = 234
const QLocale__Uruguay QLocale__Country = 227
const QLocale__Uzbekistan QLocale__Country = 228
const QLocale__Vanuatu QLocale__Country = 229
const QLocale__VaticanCityState QLocale__Country = 230
const QLocale__Venezuela QLocale__Country = 231
const QLocale__Vietnam QLocale__Country = 232
const QLocale__WallisAndFutunaIslands QLocale__Country = 235
const QLocale__WesternSahara QLocale__Country = 236
const QLocale__Yemen QLocale__Country = 237
const QLocale__Zambia QLocale__Country = 239
const QLocale__Zimbabwe QLocale__Country = 240

type QLocale__CurrencySymbolFormat

type QLocale__CurrencySymbolFormat = int

Specifies the format of the currency symbol.

This enum was introduced or modified in Qt 4.8.

const QLocale__CurrencyDisplayName QLocale__CurrencySymbolFormat = 2

a user readable name of the currency.

const QLocale__CurrencyIsoCode QLocale__CurrencySymbolFormat = 0
const QLocale__CurrencySymbol QLocale__CurrencySymbolFormat = 1

a currency symbol.

type QLocale__DataSizeFormat

type QLocale__DataSizeFormat = int
const QLocale__DataSizeBase1000 QLocale__DataSizeFormat = 1
const QLocale__DataSizeIecFormat QLocale__DataSizeFormat = 0
const QLocale__DataSizeSIFormat QLocale__DataSizeFormat = 3
const QLocale__DataSizeSIQuantifiers QLocale__DataSizeFormat = 2
const QLocale__DataSizeTraditionalFormat QLocale__DataSizeFormat = 2

type QLocale__FloatingPointPrecisionOption

type QLocale__FloatingPointPrecisionOption = int

This enum defines constants that can be given as precision to QString::number(), QByteArray::number(), and QLocale::toString() when converting floats or doubles, in order to express a variable number of digits as precision.

This enum was introduced or modified in Qt 5.7.

See also toString(), QString, and QByteArray.

const QLocale__FloatingPointShortest QLocale__FloatingPointPrecisionOption = -128

type QLocale__FormatType

type QLocale__FormatType = int

This enum describes the types of format that can be used when converting QDate and QTime objects to strings.

const QLocale__LongFormat QLocale__FormatType = 0

The long version of day and month names; for example, returning "January" as a month name.

const QLocale__NarrowFormat QLocale__FormatType = 2

A special version of day and month names for use when space is limited; for example, returning "J" as a month name. Note that the narrow format might contain the same text for different months and days or it can even be an empty string if the locale doesn't support narrow names, so you should avoid using it for date formatting. Also, for the system locale this format is the same as ShortFormat.

const QLocale__ShortFormat QLocale__FormatType = 1

The short version of day and month names; for example, returning "Jan" as a month name.

type QLocale__Language

type QLocale__Language = int

This enumerated type is used to specify a language.

QLocale::AfanOromoObsolete, please use Oromo QLocale::BhutaniDzongkhaObsolete, please use Dzongkha QLocale::ByelorussianBelarusianObsolete, please use Belarusian QLocale::CambodianKhmerObsolete, please use Khmer QLocale::FrisianWesternFrisiansame as WesternFrisian QLocale::KurundiRundiObsolete, please use Rundi QLocale::MoldavianRomanianObsolete, please use Romanian QLocale::NorwegianNorwegianBokmalsame as NorwegianBokmal QLocale::RhaetoRomanceRomanshObsolete, please use Romansh QLocale::SerboCroatianSerbianObsolete, please use Serbian QLocale::TagalogFilipinoObsolete, please use Filipino QLocale::TwiAkanObsolete, please use Akan QLocale::UigurUighurObsolete, please use Uighur QLocale::ChewaNyanjaObsolete, please use Nyanja

See also language() and languageToString().

const QLocale__Abkhazian QLocale__Language = 2
const QLocale__Afan QLocale__Language = 3
const QLocale__Afar QLocale__Language = 4
const QLocale__Afrikaans QLocale__Language = 5
const QLocale__Aghem QLocale__Language = 237
const QLocale__Ahom QLocale__Language = 340
const QLocale__Akan QLocale__Language = 146
const QLocale__Akkadian QLocale__Language = 262
const QLocale__Akoose QLocale__Language = 312
const QLocale__Albanian QLocale__Language = 6
const QLocale__AmericanSignLanguage QLocale__Language = 341
const QLocale__Amharic QLocale__Language = 7
const QLocale__AncientEgyptian QLocale__Language = 263
const QLocale__AncientGreek QLocale__Language = 264
const QLocale__AncientNorthArabian QLocale__Language = 331
const QLocale__AnyLanguage QLocale__Language = 0
const QLocale__Arabic QLocale__Language = 8
const QLocale__Aragonese QLocale__Language = 261
const QLocale__Aramaic QLocale__Language = 265
const QLocale__ArdhamagadhiPrakrit QLocale__Language = 342
const QLocale__Armenian QLocale__Language = 9
const QLocale__Assamese QLocale__Language = 10
const QLocale__Asturian QLocale__Language = 256
const QLocale__Asu QLocale__Language = 205
const QLocale__Atsam QLocale__Language = 156
const QLocale__Avaric QLocale__Language = 216
const QLocale__Avestan QLocale__Language = 255
const QLocale__Aymara QLocale__Language = 11
const QLocale__Azerbaijani QLocale__Language = 12
const QLocale__Bafia QLocale__Language = 243
const QLocale__Balinese QLocale__Language = 266
const QLocale__Bambara QLocale__Language = 188
const QLocale__Bamun QLocale__Language = 267
const QLocale__Basaa QLocale__Language = 238
const QLocale__Bashkir QLocale__Language = 13
const QLocale__Basque QLocale__Language = 14
const QLocale__Bassa QLocale__Language = 336
const QLocale__BatakToba QLocale__Language = 268
const QLocale__Belarusian QLocale__Language = 22
const QLocale__Bemba QLocale__Language = 195
const QLocale__Bena QLocale__Language = 186
const QLocale__Bengali QLocale__Language = 15
const QLocale__Bhojpuri QLocale__Language = 343
const QLocale__Bhutani QLocale__Language = 16
const QLocale__Bihari QLocale__Language = 17
const QLocale__Bislama QLocale__Language = 18
const QLocale__Blin QLocale__Language = 152
const QLocale__Bodo QLocale__Language = 215
const QLocale__Bosnian QLocale__Language = 142
const QLocale__Breton QLocale__Language = 19
const QLocale__Buginese QLocale__Language = 269
const QLocale__Buhid QLocale__Language = 270
const QLocale__Bulgarian QLocale__Language = 20
const QLocale__Burmese QLocale__Language = 21
const QLocale__Byelorussian QLocale__Language = 22
const QLocale__C QLocale__Language = 1

The "C" locale is identical in behavior to English/UnitedStates.

const QLocale__Cambodian QLocale__Language = 23
const QLocale__Cantonese QLocale__Language = 357
const QLocale__Carian QLocale__Language = 271
const QLocale__Catalan QLocale__Language = 24
const QLocale__CentralKurdish QLocale__Language = 316
const QLocale__CentralMoroccoTamazight QLocale__Language = 212
const QLocale__Chakma QLocale__Language = 272
const QLocale__Chamorro QLocale__Language = 217
const QLocale__Chechen QLocale__Language = 218
const QLocale__Cherokee QLocale__Language = 190
const QLocale__Chewa QLocale__Language = 165
const QLocale__Chiga QLocale__Language = 211
const QLocale__Chinese QLocale__Language = 25
const QLocale__Church QLocale__Language = 219
const QLocale__Chuvash QLocale__Language = 220
const QLocale__ClassicalMandaic QLocale__Language = 273
const QLocale__Colognian QLocale__Language = 201
const QLocale__CongoSwahili QLocale__Language = 250
const QLocale__Coptic QLocale__Language = 274
const QLocale__Cornish QLocale__Language = 145
const QLocale__Corsican QLocale__Language = 26
const QLocale__Cree QLocale__Language = 221
const QLocale__Croatian QLocale__Language = 27
const QLocale__Czech QLocale__Language = 28
const QLocale__Danish QLocale__Language = 29
const QLocale__Divehi QLocale__Language = 143
const QLocale__Dogri QLocale__Language = 275
const QLocale__Duala QLocale__Language = 240
const QLocale__Dutch QLocale__Language = 30
const QLocale__Dzongkha QLocale__Language = 16
const QLocale__EasternCham QLocale__Language = 276
const QLocale__EasternKayah QLocale__Language = 277
const QLocale__Embu QLocale__Language = 189
const QLocale__English QLocale__Language = 31
const QLocale__Esperanto QLocale__Language = 32
const QLocale__Estonian QLocale__Language = 33
const QLocale__Etruscan QLocale__Language = 278
const QLocale__Ewe QLocale__Language = 161
const QLocale__Ewondo QLocale__Language = 242
const QLocale__Faroese QLocale__Language = 34
const QLocale__Fijian QLocale__Language = 35
const QLocale__Filipino QLocale__Language = 166
const QLocale__Finnish QLocale__Language = 36
const QLocale__French QLocale__Language = 37
const QLocale__Frisian QLocale__Language = 38
const QLocale__Friulian QLocale__Language = 159
const QLocale__Fulah QLocale__Language = 177
const QLocale__Ga QLocale__Language = 148
const QLocale__Gaelic QLocale__Language = 39
const QLocale__Galician QLocale__Language = 40
const QLocale__Ganda QLocale__Language = 194
const QLocale__Geez QLocale__Language = 153
const QLocale__Georgian QLocale__Language = 41
const QLocale__German QLocale__Language = 42
const QLocale__Gothic QLocale__Language = 279
const QLocale__Greek QLocale__Language = 43
const QLocale__Greenlandic QLocale__Language = 44
const QLocale__Guarani QLocale__Language = 45
const QLocale__Gujarati QLocale__Language = 46
const QLocale__Gusii QLocale__Language = 175
const QLocale__Haitian QLocale__Language = 222
const QLocale__Hanunoo QLocale__Language = 280
const QLocale__Hausa QLocale__Language = 47
const QLocale__Hawaiian QLocale__Language = 163
const QLocale__Hebrew QLocale__Language = 48
const QLocale__Herero QLocale__Language = 223
const QLocale__HieroglyphicLuwian QLocale__Language = 344
const QLocale__Hindi QLocale__Language = 49
const QLocale__HiriMotu QLocale__Language = 224
const QLocale__HmongNjua QLocale__Language = 333
const QLocale__Ho QLocale__Language = 334
const QLocale__Hungarian QLocale__Language = 50
const QLocale__Icelandic QLocale__Language = 51
const QLocale__Igbo QLocale__Language = 149
const QLocale__InariSami QLocale__Language = 326
const QLocale__Indonesian QLocale__Language = 52
const QLocale__Ingush QLocale__Language = 281
const QLocale__Interlingua QLocale__Language = 53
const QLocale__Interlingue QLocale__Language = 54
const QLocale__Inuktitut QLocale__Language = 55
const QLocale__Inupiak QLocale__Language = 56
const QLocale__Irish QLocale__Language = 57
const QLocale__Italian QLocale__Language = 58
const QLocale__Japanese QLocale__Language = 59
const QLocale__Javanese QLocale__Language = 60
const QLocale__Jju QLocale__Language = 158
const QLocale__JolaFonyi QLocale__Language = 241
const QLocale__Kabuverdianu QLocale__Language = 196
const QLocale__Kabyle QLocale__Language = 184
const QLocale__Kako QLocale__Language = 258
const QLocale__Kalenjin QLocale__Language = 198
const QLocale__Kamba QLocale__Language = 150
const QLocale__Kannada QLocale__Language = 61
const QLocale__Kanuri QLocale__Language = 225
const QLocale__Kashmiri QLocale__Language = 62
const QLocale__Kazakh QLocale__Language = 63
const QLocale__Kenyang QLocale__Language = 319
const QLocale__Khmer QLocale__Language = 23
const QLocale__Kiche QLocale__Language = 323
const QLocale__Kikuyu QLocale__Language = 178
const QLocale__Kinyarwanda QLocale__Language = 64
const QLocale__Kirghiz QLocale__Language = 65
const QLocale__Komi QLocale__Language = 226
const QLocale__Kongo QLocale__Language = 227
const QLocale__Konkani QLocale__Language = 147
const QLocale__Korean QLocale__Language = 66
const QLocale__Koro QLocale__Language = 154
const QLocale__KoyraChiini QLocale__Language = 208
const QLocale__KoyraboroSenni QLocale__Language = 213
const QLocale__Kpelle QLocale__Language = 169
const QLocale__Kurdish QLocale__Language = 67
const QLocale__Kurundi QLocale__Language = 68
const QLocale__Kwanyama QLocale__Language = 228
const QLocale__Kwasio QLocale__Language = 246
const QLocale__Lakota QLocale__Language = 313
const QLocale__Langi QLocale__Language = 193
const QLocale__Lao QLocale__Language = 69
const QLocale__LargeFloweryMiao QLocale__Language = 282
const QLocale__LastLanguage QLocale__Language = 359
const QLocale__Latin QLocale__Language = 70
const QLocale__Latvian QLocale__Language = 71
const QLocale__Lepcha QLocale__Language = 283
const QLocale__Lezghian QLocale__Language = 335
const QLocale__Limbu QLocale__Language = 284
const QLocale__Limburgish QLocale__Language = 229
const QLocale__LinearA QLocale__Language = 332
const QLocale__Lingala QLocale__Language = 72
const QLocale__Lisu QLocale__Language = 285
const QLocale__LiteraryChinese QLocale__Language = 345
const QLocale__Lithuanian QLocale__Language = 73
const QLocale__LowGerman QLocale__Language = 170
const QLocale__LowerSorbian QLocale__Language = 317
const QLocale__Lu QLocale__Language = 286
const QLocale__LubaKatanga QLocale__Language = 230
const QLocale__LuleSami QLocale__Language = 325
const QLocale__Luo QLocale__Language = 210
const QLocale__Luxembourgish QLocale__Language = 231
const QLocale__Luyia QLocale__Language = 204
const QLocale__Lycian QLocale__Language = 287
const QLocale__Lydian QLocale__Language = 288
const QLocale__Macedonian QLocale__Language = 74
const QLocale__Machame QLocale__Language = 200
const QLocale__Maithili QLocale__Language = 339
const QLocale__MakhuwaMeetto QLocale__Language = 244
const QLocale__Makonde QLocale__Language = 192
const QLocale__Malagasy QLocale__Language = 75
const QLocale__Malay QLocale__Language = 76
const QLocale__Malayalam QLocale__Language = 77
const QLocale__Maltese QLocale__Language = 78
const QLocale__Mandingo QLocale__Language = 289
const QLocale__ManichaeanMiddlePersian QLocale__Language = 329
const QLocale__Manipuri QLocale__Language = 290
const QLocale__Manx QLocale__Language = 144
const QLocale__Maori QLocale__Language = 79
const QLocale__Mapuche QLocale__Language = 315
const QLocale__Marathi QLocale__Language = 80
const QLocale__Marshallese QLocale__Language = 81
const QLocale__Masai QLocale__Language = 202
const QLocale__Mazanderani QLocale__Language = 346
const QLocale__Mende QLocale__Language = 330
const QLocale__Meroitic QLocale__Language = 291
const QLocale__Meru QLocale__Language = 197
const QLocale__Meta QLocale__Language = 259
const QLocale__Mohawk QLocale__Language = 320
const QLocale__Moldavian QLocale__Language = 95
const QLocale__Mongolian QLocale__Language = 82
const QLocale__Mono QLocale__Language = 337
const QLocale__Morisyen QLocale__Language = 191
const QLocale__Mru QLocale__Language = 347
const QLocale__Mundang QLocale__Language = 245
const QLocale__Nama QLocale__Language = 199
const QLocale__NauruLanguage QLocale__Language = 83
const QLocale__Navaho QLocale__Language = 232
const QLocale__Ndonga QLocale__Language = 233
const QLocale__Nepali QLocale__Language = 84
const QLocale__Newari QLocale__Language = 348
const QLocale__Ngiemboon QLocale__Language = 260
const QLocale__Ngomba QLocale__Language = 257
const QLocale__Nko QLocale__Language = 321
const QLocale__NorthNdebele QLocale__Language = 181
const QLocale__NorthernLuri QLocale__Language = 349
const QLocale__NorthernSami QLocale__Language = 173
const QLocale__NorthernSotho QLocale__Language = 172
const QLocale__NorthernThai QLocale__Language = 292
const QLocale__Norwegian QLocale__Language = 85
const QLocale__NorwegianBokmal QLocale__Language = 85
const QLocale__NorwegianNynorsk QLocale__Language = 141
const QLocale__Nuer QLocale__Language = 247
const QLocale__Nyanja QLocale__Language = 165
const QLocale__Nyankole QLocale__Language = 185
const QLocale__Occitan QLocale__Language = 86
const QLocale__Ojibwa QLocale__Language = 234
const QLocale__OldIrish QLocale__Language = 293
const QLocale__OldNorse QLocale__Language = 294
const QLocale__OldPersian QLocale__Language = 295
const QLocale__OldTurkish QLocale__Language = 296
const QLocale__Oriya QLocale__Language = 87
const QLocale__Oromo QLocale__Language = 3
const QLocale__Osage QLocale__Language = 358
const QLocale__Ossetic QLocale__Language = 101
const QLocale__Pahlavi QLocale__Language = 297
const QLocale__Palauan QLocale__Language = 350
const QLocale__Pali QLocale__Language = 235
const QLocale__Papiamento QLocale__Language = 351
const QLocale__Parthian QLocale__Language = 298
const QLocale__Pashto QLocale__Language = 88
const QLocale__Persian QLocale__Language = 89
const QLocale__Phoenician QLocale__Language = 299
const QLocale__Polish QLocale__Language = 90
const QLocale__Portuguese QLocale__Language = 91
const QLocale__PrakritLanguage QLocale__Language = 300
const QLocale__Prussian QLocale__Language = 322
const QLocale__Punjabi QLocale__Language = 92
const QLocale__Quechua QLocale__Language = 93
const QLocale__Rejang QLocale__Language = 301
const QLocale__RhaetoRomance QLocale__Language = 94
const QLocale__Romanian QLocale__Language = 95
const QLocale__Romansh QLocale__Language = 94
const QLocale__Rombo QLocale__Language = 182
const QLocale__Rundi QLocale__Language = 68
const QLocale__Russian QLocale__Language = 96
const QLocale__Rwa QLocale__Language = 209
const QLocale__Sabaean QLocale__Language = 302
const QLocale__Saho QLocale__Language = 207
const QLocale__Sakha QLocale__Language = 248
const QLocale__Samaritan QLocale__Language = 303
const QLocale__Samburu QLocale__Language = 179
const QLocale__Samoan QLocale__Language = 97
const QLocale__Sango QLocale__Language = 98
const QLocale__Sangu QLocale__Language = 249
const QLocale__Sanskrit QLocale__Language = 99
const QLocale__Santali QLocale__Language = 304
const QLocale__Saraiki QLocale__Language = 352
const QLocale__Sardinian QLocale__Language = 115
const QLocale__Saurashtra QLocale__Language = 305
const QLocale__Sena QLocale__Language = 180
const QLocale__Serbian QLocale__Language = 100
const QLocale__SerboCroatian QLocale__Language = 100
const QLocale__Shambala QLocale__Language = 214
const QLocale__Shona QLocale__Language = 104
const QLocale__SichuanYi QLocale__Language = 168
const QLocale__Sidamo QLocale__Language = 155
const QLocale__Sindhi QLocale__Language = 105
const QLocale__Sinhala QLocale__Language = 106
const QLocale__SkoltSami QLocale__Language = 327
const QLocale__Slovak QLocale__Language = 108
const QLocale__Slovenian QLocale__Language = 109
const QLocale__Soga QLocale__Language = 203
const QLocale__Somali QLocale__Language = 110
const QLocale__Sora QLocale__Language = 306
const QLocale__SouthNdebele QLocale__Language = 171
const QLocale__SouthernSami QLocale__Language = 324
const QLocale__SouthernSotho QLocale__Language = 102
const QLocale__Spanish QLocale__Language = 111
const QLocale__StandardMoroccanTamazight QLocale__Language = 314
const QLocale__Sundanese QLocale__Language = 112
const QLocale__Swahili QLocale__Language = 113
const QLocale__Swati QLocale__Language = 107
const QLocale__Swedish QLocale__Language = 114
const QLocale__SwissGerman QLocale__Language = 167
const QLocale__Sylheti QLocale__Language = 307
const QLocale__Syriac QLocale__Language = 151
const QLocale__Tachelhit QLocale__Language = 183
const QLocale__Tagalog QLocale__Language = 166
const QLocale__Tagbanwa QLocale__Language = 308
const QLocale__Tahitian QLocale__Language = 127
const QLocale__TaiDam QLocale__Language = 309
const QLocale__TaiNua QLocale__Language = 310
const QLocale__Taita QLocale__Language = 176
const QLocale__Tajik QLocale__Language = 116
const QLocale__Tamil QLocale__Language = 117
const QLocale__Tangut QLocale__Language = 359
const QLocale__Taroko QLocale__Language = 174
const QLocale__Tasawaq QLocale__Language = 251
const QLocale__Tatar QLocale__Language = 118
const QLocale__TedimChin QLocale__Language = 338
const QLocale__Telugu QLocale__Language = 119
const QLocale__Teso QLocale__Language = 206
const QLocale__Thai QLocale__Language = 120
const QLocale__Tibetan QLocale__Language = 121
const QLocale__Tigre QLocale__Language = 157
const QLocale__Tigrinya QLocale__Language = 122
const QLocale__TokPisin QLocale__Language = 354
const QLocale__TokelauLanguage QLocale__Language = 353
const QLocale__Tongan QLocale__Language = 123
const QLocale__Tsonga QLocale__Language = 124
const QLocale__Tswana QLocale__Language = 103
const QLocale__Turkish QLocale__Language = 125
const QLocale__Turkmen QLocale__Language = 126
const QLocale__TuvaluLanguage QLocale__Language = 355
const QLocale__Twi QLocale__Language = 146
const QLocale__Tyap QLocale__Language = 164
const QLocale__Ugaritic QLocale__Language = 311
const QLocale__Uighur QLocale__Language = 128
const QLocale__Uigur QLocale__Language = 128
const QLocale__Ukrainian QLocale__Language = 129
const QLocale__UncodedLanguages QLocale__Language = 356
const QLocale__UpperSorbian QLocale__Language = 318
const QLocale__Urdu QLocale__Language = 130
const QLocale__Uzbek QLocale__Language = 131
const QLocale__Vai QLocale__Language = 252
const QLocale__Venda QLocale__Language = 160
const QLocale__Vietnamese QLocale__Language = 132
const QLocale__Volapuk QLocale__Language = 133
const QLocale__Vunjo QLocale__Language = 187
const QLocale__Walamo QLocale__Language = 162
const QLocale__Walloon QLocale__Language = 236
const QLocale__Walser QLocale__Language = 253
const QLocale__Warlpiri QLocale__Language = 328
const QLocale__Welsh QLocale__Language = 134
const QLocale__WesternFrisian QLocale__Language = 38
const QLocale__Wolof QLocale__Language = 135
const QLocale__Xhosa QLocale__Language = 136
const QLocale__Yangben QLocale__Language = 254
const QLocale__Yiddish QLocale__Language = 137
const QLocale__Yoruba QLocale__Language = 138
const QLocale__Zarma QLocale__Language = 239
const QLocale__Zhuang QLocale__Language = 139
const QLocale__Zulu QLocale__Language = 140

type QLocale__MeasurementSystem

type QLocale__MeasurementSystem = int

This enum defines which units are used for measurement.

QLocale::ImperialSystemImperialUSSystemProvided for compatibility. Same as ImperialUSSystem

This enum was introduced or modified in Qt 4.4.

const QLocale__ImperialSystem QLocale__MeasurementSystem = 1
const QLocale__ImperialUKSystem QLocale__MeasurementSystem = 2

This value indicates imperial units, such as inches and miles as they are used in the United Kingdom.

const QLocale__ImperialUSSystem QLocale__MeasurementSystem = 1

This value indicates imperial units, such as inches and miles as they are used in the United States.

const QLocale__MetricSystem QLocale__MeasurementSystem = 0

This value indicates metric units, such as meters, centimeters and millimeters.

type QLocale__NumberOption

type QLocale__NumberOption = int
const QLocale__DefaultNumberOptions QLocale__NumberOption = 0
const QLocale__IncludeTrailingZeroesAfterDot QLocale__NumberOption = 16
const QLocale__OmitGroupSeparator QLocale__NumberOption = 1
const QLocale__OmitLeadingZeroInExponent QLocale__NumberOption = 4
const QLocale__RejectGroupSeparator QLocale__NumberOption = 2
const QLocale__RejectLeadingZeroInExponent QLocale__NumberOption = 8
const QLocale__RejectTrailingZeroesAfterDot QLocale__NumberOption = 32

type QLocale__QuotationStyle

type QLocale__QuotationStyle = int

This enum defines a set of possible styles for locale specific quotation.

This enum was introduced or modified in Qt 4.8.

See also quoteString().

const QLocale__AlternateQuotation QLocale__QuotationStyle = 1

If this option is set, the alternate quotation marks will be used to quote strings.

const QLocale__StandardQuotation QLocale__QuotationStyle = 0

If this option is set, the standard quotation marks will be used to quote strings.

type QLocale__Script

type QLocale__Script = int

This enumerated type is used to specify a script.

QLocale::SimplifiedChineseScriptSimplifiedHanScriptsame as SimplifiedHanScript QLocale::TraditionalChineseScriptTraditionalHanScriptsame as TraditionalHanScript

See also script(), scriptToString(), and languageToString().

const QLocale__AdlamScript QLocale__Script = 134
const QLocale__AhomScript QLocale__Script = 128
const QLocale__AnatolianHieroglyphsScript QLocale__Script = 129
const QLocale__AnyScript QLocale__Script = 0
const QLocale__ArabicScript QLocale__Script = 1
const QLocale__ArmenianScript QLocale__Script = 10
const QLocale__AvestanScript QLocale__Script = 36
const QLocale__BalineseScript QLocale__Script = 37
const QLocale__BamumScript QLocale__Script = 38
const QLocale__BassaVahScript QLocale__Script = 106
const QLocale__BatakScript QLocale__Script = 39
const QLocale__BengaliScript QLocale__Script = 11
const QLocale__BhaiksukiScript QLocale__Script = 135
const QLocale__BopomofoScript QLocale__Script = 40
const QLocale__BrahmiScript QLocale__Script = 41
const QLocale__BrailleScript QLocale__Script = 103
const QLocale__BugineseScript QLocale__Script = 42
const QLocale__BuhidScript QLocale__Script = 43
const QLocale__CanadianAboriginalScript QLocale__Script = 44
const QLocale__CarianScript QLocale__Script = 45
const QLocale__CaucasianAlbanianScript QLocale__Script = 105
const QLocale__ChakmaScript QLocale__Script = 46
const QLocale__ChamScript QLocale__Script = 47
const QLocale__CherokeeScript QLocale__Script = 12
const QLocale__CopticScript QLocale__Script = 48
const QLocale__CuneiformScript QLocale__Script = 94
const QLocale__CypriotScript QLocale__Script = 49
const QLocale__CyrillicScript QLocale__Script = 2
const QLocale__DeseretScript QLocale__Script = 3
const QLocale__DevanagariScript QLocale__Script = 13
const QLocale__DuployanScript QLocale__Script = 107
const QLocale__EgyptianHieroglyphsScript QLocale__Script = 50
const QLocale__ElbasanScript QLocale__Script = 108
const QLocale__EthiopicScript QLocale__Script = 14
const QLocale__FraserScript QLocale__Script = 51
const QLocale__GeorgianScript QLocale__Script = 15
const QLocale__GlagoliticScript QLocale__Script = 52
const QLocale__GothicScript QLocale__Script = 53
const QLocale__GranthaScript QLocale__Script = 109
const QLocale__GreekScript QLocale__Script = 16
const QLocale__GujaratiScript QLocale__Script = 17
const QLocale__GurmukhiScript QLocale__Script = 4
const QLocale__HanScript QLocale__Script = 54
const QLocale__HanWithBopomofoScript QLocale__Script = 140
const QLocale__HangulScript QLocale__Script = 55
const QLocale__HanunooScript QLocale__Script = 56
const QLocale__HatranScript QLocale__Script = 130
const QLocale__HebrewScript QLocale__Script = 18
const QLocale__HiraganaScript QLocale__Script = 104
const QLocale__ImperialAramaicScript QLocale__Script = 57
const QLocale__InscriptionalPahlaviScript QLocale__Script = 58
const QLocale__InscriptionalParthianScript QLocale__Script = 59
const QLocale__JamoScript QLocale__Script = 141
const QLocale__JapaneseScript QLocale__Script = 19
const QLocale__JavaneseScript QLocale__Script = 60
const QLocale__KaithiScript QLocale__Script = 61
const QLocale__KannadaScript QLocale__Script = 21
const QLocale__KatakanaScript QLocale__Script = 62
const QLocale__KayahLiScript QLocale__Script = 63
const QLocale__KharoshthiScript QLocale__Script = 64
const QLocale__KhmerScript QLocale__Script = 20
const QLocale__KhojkiScript QLocale__Script = 111
const QLocale__KhudawadiScript QLocale__Script = 125
const QLocale__KoreanScript QLocale__Script = 22
const QLocale__LannaScript QLocale__Script = 65
const QLocale__LaoScript QLocale__Script = 23
const QLocale__LastScript QLocale__Script = 141
const QLocale__LatinScript QLocale__Script = 7
const QLocale__LepchaScript QLocale__Script = 66
const QLocale__LimbuScript QLocale__Script = 67
const QLocale__LinearAScript QLocale__Script = 112
const QLocale__LinearBScript QLocale__Script = 68
const QLocale__LycianScript QLocale__Script = 69
const QLocale__LydianScript QLocale__Script = 70
const QLocale__MahajaniScript QLocale__Script = 113
const QLocale__MalayalamScript QLocale__Script = 24
const QLocale__MandaeanScript QLocale__Script = 71
const QLocale__ManichaeanScript QLocale__Script = 114
const QLocale__MarchenScript QLocale__Script = 136
const QLocale__MeiteiMayekScript QLocale__Script = 72
const QLocale__MendeKikakuiScript QLocale__Script = 115
const QLocale__MeroiticCursiveScript QLocale__Script = 74
const QLocale__MeroiticScript QLocale__Script = 73
const QLocale__ModiScript QLocale__Script = 116
const QLocale__MongolianScript QLocale__Script = 8
const QLocale__MroScript QLocale__Script = 117
const QLocale__MultaniScript QLocale__Script = 131
const QLocale__MyanmarScript QLocale__Script = 25
const QLocale__NabataeanScript QLocale__Script = 119
const QLocale__NewTaiLueScript QLocale__Script = 76
const QLocale__NewaScript QLocale__Script = 137
const QLocale__NkoScript QLocale__Script = 75
const QLocale__OghamScript QLocale__Script = 77
const QLocale__OlChikiScript QLocale__Script = 78
const QLocale__OldHungarianScript QLocale__Script = 132
const QLocale__OldItalicScript QLocale__Script = 79
const QLocale__OldNorthArabianScript QLocale__Script = 118
const QLocale__OldPermicScript QLocale__Script = 122
const QLocale__OldPersianScript QLocale__Script = 80
const QLocale__OldSouthArabianScript QLocale__Script = 81
const QLocale__OriyaScript QLocale__Script = 26
const QLocale__OrkhonScript QLocale__Script = 82
const QLocale__OsageScript QLocale__Script = 138
const QLocale__OsmanyaScript QLocale__Script = 83
const QLocale__PahawhHmongScript QLocale__Script = 110
const QLocale__PalmyreneScript QLocale__Script = 120
const QLocale__PauCinHauScript QLocale__Script = 121
const QLocale__PhagsPaScript QLocale__Script = 84
const QLocale__PhoenicianScript QLocale__Script = 85
const QLocale__PollardPhoneticScript QLocale__Script = 86
const QLocale__PsalterPahlaviScript QLocale__Script = 123
const QLocale__RejangScript QLocale__Script = 87
const QLocale__RunicScript QLocale__Script = 88
const QLocale__SamaritanScript QLocale__Script = 89
const QLocale__SaurashtraScript QLocale__Script = 90
const QLocale__SharadaScript QLocale__Script = 91
const QLocale__ShavianScript QLocale__Script = 92
const QLocale__SiddhamScript QLocale__Script = 124
const QLocale__SignWritingScript QLocale__Script = 133
const QLocale__SimplifiedChineseScript QLocale__Script = 5
const QLocale__SimplifiedHanScript QLocale__Script = 5

same as SimplifiedChineseScript

const QLocale__SinhalaScript QLocale__Script = 32
const QLocale__SoraSompengScript QLocale__Script = 93
const QLocale__SundaneseScript QLocale__Script = 95
const QLocale__SylotiNagriScript QLocale__Script = 96
const QLocale__SyriacScript QLocale__Script = 33
const QLocale__TagalogScript QLocale__Script = 97
const QLocale__TagbanwaScript QLocale__Script = 98
const QLocale__TaiLeScript QLocale__Script = 99
const QLocale__TaiVietScript QLocale__Script = 100
const QLocale__TakriScript QLocale__Script = 101
const QLocale__TamilScript QLocale__Script = 27
const QLocale__TangutScript QLocale__Script = 139
const QLocale__TeluguScript QLocale__Script = 28
const QLocale__ThaanaScript QLocale__Script = 29
const QLocale__ThaiScript QLocale__Script = 30
const QLocale__TibetanScript QLocale__Script = 31
const QLocale__TifinaghScript QLocale__Script = 9
const QLocale__TirhutaScript QLocale__Script = 126
const QLocale__TraditionalChineseScript QLocale__Script = 6
const QLocale__TraditionalHanScript QLocale__Script = 6

same as TraditionalChineseScript

const QLocale__UgariticScript QLocale__Script = 102
const QLocale__VaiScript QLocale__Script = 35
const QLocale__VarangKshitiScript QLocale__Script = 127
const QLocale__YiScript QLocale__Script = 34

type QLockFile

type QLockFile struct {
	*qtrt.CObject
}

func NewQLockFile

func NewQLockFile(fileName string) *QLockFile

Constructs a new lock file object. The object is created in an unlocked state. When calling lock() or tryLock(), a lock file named fileName will be created, if it doesn't already exist.

See also lock() and unlock().

func NewQLockFileFromPointer

func NewQLockFileFromPointer(cthis unsafe.Pointer) *QLockFile

func (*QLockFile) Error

func (this *QLockFile) Error() int

Returns the lock file error status.

If tryLock() returns false, this function can be called to find out the reason why the locking failed.

func (*QLockFile) GetCthis

func (this *QLockFile) GetCthis() unsafe.Pointer

func (*QLockFile) GetLockInfo

func (this *QLockFile) GetLockInfo(pid unsafe.Pointer, hostname string, appname string) bool

Retrieves information about the current owner of the lock file.

If tryLock() returns false, and error() returns LockFailedError, this function can be called to find out more information about the existing lock file:

the PID of the application (returned in pid) the hostname it's running on (useful in case of networked filesystems), the name of the application which created it (returned in appname),

Note that tryLock() automatically deleted the file if there is no running application with this PID, so LockFailedError can only happen if there is an application with this PID (it could be unrelated though).

This can be used to inform users about the existing lock file and give them the choice to delete it. After removing the file using removeStaleLockFile(), the application can call tryLock() again.

This function returns true if the information could be successfully retrieved, false if the lock file doesn't exist or doesn't contain the expected data. This can happen if the lock file was deleted between the time where tryLock() failed and the call to this function. Simply call tryLock() again if this happens.

func (*QLockFile) IsLocked

func (this *QLockFile) IsLocked() bool

Returns true if the lock was acquired by this QLockFile instance, otherwise returns false.

See also lock(), unlock(), and tryLock().

func (*QLockFile) Lock

func (this *QLockFile) Lock() bool

Creates the lock file.

If another process (or another thread) has created the lock file already, this function will block until that process (or thread) releases it.

Calling this function multiple times on the same lock from the same thread without unlocking first is not allowed. This function will dead-lock when the file is locked recursively.

Returns true if the lock was acquired, false if it could not be acquired due to an unrecoverable error, such as no permissions in the parent directory.

See also unlock() and tryLock().

func (*QLockFile) NewFromPointer

func (*QLockFile) NewFromPointer(cthis unsafe.Pointer) *QLockFile

func (*QLockFile) QLockFile_PTR

func (ptr *QLockFile) QLockFile_PTR() *QLockFile

func (*QLockFile) RemoveStaleLockFile

func (this *QLockFile) RemoveStaleLockFile() bool

Attempts to forcefully remove an existing lock file.

Calling this is not recommended when protecting a short-lived operation: QLockFile already takes care of removing lock files after they are older than staleLockTime().

This method should only be called when protecting a resource for a long time, i.e. with staleLockTime(0), and after tryLock() returned LockFailedError, and the user agreed on removing the lock file.

Returns true on success, false if the lock file couldn't be removed. This happens on Windows, when the application owning the lock is still running.

func (*QLockFile) SetCthis

func (this *QLockFile) SetCthis(cthis unsafe.Pointer)

func (*QLockFile) SetStaleLockTime

func (this *QLockFile) SetStaleLockTime(arg0 int)

Sets staleLockTime to be the time in milliseconds after which a lock file is considered stale. The default value is 30000, i.e. 30 seconds. If your application typically keeps the file locked for more than 30 seconds (for instance while saving megabytes of data for 2 minutes), you should set a bigger value using setStaleLockTime().

The value of staleLockTime is used by lock() and tryLock() in order to determine when an existing lock file is considered stale, i.e. left over by a crashed process. This is useful for the case where the PID got reused meanwhile, so one way to detect a stale lock file is by the fact that it has been around for a long time.

See also staleLockTime().

func (*QLockFile) StaleLockTime

func (this *QLockFile) StaleLockTime() int

Returns the time in milliseconds after which a lock file is considered stale.

See also setStaleLockTime().

func (*QLockFile) TryLock

func (this *QLockFile) TryLock(timeout int) bool

Attempts to create the lock file. This function returns true if the lock was obtained; otherwise it returns false. If another process (or another thread) has created the lock file already, this function will wait for at most timeout milliseconds for the lock file to become available.

Note: Passing a negative number as the timeout is equivalent to calling lock(), i.e. this function will wait forever until the lock file can be locked if timeout is negative.

If the lock was obtained, it must be released with unlock() before another process (or thread) can successfully lock it.

Calling this function multiple times on the same lock from the same thread without unlocking first is not allowed, this function will always return false when attempting to lock the file recursively.

See also lock() and unlock().

func (*QLockFile) TryLock__

func (this *QLockFile) TryLock__() bool

Attempts to create the lock file. This function returns true if the lock was obtained; otherwise it returns false. If another process (or another thread) has created the lock file already, this function will wait for at most timeout milliseconds for the lock file to become available.

Note: Passing a negative number as the timeout is equivalent to calling lock(), i.e. this function will wait forever until the lock file can be locked if timeout is negative.

If the lock was obtained, it must be released with unlock() before another process (or thread) can successfully lock it.

Calling this function multiple times on the same lock from the same thread without unlocking first is not allowed, this function will always return false when attempting to lock the file recursively.

See also lock() and unlock().

func (*QLockFile) Unlock

func (this *QLockFile) Unlock()

Releases the lock, by deleting the lock file.

Calling unlock() without locking the file first, does nothing.

See also lock() and tryLock().

type QLockFile_ITF

type QLockFile_ITF interface {
	QLockFile_PTR() *QLockFile
}

type QLockFile__LockError

type QLockFile__LockError = int

This enum describes the result of the last call to lock() or tryLock().

const QLockFile__LockFailedError QLockFile__LockError = 1

The lock could not be acquired because another process holds it.

const QLockFile__NoError QLockFile__LockError = 0

The lock was acquired successfully.

const QLockFile__PermissionError QLockFile__LockError = 2

The lock file could not be created, for lack of permissions in the parent directory.

const QLockFile__UnknownError QLockFile__LockError = 3

Another error happened, for instance a full partition prevented writing out the lock file.

type QLoggingCategory

type QLoggingCategory struct {
	*qtrt.CObject
}

func NewQLoggingCategory

func NewQLoggingCategory(category string) *QLoggingCategory

Constructs a QLoggingCategory object with the provided category name. All message types for this category are enabled by default.

If category is 0, the category name is changed to "default".

func NewQLoggingCategoryFromPointer

func NewQLoggingCategoryFromPointer(cthis unsafe.Pointer) *QLoggingCategory

func NewQLoggingCategory_1

func NewQLoggingCategory_1(category string, severityLevel int) *QLoggingCategory

Constructs a QLoggingCategory object with the provided category name. All message types for this category are enabled by default.

If category is 0, the category name is changed to "default".

func QLoggingCategory_DefaultCategory

func QLoggingCategory_DefaultCategory() *QLoggingCategory

func (*QLoggingCategory) CategoryName

func (this *QLoggingCategory) CategoryName() string

Returns the name of the category.

func (*QLoggingCategory) DefaultCategory

func (this *QLoggingCategory) DefaultCategory() *QLoggingCategory

Returns a pointer to the global category "default" that is used e.g. by qDebug(), qInfo(), qWarning(), qCritical(), qFatal().

Note: The returned pointer may be null during destruction of static objects.

Note: Ownership of the category is not transferred, do not delete the returned pointer.

func (*QLoggingCategory) GetCthis

func (this *QLoggingCategory) GetCthis() unsafe.Pointer

func (*QLoggingCategory) IsCriticalEnabled

func (this *QLoggingCategory) IsCriticalEnabled() bool

Returns true if critical messages should be shown for this category. Returns false otherwise.

Note: The qCCritical() macro already does this check before executing any code. However, calling this method may be useful to avoid expensive generation of data that is only used for debug output.

func (*QLoggingCategory) IsDebugEnabled

func (this *QLoggingCategory) IsDebugEnabled() bool

Returns true if debug messages should be shown for this category. Returns false otherwise.

Note: The qCDebug() macro already does this check before executing any code. However, calling this method may be useful to avoid expensive generation of data that is only used for debug output.

func (*QLoggingCategory) IsEnabled

func (this *QLoggingCategory) IsEnabled(type_ int) bool

Returns true if a message of type msgtype for the category should be shown. Returns false otherwise.

func (*QLoggingCategory) IsInfoEnabled

func (this *QLoggingCategory) IsInfoEnabled() bool

Returns true if informational messages should be shown for this category. Returns false otherwise.

Note: The qCInfo() macro already does this check before executing any code. However, calling this method may be useful to avoid expensive generation of data that is only used for debug output.

This function was introduced in Qt 5.5.

func (*QLoggingCategory) IsWarningEnabled

func (this *QLoggingCategory) IsWarningEnabled() bool

Returns true if warning messages should be shown for this category. Returns false otherwise.

Note: The qCWarning() macro already does this check before executing any code. However, calling this method may be useful to avoid expensive generation of data that is only used for debug output.

func (*QLoggingCategory) NewFromPointer

func (*QLoggingCategory) NewFromPointer(cthis unsafe.Pointer) *QLoggingCategory

func (*QLoggingCategory) QLoggingCategory_PTR

func (ptr *QLoggingCategory) QLoggingCategory_PTR() *QLoggingCategory

func (*QLoggingCategory) SetCthis

func (this *QLoggingCategory) SetCthis(cthis unsafe.Pointer)

func (*QLoggingCategory) SetEnabled

func (this *QLoggingCategory) SetEnabled(type_ int, enable bool)

Changes the message type type for the category to enable.

This method is meant to be used only from inside a filter installed by installFilter(). See Configuring Categories for an overview on how to configure categories globally.

Note: QtFatalMsg cannot be changed. It will always remain true.

See also isEnabled().

func (*QLoggingCategory) SetFilterRules

func (this *QLoggingCategory) SetFilterRules(rules string)

Configures which categories and message types should be enabled through a a set of rules.

Example:

QLoggingCategory::setFilterRules(QStringLiteral("driver.usb.debug=true"));

Note: The rules might be ignored if a custom category filter is installed with installFilter(), or if the user defined QT_LOGGING_CONF or QT_LOGGING_RULES environment variable.

type QLoggingCategory_ITF

type QLoggingCategory_ITF interface {
	QLoggingCategory_PTR() *QLoggingCategory
}

type QLoggingCategory__

type QLoggingCategory__ = int
const QLoggingCategory__CriticalShift QLoggingCategory__ = 16
const QLoggingCategory__DebugShift QLoggingCategory__ = 0
const QLoggingCategory__InfoShift QLoggingCategory__ = 24
const QLoggingCategory__WarningShift QLoggingCategory__ = 8

type QMapDataBase

type QMapDataBase struct {
	*qtrt.CObject
}

func NewQMapDataBaseFromPointer

func NewQMapDataBaseFromPointer(cthis unsafe.Pointer) *QMapDataBase

func QMapDataBase_CreateData

func QMapDataBase_CreateData() *QMapDataBase

func (*QMapDataBase) CreateData

func (this *QMapDataBase) CreateData() *QMapDataBase

func (*QMapDataBase) GetCthis

func (this *QMapDataBase) GetCthis() unsafe.Pointer

func (*QMapDataBase) NewFromPointer

func (*QMapDataBase) NewFromPointer(cthis unsafe.Pointer) *QMapDataBase

func (*QMapDataBase) QMapDataBase_PTR

func (ptr *QMapDataBase) QMapDataBase_PTR() *QMapDataBase

func (*QMapDataBase) RecalcMostLeftNode

func (this *QMapDataBase) RecalcMostLeftNode()

func (*QMapDataBase) SetCthis

func (this *QMapDataBase) SetCthis(cthis unsafe.Pointer)

type QMapDataBase_ITF

type QMapDataBase_ITF interface {
	QMapDataBase_PTR() *QMapDataBase
}

type QMapNodeBase

type QMapNodeBase struct {
	*qtrt.CObject
}

func NewQMapNodeBaseFromPointer

func NewQMapNodeBaseFromPointer(cthis unsafe.Pointer) *QMapNodeBase

func (*QMapNodeBase) Color

func (this *QMapNodeBase) Color() int

func (*QMapNodeBase) GetCthis

func (this *QMapNodeBase) GetCthis() unsafe.Pointer

func (*QMapNodeBase) NewFromPointer

func (*QMapNodeBase) NewFromPointer(cthis unsafe.Pointer) *QMapNodeBase

func (*QMapNodeBase) NextNode

func (this *QMapNodeBase) NextNode() *QMapNodeBase

func (*QMapNodeBase) NextNode_1

func (this *QMapNodeBase) NextNode_1() *QMapNodeBase

func (*QMapNodeBase) Parent

func (this *QMapNodeBase) Parent() *QMapNodeBase

func (*QMapNodeBase) PreviousNode

func (this *QMapNodeBase) PreviousNode() *QMapNodeBase

func (*QMapNodeBase) PreviousNode_1

func (this *QMapNodeBase) PreviousNode_1() *QMapNodeBase

func (*QMapNodeBase) QMapNodeBase_PTR

func (ptr *QMapNodeBase) QMapNodeBase_PTR() *QMapNodeBase

func (*QMapNodeBase) SetColor

func (this *QMapNodeBase) SetColor(c int)

func (*QMapNodeBase) SetCthis

func (this *QMapNodeBase) SetCthis(cthis unsafe.Pointer)

type QMapNodeBase_ITF

type QMapNodeBase_ITF interface {
	QMapNodeBase_PTR() *QMapNodeBase
}

type QMapNodeBase__

type QMapNodeBase__ = int
const QMapNodeBase__Mask QMapNodeBase__ = 3

type QMapNodeBase__Color

type QMapNodeBase__Color = int
const QMapNodeBase__Black QMapNodeBase__Color = 1
const QMapNodeBase__Red QMapNodeBase__Color = 0

type QMargins

type QMargins struct {
	*qtrt.CObject
}

func NewQMargins

func NewQMargins() *QMargins

Constructs a margins object with all margins set to 0.

See also isNull().

func NewQMarginsFromPointer

func NewQMarginsFromPointer(cthis unsafe.Pointer) *QMargins

func NewQMargins_1

func NewQMargins_1(left int, top int, right int, bottom int) *QMargins

Constructs a margins object with all margins set to 0.

See also isNull().

func (*QMargins) Bottom

func (this *QMargins) Bottom() int

Returns the bottom margin.

See also setBottom().

func (*QMargins) GetCthis

func (this *QMargins) GetCthis() unsafe.Pointer

func (*QMargins) IsNull

func (this *QMargins) IsNull() bool

Returns true if all margins are is 0; otherwise returns false.

func (*QMargins) Left

func (this *QMargins) Left() int

Returns the left margin.

See also setLeft().

func (*QMargins) NewFromPointer

func (*QMargins) NewFromPointer(cthis unsafe.Pointer) *QMargins

func (*QMargins) Operator_add_equal

func (this *QMargins) Operator_add_equal(margins QMargins_ITF) *QMargins

func (*QMargins) Operator_add_equal_1

func (this *QMargins) Operator_add_equal_1(arg0 int) *QMargins

func (*QMargins) Operator_div_equal

func (this *QMargins) Operator_div_equal(arg0 int) *QMargins

func (*QMargins) Operator_div_equal_1

func (this *QMargins) Operator_div_equal_1(arg0 float64) *QMargins

func (*QMargins) Operator_minus_equal

func (this *QMargins) Operator_minus_equal(margins QMargins_ITF) *QMargins

func (*QMargins) Operator_minus_equal_1

func (this *QMargins) Operator_minus_equal_1(arg0 int) *QMargins

func (*QMargins) Operator_mul_equal

func (this *QMargins) Operator_mul_equal(arg0 int) *QMargins

func (*QMargins) Operator_mul_equal_1

func (this *QMargins) Operator_mul_equal_1(arg0 float64) *QMargins

func (*QMargins) QMargins_PTR

func (ptr *QMargins) QMargins_PTR() *QMargins

func (*QMargins) Right

func (this *QMargins) Right() int

Returns the right margin.

See also setRight().

func (*QMargins) SetBottom

func (this *QMargins) SetBottom(bottom int)

Sets the bottom margin to bottom.

See also bottom().

func (*QMargins) SetCthis

func (this *QMargins) SetCthis(cthis unsafe.Pointer)

func (*QMargins) SetLeft

func (this *QMargins) SetLeft(left int)

Sets the left margin to left.

See also left().

func (*QMargins) SetRight

func (this *QMargins) SetRight(right int)

Sets the right margin to right.

See also right().

func (*QMargins) SetTop

func (this *QMargins) SetTop(top int)

Sets the Top margin to Top.

See also top().

func (*QMargins) Top

func (this *QMargins) Top() int

Returns the top margin.

See also setTop().

type QMarginsF

type QMarginsF struct {
	*qtrt.CObject
}

func NewQMarginsF

func NewQMarginsF() *QMarginsF

func NewQMarginsFFromPointer

func NewQMarginsFFromPointer(cthis unsafe.Pointer) *QMarginsF

func NewQMarginsF_1

func NewQMarginsF_1(left float64, top float64, right float64, bottom float64) *QMarginsF

func NewQMarginsF_2

func NewQMarginsF_2(margins QMargins_ITF) *QMarginsF

func (*QMarginsF) Bottom

func (this *QMarginsF) Bottom() float64

Returns the bottom margin.

See also setBottom().

func (*QMarginsF) GetCthis

func (this *QMarginsF) GetCthis() unsafe.Pointer

func (*QMarginsF) IsNull

func (this *QMarginsF) IsNull() bool

Returns true if all margins are is 0; otherwise returns false.

func (*QMarginsF) Left

func (this *QMarginsF) Left() float64

Returns the left margin.

See also setLeft().

func (*QMarginsF) NewFromPointer

func (*QMarginsF) NewFromPointer(cthis unsafe.Pointer) *QMarginsF

func (*QMarginsF) Operator_add_equal

func (this *QMarginsF) Operator_add_equal(margins QMarginsF_ITF) *QMarginsF

func (*QMarginsF) Operator_add_equal_1

func (this *QMarginsF) Operator_add_equal_1(addend float64) *QMarginsF

func (*QMarginsF) Operator_div_equal

func (this *QMarginsF) Operator_div_equal(divisor float64) *QMarginsF

func (*QMarginsF) Operator_minus_equal

func (this *QMarginsF) Operator_minus_equal(margins QMarginsF_ITF) *QMarginsF

func (*QMarginsF) Operator_minus_equal_1

func (this *QMarginsF) Operator_minus_equal_1(subtrahend float64) *QMarginsF

func (*QMarginsF) Operator_mul_equal

func (this *QMarginsF) Operator_mul_equal(factor float64) *QMarginsF

func (*QMarginsF) QMarginsF_PTR

func (ptr *QMarginsF) QMarginsF_PTR() *QMarginsF

func (*QMarginsF) Right

func (this *QMarginsF) Right() float64

Returns the right margin.

See also setRight().

func (*QMarginsF) SetBottom

func (this *QMarginsF) SetBottom(bottom float64)

Sets the bottom margin to bottom.

See also bottom().

func (*QMarginsF) SetCthis

func (this *QMarginsF) SetCthis(cthis unsafe.Pointer)

func (*QMarginsF) SetLeft

func (this *QMarginsF) SetLeft(left float64)

Sets the left margin to left.

See also left().

func (*QMarginsF) SetRight

func (this *QMarginsF) SetRight(right float64)

Sets the right margin to right.

See also right().

func (*QMarginsF) SetTop

func (this *QMarginsF) SetTop(top float64)

Sets the Top margin to Top.

See also top().

func (*QMarginsF) ToMargins

func (this *QMarginsF) ToMargins() *QMargins

func (*QMarginsF) Top

func (this *QMarginsF) Top() float64

Returns the top margin.

See also setTop().

type QMarginsF_ITF

type QMarginsF_ITF interface {
	QMarginsF_PTR() *QMarginsF
}

type QMargins_ITF

type QMargins_ITF interface {
	QMargins_PTR() *QMargins
}

type QMessageAuthenticationCode

type QMessageAuthenticationCode struct {
	*qtrt.CObject
}

func NewQMessageAuthenticationCode

func NewQMessageAuthenticationCode(method int, key QByteArray_ITF) *QMessageAuthenticationCode

Constructs an object that can be used to create a cryptographic hash from data using method method and key key.

func NewQMessageAuthenticationCodeFromPointer

func NewQMessageAuthenticationCodeFromPointer(cthis unsafe.Pointer) *QMessageAuthenticationCode

func NewQMessageAuthenticationCode__

func NewQMessageAuthenticationCode__(method int) *QMessageAuthenticationCode

Constructs an object that can be used to create a cryptographic hash from data using method method and key key.

func (*QMessageAuthenticationCode) AddData

func (this *QMessageAuthenticationCode) AddData(data string, length int)

Adds the first length chars of data to the message.

func (*QMessageAuthenticationCode) AddData_1

func (this *QMessageAuthenticationCode) AddData_1(data QByteArray_ITF)

Adds the first length chars of data to the message.

func (*QMessageAuthenticationCode) AddData_2

func (this *QMessageAuthenticationCode) AddData_2(device QIODevice_ITF) bool

Adds the first length chars of data to the message.

func (*QMessageAuthenticationCode) GetCthis

func (this *QMessageAuthenticationCode) GetCthis() unsafe.Pointer

func (*QMessageAuthenticationCode) Hash

func (this *QMessageAuthenticationCode) Hash(message QByteArray_ITF, key QByteArray_ITF, method int) *QByteArray

Returns the authentication code for the message message using the key key and the method method.

func (*QMessageAuthenticationCode) NewFromPointer

func (*QMessageAuthenticationCode) QMessageAuthenticationCode_PTR

func (ptr *QMessageAuthenticationCode) QMessageAuthenticationCode_PTR() *QMessageAuthenticationCode

func (*QMessageAuthenticationCode) Reset

func (this *QMessageAuthenticationCode) Reset()

Resets message data. Calling this method doesn't affect the key.

func (*QMessageAuthenticationCode) Result

func (this *QMessageAuthenticationCode) Result() *QByteArray

Returns the final authentication code.

See also QByteArray::toHex().

func (*QMessageAuthenticationCode) SetCthis

func (this *QMessageAuthenticationCode) SetCthis(cthis unsafe.Pointer)

func (*QMessageAuthenticationCode) SetKey

func (this *QMessageAuthenticationCode) SetKey(key QByteArray_ITF)

Sets secret key. Calling this method automatically resets the object state.

type QMessageAuthenticationCode_ITF

type QMessageAuthenticationCode_ITF interface {
	QMessageAuthenticationCode_PTR() *QMessageAuthenticationCode
}

type QMessageLogContext

type QMessageLogContext struct {
	*qtrt.CObject
}

func NewQMessageLogContext

func NewQMessageLogContext() *QMessageLogContext

func NewQMessageLogContextFromPointer

func NewQMessageLogContextFromPointer(cthis unsafe.Pointer) *QMessageLogContext

func NewQMessageLogContext_1

func NewQMessageLogContext_1(fileName string, lineNumber int, functionName string, categoryName string) *QMessageLogContext

func (*QMessageLogContext) Copy

func (this *QMessageLogContext) Copy(logContext QMessageLogContext_ITF)

func (*QMessageLogContext) GetCthis

func (this *QMessageLogContext) GetCthis() unsafe.Pointer

func (*QMessageLogContext) NewFromPointer

func (*QMessageLogContext) NewFromPointer(cthis unsafe.Pointer) *QMessageLogContext

func (*QMessageLogContext) QMessageLogContext_PTR

func (ptr *QMessageLogContext) QMessageLogContext_PTR() *QMessageLogContext

func (*QMessageLogContext) SetCthis

func (this *QMessageLogContext) SetCthis(cthis unsafe.Pointer)

type QMessageLogContext_ITF

type QMessageLogContext_ITF interface {
	QMessageLogContext_PTR() *QMessageLogContext
}

type QMessageLogger

type QMessageLogger struct {
	*qtrt.CObject
}

func NewQMessageLogger

func NewQMessageLogger() *QMessageLogger

func NewQMessageLoggerFromPointer

func NewQMessageLoggerFromPointer(cthis unsafe.Pointer) *QMessageLogger

func NewQMessageLogger_1

func NewQMessageLogger_1(file string, line int, function string) *QMessageLogger

func NewQMessageLogger_2

func NewQMessageLogger_2(file string, line int, function string, category string) *QMessageLogger

func (*QMessageLogger) GetCthis

func (this *QMessageLogger) GetCthis() unsafe.Pointer

func (*QMessageLogger) NewFromPointer

func (*QMessageLogger) NewFromPointer(cthis unsafe.Pointer) *QMessageLogger

func (*QMessageLogger) QMessageLogger_PTR

func (ptr *QMessageLogger) QMessageLogger_PTR() *QMessageLogger

func (*QMessageLogger) SetCthis

func (this *QMessageLogger) SetCthis(cthis unsafe.Pointer)

type QMessageLogger_ITF

type QMessageLogger_ITF interface {
	QMessageLogger_PTR() *QMessageLogger
}

type QMetaClassInfo

type QMetaClassInfo struct {
	*qtrt.CObject
}

func NewQMetaClassInfo

func NewQMetaClassInfo() *QMetaClassInfo

func NewQMetaClassInfoFromPointer

func NewQMetaClassInfoFromPointer(cthis unsafe.Pointer) *QMetaClassInfo

func (*QMetaClassInfo) EnclosingMetaObject

func (this *QMetaClassInfo) EnclosingMetaObject() *QMetaObject

func (*QMetaClassInfo) GetCthis

func (this *QMetaClassInfo) GetCthis() unsafe.Pointer

func (*QMetaClassInfo) Name

func (this *QMetaClassInfo) Name() string

func (*QMetaClassInfo) NewFromPointer

func (*QMetaClassInfo) NewFromPointer(cthis unsafe.Pointer) *QMetaClassInfo

func (*QMetaClassInfo) QMetaClassInfo_PTR

func (ptr *QMetaClassInfo) QMetaClassInfo_PTR() *QMetaClassInfo

func (*QMetaClassInfo) SetCthis

func (this *QMetaClassInfo) SetCthis(cthis unsafe.Pointer)

func (*QMetaClassInfo) Value

func (this *QMetaClassInfo) Value() string

type QMetaClassInfo_ITF

type QMetaClassInfo_ITF interface {
	QMetaClassInfo_PTR() *QMetaClassInfo
}

type QMetaEnum

type QMetaEnum struct {
	*qtrt.CObject
}

func NewQMetaEnum

func NewQMetaEnum() *QMetaEnum

func NewQMetaEnumFromPointer

func NewQMetaEnumFromPointer(cthis unsafe.Pointer) *QMetaEnum

func (*QMetaEnum) EnclosingMetaObject

func (this *QMetaEnum) EnclosingMetaObject() *QMetaObject

func (*QMetaEnum) GetCthis

func (this *QMetaEnum) GetCthis() unsafe.Pointer

func (*QMetaEnum) IsFlag

func (this *QMetaEnum) IsFlag() bool

func (*QMetaEnum) IsScoped

func (this *QMetaEnum) IsScoped() bool

func (*QMetaEnum) IsValid

func (this *QMetaEnum) IsValid() bool

func (*QMetaEnum) Key

func (this *QMetaEnum) Key(index int) string

func (*QMetaEnum) KeyCount

func (this *QMetaEnum) KeyCount() int

func (*QMetaEnum) KeyToValue

func (this *QMetaEnum) KeyToValue(key string, ok *bool) int

func (*QMetaEnum) KeyToValue__

func (this *QMetaEnum) KeyToValue__(key string) int

func (*QMetaEnum) KeysToValue

func (this *QMetaEnum) KeysToValue(keys string, ok *bool) int

func (*QMetaEnum) KeysToValue__

func (this *QMetaEnum) KeysToValue__(keys string) int

func (*QMetaEnum) Name

func (this *QMetaEnum) Name() string

func (*QMetaEnum) NewFromPointer

func (*QMetaEnum) NewFromPointer(cthis unsafe.Pointer) *QMetaEnum

func (*QMetaEnum) QMetaEnum_PTR

func (ptr *QMetaEnum) QMetaEnum_PTR() *QMetaEnum

func (*QMetaEnum) Scope

func (this *QMetaEnum) Scope() string

func (*QMetaEnum) SetCthis

func (this *QMetaEnum) SetCthis(cthis unsafe.Pointer)

func (*QMetaEnum) Value

func (this *QMetaEnum) Value(index int) int

func (*QMetaEnum) ValueToKey

func (this *QMetaEnum) ValueToKey(value int) string

func (*QMetaEnum) ValueToKeys

func (this *QMetaEnum) ValueToKeys(value int) *QByteArray

type QMetaEnum_ITF

type QMetaEnum_ITF interface {
	QMetaEnum_PTR() *QMetaEnum
}

type QMetaMethod

type QMetaMethod struct {
	*qtrt.CObject
}

func NewQMetaMethod

func NewQMetaMethod() *QMetaMethod

func NewQMetaMethodFromPointer

func NewQMetaMethodFromPointer(cthis unsafe.Pointer) *QMetaMethod

func (*QMetaMethod) Access

func (this *QMetaMethod) Access() int

func (*QMetaMethod) Attributes

func (this *QMetaMethod) Attributes() int

func (*QMetaMethod) EnclosingMetaObject

func (this *QMetaMethod) EnclosingMetaObject() *QMetaObject

func (*QMetaMethod) GetCthis

func (this *QMetaMethod) GetCthis() unsafe.Pointer

func (*QMetaMethod) GetParameterTypes

func (this *QMetaMethod) GetParameterTypes(types unsafe.Pointer)

func (*QMetaMethod) InvokeOnGadget_1_

func (this *QMetaMethod) InvokeOnGadget_1_(gadget unsafe.Pointer) bool

func (*QMetaMethod) InvokeOnGadget_1_1

func (this *QMetaMethod) InvokeOnGadget_1_1(gadget unsafe.Pointer, val0 QGenericArgument_ITF) bool

func (*QMetaMethod) InvokeOnGadget_1_2

func (this *QMetaMethod) InvokeOnGadget_1_2(gadget unsafe.Pointer, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF) bool

func (*QMetaMethod) InvokeOnGadget_1_3

func (this *QMetaMethod) InvokeOnGadget_1_3(gadget unsafe.Pointer, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF, val2 QGenericArgument_ITF) bool

func (*QMetaMethod) InvokeOnGadget_1_4

func (this *QMetaMethod) InvokeOnGadget_1_4(gadget unsafe.Pointer, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF, val2 QGenericArgument_ITF, val3 QGenericArgument_ITF) bool

func (*QMetaMethod) InvokeOnGadget_1_5

func (*QMetaMethod) InvokeOnGadget__

func (this *QMetaMethod) InvokeOnGadget__(gadget unsafe.Pointer, returnValue QGenericReturnArgument_ITF) bool

func (*QMetaMethod) InvokeOnGadget__1

func (this *QMetaMethod) InvokeOnGadget__1(gadget unsafe.Pointer, returnValue QGenericReturnArgument_ITF, val0 QGenericArgument_ITF) bool

func (*QMetaMethod) InvokeOnGadget__2

func (this *QMetaMethod) InvokeOnGadget__2(gadget unsafe.Pointer, returnValue QGenericReturnArgument_ITF, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF) bool

func (*QMetaMethod) InvokeOnGadget__3

func (this *QMetaMethod) InvokeOnGadget__3(gadget unsafe.Pointer, returnValue QGenericReturnArgument_ITF, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF, val2 QGenericArgument_ITF) bool

func (*QMetaMethod) InvokeOnGadget__4

func (*QMetaMethod) Invoke_1_

func (this *QMetaMethod) Invoke_1_(object QObject_ITF, returnValue QGenericReturnArgument_ITF) bool

func (*QMetaMethod) Invoke_1_1

func (this *QMetaMethod) Invoke_1_1(object QObject_ITF, returnValue QGenericReturnArgument_ITF, val0 QGenericArgument_ITF) bool

func (*QMetaMethod) Invoke_1_2

func (this *QMetaMethod) Invoke_1_2(object QObject_ITF, returnValue QGenericReturnArgument_ITF, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF) bool

func (*QMetaMethod) Invoke_1_3

func (*QMetaMethod) Invoke_1_4

func (*QMetaMethod) Invoke_2_

func (this *QMetaMethod) Invoke_2_(object QObject_ITF, connectionType int) bool

func (*QMetaMethod) Invoke_2_1

func (this *QMetaMethod) Invoke_2_1(object QObject_ITF, connectionType int, val0 QGenericArgument_ITF) bool

func (*QMetaMethod) Invoke_2_2

func (this *QMetaMethod) Invoke_2_2(object QObject_ITF, connectionType int, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF) bool

func (*QMetaMethod) Invoke_2_3

func (this *QMetaMethod) Invoke_2_3(object QObject_ITF, connectionType int, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF, val2 QGenericArgument_ITF) bool

func (*QMetaMethod) Invoke_2_4

func (this *QMetaMethod) Invoke_2_4(object QObject_ITF, connectionType int, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF, val2 QGenericArgument_ITF, val3 QGenericArgument_ITF) bool

func (*QMetaMethod) Invoke_2_5

func (this *QMetaMethod) Invoke_2_5(object QObject_ITF, connectionType int, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF, val2 QGenericArgument_ITF, val3 QGenericArgument_ITF, val4 QGenericArgument_ITF) bool

func (*QMetaMethod) Invoke_2_6

func (*QMetaMethod) Invoke_2_7

func (*QMetaMethod) Invoke_3_

func (this *QMetaMethod) Invoke_3_(object QObject_ITF) bool

func (*QMetaMethod) Invoke_3_1

func (this *QMetaMethod) Invoke_3_1(object QObject_ITF, val0 QGenericArgument_ITF) bool

func (*QMetaMethod) Invoke_3_2

func (this *QMetaMethod) Invoke_3_2(object QObject_ITF, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF) bool

func (*QMetaMethod) Invoke_3_3

func (*QMetaMethod) Invoke_3_4

func (*QMetaMethod) Invoke_3_5

func (*QMetaMethod) Invoke__

func (this *QMetaMethod) Invoke__(object QObject_ITF, connectionType int, returnValue QGenericReturnArgument_ITF) bool

func (*QMetaMethod) Invoke__1

func (this *QMetaMethod) Invoke__1(object QObject_ITF, connectionType int, returnValue QGenericReturnArgument_ITF, val0 QGenericArgument_ITF) bool

func (*QMetaMethod) Invoke__2

func (this *QMetaMethod) Invoke__2(object QObject_ITF, connectionType int, returnValue QGenericReturnArgument_ITF, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF) bool

func (*QMetaMethod) Invoke__3

func (this *QMetaMethod) Invoke__3(object QObject_ITF, connectionType int, returnValue QGenericReturnArgument_ITF, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF, val2 QGenericArgument_ITF) bool

func (*QMetaMethod) Invoke__4

func (this *QMetaMethod) Invoke__4(object QObject_ITF, connectionType int, returnValue QGenericReturnArgument_ITF, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF, val2 QGenericArgument_ITF, val3 QGenericArgument_ITF) bool

func (*QMetaMethod) Invoke__5

func (*QMetaMethod) Invoke__6

func (*QMetaMethod) IsValid

func (this *QMetaMethod) IsValid() bool

func (*QMetaMethod) MethodIndex

func (this *QMetaMethod) MethodIndex() int

func (*QMetaMethod) MethodSignature

func (this *QMetaMethod) MethodSignature() *QByteArray

func (*QMetaMethod) MethodType

func (this *QMetaMethod) MethodType() int

func (*QMetaMethod) Name

func (this *QMetaMethod) Name() *QByteArray

func (*QMetaMethod) NewFromPointer

func (*QMetaMethod) NewFromPointer(cthis unsafe.Pointer) *QMetaMethod

func (*QMetaMethod) ParameterCount

func (this *QMetaMethod) ParameterCount() int

func (*QMetaMethod) ParameterType

func (this *QMetaMethod) ParameterType(index int) int

func (*QMetaMethod) QMetaMethod_PTR

func (ptr *QMetaMethod) QMetaMethod_PTR() *QMetaMethod

func (*QMetaMethod) ReturnType

func (this *QMetaMethod) ReturnType() int

func (*QMetaMethod) Revision

func (this *QMetaMethod) Revision() int

func (*QMetaMethod) SetCthis

func (this *QMetaMethod) SetCthis(cthis unsafe.Pointer)

func (*QMetaMethod) Tag

func (this *QMetaMethod) Tag() string

func (*QMetaMethod) TypeName

func (this *QMetaMethod) TypeName() string

type QMetaMethod_ITF

type QMetaMethod_ITF interface {
	QMetaMethod_PTR() *QMetaMethod
}

type QMetaMethod__Access

type QMetaMethod__Access = int
const QMetaMethod__Private QMetaMethod__Access = 0
const QMetaMethod__Protected QMetaMethod__Access = 1
const QMetaMethod__Public QMetaMethod__Access = 2

type QMetaMethod__Attributes

type QMetaMethod__Attributes = int
const QMetaMethod__Cloned QMetaMethod__Attributes = 2
const QMetaMethod__Compatibility QMetaMethod__Attributes = 1
const QMetaMethod__Scriptable QMetaMethod__Attributes = 4

type QMetaMethod__MethodType

type QMetaMethod__MethodType = int
const QMetaMethod__Constructor QMetaMethod__MethodType = 3
const QMetaMethod__Method QMetaMethod__MethodType = 0
const QMetaMethod__Signal QMetaMethod__MethodType = 1
const QMetaMethod__Slot QMetaMethod__MethodType = 2

type QMetaObject

type QMetaObject struct {
	*qtrt.CObject
}

func NewQMetaObjectFromPointer

func NewQMetaObjectFromPointer(cthis unsafe.Pointer) *QMetaObject

func Qt_getEnumMetaObject

func Qt_getEnumMetaObject(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_1

func Qt_getEnumMetaObject_1(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_10

func Qt_getEnumMetaObject_10(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_11

func Qt_getEnumMetaObject_11(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_12

func Qt_getEnumMetaObject_12(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_13

func Qt_getEnumMetaObject_13(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_14

func Qt_getEnumMetaObject_14(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_15

func Qt_getEnumMetaObject_15(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_16

func Qt_getEnumMetaObject_16(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_17

func Qt_getEnumMetaObject_17(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_18

func Qt_getEnumMetaObject_18(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_19

func Qt_getEnumMetaObject_19(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_2

func Qt_getEnumMetaObject_2(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_20

func Qt_getEnumMetaObject_20(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_21

func Qt_getEnumMetaObject_21(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_22

func Qt_getEnumMetaObject_22(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_23

func Qt_getEnumMetaObject_23(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_24

func Qt_getEnumMetaObject_24(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_25

func Qt_getEnumMetaObject_25(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_26

func Qt_getEnumMetaObject_26(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_27

func Qt_getEnumMetaObject_27(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_28

func Qt_getEnumMetaObject_28(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_29

func Qt_getEnumMetaObject_29(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_3

func Qt_getEnumMetaObject_3(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_30

func Qt_getEnumMetaObject_30(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_31

func Qt_getEnumMetaObject_31(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_32

func Qt_getEnumMetaObject_32(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_33

func Qt_getEnumMetaObject_33(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_34

func Qt_getEnumMetaObject_34(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_35

func Qt_getEnumMetaObject_35(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_36

func Qt_getEnumMetaObject_36(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_37

func Qt_getEnumMetaObject_37(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_38

func Qt_getEnumMetaObject_38(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_39

func Qt_getEnumMetaObject_39(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_4

func Qt_getEnumMetaObject_4(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_40

func Qt_getEnumMetaObject_40(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_41

func Qt_getEnumMetaObject_41(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_42

func Qt_getEnumMetaObject_42(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_43

func Qt_getEnumMetaObject_43(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_44

func Qt_getEnumMetaObject_44(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_45

func Qt_getEnumMetaObject_45(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_46

func Qt_getEnumMetaObject_46(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_47

func Qt_getEnumMetaObject_47(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_48

func Qt_getEnumMetaObject_48(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_49

func Qt_getEnumMetaObject_49(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_5

func Qt_getEnumMetaObject_5(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_50

func Qt_getEnumMetaObject_50(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_51

func Qt_getEnumMetaObject_51(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_52

func Qt_getEnumMetaObject_52(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_53

func Qt_getEnumMetaObject_53(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_54

func Qt_getEnumMetaObject_54(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_55

func Qt_getEnumMetaObject_55(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_56

func Qt_getEnumMetaObject_56(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_57

func Qt_getEnumMetaObject_57(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_58

func Qt_getEnumMetaObject_58(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_59

func Qt_getEnumMetaObject_59(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_6

func Qt_getEnumMetaObject_6(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_60

func Qt_getEnumMetaObject_60(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_61

func Qt_getEnumMetaObject_61(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_62

func Qt_getEnumMetaObject_62(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_63

func Qt_getEnumMetaObject_63(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_64

func Qt_getEnumMetaObject_64(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_65

func Qt_getEnumMetaObject_65(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_66

func Qt_getEnumMetaObject_66(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_67

func Qt_getEnumMetaObject_67(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_68

func Qt_getEnumMetaObject_68(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_69

func Qt_getEnumMetaObject_69(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_7

func Qt_getEnumMetaObject_7(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_70

func Qt_getEnumMetaObject_70(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_71

func Qt_getEnumMetaObject_71(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_72

func Qt_getEnumMetaObject_72(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_73

func Qt_getEnumMetaObject_73(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_74

func Qt_getEnumMetaObject_74(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_75

func Qt_getEnumMetaObject_75(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_76

func Qt_getEnumMetaObject_76(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_77

func Qt_getEnumMetaObject_77(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_78

func Qt_getEnumMetaObject_78(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_79

func Qt_getEnumMetaObject_79(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_8

func Qt_getEnumMetaObject_8(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_80

func Qt_getEnumMetaObject_80(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_81

func Qt_getEnumMetaObject_81(arg0 int) *QMetaObject

func Qt_getEnumMetaObject_9

func Qt_getEnumMetaObject_9(arg0 int) *QMetaObject

func Qt_getQtMetaObject

func Qt_getQtMetaObject() *QMetaObject

func Qt_getQtMetaObject_1

func Qt_getQtMetaObject_1() *QMetaObject

func (*QMetaObject) Activate

func (this *QMetaObject) Activate(sender QObject_ITF, signal_index int, argv unsafe.Pointer)

func (*QMetaObject) Activate_1

func (this *QMetaObject) Activate_1(sender QObject_ITF, signal_offset int, local_signal_index int, argv unsafe.Pointer)

func (*QMetaObject) Cast

func (this *QMetaObject) Cast(obj QObject_ITF) *QObject

func (*QMetaObject) Cast_1

func (this *QMetaObject) Cast_1(obj QObject_ITF) *QObject

func (*QMetaObject) CheckConnectArgs

func (this *QMetaObject) CheckConnectArgs(signal string, method string) bool

func (*QMetaObject) CheckConnectArgs_1

func (this *QMetaObject) CheckConnectArgs_1(signal QMetaMethod_ITF, method QMetaMethod_ITF) bool

func (*QMetaObject) ClassInfo

func (this *QMetaObject) ClassInfo(index int) *QMetaClassInfo

func (*QMetaObject) ClassInfoCount

func (this *QMetaObject) ClassInfoCount() int

func (*QMetaObject) ClassInfoOffset

func (this *QMetaObject) ClassInfoOffset() int

func (*QMetaObject) ClassName

func (this *QMetaObject) ClassName() string

func (*QMetaObject) Connect

func (this *QMetaObject) Connect(sender QObject_ITF, signal_index int, receiver QObject_ITF, method_index int, type_ int, types unsafe.Pointer) unsafe.Pointer

func (*QMetaObject) ConnectSlotsByName

func (this *QMetaObject) ConnectSlotsByName(o QObject_ITF)

func (*QMetaObject) Connect__

func (this *QMetaObject) Connect__(sender QObject_ITF, signal_index int, receiver QObject_ITF, method_index int) unsafe.Pointer

func (*QMetaObject) Connect__1

func (this *QMetaObject) Connect__1(sender QObject_ITF, signal_index int, receiver QObject_ITF, method_index int, type_ int) unsafe.Pointer

func (*QMetaObject) Constructor

func (this *QMetaObject) Constructor(index int) *QMetaMethod

func (*QMetaObject) ConstructorCount

func (this *QMetaObject) ConstructorCount() int

func (*QMetaObject) Disconnect

func (this *QMetaObject) Disconnect(sender QObject_ITF, signal_index int, receiver QObject_ITF, method_index int) bool

func (*QMetaObject) DisconnectOne

func (this *QMetaObject) DisconnectOne(sender QObject_ITF, signal_index int, receiver QObject_ITF, method_index int) bool

func (*QMetaObject) Enumerator

func (this *QMetaObject) Enumerator(index int) *QMetaEnum

func (*QMetaObject) EnumeratorCount

func (this *QMetaObject) EnumeratorCount() int

func (*QMetaObject) EnumeratorOffset

func (this *QMetaObject) EnumeratorOffset() int

func (*QMetaObject) GetCthis

func (this *QMetaObject) GetCthis() unsafe.Pointer

func (*QMetaObject) IndexOfClassInfo

func (this *QMetaObject) IndexOfClassInfo(name string) int

func (*QMetaObject) IndexOfConstructor

func (this *QMetaObject) IndexOfConstructor(constructor string) int

func (*QMetaObject) IndexOfEnumerator

func (this *QMetaObject) IndexOfEnumerator(name string) int

func (*QMetaObject) IndexOfMethod

func (this *QMetaObject) IndexOfMethod(method string) int

func (*QMetaObject) IndexOfProperty

func (this *QMetaObject) IndexOfProperty(name string) int

func (*QMetaObject) IndexOfSignal

func (this *QMetaObject) IndexOfSignal(signal string) int

func (*QMetaObject) IndexOfSlot

func (this *QMetaObject) IndexOfSlot(slot string) int

func (*QMetaObject) InvokeMethod_1_

func (this *QMetaObject) InvokeMethod_1_(obj QObject_ITF, member string, ret QGenericReturnArgument_ITF) bool

func (*QMetaObject) InvokeMethod_1_1

func (this *QMetaObject) InvokeMethod_1_1(obj QObject_ITF, member string, ret QGenericReturnArgument_ITF, val0 QGenericArgument_ITF) bool

func (*QMetaObject) InvokeMethod_1_2

func (this *QMetaObject) InvokeMethod_1_2(obj QObject_ITF, member string, ret QGenericReturnArgument_ITF, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF) bool

func (*QMetaObject) InvokeMethod_1_3

func (*QMetaObject) InvokeMethod_1_4

func (*QMetaObject) InvokeMethod_2_

func (this *QMetaObject) InvokeMethod_2_(obj QObject_ITF, member string, type_ int) bool

func (*QMetaObject) InvokeMethod_2_1

func (this *QMetaObject) InvokeMethod_2_1(obj QObject_ITF, member string, type_ int, val0 QGenericArgument_ITF) bool

func (*QMetaObject) InvokeMethod_2_2

func (this *QMetaObject) InvokeMethod_2_2(obj QObject_ITF, member string, type_ int, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF) bool

func (*QMetaObject) InvokeMethod_2_3

func (this *QMetaObject) InvokeMethod_2_3(obj QObject_ITF, member string, type_ int, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF, val2 QGenericArgument_ITF) bool

func (*QMetaObject) InvokeMethod_2_4

func (this *QMetaObject) InvokeMethod_2_4(obj QObject_ITF, member string, type_ int, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF, val2 QGenericArgument_ITF, val3 QGenericArgument_ITF) bool

func (*QMetaObject) InvokeMethod_2_5

func (this *QMetaObject) InvokeMethod_2_5(obj QObject_ITF, member string, type_ int, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF, val2 QGenericArgument_ITF, val3 QGenericArgument_ITF, val4 QGenericArgument_ITF) bool

func (*QMetaObject) InvokeMethod_2_6

func (*QMetaObject) InvokeMethod_3_

func (this *QMetaObject) InvokeMethod_3_(obj QObject_ITF, member string) bool

func (*QMetaObject) InvokeMethod_3_1

func (this *QMetaObject) InvokeMethod_3_1(obj QObject_ITF, member string, val0 QGenericArgument_ITF) bool

func (*QMetaObject) InvokeMethod_3_2

func (this *QMetaObject) InvokeMethod_3_2(obj QObject_ITF, member string, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF) bool

func (*QMetaObject) InvokeMethod_3_3

func (this *QMetaObject) InvokeMethod_3_3(obj QObject_ITF, member string, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF, val2 QGenericArgument_ITF) bool

func (*QMetaObject) InvokeMethod_3_4

func (this *QMetaObject) InvokeMethod_3_4(obj QObject_ITF, member string, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF, val2 QGenericArgument_ITF, val3 QGenericArgument_ITF) bool

func (*QMetaObject) InvokeMethod_3_5

func (*QMetaObject) InvokeMethod__

func (this *QMetaObject) InvokeMethod__(obj QObject_ITF, member string, arg2 int, ret QGenericReturnArgument_ITF) bool

func (*QMetaObject) InvokeMethod__1

func (this *QMetaObject) InvokeMethod__1(obj QObject_ITF, member string, arg2 int, ret QGenericReturnArgument_ITF, val0 QGenericArgument_ITF) bool

func (*QMetaObject) InvokeMethod__2

func (this *QMetaObject) InvokeMethod__2(obj QObject_ITF, member string, arg2 int, ret QGenericReturnArgument_ITF, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF) bool

func (*QMetaObject) InvokeMethod__3

func (this *QMetaObject) InvokeMethod__3(obj QObject_ITF, member string, arg2 int, ret QGenericReturnArgument_ITF, val0 QGenericArgument_ITF, val1 QGenericArgument_ITF, val2 QGenericArgument_ITF) bool

func (*QMetaObject) InvokeMethod__4

func (*QMetaObject) Metacall

func (this *QMetaObject) Metacall(arg0 QObject_ITF, arg1 int, arg2 int, arg3 unsafe.Pointer) int

func (*QMetaObject) Method

func (this *QMetaObject) Method(index int) *QMetaMethod

func (*QMetaObject) MethodCount

func (this *QMetaObject) MethodCount() int

func (*QMetaObject) MethodOffset

func (this *QMetaObject) MethodOffset() int

func (*QMetaObject) NewFromPointer

func (*QMetaObject) NewFromPointer(cthis unsafe.Pointer) *QMetaObject

func (*QMetaObject) NewInstance__

func (this *QMetaObject) NewInstance__() *QObject

func (*QMetaObject) NewInstance__1

func (this *QMetaObject) NewInstance__1(val0 QGenericArgument_ITF) *QObject

func (*QMetaObject) NewInstance__2

func (this *QMetaObject) NewInstance__2(val0 QGenericArgument_ITF, val1 QGenericArgument_ITF) *QObject

func (*QMetaObject) NewInstance__3

func (this *QMetaObject) NewInstance__3(val0 QGenericArgument_ITF, val1 QGenericArgument_ITF, val2 QGenericArgument_ITF) *QObject

func (*QMetaObject) NewInstance__4

func (*QMetaObject) NormalizedSignature

func (this *QMetaObject) NormalizedSignature(method string) *QByteArray

func (*QMetaObject) NormalizedType

func (this *QMetaObject) NormalizedType(type_ string) *QByteArray

func (*QMetaObject) Property

func (this *QMetaObject) Property(index int) *QMetaProperty

func (*QMetaObject) PropertyCount

func (this *QMetaObject) PropertyCount() int

func (*QMetaObject) PropertyOffset

func (this *QMetaObject) PropertyOffset() int

func (*QMetaObject) QMetaObject_PTR

func (ptr *QMetaObject) QMetaObject_PTR() *QMetaObject

func (*QMetaObject) SetCthis

func (this *QMetaObject) SetCthis(cthis unsafe.Pointer)

func (*QMetaObject) Static_metacall

func (this *QMetaObject) Static_metacall(arg0 int, arg1 int, arg2 unsafe.Pointer) int

func (*QMetaObject) SuperClass

func (this *QMetaObject) SuperClass() *QMetaObject

func (*QMetaObject) UserProperty

func (this *QMetaObject) UserProperty() *QMetaProperty

type QMetaObject_ITF

type QMetaObject_ITF interface {
	QMetaObject_PTR() *QMetaObject
}

type QMetaObject__Call

type QMetaObject__Call = int
const QMetaObject__CreateInstance QMetaObject__Call = 9
const QMetaObject__IndexOfMethod QMetaObject__Call = 10
const QMetaObject__InvokeMetaMethod QMetaObject__Call = 0
const QMetaObject__QueryPropertyDesignable QMetaObject__Call = 4
const QMetaObject__QueryPropertyEditable QMetaObject__Call = 7
const QMetaObject__QueryPropertyScriptable QMetaObject__Call = 5
const QMetaObject__QueryPropertyStored QMetaObject__Call = 6
const QMetaObject__QueryPropertyUser QMetaObject__Call = 8
const QMetaObject__ReadProperty QMetaObject__Call = 1
const QMetaObject__RegisterMethodArgumentMetaType QMetaObject__Call = 12
const QMetaObject__RegisterPropertyMetaType QMetaObject__Call = 11
const QMetaObject__ResetProperty QMetaObject__Call = 3
const QMetaObject__WriteProperty QMetaObject__Call = 2

type QMetaProperty

type QMetaProperty struct {
	*qtrt.CObject
}

func NewQMetaProperty

func NewQMetaProperty() *QMetaProperty

func NewQMetaPropertyFromPointer

func NewQMetaPropertyFromPointer(cthis unsafe.Pointer) *QMetaProperty

func (*QMetaProperty) EnclosingMetaObject

func (this *QMetaProperty) EnclosingMetaObject() *QMetaObject

func (*QMetaProperty) Enumerator

func (this *QMetaProperty) Enumerator() *QMetaEnum

Returns the meta-data for the enumerator with the given index.

See also enumeratorCount(), enumeratorOffset(), and indexOfEnumerator().

func (*QMetaProperty) GetCthis

func (this *QMetaProperty) GetCthis() unsafe.Pointer

func (*QMetaProperty) HasNotifySignal

func (this *QMetaProperty) HasNotifySignal() bool

func (*QMetaProperty) HasStdCppSet

func (this *QMetaProperty) HasStdCppSet() bool

func (*QMetaProperty) IsConstant

func (this *QMetaProperty) IsConstant() bool

func (*QMetaProperty) IsDesignable

func (this *QMetaProperty) IsDesignable(obj QObject_ITF) bool

func (*QMetaProperty) IsDesignable__

func (this *QMetaProperty) IsDesignable__() bool

func (*QMetaProperty) IsEditable

func (this *QMetaProperty) IsEditable(obj QObject_ITF) bool

func (*QMetaProperty) IsEditable__

func (this *QMetaProperty) IsEditable__() bool

func (*QMetaProperty) IsEnumType

func (this *QMetaProperty) IsEnumType() bool

func (*QMetaProperty) IsFinal

func (this *QMetaProperty) IsFinal() bool

func (*QMetaProperty) IsFlagType

func (this *QMetaProperty) IsFlagType() bool

func (*QMetaProperty) IsReadable

func (this *QMetaProperty) IsReadable() bool

func (*QMetaProperty) IsResettable

func (this *QMetaProperty) IsResettable() bool

func (*QMetaProperty) IsScriptable

func (this *QMetaProperty) IsScriptable(obj QObject_ITF) bool

func (*QMetaProperty) IsScriptable__

func (this *QMetaProperty) IsScriptable__() bool

func (*QMetaProperty) IsStored

func (this *QMetaProperty) IsStored(obj QObject_ITF) bool

func (*QMetaProperty) IsStored__

func (this *QMetaProperty) IsStored__() bool

func (*QMetaProperty) IsUser

func (this *QMetaProperty) IsUser(obj QObject_ITF) bool

func (*QMetaProperty) IsUser__

func (this *QMetaProperty) IsUser__() bool

func (*QMetaProperty) IsValid

func (this *QMetaProperty) IsValid() bool

func (*QMetaProperty) IsWritable

func (this *QMetaProperty) IsWritable() bool

func (*QMetaProperty) Name

func (this *QMetaProperty) Name() string

func (*QMetaProperty) NewFromPointer

func (*QMetaProperty) NewFromPointer(cthis unsafe.Pointer) *QMetaProperty

func (*QMetaProperty) NotifySignal

func (this *QMetaProperty) NotifySignal() *QMetaMethod

func (*QMetaProperty) NotifySignalIndex

func (this *QMetaProperty) NotifySignalIndex() int

func (*QMetaProperty) PropertyIndex

func (this *QMetaProperty) PropertyIndex() int

func (*QMetaProperty) QMetaProperty_PTR

func (ptr *QMetaProperty) QMetaProperty_PTR() *QMetaProperty

func (*QMetaProperty) Read

func (this *QMetaProperty) Read(obj QObject_ITF) *QVariant

func (*QMetaProperty) ReadOnGadget

func (this *QMetaProperty) ReadOnGadget(gadget unsafe.Pointer) *QVariant

func (*QMetaProperty) Reset

func (this *QMetaProperty) Reset(obj QObject_ITF) bool

func (*QMetaProperty) ResetOnGadget

func (this *QMetaProperty) ResetOnGadget(gadget unsafe.Pointer) bool

func (*QMetaProperty) Revision

func (this *QMetaProperty) Revision() int

func (*QMetaProperty) SetCthis

func (this *QMetaProperty) SetCthis(cthis unsafe.Pointer)

func (*QMetaProperty) Type

func (this *QMetaProperty) Type() int

func (*QMetaProperty) TypeName

func (this *QMetaProperty) TypeName() string

func (*QMetaProperty) UserType

func (this *QMetaProperty) UserType() int

func (*QMetaProperty) Write

func (this *QMetaProperty) Write(obj QObject_ITF, value QVariant_ITF) bool

func (*QMetaProperty) WriteOnGadget

func (this *QMetaProperty) WriteOnGadget(gadget unsafe.Pointer, value QVariant_ITF) bool

type QMetaProperty_ITF

type QMetaProperty_ITF interface {
	QMetaProperty_PTR() *QMetaProperty
}

type QMimeData

type QMimeData struct {
	*QObject
}

func NewQMimeData

func NewQMimeData() *QMimeData

Constructs a new MIME data object with no data in it.

func NewQMimeDataFromPointer

func NewQMimeDataFromPointer(cthis unsafe.Pointer) *QMimeData

func (*QMimeData) Clear

func (this *QMimeData) Clear()

Removes all the MIME type and data entries in the object.

func (*QMimeData) ColorData

func (this *QMimeData) ColorData() *QVariant

Returns a color if the data stored in the object represents a color (MIME type application/x-color); otherwise returns a null variant.

A QVariant is used because QMimeData belongs to the Qt Core module, whereas QColor belongs to Qt GUI. To convert the QVariant to a QColor, simply use qvariant_cast(). For example:

if (event->mimeData()->hasColor()) {
    QColor color = qvariant_cast<QColor>(event->mimeData()->colorData());
    ...
}

See also hasColor(), setColorData(), and data().

func (*QMimeData) Data

func (this *QMimeData) Data(mimetype string) *QByteArray

Returns the data stored in the object in the format described by the MIME type specified by mimeType.

See also setData().

func (*QMimeData) Formats

func (this *QMimeData) Formats() *QStringList

Returns a list of formats supported by the object. This is a list of MIME types for which the object can return suitable data. The formats in the list are in a priority order.

For the most common types of data, you can call the higher-level functions hasText(), hasHtml(), hasUrls(), hasImage(), and hasColor() instead.

See also hasFormat(), setData(), and data().

func (*QMimeData) GetCthis

func (this *QMimeData) GetCthis() unsafe.Pointer

func (*QMimeData) HasColor

func (this *QMimeData) HasColor() bool

Returns true if the object can return a color (MIME type application/x-color); otherwise returns false.

See also setColorData(), colorData(), and hasFormat().

func (*QMimeData) HasFormat

func (this *QMimeData) HasFormat(mimetype string) bool

Returns true if the object can return data for the MIME type specified by mimeType; otherwise returns false.

For the most common types of data, you can call the higher-level functions hasText(), hasHtml(), hasUrls(), hasImage(), and hasColor() instead.

See also formats(), setData(), and data().

func (*QMimeData) HasHtml

func (this *QMimeData) HasHtml() bool

Returns true if the object can return HTML (MIME type text/html); otherwise returns false.

See also setHtml(), html(), and hasFormat().

func (*QMimeData) HasImage

func (this *QMimeData) HasImage() bool

Returns true if the object can return an image; otherwise returns false.

See also setImageData(), imageData(), and hasFormat().

func (*QMimeData) HasText

func (this *QMimeData) HasText() bool

Returns true if the object can return plain text (MIME type text/plain); otherwise returns false.

See also setText(), text(), hasHtml(), and hasFormat().

func (*QMimeData) HasUrls

func (this *QMimeData) HasUrls() bool

Returns true if the object can return a list of urls; otherwise returns false.

URLs correspond to the MIME type text/uri-list.

See also setUrls(), urls(), and hasFormat().

func (*QMimeData) Html

func (this *QMimeData) Html() string

Returns a string if the data stored in the object is HTML (MIME type text/html); otherwise returns an empty string.

See also setHtml(), hasHtml(), and setData().

func (*QMimeData) ImageData

func (this *QMimeData) ImageData() *QVariant

Returns a QVariant storing a QImage if the object can return an image; otherwise returns a null variant.

A QVariant is used because QMimeData belongs to the Qt Core module, whereas QImage belongs to Qt GUI. To convert the QVariant to a QImage, simply use qvariant_cast(). For example:

if (event->mimeData()->hasImage()) {
    QImage image = qvariant_cast<QImage>(event->mimeData()->imageData());
    ...
}

See also setImageData() and hasImage().

func (*QMimeData) InheritRetrieveData

func (this *QMimeData) InheritRetrieveData(f func(mimetype string, preferredType int) unsafe.Pointer)

QVariant retrieveData(const class QString &, class QVariant::Type)

func (*QMimeData) MetaObject

func (this *QMimeData) MetaObject() *QMetaObject

func (*QMimeData) NewFromPointer

func (*QMimeData) NewFromPointer(cthis unsafe.Pointer) *QMimeData

func (*QMimeData) QMimeData_PTR

func (ptr *QMimeData) QMimeData_PTR() *QMimeData

func (*QMimeData) RemoveFormat

func (this *QMimeData) RemoveFormat(mimetype string)

Removes the data entry for mimeType in the object.

This function was introduced in Qt 4.4.

func (*QMimeData) RetrieveData

func (this *QMimeData) RetrieveData(mimetype string, preferredType int) *QVariant

Returns a variant with the given type containing data for the MIME type specified by mimeType. If the object does not support the MIME type or variant type given, a null variant is returned instead.

This function is called by the general data() getter and by the convenience getters (text(), html(), urls(), imageData(), and colorData()). You can reimplement it if you want to store your data using a custom data structure (instead of a QByteArray, which is what setData() provides). You would then also need to reimplement hasFormat() and formats().

See also data().

func (*QMimeData) SetColorData

func (this *QMimeData) SetColorData(color QVariant_ITF)

Sets the color data in the object to the given color.

Colors correspond to the MIME type application/x-color.

See also colorData(), hasColor(), and setData().

func (*QMimeData) SetCthis

func (this *QMimeData) SetCthis(cthis unsafe.Pointer)

func (*QMimeData) SetData

func (this *QMimeData) SetData(mimetype string, data QByteArray_ITF)

Sets the data associated with the MIME type given by mimeType to the specified data.

For the most common types of data, you can call the higher-level functions setText(), setHtml(), setUrls(), setImageData(), and setColorData() instead.

Note that if you want to use a custom data type in an item view drag and drop operation, you must register it as a Qt meta type, using the Q_DECLARE_METATYPE() macro, and implement stream operators for it. The stream operators must then be registered with the qRegisterMetaTypeStreamOperators() function.

See also data(), hasFormat(), QMetaType, and qRegisterMetaTypeStreamOperators().

func (*QMimeData) SetHtml

func (this *QMimeData) SetHtml(html string)

Sets html as the HTML (MIME type text/html) used to represent the data.

See also html(), hasHtml(), setText(), and setData().

func (*QMimeData) SetImageData

func (this *QMimeData) SetImageData(image QVariant_ITF)

Sets the data in the object to the given image.

A QVariant is used because QMimeData belongs to the Qt Core module, whereas QImage belongs to Qt GUI. The conversion from QImage to QVariant is implicit. For example:

mimeData->setImageData(QImage("beautifulfjord.png"));

See also imageData(), hasImage(), and setData().

func (*QMimeData) SetText

func (this *QMimeData) SetText(text string)

Sets text as the plain text (MIME type text/plain) used to represent the data.

See also text(), hasText(), setHtml(), and setData().

func (*QMimeData) Text

func (this *QMimeData) Text() string

Returns a plain text (MIME type text/plain) representation of the data.

See also setText(), hasText(), html(), and data().

type QMimeData_ITF

type QMimeData_ITF interface {
	QObject_ITF
	QMimeData_PTR() *QMimeData
}

type QMimeDatabase

type QMimeDatabase struct {
	*qtrt.CObject
}

func NewQMimeDatabase

func NewQMimeDatabase() *QMimeDatabase

Constructs a QMimeDatabase object.

It is perfectly OK to create an instance of QMimeDatabase every time you need to perform a lookup. The parsing of mimetypes is done on demand (when shared-mime-info is installed) or when the very first instance is constructed (when parsing XML files directly).

func NewQMimeDatabaseFromPointer

func NewQMimeDatabaseFromPointer(cthis unsafe.Pointer) *QMimeDatabase

func (*QMimeDatabase) GetCthis

func (this *QMimeDatabase) GetCthis() unsafe.Pointer

func (*QMimeDatabase) MimeTypeForData

func (this *QMimeDatabase) MimeTypeForData(data QByteArray_ITF) *QMimeType

Returns a MIME type for data.

A valid MIME type is always returned. If data doesn't match any known MIME type data, the default MIME type (application/octet-stream) is returned.

func (*QMimeDatabase) MimeTypeForData_1

func (this *QMimeDatabase) MimeTypeForData_1(device QIODevice_ITF) *QMimeType

Returns a MIME type for data.

A valid MIME type is always returned. If data doesn't match any known MIME type data, the default MIME type (application/octet-stream) is returned.

func (*QMimeDatabase) MimeTypeForFile

func (this *QMimeDatabase) MimeTypeForFile(fileName string, mode int) *QMimeType

Returns a MIME type for fileInfo.

A valid MIME type is always returned.

The default matching algorithm looks at both the file name and the file contents, if necessary. The file extension has priority over the contents, but the contents will be used if the file extension is unknown, or matches multiple MIME types. If fileInfo is a Unix symbolic link, the file that it refers to will be used instead. If the file doesn't match any known pattern or data, the default MIME type (application/octet-stream) is returned.

When mode is set to MatchExtension, only the file name is used, not the file contents. The file doesn't even have to exist. If the file name doesn't match any known pattern, the default MIME type (application/octet-stream) is returned. If multiple MIME types match this file, the first one (alphabetically) is returned.

When mode is set to MatchContent, and the file is readable, only the file contents are used to determine the MIME type. This is equivalent to calling mimeTypeForData with a QFile as input device.

fileInfo may refer to an absolute or relative path.

See also QMimeType::isDefault() and mimeTypeForData().

func (*QMimeDatabase) MimeTypeForFileNameAndData

func (this *QMimeDatabase) MimeTypeForFileNameAndData(fileName string, device QIODevice_ITF) *QMimeType

Returns a MIME type for the given fileName and device data.

This overload can be useful when the file is remote, and we started to download some of its data in a device. This allows to do full MIME type matching for remote files as well.

If the device is not open, it will be opened by this function, and closed after the MIME type detection is completed.

A valid MIME type is always returned. If device data doesn't match any known MIME type data, the default MIME type (application/octet-stream) is returned.

This method looks at both the file name and the file contents, if necessary. The file extension has priority over the contents, but the contents will be used if the file extension is unknown, or matches multiple MIME types.

func (*QMimeDatabase) MimeTypeForFileNameAndData_1

func (this *QMimeDatabase) MimeTypeForFileNameAndData_1(fileName string, data QByteArray_ITF) *QMimeType

Returns a MIME type for the given fileName and device data.

This overload can be useful when the file is remote, and we started to download some of its data in a device. This allows to do full MIME type matching for remote files as well.

If the device is not open, it will be opened by this function, and closed after the MIME type detection is completed.

A valid MIME type is always returned. If device data doesn't match any known MIME type data, the default MIME type (application/octet-stream) is returned.

This method looks at both the file name and the file contents, if necessary. The file extension has priority over the contents, but the contents will be used if the file extension is unknown, or matches multiple MIME types.

func (*QMimeDatabase) MimeTypeForFile_1

func (this *QMimeDatabase) MimeTypeForFile_1(fileInfo QFileInfo_ITF, mode int) *QMimeType

Returns a MIME type for fileInfo.

A valid MIME type is always returned.

The default matching algorithm looks at both the file name and the file contents, if necessary. The file extension has priority over the contents, but the contents will be used if the file extension is unknown, or matches multiple MIME types. If fileInfo is a Unix symbolic link, the file that it refers to will be used instead. If the file doesn't match any known pattern or data, the default MIME type (application/octet-stream) is returned.

When mode is set to MatchExtension, only the file name is used, not the file contents. The file doesn't even have to exist. If the file name doesn't match any known pattern, the default MIME type (application/octet-stream) is returned. If multiple MIME types match this file, the first one (alphabetically) is returned.

When mode is set to MatchContent, and the file is readable, only the file contents are used to determine the MIME type. This is equivalent to calling mimeTypeForData with a QFile as input device.

fileInfo may refer to an absolute or relative path.

See also QMimeType::isDefault() and mimeTypeForData().

func (*QMimeDatabase) MimeTypeForFile_1_

func (this *QMimeDatabase) MimeTypeForFile_1_(fileInfo QFileInfo_ITF) *QMimeType

Returns a MIME type for fileInfo.

A valid MIME type is always returned.

The default matching algorithm looks at both the file name and the file contents, if necessary. The file extension has priority over the contents, but the contents will be used if the file extension is unknown, or matches multiple MIME types. If fileInfo is a Unix symbolic link, the file that it refers to will be used instead. If the file doesn't match any known pattern or data, the default MIME type (application/octet-stream) is returned.

When mode is set to MatchExtension, only the file name is used, not the file contents. The file doesn't even have to exist. If the file name doesn't match any known pattern, the default MIME type (application/octet-stream) is returned. If multiple MIME types match this file, the first one (alphabetically) is returned.

When mode is set to MatchContent, and the file is readable, only the file contents are used to determine the MIME type. This is equivalent to calling mimeTypeForData with a QFile as input device.

fileInfo may refer to an absolute or relative path.

See also QMimeType::isDefault() and mimeTypeForData().

func (*QMimeDatabase) MimeTypeForFile__

func (this *QMimeDatabase) MimeTypeForFile__(fileName string) *QMimeType

Returns a MIME type for fileInfo.

A valid MIME type is always returned.

The default matching algorithm looks at both the file name and the file contents, if necessary. The file extension has priority over the contents, but the contents will be used if the file extension is unknown, or matches multiple MIME types. If fileInfo is a Unix symbolic link, the file that it refers to will be used instead. If the file doesn't match any known pattern or data, the default MIME type (application/octet-stream) is returned.

When mode is set to MatchExtension, only the file name is used, not the file contents. The file doesn't even have to exist. If the file name doesn't match any known pattern, the default MIME type (application/octet-stream) is returned. If multiple MIME types match this file, the first one (alphabetically) is returned.

When mode is set to MatchContent, and the file is readable, only the file contents are used to determine the MIME type. This is equivalent to calling mimeTypeForData with a QFile as input device.

fileInfo may refer to an absolute or relative path.

See also QMimeType::isDefault() and mimeTypeForData().

func (*QMimeDatabase) MimeTypeForName

func (this *QMimeDatabase) MimeTypeForName(nameOrAlias string) *QMimeType

Returns a MIME type for nameOrAlias or an invalid one if none found.

func (*QMimeDatabase) MimeTypeForUrl

func (this *QMimeDatabase) MimeTypeForUrl(url QUrl_ITF) *QMimeType

Returns a MIME type for url.

If the URL is a local file, this calls mimeTypeForFile.

Otherwise the matching is done based on the file name only, except for schemes where file names don't mean much, like HTTP. This method always returns the default mimetype for HTTP URLs, use QNetworkAccessManager to handle HTTP URLs properly.

A valid MIME type is always returned. If url doesn't match any known MIME type data, the default MIME type (application/octet-stream) is returned.

func (*QMimeDatabase) NewFromPointer

func (*QMimeDatabase) NewFromPointer(cthis unsafe.Pointer) *QMimeDatabase

func (*QMimeDatabase) QMimeDatabase_PTR

func (ptr *QMimeDatabase) QMimeDatabase_PTR() *QMimeDatabase

func (*QMimeDatabase) SetCthis

func (this *QMimeDatabase) SetCthis(cthis unsafe.Pointer)

func (*QMimeDatabase) SuffixForFileName

func (this *QMimeDatabase) SuffixForFileName(fileName string) string

Returns the suffix for the file fileName, as known by the MIME database.

This allows to pre-select "tar.bz2" for foo.tar.bz2, but still only "txt" for my.file.with.dots.txt.

type QMimeDatabase_ITF

type QMimeDatabase_ITF interface {
	QMimeDatabase_PTR() *QMimeDatabase
}

type QMimeDatabase__MatchMode

type QMimeDatabase__MatchMode = int

This enum specifies how matching a file to a MIME type is performed.

const QMimeDatabase__MatchContent QMimeDatabase__MatchMode = 2
const QMimeDatabase__MatchDefault QMimeDatabase__MatchMode = 0
const QMimeDatabase__MatchExtension QMimeDatabase__MatchMode = 1

type QMimeType

type QMimeType struct {
	*qtrt.CObject
}

func NewQMimeType

func NewQMimeType() *QMimeType

Constructs this QMimeType object initialized with default property values that indicate an invalid MIME type.

func NewQMimeTypeFromPointer

func NewQMimeTypeFromPointer(cthis unsafe.Pointer) *QMimeType

func (*QMimeType) Aliases

func (this *QMimeType) Aliases() *QStringList

func (*QMimeType) AllAncestors

func (this *QMimeType) AllAncestors() *QStringList

func (*QMimeType) Comment

func (this *QMimeType) Comment() string

func (*QMimeType) FilterString

func (this *QMimeType) FilterString() string

func (*QMimeType) GenericIconName

func (this *QMimeType) GenericIconName() string

func (*QMimeType) GetCthis

func (this *QMimeType) GetCthis() unsafe.Pointer

func (*QMimeType) GlobPatterns

func (this *QMimeType) GlobPatterns() *QStringList

func (*QMimeType) IconName

func (this *QMimeType) IconName() string

func (*QMimeType) Inherits

func (this *QMimeType) Inherits(mimeTypeName string) bool

Returns true if this mimetype is mimeTypeName, or inherits mimeTypeName (see parentMimeTypes()), or mimeTypeName is an alias for this mimetype.

This method has been made invokable from QML since 5.10.

func (*QMimeType) IsDefault

func (this *QMimeType) IsDefault() bool

func (*QMimeType) IsValid

func (this *QMimeType) IsValid() bool

func (*QMimeType) Name

func (this *QMimeType) Name() string

func (*QMimeType) NewFromPointer

func (*QMimeType) NewFromPointer(cthis unsafe.Pointer) *QMimeType

func (*QMimeType) Operator_equal

func (this *QMimeType) Operator_equal(other QMimeType_ITF) *QMimeType

func (*QMimeType) Operator_equal_1

func (this *QMimeType) Operator_equal_1(other unsafe.Pointer) *QMimeType

func (*QMimeType) Operator_equal_equal

func (this *QMimeType) Operator_equal_equal(other QMimeType_ITF) bool

func (*QMimeType) Operator_not_equal

func (this *QMimeType) Operator_not_equal(other QMimeType_ITF) bool

func (*QMimeType) ParentMimeTypes

func (this *QMimeType) ParentMimeTypes() *QStringList

func (*QMimeType) PreferredSuffix

func (this *QMimeType) PreferredSuffix() string

func (*QMimeType) QMimeType_PTR

func (ptr *QMimeType) QMimeType_PTR() *QMimeType

func (*QMimeType) SetCthis

func (this *QMimeType) SetCthis(cthis unsafe.Pointer)

func (*QMimeType) Suffixes

func (this *QMimeType) Suffixes() *QStringList

func (*QMimeType) Swap

func (this *QMimeType) Swap(other QMimeType_ITF)

Swaps QMimeType other with this QMimeType object.

This operation is very fast and never fails.

The swap() method helps with the implementation of assignment operators in an exception-safe way. For more information consult More C++ Idioms - Copy-and-swap.

type QMimeType_ITF

type QMimeType_ITF interface {
	QMimeType_PTR() *QMimeType
}

type QModelIndex

type QModelIndex struct {
	*qtrt.CObject
}

func NewQModelIndex

func NewQModelIndex() *QModelIndex

func NewQModelIndexFromPointer

func NewQModelIndexFromPointer(cthis unsafe.Pointer) *QModelIndex

func (*QModelIndex) Child

func (this *QModelIndex) Child(row int, column int) *QModelIndex

func (*QModelIndex) Column

func (this *QModelIndex) Column() int

func (*QModelIndex) Data

func (this *QModelIndex) Data(role int) *QVariant

Returns the data stored under the given role for the item referred to by the index.

Note: If you do not have a value to return, return an invalid QVariant instead of returning 0.

See also Qt::ItemDataRole, setData(), and headerData().

func (*QModelIndex) Data__

func (this *QModelIndex) Data__() *QVariant

Returns the data stored under the given role for the item referred to by the index.

Note: If you do not have a value to return, return an invalid QVariant instead of returning 0.

See also Qt::ItemDataRole, setData(), and headerData().

func (*QModelIndex) Flags

func (this *QModelIndex) Flags() int

Returns the item flags for the given index.

The base class implementation returns a combination of flags that enables the item (ItemIsEnabled) and allows it to be selected (ItemIsSelectable).

See also Qt::ItemFlags.

func (*QModelIndex) GetCthis

func (this *QModelIndex) GetCthis() unsafe.Pointer

func (*QModelIndex) InternalId

func (this *QModelIndex) InternalId() uint64

func (*QModelIndex) InternalPointer

func (this *QModelIndex) InternalPointer() unsafe.Pointer

func (*QModelIndex) IsValid

func (this *QModelIndex) IsValid() bool

func (*QModelIndex) Model

func (this *QModelIndex) Model() *QAbstractItemModel

func (*QModelIndex) NewFromPointer

func (*QModelIndex) NewFromPointer(cthis unsafe.Pointer) *QModelIndex

func (*QModelIndex) Operator_equal_equal

func (this *QModelIndex) Operator_equal_equal(other QModelIndex_ITF) bool

func (*QModelIndex) Operator_less_than

func (this *QModelIndex) Operator_less_than(other QModelIndex_ITF) bool

func (*QModelIndex) Operator_not_equal

func (this *QModelIndex) Operator_not_equal(other QModelIndex_ITF) bool

func (*QModelIndex) Parent

func (this *QModelIndex) Parent() *QModelIndex

Returns the parent of the model item with the given index. If the item has no parent, an invalid QModelIndex is returned.

A common convention used in models that expose tree data structures is that only items in the first column have children. For that case, when reimplementing this function in a subclass the column of the returned QModelIndex would be 0.

When reimplementing this function in a subclass, be careful to avoid calling QModelIndex member functions, such as QModelIndex::parent(), since indexes belonging to your model will simply call your implementation, leading to infinite recursion.

See also createIndex().

func (*QModelIndex) QModelIndex_PTR

func (ptr *QModelIndex) QModelIndex_PTR() *QModelIndex

func (*QModelIndex) Row

func (this *QModelIndex) Row() int

func (*QModelIndex) SetCthis

func (this *QModelIndex) SetCthis(cthis unsafe.Pointer)

func (*QModelIndex) Sibling

func (this *QModelIndex) Sibling(row int, column int) *QModelIndex

Returns the sibling at row and column for the item at index, or an invalid QModelIndex if there is no sibling at that location.

sibling() is just a convenience function that finds the item's parent, and uses it to retrieve the index of the child item in the specified row and column.

This method can optionally be overridden for implementation-specific optimization.

See also index(), QModelIndex::row(), and QModelIndex::column().

type QModelIndexList

type QModelIndexList struct {
	*qtrt.CObject
}

body block begin

func NewQModelIndexListFromPointer

func NewQModelIndexListFromPointer(cthis unsafe.Pointer) *QModelIndexList

func (*QModelIndexList) Append_0

func (this *QModelIndexList) Append_0()

void append(const T &)

func (*QModelIndexList) Append_1

func (this *QModelIndexList) Append_1()

void append(const QList<T> &)

func (*QModelIndexList) At_0

func (this *QModelIndexList) At_0() *QModelIndex

const T & at(int)

func (*QModelIndexList) Back_0

func (this *QModelIndexList) Back_0() *QModelIndex

T & back()

func (*QModelIndexList) Back_1

func (this *QModelIndexList) Back_1() *QModelIndex

const T & back()

func (*QModelIndexList) Begin_0

func (this *QModelIndexList) Begin_0()

QList::iterator begin()

func (*QModelIndexList) Begin_1

func (this *QModelIndexList) Begin_1()

QList::const_iterator begin()

func (*QModelIndexList) Cbegin_0

func (this *QModelIndexList) Cbegin_0()

QList::const_iterator cbegin()

func (*QModelIndexList) Cend_0

func (this *QModelIndexList) Cend_0()

QList::const_iterator cend()

func (*QModelIndexList) Clear_0

func (this *QModelIndexList) Clear_0()

void clear()

func (*QModelIndexList) ConstBegin_0

func (this *QModelIndexList) ConstBegin_0()

QList::const_iterator constBegin()

func (*QModelIndexList) ConstEnd_0

func (this *QModelIndexList) ConstEnd_0()

QList::const_iterator constEnd()

func (*QModelIndexList) ConstFirst_0

func (this *QModelIndexList) ConstFirst_0() *QModelIndex

const T & constFirst()

func (*QModelIndexList) ConstLast_0

func (this *QModelIndexList) ConstLast_0() *QModelIndex

const T & constLast()

func (*QModelIndexList) Contains_0

func (this *QModelIndexList) Contains_0() bool

bool contains(const T &)

func (*QModelIndexList) Contains_impl_0

func (this *QModelIndexList) Contains_impl_0() bool

bool contains_impl(const T &, struct QListData::NotArrayCompatibleLayout)

func (*QModelIndexList) Contains_impl_1

func (this *QModelIndexList) Contains_impl_1() bool

bool contains_impl(const T &, struct QListData::ArrayCompatibleLayout)

func (*QModelIndexList) Count_0

func (this *QModelIndexList) Count_0() int

int count(const T &)

func (*QModelIndexList) Count_1

func (this *QModelIndexList) Count_1() int

int count()

func (*QModelIndexList) Count_impl_0

func (this *QModelIndexList) Count_impl_0() int

int count_impl(const T &, struct QListData::NotArrayCompatibleLayout)

func (*QModelIndexList) Count_impl_1

func (this *QModelIndexList) Count_impl_1() int

int count_impl(const T &, struct QListData::ArrayCompatibleLayout)

func (*QModelIndexList) Crbegin_0

func (this *QModelIndexList) Crbegin_0()

QList::const_reverse_iterator crbegin()

func (*QModelIndexList) Crend_0

func (this *QModelIndexList) Crend_0()

QList::const_reverse_iterator crend()

func (*QModelIndexList) Dealloc_0

func (this *QModelIndexList) Dealloc_0()

void dealloc(struct QListData::Data *)

func (*QModelIndexList) DetachShared_0

func (this *QModelIndexList) DetachShared_0()

void detachShared()

func (*QModelIndexList) Detach_0

func (this *QModelIndexList) Detach_0()

void detach()

func (*QModelIndexList) Detach_helper_0

func (this *QModelIndexList) Detach_helper_0()

void detach_helper(int)

func (*QModelIndexList) Detach_helper_1

func (this *QModelIndexList) Detach_helper_1()

void detach_helper()

func (*QModelIndexList) Detach_helper_grow_0

func (this *QModelIndexList) Detach_helper_grow_0()

QList::Node * detach_helper_grow(int, int)

func (*QModelIndexList) Empty_0

func (this *QModelIndexList) Empty_0() bool

bool empty()

func (*QModelIndexList) End_0

func (this *QModelIndexList) End_0()

QList::iterator end()

func (*QModelIndexList) End_1

func (this *QModelIndexList) End_1()

QList::const_iterator end()

func (*QModelIndexList) EndsWith_0

func (this *QModelIndexList) EndsWith_0() bool

bool endsWith(const T &)

func (*QModelIndexList) Erase_0

func (this *QModelIndexList) Erase_0()

QList::iterator erase(class QList::iterator)

func (*QModelIndexList) Erase_1

func (this *QModelIndexList) Erase_1()

QList::iterator erase(class QList::iterator, class QList::iterator)

func (*QModelIndexList) First_0

func (this *QModelIndexList) First_0() *QModelIndex

T & first()

func (*QModelIndexList) First_1

func (this *QModelIndexList) First_1() *QModelIndex

const T & first()

func (*QModelIndexList) FromSet_0

func (this *QModelIndexList) FromSet_0() *QModelIndexList

QList<T> fromSet(const QSet<T> &)

func (*QModelIndexList) FromStdList_0

func (this *QModelIndexList) FromStdList_0() *QModelIndexList

QList<T> fromStdList(const std::list<T> &)

func (*QModelIndexList) FromVector_0

func (this *QModelIndexList) FromVector_0() *QModelIndexList

QList<T> fromVector(const QVector<T> &)

func (*QModelIndexList) Front_0

func (this *QModelIndexList) Front_0() *QModelIndex

T & front()

func (*QModelIndexList) Front_1

func (this *QModelIndexList) Front_1() *QModelIndex

const T & front()

func (*QModelIndexList) IndexOf_0

func (this *QModelIndexList) IndexOf_0() int

int indexOf(const T &, int)

func (*QModelIndexList) Insert_0

func (this *QModelIndexList) Insert_0()

void insert(int, const T &)

func (*QModelIndexList) Insert_1

func (this *QModelIndexList) Insert_1()

QList::iterator insert(class QList::iterator, const T &)

func (*QModelIndexList) IsDetached_0

func (this *QModelIndexList) IsDetached_0() bool

bool isDetached()

func (*QModelIndexList) IsEmpty_0

func (this *QModelIndexList) IsEmpty_0() bool

bool isEmpty()

func (*QModelIndexList) IsSharedWith_0

func (this *QModelIndexList) IsSharedWith_0() bool

bool isSharedWith(const QList<T> &)

func (*QModelIndexList) IsValidIterator_0

func (this *QModelIndexList) IsValidIterator_0() bool

bool isValidIterator(const class QList::iterator &)

func (*QModelIndexList) LastIndexOf_0

func (this *QModelIndexList) LastIndexOf_0() int

int lastIndexOf(const T &, int)

func (*QModelIndexList) Last_0

func (this *QModelIndexList) Last_0() *QModelIndex

T & last()

func (*QModelIndexList) Last_1

func (this *QModelIndexList) Last_1() *QModelIndex

const T & last()

func (*QModelIndexList) Length_0

func (this *QModelIndexList) Length_0() int

int length()

func (*QModelIndexList) Mid_0

func (this *QModelIndexList) Mid_0() *QModelIndexList

QList<T> mid(int, int)

func (*QModelIndexList) Move_0

func (this *QModelIndexList) Move_0()

void move(int, int)

func (*QModelIndexList) Node_construct_0

func (this *QModelIndexList) Node_construct_0()

void node_construct(struct QList::Node *, const T &)

func (*QModelIndexList) Node_copy_0

func (this *QModelIndexList) Node_copy_0()

void node_copy(struct QList::Node *, struct QList::Node *, struct QList::Node *)

func (*QModelIndexList) Node_destruct_0

func (this *QModelIndexList) Node_destruct_0()

void node_destruct(struct QList::Node *)

func (*QModelIndexList) Node_destruct_1

func (this *QModelIndexList) Node_destruct_1()

void node_destruct(struct QList::Node *, struct QList::Node *)

func (*QModelIndexList) Op_eq_impl_0

func (this *QModelIndexList) Op_eq_impl_0() bool

bool op_eq_impl(const QList<T> &, struct QListData::NotArrayCompatibleLayout)

func (*QModelIndexList) Op_eq_impl_1

func (this *QModelIndexList) Op_eq_impl_1() bool

bool op_eq_impl(const QList<T> &, struct QListData::ArrayCompatibleLayout)

func (*QModelIndexList) Operator_add_0

func (this *QModelIndexList) Operator_add_0() *QModelIndexList

QList<T> operator+(const QList<T> &)

func (*QModelIndexList) Operator_add_equal_0

func (this *QModelIndexList) Operator_add_equal_0() *QModelIndexList

QList<T> & operator+=(const QList<T> &)

func (*QModelIndexList) Operator_add_equal_1

func (this *QModelIndexList) Operator_add_equal_1() *QModelIndexList

QList<T> & operator+=(const T &)

func (*QModelIndexList) Operator_equal_0

func (this *QModelIndexList) Operator_equal_0() *QModelIndexList

QList<T> & operator=(const QList<T> &)

func (*QModelIndexList) Operator_equal_1

func (this *QModelIndexList) Operator_equal_1() *QModelIndexList

QList<T> & operator=(QList<T> &&)

func (*QModelIndexList) Operator_equal_equal_0

func (this *QModelIndexList) Operator_equal_equal_0() bool

bool operator==(const QList<T> &)

func (*QModelIndexList) Operator_get_index_0

func (this *QModelIndexList) Operator_get_index_0() *QModelIndex

const T & operator[](int)

func (*QModelIndexList) Operator_get_index_1

func (this *QModelIndexList) Operator_get_index_1() *QModelIndex

T & operator[](int)

func (*QModelIndexList) Operator_left_shift_0

func (this *QModelIndexList) Operator_left_shift_0() *QModelIndexList

QList<T> & operator<<(const T &)

func (*QModelIndexList) Operator_left_shift_1

func (this *QModelIndexList) Operator_left_shift_1() *QModelIndexList

QList<T> & operator<<(const QList<T> &)

func (*QModelIndexList) Operator_not_equal_0

func (this *QModelIndexList) Operator_not_equal_0() bool

bool operator!=(const QList<T> &)

func (*QModelIndexList) Pop_back_0

func (this *QModelIndexList) Pop_back_0()

void pop_back()

func (*QModelIndexList) Pop_front_0

func (this *QModelIndexList) Pop_front_0()

void pop_front()

func (*QModelIndexList) Prepend_0

func (this *QModelIndexList) Prepend_0()

void prepend(const T &)

func (*QModelIndexList) Push_back_0

func (this *QModelIndexList) Push_back_0()

void push_back(const T &)

func (*QModelIndexList) Push_front_0

func (this *QModelIndexList) Push_front_0()

void push_front(const T &)

func (*QModelIndexList) Rbegin_0

func (this *QModelIndexList) Rbegin_0()

QList::reverse_iterator rbegin()

func (*QModelIndexList) Rbegin_1

func (this *QModelIndexList) Rbegin_1()

QList::const_reverse_iterator rbegin()

func (*QModelIndexList) RemoveAll_0

func (this *QModelIndexList) RemoveAll_0() int

int removeAll(const T &)

func (*QModelIndexList) RemoveAt_0

func (this *QModelIndexList) RemoveAt_0()

void removeAt(int)

func (*QModelIndexList) RemoveFirst_0

func (this *QModelIndexList) RemoveFirst_0()

void removeFirst()

func (*QModelIndexList) RemoveLast_0

func (this *QModelIndexList) RemoveLast_0()

void removeLast()

func (*QModelIndexList) RemoveOne_0

func (this *QModelIndexList) RemoveOne_0() bool

bool removeOne(const T &)

func (*QModelIndexList) Rend_0

func (this *QModelIndexList) Rend_0()

QList::reverse_iterator rend()

func (*QModelIndexList) Rend_1

func (this *QModelIndexList) Rend_1()

QList::const_reverse_iterator rend()

func (*QModelIndexList) Replace_0

func (this *QModelIndexList) Replace_0()

void replace(int, const T &)

func (*QModelIndexList) Reserve_0

func (this *QModelIndexList) Reserve_0()

void reserve(int)

func (*QModelIndexList) SetSharable_0

func (this *QModelIndexList) SetSharable_0()

void setSharable(_Bool)

func (*QModelIndexList) Size_0

func (this *QModelIndexList) Size_0() int

int size()

func (*QModelIndexList) StartsWith_0

func (this *QModelIndexList) StartsWith_0() bool

bool startsWith(const T &)

func (*QModelIndexList) Swap_0

func (this *QModelIndexList) Swap_0()

void swap(QList<T> &)

func (*QModelIndexList) Swap_1

func (this *QModelIndexList) Swap_1()

void swap(int, int)

func (*QModelIndexList) TakeAt_0

func (this *QModelIndexList) TakeAt_0() *QModelIndex

T takeAt(int)

func (*QModelIndexList) TakeFirst_0

func (this *QModelIndexList) TakeFirst_0() *QModelIndex

T takeFirst()

func (*QModelIndexList) TakeLast_0

func (this *QModelIndexList) TakeLast_0() *QModelIndex

T takeLast()

func (*QModelIndexList) ToSet_0

func (this *QModelIndexList) ToSet_0()

QSet<T> toSet()

func (*QModelIndexList) ToStdList_0

func (this *QModelIndexList) ToStdList_0()

std::list<T> toStdList()

func (*QModelIndexList) ToVector_0

func (this *QModelIndexList) ToVector_0()

QVector<T> toVector()

func (*QModelIndexList) Value_0

func (this *QModelIndexList) Value_0() *QModelIndex

T value(int)

func (*QModelIndexList) Value_1

func (this *QModelIndexList) Value_1() *QModelIndex

T value(int, const T &)

type QModelIndexListx

type QModelIndexListx struct {
	*qtrt.CObject
}

///

func NewQModelIndexListxFromPointer

func NewQModelIndexListxFromPointer(cthis unsafe.Pointer) *QModelIndexListx

func (*QModelIndexListx) At

func (this *QModelIndexListx) At(i int) *QModelIndex

func (*QModelIndexListx) ConvertFromSlice

func (*QModelIndexListx) ConvertFromSlice(lst []*QModelIndex) *QModelIndexListx

func (*QModelIndexListx) ConvertToSlice

func (this *QModelIndexListx) ConvertToSlice() (lst []*QModelIndex)

func (*QModelIndexListx) Count

func (this *QModelIndexListx) Count() int

func (*QModelIndexListx) GetCthis

func (this *QModelIndexListx) GetCthis() unsafe.Pointer

func (*QModelIndexListx) NewFromPointer

func (*QModelIndexListx) NewFromPointer(cthis unsafe.Pointer) *QModelIndexListx

func (*QModelIndexListx) SetCthis

func (this *QModelIndexListx) SetCthis(cthis unsafe.Pointer)

type QModelIndex_ITF

type QModelIndex_ITF interface {
	QModelIndex_PTR() *QModelIndex
}

type QMutex

type QMutex struct {
	*QBasicMutex
}

func NewQMutex

func NewQMutex(mode int) *QMutex

Constructs a new mutex. The mutex is created in an unlocked state.

If mode is QMutex::Recursive, a thread can lock the same mutex multiple times and the mutex won't be unlocked until a corresponding number of unlock() calls have been made. Otherwise a thread may only lock a mutex once. The default is QMutex::NonRecursive.

Recursive mutexes are slower and take more memory than non-recursive ones.

See also lock() and unlock().

func NewQMutexFromPointer

func NewQMutexFromPointer(cthis unsafe.Pointer) *QMutex

func NewQMutex__

func NewQMutex__() *QMutex

Constructs a new mutex. The mutex is created in an unlocked state.

If mode is QMutex::Recursive, a thread can lock the same mutex multiple times and the mutex won't be unlocked until a corresponding number of unlock() calls have been made. Otherwise a thread may only lock a mutex once. The default is QMutex::NonRecursive.

Recursive mutexes are slower and take more memory than non-recursive ones.

See also lock() and unlock().

func (*QMutex) GetCthis

func (this *QMutex) GetCthis() unsafe.Pointer

func (*QMutex) IsRecursive

func (this *QMutex) IsRecursive() bool

Returns true if the mutex is recursive.

This function was introduced in Qt 5.7.

func (*QMutex) Lock

func (this *QMutex) Lock()

Locks the mutex. If another thread has locked the mutex then this call will block until that thread has unlocked it.

Calling this function multiple times on the same mutex from the same thread is allowed if this mutex is a recursive mutex. If this mutex is a non-recursive mutex, this function will dead-lock when the mutex is locked recursively.

See also unlock().

func (*QMutex) NewFromPointer

func (*QMutex) NewFromPointer(cthis unsafe.Pointer) *QMutex

func (*QMutex) QMutex_PTR

func (ptr *QMutex) QMutex_PTR() *QMutex

func (*QMutex) SetCthis

func (this *QMutex) SetCthis(cthis unsafe.Pointer)

func (*QMutex) TryLock

func (this *QMutex) TryLock(timeout int) bool

Attempts to lock the mutex. This function returns true if the lock was obtained; otherwise it returns false. If another thread has locked the mutex, this function will wait for at most timeout milliseconds for the mutex to become available.

Note: Passing a negative number as the timeout is equivalent to calling lock(), i.e. this function will wait forever until mutex can be locked if timeout is negative.

If the lock was obtained, the mutex must be unlocked with unlock() before another thread can successfully lock it.

Calling this function multiple times on the same mutex from the same thread is allowed if this mutex is a recursive mutex. If this mutex is a non-recursive mutex, this function will always return false when attempting to lock the mutex recursively.

See also lock() and unlock().

func (*QMutex) TryLock__

func (this *QMutex) TryLock__() bool

Attempts to lock the mutex. This function returns true if the lock was obtained; otherwise it returns false. If another thread has locked the mutex, this function will wait for at most timeout milliseconds for the mutex to become available.

Note: Passing a negative number as the timeout is equivalent to calling lock(), i.e. this function will wait forever until mutex can be locked if timeout is negative.

If the lock was obtained, the mutex must be unlocked with unlock() before another thread can successfully lock it.

Calling this function multiple times on the same mutex from the same thread is allowed if this mutex is a recursive mutex. If this mutex is a non-recursive mutex, this function will always return false when attempting to lock the mutex recursively.

See also lock() and unlock().

func (*QMutex) Try_lock

func (this *QMutex) Try_lock() bool

Attempts to lock the mutex. This function returns true if the lock was obtained; otherwise it returns false.

This function is provided for compatibility with the Standard Library concept Lockable. It is equivalent to tryLock().

The function returns true if the lock was obtained; otherwise it returns false

This function was introduced in Qt 5.8.

func (*QMutex) Unlock

func (this *QMutex) Unlock()

Unlocks the mutex. Attempting to unlock a mutex in a different thread to the one that locked it results in an error. Unlocking a mutex that is not locked results in undefined behavior.

See also lock().

type QMutexLocker

type QMutexLocker struct {
	*qtrt.CObject
}

func NewQMutexLocker

func NewQMutexLocker(m QBasicMutex_ITF) *QMutexLocker

func NewQMutexLockerFromPointer

func NewQMutexLockerFromPointer(cthis unsafe.Pointer) *QMutexLocker

func (*QMutexLocker) GetCthis

func (this *QMutexLocker) GetCthis() unsafe.Pointer

func (*QMutexLocker) Mutex

func (this *QMutexLocker) Mutex() *QMutex

func (*QMutexLocker) NewFromPointer

func (*QMutexLocker) NewFromPointer(cthis unsafe.Pointer) *QMutexLocker

func (*QMutexLocker) QMutexLocker_PTR

func (ptr *QMutexLocker) QMutexLocker_PTR() *QMutexLocker

func (*QMutexLocker) Relock

func (this *QMutexLocker) Relock()

func (*QMutexLocker) SetCthis

func (this *QMutexLocker) SetCthis(cthis unsafe.Pointer)

func (*QMutexLocker) Unlock

func (this *QMutexLocker) Unlock()

Unlocks the mutex. Attempting to unlock a mutex in a different thread to the one that locked it results in an error. Unlocking a mutex that is not locked results in undefined behavior.

See also lock().

type QMutexLocker_ITF

type QMutexLocker_ITF interface {
	QMutexLocker_PTR() *QMutexLocker
}

type QMutex_ITF

type QMutex_ITF interface {
	QBasicMutex_ITF
	QMutex_PTR() *QMutex
}

type QMutex__RecursionMode

type QMutex__RecursionMode = int

See also QMutex().

const QMutex__NonRecursive QMutex__RecursionMode = 0

In this mode, a thread may only lock a mutex once.

const QMutex__Recursive QMutex__RecursionMode = 1

In this mode, a thread can lock the same mutex multiple times and the mutex won't be unlocked until a corresponding number of unlock() calls have been made.

type QObject

type QObject struct {
	*qtrt.CObject
}

func NewQObject

func NewQObject(parent QObject_ITF) *QObject

Constructs an object with parent object parent.

The parent of an object may be viewed as the object's owner. For instance, a dialog box is the parent of the OK and Cancel buttons it contains.

The destructor of a parent object destroys all child objects.

Setting parent to 0 constructs an object with no parent. If the object is a widget, it will become a top-level window.

See also parent(), findChild(), and findChildren().

func NewQObjectFromPointer

func NewQObjectFromPointer(cthis unsafe.Pointer) *QObject

func NewQObject__

func NewQObject__() *QObject

Constructs an object with parent object parent.

The parent of an object may be viewed as the object's owner. For instance, a dialog box is the parent of the OK and Cancel buttons it contains.

The destructor of a parent object destroys all child objects.

Setting parent to 0 constructs an object with no parent. If the object is a widget, it will become a top-level window.

See also parent(), findChild(), and findChildren().

func Qt_qFindChild_helper

func Qt_qFindChild_helper(parent QObject_ITF, name string, mo QMetaObject_ITF, options int) *QObject

func (*QObject) BlockSignals

func (this *QObject) BlockSignals(b bool) bool

If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). If block is false, no such blocking will occur.

The return value is the previous value of signalsBlocked().

Note that the destroyed() signal will be emitted even if the signals for this object have been blocked.

Signals emitted while being blocked are not buffered.

See also signalsBlocked() and QSignalBlocker.

func (*QObject) ChildEvent

func (this *QObject) ChildEvent(event QChildEvent_ITF)

This event handler can be reimplemented in a subclass to receive child events. The event is passed in the event parameter.

QEvent::ChildAdded and QEvent::ChildRemoved events are sent to objects when children are added or removed. In both cases you can only rely on the child being a QObject, or if isWidgetType() returns true, a QWidget. (This is because, in the ChildAdded case, the child is not yet fully constructed, and in the ChildRemoved case it might have been destructed already).

QEvent::ChildPolished events are sent to widgets when children are polished, or when polished children are added. If you receive a child polished event, the child's construction is usually completed. However, this is not guaranteed, and multiple polish events may be delivered during the execution of a widget's constructor.

For every child widget, you receive one ChildAdded event, zero or more ChildPolished events, and one ChildRemoved event.

The ChildPolished event is omitted if a child is removed immediately after it is added. If a child is polished several times during construction and destruction, you may receive several child polished events for the same child, each time with a different virtual table.

See also event().

func (*QObject) Children

func (this *QObject) Children() *QObjectList

Returns a list of child objects. The QObjectList class is defined in the <QObject> header file as the following:

typedef QList<QObject*> QObjectList;

The first child added is the first object in the list and the last child added is the last object in the list, i.e. new children are appended at the end.

Note that the list order changes when QWidget children are raised or lowered. A widget that is raised becomes the last object in the list, and a widget that is lowered becomes the first object in the list.

See also findChild(), findChildren(), parent(), and setParent().

func (*QObject) Connect

func (this *QObject) Connect(sender QObject_ITF, signal string, receiver QObject_ITF, member string, arg4 int) int

Creates a connection of the given type from the signal in the sender object to the method in the receiver object. Returns a handle to the connection that can be used to disconnect it later.

You must use the SIGNAL() and SLOT() macros when specifying the signal and the method, for example:

QLabel *label = new QLabel;
QScrollBar *scrollBar = new QScrollBar;
QObject::connect(scrollBar, SIGNAL(valueChanged(int)),
                 label,  SLOT(setNum(int)));

This example ensures that the label always displays the current scroll bar value. Note that the signal and slots parameters must not contain any variable names, only the type. E.g. the following would not work and return false:

// WRONG
QObject::connect(scrollBar, SIGNAL(valueChanged(int value)),
                 label, SLOT(setNum(int value)));

A signal can also be connected to another signal:

class MyWidget : public QWidget
{
    Q_OBJECT

public:
    MyWidget();

signals:
    void buttonClicked();

private:
    QPushButton *myButton;
};

MyWidget::MyWidget()
{
    myButton = new QPushButton(this);
    connect(myButton, SIGNAL(clicked()),
            this, SIGNAL(buttonClicked()));
}

In this example, the MyWidget constructor relays a signal from a private member variable, and makes it available under a name that relates to MyWidget.

A signal can be connected to many slots and signals. Many signals can be connected to one slot.

If a signal is connected to several slots, the slots are activated in the same order in which the connections were made, when the signal is emitted.

The function returns a QMetaObject::Connection that represents a handle to a connection if it successfully connects the signal to the slot. The connection handle will be invalid if it cannot create the connection, for example, if QObject is unable to verify the existence of either signal or method, or if their signatures aren't compatible. You can check if the handle is valid by casting it to a bool.

By default, a signal is emitted for every connection you make; two signals are emitted for duplicate connections. You can break all of these connections with a single disconnect() call. If you pass the Qt::UniqueConnection type, the connection will only be made if it is not a duplicate. If there is already a duplicate (exact same signal to the exact same slot on the same objects), the connection will fail and connect will return an invalid QMetaObject::Connection.

Note: Qt::UniqueConnections do not work for lambdas, non-member functions and functors; they only apply to connecting to member functions.

The optional type parameter describes the type of connection to establish. In particular, it determines whether a particular signal is delivered to a slot immediately or queued for delivery at a later time. If the signal is queued, the parameters must be of types that are known to Qt's meta-object system, because Qt needs to copy the arguments to store them in an event behind the scenes. If you try to use a queued connection and get the error message

QObject::connect: Cannot queue arguments of type 'MyType'
(Make sure 'MyType' is registered using qRegisterMetaType().)

call qRegisterMetaType() to register the data type before you establish the connection.

Note: This function is thread-safe.

See also disconnect(), sender(), qRegisterMetaType(), Q_DECLARE_METATYPE(), and Differences between String-Based and Functor-Based Connections.

func (*QObject) ConnectNotify

func (this *QObject) ConnectNotify(signal QMetaMethod_ITF)

This virtual function is called when something has been connected to signal in this object.

If you want to compare signal with a specific signal, you can use QMetaMethod::fromSignal() as follows:

if (signal == QMetaMethod::fromSignal(&MyObject::valueChanged)) {
    // signal is valueChanged
}

Warning: This function violates the object-oriented principle of modularity. However, it might be useful when you need to perform expensive initialization only if something is connected to a signal.

Warning: This function is called from the thread which performs the connection, which may be a different thread from the thread in which this object lives.

This function was introduced in Qt 5.0.

See also connect() and disconnectNotify().

func (*QObject) Connect_1

func (this *QObject) Connect_1(sender QObject_ITF, signal QMetaMethod_ITF, receiver QObject_ITF, method QMetaMethod_ITF, type_ int) int

Creates a connection of the given type from the signal in the sender object to the method in the receiver object. Returns a handle to the connection that can be used to disconnect it later.

You must use the SIGNAL() and SLOT() macros when specifying the signal and the method, for example:

QLabel *label = new QLabel;
QScrollBar *scrollBar = new QScrollBar;
QObject::connect(scrollBar, SIGNAL(valueChanged(int)),
                 label,  SLOT(setNum(int)));

This example ensures that the label always displays the current scroll bar value. Note that the signal and slots parameters must not contain any variable names, only the type. E.g. the following would not work and return false:

// WRONG
QObject::connect(scrollBar, SIGNAL(valueChanged(int value)),
                 label, SLOT(setNum(int value)));

A signal can also be connected to another signal:

class MyWidget : public QWidget
{
    Q_OBJECT

public:
    MyWidget();

signals:
    void buttonClicked();

private:
    QPushButton *myButton;
};

MyWidget::MyWidget()
{
    myButton = new QPushButton(this);
    connect(myButton, SIGNAL(clicked()),
            this, SIGNAL(buttonClicked()));
}

In this example, the MyWidget constructor relays a signal from a private member variable, and makes it available under a name that relates to MyWidget.

A signal can be connected to many slots and signals. Many signals can be connected to one slot.

If a signal is connected to several slots, the slots are activated in the same order in which the connections were made, when the signal is emitted.

The function returns a QMetaObject::Connection that represents a handle to a connection if it successfully connects the signal to the slot. The connection handle will be invalid if it cannot create the connection, for example, if QObject is unable to verify the existence of either signal or method, or if their signatures aren't compatible. You can check if the handle is valid by casting it to a bool.

By default, a signal is emitted for every connection you make; two signals are emitted for duplicate connections. You can break all of these connections with a single disconnect() call. If you pass the Qt::UniqueConnection type, the connection will only be made if it is not a duplicate. If there is already a duplicate (exact same signal to the exact same slot on the same objects), the connection will fail and connect will return an invalid QMetaObject::Connection.

Note: Qt::UniqueConnections do not work for lambdas, non-member functions and functors; they only apply to connecting to member functions.

The optional type parameter describes the type of connection to establish. In particular, it determines whether a particular signal is delivered to a slot immediately or queued for delivery at a later time. If the signal is queued, the parameters must be of types that are known to Qt's meta-object system, because Qt needs to copy the arguments to store them in an event behind the scenes. If you try to use a queued connection and get the error message

QObject::connect: Cannot queue arguments of type 'MyType'
(Make sure 'MyType' is registered using qRegisterMetaType().)

call qRegisterMetaType() to register the data type before you establish the connection.

Note: This function is thread-safe.

See also disconnect(), sender(), qRegisterMetaType(), Q_DECLARE_METATYPE(), and Differences between String-Based and Functor-Based Connections.

func (*QObject) Connect_1_

func (this *QObject) Connect_1_(sender QObject_ITF, signal QMetaMethod_ITF, receiver QObject_ITF, method QMetaMethod_ITF) int

Creates a connection of the given type from the signal in the sender object to the method in the receiver object. Returns a handle to the connection that can be used to disconnect it later.

You must use the SIGNAL() and SLOT() macros when specifying the signal and the method, for example:

QLabel *label = new QLabel;
QScrollBar *scrollBar = new QScrollBar;
QObject::connect(scrollBar, SIGNAL(valueChanged(int)),
                 label,  SLOT(setNum(int)));

This example ensures that the label always displays the current scroll bar value. Note that the signal and slots parameters must not contain any variable names, only the type. E.g. the following would not work and return false:

// WRONG
QObject::connect(scrollBar, SIGNAL(valueChanged(int value)),
                 label, SLOT(setNum(int value)));

A signal can also be connected to another signal:

class MyWidget : public QWidget
{
    Q_OBJECT

public:
    MyWidget();

signals:
    void buttonClicked();

private:
    QPushButton *myButton;
};

MyWidget::MyWidget()
{
    myButton = new QPushButton(this);
    connect(myButton, SIGNAL(clicked()),
            this, SIGNAL(buttonClicked()));
}

In this example, the MyWidget constructor relays a signal from a private member variable, and makes it available under a name that relates to MyWidget.

A signal can be connected to many slots and signals. Many signals can be connected to one slot.

If a signal is connected to several slots, the slots are activated in the same order in which the connections were made, when the signal is emitted.

The function returns a QMetaObject::Connection that represents a handle to a connection if it successfully connects the signal to the slot. The connection handle will be invalid if it cannot create the connection, for example, if QObject is unable to verify the existence of either signal or method, or if their signatures aren't compatible. You can check if the handle is valid by casting it to a bool.

By default, a signal is emitted for every connection you make; two signals are emitted for duplicate connections. You can break all of these connections with a single disconnect() call. If you pass the Qt::UniqueConnection type, the connection will only be made if it is not a duplicate. If there is already a duplicate (exact same signal to the exact same slot on the same objects), the connection will fail and connect will return an invalid QMetaObject::Connection.

Note: Qt::UniqueConnections do not work for lambdas, non-member functions and functors; they only apply to connecting to member functions.

The optional type parameter describes the type of connection to establish. In particular, it determines whether a particular signal is delivered to a slot immediately or queued for delivery at a later time. If the signal is queued, the parameters must be of types that are known to Qt's meta-object system, because Qt needs to copy the arguments to store them in an event behind the scenes. If you try to use a queued connection and get the error message

QObject::connect: Cannot queue arguments of type 'MyType'
(Make sure 'MyType' is registered using qRegisterMetaType().)

call qRegisterMetaType() to register the data type before you establish the connection.

Note: This function is thread-safe.

See also disconnect(), sender(), qRegisterMetaType(), Q_DECLARE_METATYPE(), and Differences between String-Based and Functor-Based Connections.

func (*QObject) Connect_2

func (this *QObject) Connect_2(sender QObject_ITF, signal string, member string, type_ int) int

Creates a connection of the given type from the signal in the sender object to the method in the receiver object. Returns a handle to the connection that can be used to disconnect it later.

You must use the SIGNAL() and SLOT() macros when specifying the signal and the method, for example:

QLabel *label = new QLabel;
QScrollBar *scrollBar = new QScrollBar;
QObject::connect(scrollBar, SIGNAL(valueChanged(int)),
                 label,  SLOT(setNum(int)));

This example ensures that the label always displays the current scroll bar value. Note that the signal and slots parameters must not contain any variable names, only the type. E.g. the following would not work and return false:

// WRONG
QObject::connect(scrollBar, SIGNAL(valueChanged(int value)),
                 label, SLOT(setNum(int value)));

A signal can also be connected to another signal:

class MyWidget : public QWidget
{
    Q_OBJECT

public:
    MyWidget();

signals:
    void buttonClicked();

private:
    QPushButton *myButton;
};

MyWidget::MyWidget()
{
    myButton = new QPushButton(this);
    connect(myButton, SIGNAL(clicked()),
            this, SIGNAL(buttonClicked()));
}

In this example, the MyWidget constructor relays a signal from a private member variable, and makes it available under a name that relates to MyWidget.

A signal can be connected to many slots and signals. Many signals can be connected to one slot.

If a signal is connected to several slots, the slots are activated in the same order in which the connections were made, when the signal is emitted.

The function returns a QMetaObject::Connection that represents a handle to a connection if it successfully connects the signal to the slot. The connection handle will be invalid if it cannot create the connection, for example, if QObject is unable to verify the existence of either signal or method, or if their signatures aren't compatible. You can check if the handle is valid by casting it to a bool.

By default, a signal is emitted for every connection you make; two signals are emitted for duplicate connections. You can break all of these connections with a single disconnect() call. If you pass the Qt::UniqueConnection type, the connection will only be made if it is not a duplicate. If there is already a duplicate (exact same signal to the exact same slot on the same objects), the connection will fail and connect will return an invalid QMetaObject::Connection.

Note: Qt::UniqueConnections do not work for lambdas, non-member functions and functors; they only apply to connecting to member functions.

The optional type parameter describes the type of connection to establish. In particular, it determines whether a particular signal is delivered to a slot immediately or queued for delivery at a later time. If the signal is queued, the parameters must be of types that are known to Qt's meta-object system, because Qt needs to copy the arguments to store them in an event behind the scenes. If you try to use a queued connection and get the error message

QObject::connect: Cannot queue arguments of type 'MyType'
(Make sure 'MyType' is registered using qRegisterMetaType().)

call qRegisterMetaType() to register the data type before you establish the connection.

Note: This function is thread-safe.

See also disconnect(), sender(), qRegisterMetaType(), Q_DECLARE_METATYPE(), and Differences between String-Based and Functor-Based Connections.

func (*QObject) Connect_2_

func (this *QObject) Connect_2_(sender QObject_ITF, signal string, member string) int

Creates a connection of the given type from the signal in the sender object to the method in the receiver object. Returns a handle to the connection that can be used to disconnect it later.

You must use the SIGNAL() and SLOT() macros when specifying the signal and the method, for example:

QLabel *label = new QLabel;
QScrollBar *scrollBar = new QScrollBar;
QObject::connect(scrollBar, SIGNAL(valueChanged(int)),
                 label,  SLOT(setNum(int)));

This example ensures that the label always displays the current scroll bar value. Note that the signal and slots parameters must not contain any variable names, only the type. E.g. the following would not work and return false:

// WRONG
QObject::connect(scrollBar, SIGNAL(valueChanged(int value)),
                 label, SLOT(setNum(int value)));

A signal can also be connected to another signal:

class MyWidget : public QWidget
{
    Q_OBJECT

public:
    MyWidget();

signals:
    void buttonClicked();

private:
    QPushButton *myButton;
};

MyWidget::MyWidget()
{
    myButton = new QPushButton(this);
    connect(myButton, SIGNAL(clicked()),
            this, SIGNAL(buttonClicked()));
}

In this example, the MyWidget constructor relays a signal from a private member variable, and makes it available under a name that relates to MyWidget.

A signal can be connected to many slots and signals. Many signals can be connected to one slot.

If a signal is connected to several slots, the slots are activated in the same order in which the connections were made, when the signal is emitted.

The function returns a QMetaObject::Connection that represents a handle to a connection if it successfully connects the signal to the slot. The connection handle will be invalid if it cannot create the connection, for example, if QObject is unable to verify the existence of either signal or method, or if their signatures aren't compatible. You can check if the handle is valid by casting it to a bool.

By default, a signal is emitted for every connection you make; two signals are emitted for duplicate connections. You can break all of these connections with a single disconnect() call. If you pass the Qt::UniqueConnection type, the connection will only be made if it is not a duplicate. If there is already a duplicate (exact same signal to the exact same slot on the same objects), the connection will fail and connect will return an invalid QMetaObject::Connection.

Note: Qt::UniqueConnections do not work for lambdas, non-member functions and functors; they only apply to connecting to member functions.

The optional type parameter describes the type of connection to establish. In particular, it determines whether a particular signal is delivered to a slot immediately or queued for delivery at a later time. If the signal is queued, the parameters must be of types that are known to Qt's meta-object system, because Qt needs to copy the arguments to store them in an event behind the scenes. If you try to use a queued connection and get the error message

QObject::connect: Cannot queue arguments of type 'MyType'
(Make sure 'MyType' is registered using qRegisterMetaType().)

call qRegisterMetaType() to register the data type before you establish the connection.

Note: This function is thread-safe.

See also disconnect(), sender(), qRegisterMetaType(), Q_DECLARE_METATYPE(), and Differences between String-Based and Functor-Based Connections.

func (*QObject) Connect__

func (this *QObject) Connect__(sender QObject_ITF, signal string, receiver QObject_ITF, member string) int

Creates a connection of the given type from the signal in the sender object to the method in the receiver object. Returns a handle to the connection that can be used to disconnect it later.

You must use the SIGNAL() and SLOT() macros when specifying the signal and the method, for example:

QLabel *label = new QLabel;
QScrollBar *scrollBar = new QScrollBar;
QObject::connect(scrollBar, SIGNAL(valueChanged(int)),
                 label,  SLOT(setNum(int)));

This example ensures that the label always displays the current scroll bar value. Note that the signal and slots parameters must not contain any variable names, only the type. E.g. the following would not work and return false:

// WRONG
QObject::connect(scrollBar, SIGNAL(valueChanged(int value)),
                 label, SLOT(setNum(int value)));

A signal can also be connected to another signal:

class MyWidget : public QWidget
{
    Q_OBJECT

public:
    MyWidget();

signals:
    void buttonClicked();

private:
    QPushButton *myButton;
};

MyWidget::MyWidget()
{
    myButton = new QPushButton(this);
    connect(myButton, SIGNAL(clicked()),
            this, SIGNAL(buttonClicked()));
}

In this example, the MyWidget constructor relays a signal from a private member variable, and makes it available under a name that relates to MyWidget.

A signal can be connected to many slots and signals. Many signals can be connected to one slot.

If a signal is connected to several slots, the slots are activated in the same order in which the connections were made, when the signal is emitted.

The function returns a QMetaObject::Connection that represents a handle to a connection if it successfully connects the signal to the slot. The connection handle will be invalid if it cannot create the connection, for example, if QObject is unable to verify the existence of either signal or method, or if their signatures aren't compatible. You can check if the handle is valid by casting it to a bool.

By default, a signal is emitted for every connection you make; two signals are emitted for duplicate connections. You can break all of these connections with a single disconnect() call. If you pass the Qt::UniqueConnection type, the connection will only be made if it is not a duplicate. If there is already a duplicate (exact same signal to the exact same slot on the same objects), the connection will fail and connect will return an invalid QMetaObject::Connection.

Note: Qt::UniqueConnections do not work for lambdas, non-member functions and functors; they only apply to connecting to member functions.

The optional type parameter describes the type of connection to establish. In particular, it determines whether a particular signal is delivered to a slot immediately or queued for delivery at a later time. If the signal is queued, the parameters must be of types that are known to Qt's meta-object system, because Qt needs to copy the arguments to store them in an event behind the scenes. If you try to use a queued connection and get the error message

QObject::connect: Cannot queue arguments of type 'MyType'
(Make sure 'MyType' is registered using qRegisterMetaType().)

call qRegisterMetaType() to register the data type before you establish the connection.

Note: This function is thread-safe.

See also disconnect(), sender(), qRegisterMetaType(), Q_DECLARE_METATYPE(), and Differences between String-Based and Functor-Based Connections.

func (*QObject) CustomEvent

func (this *QObject) CustomEvent(event QEvent_ITF)

This event handler can be reimplemented in a subclass to receive custom events. Custom events are user-defined events with a type value at least as large as the QEvent::User item of the QEvent::Type enum, and is typically a QEvent subclass. The event is passed in the event parameter.

See also event() and QEvent.

func (*QObject) DeleteLater

func (this *QObject) DeleteLater()

Schedules this object for deletion.

The object will be deleted when control returns to the event loop. If the event loop is not running when this function is called (e.g. deleteLater() is called on an object before QCoreApplication::exec()), the object will be deleted once the event loop is started. If deleteLater() is called after the main event loop has stopped, the object will not be deleted. Since Qt 4.8, if deleteLater() is called on an object that lives in a thread with no running event loop, the object will be destroyed when the thread finishes.

Note that entering and leaving a new event loop (e.g., by opening a modal dialog) will not perform the deferred deletion; for the object to be deleted, the control must return to the event loop from which deleteLater() was called.

Note: It is safe to call this function more than once; when the first deferred deletion event is delivered, any pending events for the object are removed from the event queue.

See also destroyed() and QPointer.

func (*QObject) Destroyed

func (this *QObject) Destroyed(arg0 QObject_ITF)

This signal is emitted immediately before the object obj is destroyed, and can not be blocked.

All the objects's children are destroyed immediately after this signal is emitted.

See also deleteLater() and QPointer.

func (*QObject) Destroyed__

func (this *QObject) Destroyed__()

This signal is emitted immediately before the object obj is destroyed, and can not be blocked.

All the objects's children are destroyed immediately after this signal is emitted.

See also deleteLater() and QPointer.

func (*QObject) Disconnect

func (this *QObject) Disconnect(sender QObject_ITF, signal string, receiver QObject_ITF, member string) bool

Disconnects signal in object sender from method in object receiver. Returns true if the connection is successfully broken; otherwise returns false.

A signal-slot connection is removed when either of the objects involved are destroyed.

disconnect() is typically used in three ways, as the following examples demonstrate.

func (*QObject) DisconnectNotify

func (this *QObject) DisconnectNotify(signal QMetaMethod_ITF)

This virtual function is called when something has been disconnected from signal in this object.

See connectNotify() for an example of how to compare signal with a specific signal.

If all signals were disconnected from this object (e.g., the signal argument to disconnect() was 0), disconnectNotify() is only called once, and the signal will be an invalid QMetaMethod (QMetaMethod::isValid() returns false).

Warning: This function violates the object-oriented principle of modularity. However, it might be useful for optimizing access to expensive resources.

Warning: This function is called from the thread which performs the disconnection, which may be a different thread from the thread in which this object lives. This function may also be called with a QObject internal mutex locked. It is therefore not allowed to re-enter any of any QObject functions from your reimplementation and if you lock a mutex in your reimplementation, make sure that you don't call QObject functions with that mutex held in other places or it will result in a deadlock.

This function was introduced in Qt 5.0.

See also disconnect() and connectNotify().

func (*QObject) Disconnect_1

func (this *QObject) Disconnect_1(sender QObject_ITF, signal QMetaMethod_ITF, receiver QObject_ITF, member QMetaMethod_ITF) bool

Disconnects signal in object sender from method in object receiver. Returns true if the connection is successfully broken; otherwise returns false.

A signal-slot connection is removed when either of the objects involved are destroyed.

disconnect() is typically used in three ways, as the following examples demonstrate.

func (*QObject) Disconnect_2

func (this *QObject) Disconnect_2(signal string, receiver QObject_ITF, member string) bool

Disconnects signal in object sender from method in object receiver. Returns true if the connection is successfully broken; otherwise returns false.

A signal-slot connection is removed when either of the objects involved are destroyed.

disconnect() is typically used in three ways, as the following examples demonstrate.

func (*QObject) Disconnect_2_

func (this *QObject) Disconnect_2_() bool

Disconnects signal in object sender from method in object receiver. Returns true if the connection is successfully broken; otherwise returns false.

A signal-slot connection is removed when either of the objects involved are destroyed.

disconnect() is typically used in three ways, as the following examples demonstrate.

func (*QObject) Disconnect_2_1

func (this *QObject) Disconnect_2_1(signal string) bool

Disconnects signal in object sender from method in object receiver. Returns true if the connection is successfully broken; otherwise returns false.

A signal-slot connection is removed when either of the objects involved are destroyed.

disconnect() is typically used in three ways, as the following examples demonstrate.

func (*QObject) Disconnect_2_2

func (this *QObject) Disconnect_2_2(signal string, receiver QObject_ITF) bool

Disconnects signal in object sender from method in object receiver. Returns true if the connection is successfully broken; otherwise returns false.

A signal-slot connection is removed when either of the objects involved are destroyed.

disconnect() is typically used in three ways, as the following examples demonstrate.

func (*QObject) Disconnect_3

func (this *QObject) Disconnect_3(receiver QObject_ITF, member string) bool

Disconnects signal in object sender from method in object receiver. Returns true if the connection is successfully broken; otherwise returns false.

A signal-slot connection is removed when either of the objects involved are destroyed.

disconnect() is typically used in three ways, as the following examples demonstrate.

func (*QObject) Disconnect_3_

func (this *QObject) Disconnect_3_(receiver QObject_ITF) bool

Disconnects signal in object sender from method in object receiver. Returns true if the connection is successfully broken; otherwise returns false.

A signal-slot connection is removed when either of the objects involved are destroyed.

disconnect() is typically used in three ways, as the following examples demonstrate.

func (*QObject) DumpObjectInfo

func (this *QObject) DumpObjectInfo()

Dumps information about signal connections, etc. for this object to the debug output.

Note: before Qt 5.9, this function was not const.

See also dumpObjectTree().

func (*QObject) DumpObjectInfo_1

func (this *QObject) DumpObjectInfo_1()

Dumps information about signal connections, etc. for this object to the debug output.

Note: before Qt 5.9, this function was not const.

See also dumpObjectTree().

func (*QObject) DumpObjectTree

func (this *QObject) DumpObjectTree()

Dumps a tree of children to the debug output.

Note: before Qt 5.9, this function was not const.

See also dumpObjectInfo().

func (*QObject) DumpObjectTree_1

func (this *QObject) DumpObjectTree_1()

Dumps a tree of children to the debug output.

Note: before Qt 5.9, this function was not const.

See also dumpObjectInfo().

func (*QObject) Event

func (this *QObject) Event(event QEvent_ITF) bool

This virtual function receives events to an object and should return true if the event e was recognized and processed.

The event() function can be reimplemented to customize the behavior of an object.

Make sure you call the parent event class implementation for all the events you did not handle.

Example:

class MyClass : public QWidget
{
    Q_OBJECT

public:
    MyClass(QWidget *parent = 0);
    ~MyClass();

    bool event(QEvent* ev)
    {
        if (ev->type() == QEvent::PolishRequest) {
            // overwrite handling of PolishRequest if any
            doThings();
            return true;
        } else  if (ev->type() == QEvent::Show) {
            // complement handling of Show if any
            doThings2();
            QWidget::event(ev);
            return true;
        }
        // Make sure the rest of events are handled
        return QWidget::event(ev);
    }
};

See also installEventFilter(), timerEvent(), QCoreApplication::sendEvent(), and QCoreApplication::postEvent().

func (*QObject) EventFilter

func (this *QObject) EventFilter(watched QObject_ITF, event QEvent_ITF) bool

Filters events if this object has been installed as an event filter for the watched object.

In your reimplementation of this function, if you want to filter the event out, i.e. stop it being handled further, return true; otherwise return false.

Example:

class MainWindow : public QMainWindow
{
public:
    MainWindow();

protected:
    bool eventFilter(QObject *obj, QEvent *ev);

private:
    QTextEdit *textEdit;
};

MainWindow::MainWindow()
{
    textEdit = new QTextEdit;
    setCentralWidget(textEdit);

    textEdit->installEventFilter(this);
}

bool MainWindow::eventFilter(QObject *obj, QEvent *event)
{
    if (obj == textEdit) {
        if (event->type() == QEvent::KeyPress) {
            QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);
            qDebug() << "Ate key press" << keyEvent->key();
            return true;
        } else {
            return false;
        }
    } else {
        // pass the event on to the parent class
        return QMainWindow::eventFilter(obj, event);
    }
}

Notice in the example above that unhandled events are passed to the base class's eventFilter() function, since the base class might have reimplemented eventFilter() for its own internal purposes.

Warning: If you delete the receiver object in this function, be sure to return true. Otherwise, Qt will forward the event to the deleted object and the program might crash.

See also installEventFilter().

func (*QObject) GetCthis

func (this *QObject) GetCthis() unsafe.Pointer

func (*QObject) InheritChildEvent

func (this *QObject) InheritChildEvent(f func(event *QChildEvent))

void childEvent(class QChildEvent *)

func (*QObject) InheritConnectNotify

func (this *QObject) InheritConnectNotify(f func(signal *QMetaMethod))

void connectNotify(const class QMetaMethod &)

func (*QObject) InheritCustomEvent

func (this *QObject) InheritCustomEvent(f func(event *QEvent))

void customEvent(class QEvent *)

func (*QObject) InheritDisconnectNotify

func (this *QObject) InheritDisconnectNotify(f func(signal *QMetaMethod))

void disconnectNotify(const class QMetaMethod &)

func (*QObject) InheritIsSignalConnected

func (this *QObject) InheritIsSignalConnected(f func(signal *QMetaMethod) bool)

bool isSignalConnected(const class QMetaMethod &)

func (*QObject) InheritReceivers

func (this *QObject) InheritReceivers(f func(signal string) int)

int receivers(const char *)

func (*QObject) InheritSender

func (this *QObject) InheritSender(f func() unsafe.Pointer)

QObject * sender()

func (*QObject) InheritSenderSignalIndex

func (this *QObject) InheritSenderSignalIndex(f func() int)

int senderSignalIndex()

func (*QObject) InheritTimerEvent

func (this *QObject) InheritTimerEvent(f func(event *QTimerEvent))

void timerEvent(class QTimerEvent *)

func (*QObject) Inherits

func (this *QObject) Inherits(classname string) bool

Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false.

A class is considered to inherit itself.

Example:

QTimer *timer = new QTimer;         // QTimer inherits QObject
timer->inherits("QTimer");          // returns true
timer->inherits("QObject");         // returns true
timer->inherits("QAbstractButton"); // returns false

// QVBoxLayout inherits QObject and QLayoutItem
QVBoxLayout *layout = new QVBoxLayout;
layout->inherits("QObject");        // returns true
layout->inherits("QLayoutItem");    // returns true (even though QLayoutItem is not a QObject)

If you need to determine whether an object is an instance of a particular class for the purpose of casting it, consider using qobject_cast<Type *>(object) instead.

See also metaObject() and qobject_cast().

func (*QObject) InstallEventFilter

func (this *QObject) InstallEventFilter(filterObj QObject_ITF)

Installs an event filter filterObj on this object. For example:

monitoredObj->installEventFilter(filterObj);

An event filter is an object that receives all events that are sent to this object. The filter can either stop the event or forward it to this object. The event filter filterObj receives events via its eventFilter() function. The eventFilter() function must return true if the event should be filtered, (i.e. stopped); otherwise it must return false.

If multiple event filters are installed on a single object, the filter that was installed last is activated first.

Here's a KeyPressEater class that eats the key presses of its monitored objects:

class KeyPressEater : public QObject
{
    Q_OBJECT
    ...

protected:
    bool eventFilter(QObject *obj, QEvent *event);
};

bool KeyPressEater::eventFilter(QObject *obj, QEvent *event)
{
    if (event->type() == QEvent::KeyPress) {
        QKeyEvent *keyEvent = static_cast<QKeyEvent *>(event);
        qDebug("Ate key press %d", keyEvent->key());
        return true;
    } else {
        // standard event processing
        return QObject::eventFilter(obj, event);
    }
}

And here's how to install it on two widgets:

KeyPressEater *keyPressEater = new KeyPressEater(this);
QPushButton *pushButton = new QPushButton(this);
QListView *listView = new QListView(this);

pushButton->installEventFilter(keyPressEater);
listView->installEventFilter(keyPressEater);

The QShortcut class, for example, uses this technique to intercept shortcut key presses.

Warning: If you delete the receiver object in your eventFilter() function, be sure to return true. If you return false, Qt sends the event to the deleted object and the program will crash.

Note that the filtering object must be in the same thread as this object. If filterObj is in a different thread, this function does nothing. If either filterObj or this object are moved to a different thread after calling this function, the event filter will not be called until both objects have the same thread affinity again (it is not removed).

See also removeEventFilter(), eventFilter(), and event().

func (*QObject) IsSignalConnected

func (this *QObject) IsSignalConnected(signal QMetaMethod_ITF) bool

Returns true if the signal is connected to at least one receiver, otherwise returns false.

signal must be a signal member of this object, otherwise the behaviour is undefined.

static const QMetaMethod valueChangedSignal = QMetaMethod::fromSignal(&MyObject::valueChanged);
if (isSignalConnected(valueChangedSignal)) {
    QByteArray data;
    data = get_the_value();       // expensive operation
    emit valueChanged(data);
}

As the code snippet above illustrates, you can use this function to avoid emitting a signal that nobody listens to.

Warning: This function violates the object-oriented principle of modularity. However, it might be useful when you need to perform expensive initialization only if something is connected to a signal.

This function was introduced in Qt 5.0.

func (*QObject) IsWidgetType

func (this *QObject) IsWidgetType() bool

Returns true if the object is a widget; otherwise returns false.

Calling this function is equivalent to calling inherits("QWidget"), except that it is much faster.

func (*QObject) IsWindowType

func (this *QObject) IsWindowType() bool

Returns true if the object is a window; otherwise returns false.

Calling this function is equivalent to calling inherits("QWindow"), except that it is much faster.

func (*QObject) KillTimer

func (this *QObject) KillTimer(id int)

Kills the timer with timer identifier, id.

The timer identifier is returned by startTimer() when a timer event is started.

See also timerEvent() and startTimer().

func (*QObject) MetaObject

func (this *QObject) MetaObject() *QMetaObject

Returns a pointer to the meta-object of this object.

A meta-object contains information about a class that inherits QObject, e.g. class name, superclass name, properties, signals and slots. Every QObject subclass that contains the Q_OBJECT macro will have a meta-object.

The meta-object information is required by the signal/slot connection mechanism and the property system. The inherits() function also makes use of the meta-object.

If you have no pointer to an actual object instance but still want to access the meta-object of a class, you can use staticMetaObject.

Example:

QObject *obj = new QPushButton;
obj->metaObject()->className();             // returns "QPushButton"

QPushButton::staticMetaObject.className();  // returns "QPushButton"

See also staticMetaObject.

func (*QObject) MoveToThread

func (this *QObject) MoveToThread(thread QThread_ITF)

Changes the thread affinity for this object and its children. The object cannot be moved if it has a parent. Event processing will continue in the targetThread.

To move an object to the main thread, use QApplication::instance() to retrieve a pointer to the current application, and then use QApplication::thread() to retrieve the thread in which the application lives. For example:

myObject->moveToThread(QApplication::instance()->thread());

If targetThread is zero, all event processing for this object and its children stops.

Note that all active timers for the object will be reset. The timers are first stopped in the current thread and restarted (with the same interval) in the targetThread. As a result, constantly moving an object between threads can postpone timer events indefinitely.

A QEvent::ThreadChange event is sent to this object just before the thread affinity is changed. You can handle this event to perform any special processing. Note that any new events that are posted to this object will be handled in the targetThread.

Warning: This function is not thread-safe; the current thread must be same as the current thread affinity. In other words, this function can only "push" an object from the current thread to another thread, it cannot "pull" an object from any arbitrary thread to the current thread.

See also thread().

func (*QObject) NewFromPointer

func (*QObject) NewFromPointer(cthis unsafe.Pointer) *QObject

func (*QObject) ObjectName

func (this *QObject) ObjectName() string

func (*QObject) Parent

func (this *QObject) Parent() *QObject

Returns a pointer to the parent object.

See also setParent() and children().

func (*QObject) Property

func (this *QObject) Property(name string) *QVariant

Returns the value of the object's name property.

If no such property exists, the returned variant is invalid.

Information about all available properties is provided through the metaObject() and dynamicPropertyNames().

See also setProperty(), QVariant::isValid(), metaObject(), and dynamicPropertyNames().

func (*QObject) QObject_PTR

func (ptr *QObject) QObject_PTR() *QObject

func (*QObject) Receivers

func (this *QObject) Receivers(signal string) int

Returns the number of receivers connected to the signal.

Since both slots and signals can be used as receivers for signals, and the same connections can be made many times, the number of receivers is the same as the number of connections made from this signal.

When calling this function, you can use the SIGNAL() macro to pass a specific signal:

if (receivers(SIGNAL(valueChanged(QByteArray))) > 0) {
    QByteArray data;
    get_the_value(&data);       // expensive operation
    emit valueChanged(data);
}

Warning: This function violates the object-oriented principle of modularity. However, it might be useful when you need to perform expensive initialization only if something is connected to a signal.

See also isSignalConnected().

func (*QObject) RegisterUserData

func (this *QObject) RegisterUserData() uint

func (*QObject) RemoveEventFilter

func (this *QObject) RemoveEventFilter(obj QObject_ITF)

Removes an event filter object obj from this object. The request is ignored if such an event filter has not been installed.

All event filters for this object are automatically removed when this object is destroyed.

It is always safe to remove an event filter, even during event filter activation (i.e. from the eventFilter() function).

See also installEventFilter(), eventFilter(), and event().

func (*QObject) Sender

func (this *QObject) Sender() *QObject

Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns 0. The pointer is valid only during the execution of the slot that calls this function from this object's thread context.

The pointer returned by this function becomes invalid if the sender is destroyed, or if the slot is disconnected from the sender's signal.

Warning: This function violates the object-oriented principle of modularity. However, getting access to the sender might be useful when many signals are connected to a single slot.

Warning: As mentioned above, the return value of this function is not valid when the slot is called via a Qt::DirectConnection from a thread different from this object's thread. Do not use this function in this type of scenario.

See also senderSignalIndex().

func (*QObject) SenderSignalIndex

func (this *QObject) SenderSignalIndex() int

Returns the meta-method index of the signal that called the currently executing slot, which is a member of the class returned by sender(). If called outside of a slot activated by a signal, -1 is returned.

For signals with default parameters, this function will always return the index with all parameters, regardless of which was used with connect(). For example, the signal destroyed(QObject *obj = 0) will have two different indexes (with and without the parameter), but this function will always return the index with a parameter. This does not apply when overloading signals with different parameters.

Warning: This function violates the object-oriented principle of modularity. However, getting access to the signal index might be useful when many signals are connected to a single slot.

Warning: The return value of this function is not valid when the slot is called via a Qt::DirectConnection from a thread different from this object's thread. Do not use this function in this type of scenario.

This function was introduced in Qt 4.8.

See also sender(), QMetaObject::indexOfSignal(), and QMetaObject::method().

func (*QObject) SetCthis

func (this *QObject) SetCthis(cthis unsafe.Pointer)

func (*QObject) SetObjectName

func (this *QObject) SetObjectName(name string)

func (*QObject) SetParent

func (this *QObject) SetParent(parent QObject_ITF)

Makes the object a child of parent.

See also parent() and children().

func (*QObject) SetProperty

func (this *QObject) SetProperty(name string, value QVariant_ITF) bool

Sets the value of the object's name property to value.

If the property is defined in the class using Q_PROPERTY then true is returned on success and false otherwise. If the property is not defined using Q_PROPERTY, and therefore not listed in the meta-object, it is added as a dynamic property and false is returned.

Information about all available properties is provided through the metaObject() and dynamicPropertyNames().

Dynamic properties can be queried again using property() and can be removed by setting the property value to an invalid QVariant. Changing the value of a dynamic property causes a QDynamicPropertyChangeEvent to be sent to the object.

Note: Dynamic properties starting with "_q_" are reserved for internal purposes.

See also property(), metaObject(), dynamicPropertyNames(), and QMetaProperty::write().

func (*QObject) SetUserData

func (this *QObject) SetUserData(id uint, data QObjectUserData_ITF)

func (*QObject) SignalsBlocked

func (this *QObject) SignalsBlocked() bool

Returns true if signals are blocked; otherwise returns false.

Signals are not blocked by default.

See also blockSignals() and QSignalBlocker.

func (*QObject) StartTimer

func (this *QObject) StartTimer(interval int, timerType int) int

Starts a timer and returns a timer identifier, or returns zero if it could not start a timer.

A timer event will occur every interval milliseconds until killTimer() is called. If interval is 0, then the timer event occurs once every time there are no more window system events to process.

The virtual timerEvent() function is called with the QTimerEvent event parameter class when a timer event occurs. Reimplement this function to get timer events.

If multiple timers are running, the QTimerEvent::timerId() can be used to find out which timer was activated.

Example:

class MyObject : public QObject
{
    Q_OBJECT

public:
    MyObject(QObject *parent = 0);

protected:
    void timerEvent(QTimerEvent *event);
};

MyObject::MyObject(QObject *parent)
    : QObject(parent)
{
    startTimer(50);     // 50-millisecond timer
    startTimer(1000);   // 1-second timer
    startTimer(60000);  // 1-minute timer

    using namespace std::chrono;
    startTimer(milliseconds(50));
    startTimer(seconds(1));
    startTimer(minutes(1));

    // since C++14 we can use std::chrono::duration literals, e.g.:
    startTimer(100ms);
    startTimer(5s);
    startTimer(2min);
    startTimer(1h);
}

void MyObject::timerEvent(QTimerEvent *event)
{
    qDebug() << "Timer ID:" << event->timerId();
}

Note that QTimer's accuracy depends on the underlying operating system and hardware. The timerType argument allows you to customize the accuracy of the timer. See Qt::TimerType for information on the different timer types. Most platforms support an accuracy of 20 milliseconds; some provide more. If Qt is unable to deliver the requested number of timer events, it will silently discard some.

The QTimer class provides a high-level programming interface with single-shot timers and timer signals instead of events. There is also a QBasicTimer class that is more lightweight than QTimer and less clumsy than using timer IDs directly.

See also timerEvent(), killTimer(), and QTimer::singleShot().

func (*QObject) StartTimer__

func (this *QObject) StartTimer__(interval int) int

Starts a timer and returns a timer identifier, or returns zero if it could not start a timer.

A timer event will occur every interval milliseconds until killTimer() is called. If interval is 0, then the timer event occurs once every time there are no more window system events to process.

The virtual timerEvent() function is called with the QTimerEvent event parameter class when a timer event occurs. Reimplement this function to get timer events.

If multiple timers are running, the QTimerEvent::timerId() can be used to find out which timer was activated.

Example:

class MyObject : public QObject
{
    Q_OBJECT

public:
    MyObject(QObject *parent = 0);

protected:
    void timerEvent(QTimerEvent *event);
};

MyObject::MyObject(QObject *parent)
    : QObject(parent)
{
    startTimer(50);     // 50-millisecond timer
    startTimer(1000);   // 1-second timer
    startTimer(60000);  // 1-minute timer

    using namespace std::chrono;
    startTimer(milliseconds(50));
    startTimer(seconds(1));
    startTimer(minutes(1));

    // since C++14 we can use std::chrono::duration literals, e.g.:
    startTimer(100ms);
    startTimer(5s);
    startTimer(2min);
    startTimer(1h);
}

void MyObject::timerEvent(QTimerEvent *event)
{
    qDebug() << "Timer ID:" << event->timerId();
}

Note that QTimer's accuracy depends on the underlying operating system and hardware. The timerType argument allows you to customize the accuracy of the timer. See Qt::TimerType for information on the different timer types. Most platforms support an accuracy of 20 milliseconds; some provide more. If Qt is unable to deliver the requested number of timer events, it will silently discard some.

The QTimer class provides a high-level programming interface with single-shot timers and timer signals instead of events. There is also a QBasicTimer class that is more lightweight than QTimer and less clumsy than using timer IDs directly.

See also timerEvent(), killTimer(), and QTimer::singleShot().

func (*QObject) Thread

func (this *QObject) Thread() *QThread

Returns the thread in which the object lives.

See also moveToThread().

func (*QObject) TimerEvent

func (this *QObject) TimerEvent(event QTimerEvent_ITF)

This event handler can be reimplemented in a subclass to receive timer events for the object.

QTimer provides a higher-level interface to the timer functionality, and also more general information about timers. The timer event is passed in the event parameter.

See also startTimer(), killTimer(), and event().

func (*QObject) UserData

func (this *QObject) UserData(id uint) *QObjectUserData

type QObjectCleanupHandler

type QObjectCleanupHandler struct {
	*QObject
}

func NewQObjectCleanupHandler

func NewQObjectCleanupHandler() *QObjectCleanupHandler

Constructs an empty QObjectCleanupHandler.

func NewQObjectCleanupHandlerFromPointer

func NewQObjectCleanupHandlerFromPointer(cthis unsafe.Pointer) *QObjectCleanupHandler

func (*QObjectCleanupHandler) Add

func (this *QObjectCleanupHandler) Add(object QObject_ITF) *QObject

Adds object to this cleanup handler and returns the pointer to the object.

See also remove().

func (*QObjectCleanupHandler) Clear

func (this *QObjectCleanupHandler) Clear()

Deletes all objects in this cleanup handler. The cleanup handler becomes empty.

See also isEmpty().

func (*QObjectCleanupHandler) GetCthis

func (this *QObjectCleanupHandler) GetCthis() unsafe.Pointer

func (*QObjectCleanupHandler) IsEmpty

func (this *QObjectCleanupHandler) IsEmpty() bool

Returns true if this cleanup handler is empty or if all objects in this cleanup handler have been destroyed; otherwise return false.

See also add(), remove(), and clear().

func (*QObjectCleanupHandler) MetaObject

func (this *QObjectCleanupHandler) MetaObject() *QMetaObject

func (*QObjectCleanupHandler) NewFromPointer

func (*QObjectCleanupHandler) QObjectCleanupHandler_PTR

func (ptr *QObjectCleanupHandler) QObjectCleanupHandler_PTR() *QObjectCleanupHandler

func (*QObjectCleanupHandler) Remove

func (this *QObjectCleanupHandler) Remove(object QObject_ITF)

Removes the object from this cleanup handler. The object will not be destroyed.

See also add().

func (*QObjectCleanupHandler) SetCthis

func (this *QObjectCleanupHandler) SetCthis(cthis unsafe.Pointer)

type QObjectCleanupHandler_ITF

type QObjectCleanupHandler_ITF interface {
	QObject_ITF
	QObjectCleanupHandler_PTR() *QObjectCleanupHandler
}

type QObjectData

type QObjectData struct {
	*qtrt.CObject
}

func NewQObjectDataFromPointer

func NewQObjectDataFromPointer(cthis unsafe.Pointer) *QObjectData

func (*QObjectData) DynamicMetaObject

func (this *QObjectData) DynamicMetaObject() *QMetaObject

func (*QObjectData) GetCthis

func (this *QObjectData) GetCthis() unsafe.Pointer

func (*QObjectData) NewFromPointer

func (*QObjectData) NewFromPointer(cthis unsafe.Pointer) *QObjectData

func (*QObjectData) QObjectData_PTR

func (ptr *QObjectData) QObjectData_PTR() *QObjectData

func (*QObjectData) SetCthis

func (this *QObjectData) SetCthis(cthis unsafe.Pointer)

type QObjectData_ITF

type QObjectData_ITF interface {
	QObjectData_PTR() *QObjectData
}

type QObjectList

type QObjectList struct {
	*qtrt.CObject
}

body block begin

func NewQObjectListFromPointer

func NewQObjectListFromPointer(cthis unsafe.Pointer) *QObjectList

func QPluginLoader_StaticInstances

func QPluginLoader_StaticInstances() *QObjectList

func (*QObjectList) Append_0

func (this *QObjectList) Append_0()

void append(const T &)

func (*QObjectList) Append_1

func (this *QObjectList) Append_1()

void append(const QList<T> &)

func (*QObjectList) At_0

func (this *QObjectList) At_0() *QObject

const T & at(int)

func (*QObjectList) Back_0

func (this *QObjectList) Back_0() *QObject

T & back()

func (*QObjectList) Back_1

func (this *QObjectList) Back_1() *QObject

const T & back()

func (*QObjectList) Begin_0

func (this *QObjectList) Begin_0()

QList::iterator begin()

func (*QObjectList) Begin_1

func (this *QObjectList) Begin_1()

QList::const_iterator begin()

func (*QObjectList) Cbegin_0

func (this *QObjectList) Cbegin_0()

QList::const_iterator cbegin()

func (*QObjectList) Cend_0

func (this *QObjectList) Cend_0()

QList::const_iterator cend()

func (*QObjectList) Clear_0

func (this *QObjectList) Clear_0()

void clear()

func (*QObjectList) ConstBegin_0

func (this *QObjectList) ConstBegin_0()

QList::const_iterator constBegin()

func (*QObjectList) ConstEnd_0

func (this *QObjectList) ConstEnd_0()

QList::const_iterator constEnd()

func (*QObjectList) ConstFirst_0

func (this *QObjectList) ConstFirst_0() *QObject

const T & constFirst()

func (*QObjectList) ConstLast_0

func (this *QObjectList) ConstLast_0() *QObject

const T & constLast()

func (*QObjectList) Contains_0

func (this *QObjectList) Contains_0() bool

bool contains(const T &)

func (*QObjectList) Contains_impl_0

func (this *QObjectList) Contains_impl_0() bool

bool contains_impl(const T &, struct QListData::NotArrayCompatibleLayout)

func (*QObjectList) Contains_impl_1

func (this *QObjectList) Contains_impl_1() bool

bool contains_impl(const T &, struct QListData::ArrayCompatibleLayout)

func (*QObjectList) Count_0

func (this *QObjectList) Count_0() int

int count(const T &)

func (*QObjectList) Count_1

func (this *QObjectList) Count_1() int

int count()

func (*QObjectList) Count_impl_0

func (this *QObjectList) Count_impl_0() int

int count_impl(const T &, struct QListData::NotArrayCompatibleLayout)

func (*QObjectList) Count_impl_1

func (this *QObjectList) Count_impl_1() int

int count_impl(const T &, struct QListData::ArrayCompatibleLayout)

func (*QObjectList) Crbegin_0

func (this *QObjectList) Crbegin_0()

QList::const_reverse_iterator crbegin()

func (*QObjectList) Crend_0

func (this *QObjectList) Crend_0()

QList::const_reverse_iterator crend()

func (*QObjectList) Dealloc_0

func (this *QObjectList) Dealloc_0()

void dealloc(struct QListData::Data *)

func (*QObjectList) DetachShared_0

func (this *QObjectList) DetachShared_0()

void detachShared()

func (*QObjectList) Detach_0

func (this *QObjectList) Detach_0()

void detach()

func (*QObjectList) Detach_helper_0

func (this *QObjectList) Detach_helper_0()

void detach_helper(int)

func (*QObjectList) Detach_helper_1

func (this *QObjectList) Detach_helper_1()

void detach_helper()

func (*QObjectList) Detach_helper_grow_0

func (this *QObjectList) Detach_helper_grow_0()

QList::Node * detach_helper_grow(int, int)

func (*QObjectList) Empty_0

func (this *QObjectList) Empty_0() bool

bool empty()

func (*QObjectList) End_0

func (this *QObjectList) End_0()

QList::iterator end()

func (*QObjectList) End_1

func (this *QObjectList) End_1()

QList::const_iterator end()

func (*QObjectList) EndsWith_0

func (this *QObjectList) EndsWith_0() bool

bool endsWith(const T &)

func (*QObjectList) Erase_0

func (this *QObjectList) Erase_0()

QList::iterator erase(class QList::iterator)

func (*QObjectList) Erase_1

func (this *QObjectList) Erase_1()

QList::iterator erase(class QList::iterator, class QList::iterator)

func (*QObjectList) First_0

func (this *QObjectList) First_0() *QObject

T & first()

func (*QObjectList) First_1

func (this *QObjectList) First_1() *QObject

const T & first()

func (*QObjectList) FromSet_0

func (this *QObjectList) FromSet_0() *QObjectList

QList<T> fromSet(const QSet<T> &)

func (*QObjectList) FromStdList_0

func (this *QObjectList) FromStdList_0() *QObjectList

QList<T> fromStdList(const std::list<T> &)

func (*QObjectList) FromVector_0

func (this *QObjectList) FromVector_0() *QObjectList

QList<T> fromVector(const QVector<T> &)

func (*QObjectList) Front_0

func (this *QObjectList) Front_0() *QObject

T & front()

func (*QObjectList) Front_1

func (this *QObjectList) Front_1() *QObject

const T & front()

func (*QObjectList) IndexOf_0

func (this *QObjectList) IndexOf_0() int

int indexOf(const T &, int)

func (*QObjectList) Insert_0

func (this *QObjectList) Insert_0()

void insert(int, const T &)

func (*QObjectList) Insert_1

func (this *QObjectList) Insert_1()

QList::iterator insert(class QList::iterator, const T &)

func (*QObjectList) IsDetached_0

func (this *QObjectList) IsDetached_0() bool

bool isDetached()

func (*QObjectList) IsEmpty_0

func (this *QObjectList) IsEmpty_0() bool

bool isEmpty()

func (*QObjectList) IsSharedWith_0

func (this *QObjectList) IsSharedWith_0() bool

bool isSharedWith(const QList<T> &)

func (*QObjectList) IsValidIterator_0

func (this *QObjectList) IsValidIterator_0() bool

bool isValidIterator(const class QList::iterator &)

func (*QObjectList) LastIndexOf_0

func (this *QObjectList) LastIndexOf_0() int

int lastIndexOf(const T &, int)

func (*QObjectList) Last_0

func (this *QObjectList) Last_0() *QObject

T & last()

func (*QObjectList) Last_1

func (this *QObjectList) Last_1() *QObject

const T & last()

func (*QObjectList) Length_0

func (this *QObjectList) Length_0() int

int length()

func (*QObjectList) Mid_0

func (this *QObjectList) Mid_0() *QObjectList

QList<T> mid(int, int)

func (*QObjectList) Move_0

func (this *QObjectList) Move_0()

void move(int, int)

func (*QObjectList) Node_construct_0

func (this *QObjectList) Node_construct_0()

void node_construct(struct QList::Node *, const T &)

func (*QObjectList) Node_copy_0

func (this *QObjectList) Node_copy_0()

void node_copy(struct QList::Node *, struct QList::Node *, struct QList::Node *)

func (*QObjectList) Node_destruct_0

func (this *QObjectList) Node_destruct_0()

void node_destruct(struct QList::Node *)

func (*QObjectList) Node_destruct_1

func (this *QObjectList) Node_destruct_1()

void node_destruct(struct QList::Node *, struct QList::Node *)

func (*QObjectList) Op_eq_impl_0

func (this *QObjectList) Op_eq_impl_0() bool

bool op_eq_impl(const QList<T> &, struct QListData::NotArrayCompatibleLayout)

func (*QObjectList) Op_eq_impl_1

func (this *QObjectList) Op_eq_impl_1() bool

bool op_eq_impl(const QList<T> &, struct QListData::ArrayCompatibleLayout)

func (*QObjectList) Operator_add_0

func (this *QObjectList) Operator_add_0() *QObjectList

QList<T> operator+(const QList<T> &)

func (*QObjectList) Operator_add_equal_0

func (this *QObjectList) Operator_add_equal_0() *QObjectList

QList<T> & operator+=(const QList<T> &)

func (*QObjectList) Operator_add_equal_1

func (this *QObjectList) Operator_add_equal_1() *QObjectList

QList<T> & operator+=(const T &)

func (*QObjectList) Operator_equal_0

func (this *QObjectList) Operator_equal_0() *QObjectList

QList<T> & operator=(const QList<T> &)

func (*QObjectList) Operator_equal_1

func (this *QObjectList) Operator_equal_1() *QObjectList

QList<T> & operator=(QList<T> &&)

func (*QObjectList) Operator_equal_equal_0

func (this *QObjectList) Operator_equal_equal_0() bool

bool operator==(const QList<T> &)

func (*QObjectList) Operator_get_index_0

func (this *QObjectList) Operator_get_index_0() *QObject

const T & operator[](int)

func (*QObjectList) Operator_get_index_1

func (this *QObjectList) Operator_get_index_1() *QObject

T & operator[](int)

func (*QObjectList) Operator_left_shift_0

func (this *QObjectList) Operator_left_shift_0() *QObjectList

QList<T> & operator<<(const T &)

func (*QObjectList) Operator_left_shift_1

func (this *QObjectList) Operator_left_shift_1() *QObjectList

QList<T> & operator<<(const QList<T> &)

func (*QObjectList) Operator_not_equal_0

func (this *QObjectList) Operator_not_equal_0() bool

bool operator!=(const QList<T> &)

func (*QObjectList) Pop_back_0

func (this *QObjectList) Pop_back_0()

void pop_back()

func (*QObjectList) Pop_front_0

func (this *QObjectList) Pop_front_0()

void pop_front()

func (*QObjectList) Prepend_0

func (this *QObjectList) Prepend_0()

void prepend(const T &)

func (*QObjectList) Push_back_0

func (this *QObjectList) Push_back_0()

void push_back(const T &)

func (*QObjectList) Push_front_0

func (this *QObjectList) Push_front_0()

void push_front(const T &)

func (*QObjectList) Rbegin_0

func (this *QObjectList) Rbegin_0()

QList::reverse_iterator rbegin()

func (*QObjectList) Rbegin_1

func (this *QObjectList) Rbegin_1()

QList::const_reverse_iterator rbegin()

func (*QObjectList) RemoveAll_0

func (this *QObjectList) RemoveAll_0() int

int removeAll(const T &)

func (*QObjectList) RemoveAt_0

func (this *QObjectList) RemoveAt_0()

void removeAt(int)

func (*QObjectList) RemoveFirst_0

func (this *QObjectList) RemoveFirst_0()

void removeFirst()

func (*QObjectList) RemoveLast_0

func (this *QObjectList) RemoveLast_0()

void removeLast()

func (*QObjectList) RemoveOne_0

func (this *QObjectList) RemoveOne_0() bool

bool removeOne(const T &)

func (*QObjectList) Rend_0

func (this *QObjectList) Rend_0()

QList::reverse_iterator rend()

func (*QObjectList) Rend_1

func (this *QObjectList) Rend_1()

QList::const_reverse_iterator rend()

func (*QObjectList) Replace_0

func (this *QObjectList) Replace_0()

void replace(int, const T &)

func (*QObjectList) Reserve_0

func (this *QObjectList) Reserve_0()

void reserve(int)

func (*QObjectList) SetSharable_0

func (this *QObjectList) SetSharable_0()

void setSharable(_Bool)

func (*QObjectList) Size_0

func (this *QObjectList) Size_0() int

int size()

func (*QObjectList) StartsWith_0

func (this *QObjectList) StartsWith_0() bool

bool startsWith(const T &)

func (*QObjectList) Swap_0

func (this *QObjectList) Swap_0()

void swap(QList<T> &)

func (*QObjectList) Swap_1

func (this *QObjectList) Swap_1()

void swap(int, int)

func (*QObjectList) TakeAt_0

func (this *QObjectList) TakeAt_0() *QObject

T takeAt(int)

func (*QObjectList) TakeFirst_0

func (this *QObjectList) TakeFirst_0() *QObject

T takeFirst()

func (*QObjectList) TakeLast_0

func (this *QObjectList) TakeLast_0() *QObject

T takeLast()

func (*QObjectList) ToSet_0

func (this *QObjectList) ToSet_0()

QSet<T> toSet()

func (*QObjectList) ToStdList_0

func (this *QObjectList) ToStdList_0()

std::list<T> toStdList()

func (*QObjectList) ToVector_0

func (this *QObjectList) ToVector_0()

QVector<T> toVector()

func (*QObjectList) Value_0

func (this *QObjectList) Value_0() *QObject

T value(int)

func (*QObjectList) Value_1

func (this *QObjectList) Value_1() *QObject

T value(int, const T &)

type QObjectListx

type QObjectListx struct {
	*qtrt.CObject
}

///

func NewQObjectListxFromPointer

func NewQObjectListxFromPointer(cthis unsafe.Pointer) *QObjectListx

func (*QObjectListx) At

func (this *QObjectListx) At(i int) *QObject

func (*QObjectListx) ConvertFromSlice

func (*QObjectListx) ConvertFromSlice(lst []*QObject) *QObjectListx

func (*QObjectListx) ConvertToSlice

func (this *QObjectListx) ConvertToSlice() (lst []*QObject)

func (*QObjectListx) Count

func (this *QObjectListx) Count() int

func (*QObjectListx) GetCthis

func (this *QObjectListx) GetCthis() unsafe.Pointer

func (*QObjectListx) NewFromPointer

func (*QObjectListx) NewFromPointer(cthis unsafe.Pointer) *QObjectListx

func (*QObjectListx) SetCthis

func (this *QObjectListx) SetCthis(cthis unsafe.Pointer)

type QObjectUserData

type QObjectUserData struct {
	*qtrt.CObject
}

func NewQObjectUserDataFromPointer

func NewQObjectUserDataFromPointer(cthis unsafe.Pointer) *QObjectUserData

func (*QObjectUserData) GetCthis

func (this *QObjectUserData) GetCthis() unsafe.Pointer

func (*QObjectUserData) NewFromPointer

func (*QObjectUserData) NewFromPointer(cthis unsafe.Pointer) *QObjectUserData

func (*QObjectUserData) QObjectUserData_PTR

func (ptr *QObjectUserData) QObjectUserData_PTR() *QObjectUserData

func (*QObjectUserData) SetCthis

func (this *QObjectUserData) SetCthis(cthis unsafe.Pointer)

type QObjectUserData_ITF

type QObjectUserData_ITF interface {
	QObjectUserData_PTR() *QObjectUserData
}

type QObject_ITF

type QObject_ITF interface {
	QObject_PTR() *QObject
}

type QOperatingSystemVersion

type QOperatingSystemVersion struct {
	*qtrt.CObject
}

func NewQOperatingSystemVersion

func NewQOperatingSystemVersion(osType int, vmajor int, vminor int, vmicro int) *QOperatingSystemVersion

Constructs a QOperatingSystemVersion consisting of the OS type osType, and major, minor, and micro version numbers vmajor, vminor and vmicro, respectively.

func NewQOperatingSystemVersionFromPointer

func NewQOperatingSystemVersionFromPointer(cthis unsafe.Pointer) *QOperatingSystemVersion

func NewQOperatingSystemVersion__

func NewQOperatingSystemVersion__(osType int, vmajor int) *QOperatingSystemVersion

Constructs a QOperatingSystemVersion consisting of the OS type osType, and major, minor, and micro version numbers vmajor, vminor and vmicro, respectively.

func NewQOperatingSystemVersion__1

func NewQOperatingSystemVersion__1(osType int, vmajor int, vminor int) *QOperatingSystemVersion

Constructs a QOperatingSystemVersion consisting of the OS type osType, and major, minor, and micro version numbers vmajor, vminor and vmicro, respectively.

func QOperatingSystemVersion_Current

func QOperatingSystemVersion_Current() *QOperatingSystemVersion

func (*QOperatingSystemVersion) Current

Returns a QOperatingSystemVersion indicating the current OS and its version number.

See also currentType().

func (*QOperatingSystemVersion) CurrentType

func (this *QOperatingSystemVersion) CurrentType() int

Returns the current OS type without constructing a QOperatingSystemVersion instance.

See also current().

func (*QOperatingSystemVersion) GetCthis

func (this *QOperatingSystemVersion) GetCthis() unsafe.Pointer

func (*QOperatingSystemVersion) MajorVersion

func (this *QOperatingSystemVersion) MajorVersion() int

Returns the major version number, that is, the first segment of the operating system's version number.

See the main class documentation for what the major version number is on a given operating system.

-1 indicates an unknown or absent version number component.

See also minorVersion() and microVersion().

func (*QOperatingSystemVersion) MicroVersion

func (this *QOperatingSystemVersion) MicroVersion() int

Returns the micro version number, that is, the third segment of the operating system's version number.

See the main class documentation for what the micro version number is on a given operating system.

-1 indicates an unknown or absent version number component.

See also majorVersion() and minorVersion().

func (*QOperatingSystemVersion) MinorVersion

func (this *QOperatingSystemVersion) MinorVersion() int

Returns the minor version number, that is, the second segment of the operating system's version number.

See the main class documentation for what the minor version number is on a given operating system.

-1 indicates an unknown or absent version number component.

See also majorVersion() and microVersion().

func (*QOperatingSystemVersion) Name

func (this *QOperatingSystemVersion) Name() string

Returns a string representation of the OS type identified by the QOperatingSystemVersion.

See also type().

func (*QOperatingSystemVersion) NewFromPointer

func (*QOperatingSystemVersion) QOperatingSystemVersion_PTR

func (ptr *QOperatingSystemVersion) QOperatingSystemVersion_PTR() *QOperatingSystemVersion

func (*QOperatingSystemVersion) SegmentCount

func (this *QOperatingSystemVersion) SegmentCount() int

Returns the number of integers stored in the version number.

func (*QOperatingSystemVersion) SetCthis

func (this *QOperatingSystemVersion) SetCthis(cthis unsafe.Pointer)

func (*QOperatingSystemVersion) Type

func (this *QOperatingSystemVersion) Type() int

Returns the OS type identified by the QOperatingSystemVersion.

See also name().

type QOperatingSystemVersion_ITF

type QOperatingSystemVersion_ITF interface {
	QOperatingSystemVersion_PTR() *QOperatingSystemVersion
}

type QOperatingSystemVersion__OSType

type QOperatingSystemVersion__OSType = int

This enum provides symbolic names for the various operating system families supported by QOperatingSystemVersion.

const QOperatingSystemVersion__Android QOperatingSystemVersion__OSType = 6

The Google Android operating system.

const QOperatingSystemVersion__IOS QOperatingSystemVersion__OSType = 3

The Apple iOS operating system.

const QOperatingSystemVersion__MacOS QOperatingSystemVersion__OSType = 2

The Apple macOS operating system.

const QOperatingSystemVersion__TvOS QOperatingSystemVersion__OSType = 4

The Apple tvOS operating system.

const QOperatingSystemVersion__Unknown QOperatingSystemVersion__OSType = 0

An unknown or unsupported operating system.

const QOperatingSystemVersion__WatchOS QOperatingSystemVersion__OSType = 5

The Apple watchOS operating system.

const QOperatingSystemVersion__Windows QOperatingSystemVersion__OSType = 1

The Microsoft Windows operating system.

type QParallelAnimationGroup

type QParallelAnimationGroup struct {
	*QAnimationGroup
}

func NewQParallelAnimationGroup

func NewQParallelAnimationGroup(parent QObject_ITF) *QParallelAnimationGroup

Constructs a QParallelAnimationGroup. parent is passed to QObject's constructor.

func NewQParallelAnimationGroupFromPointer

func NewQParallelAnimationGroupFromPointer(cthis unsafe.Pointer) *QParallelAnimationGroup

func NewQParallelAnimationGroup__

func NewQParallelAnimationGroup__() *QParallelAnimationGroup

Constructs a QParallelAnimationGroup. parent is passed to QObject's constructor.

func (*QParallelAnimationGroup) Duration

func (this *QParallelAnimationGroup) Duration() int

Reimplemented from QAbstractAnimation::duration().

func (*QParallelAnimationGroup) Event

func (this *QParallelAnimationGroup) Event(event QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QParallelAnimationGroup) GetCthis

func (this *QParallelAnimationGroup) GetCthis() unsafe.Pointer

func (*QParallelAnimationGroup) InheritEvent

func (this *QParallelAnimationGroup) InheritEvent(f func(event *QEvent) bool)

bool event(class QEvent *)

func (*QParallelAnimationGroup) InheritUpdateCurrentTime

func (this *QParallelAnimationGroup) InheritUpdateCurrentTime(f func(currentTime int))

void updateCurrentTime(int)

func (*QParallelAnimationGroup) InheritUpdateDirection

func (this *QParallelAnimationGroup) InheritUpdateDirection(f func(direction int))

void updateDirection(class QAbstractAnimation::Direction)

func (*QParallelAnimationGroup) InheritUpdateState

func (this *QParallelAnimationGroup) InheritUpdateState(f func(newState int, oldState int))

void updateState(class QAbstractAnimation::State, class QAbstractAnimation::State)

func (*QParallelAnimationGroup) MetaObject

func (this *QParallelAnimationGroup) MetaObject() *QMetaObject

func (*QParallelAnimationGroup) NewFromPointer

func (*QParallelAnimationGroup) QParallelAnimationGroup_PTR

func (ptr *QParallelAnimationGroup) QParallelAnimationGroup_PTR() *QParallelAnimationGroup

func (*QParallelAnimationGroup) SetCthis

func (this *QParallelAnimationGroup) SetCthis(cthis unsafe.Pointer)

func (*QParallelAnimationGroup) UpdateCurrentTime

func (this *QParallelAnimationGroup) UpdateCurrentTime(currentTime int)

Reimplemented from QAbstractAnimation::updateCurrentTime().

func (*QParallelAnimationGroup) UpdateDirection

func (this *QParallelAnimationGroup) UpdateDirection(direction int)

Reimplemented from QAbstractAnimation::updateDirection().

func (*QParallelAnimationGroup) UpdateState

func (this *QParallelAnimationGroup) UpdateState(newState int, oldState int)

Reimplemented from QAbstractAnimation::updateState().

type QParallelAnimationGroup_ITF

type QParallelAnimationGroup_ITF interface {
	QAnimationGroup_ITF
	QParallelAnimationGroup_PTR() *QParallelAnimationGroup
}

type QPauseAnimation

type QPauseAnimation struct {
	*QAbstractAnimation
}

func NewQPauseAnimation

func NewQPauseAnimation(parent QObject_ITF) *QPauseAnimation

Constructs a QPauseAnimation. parent is passed to QObject's constructor. The default duration is 0.

func NewQPauseAnimationFromPointer

func NewQPauseAnimationFromPointer(cthis unsafe.Pointer) *QPauseAnimation

func NewQPauseAnimation_1

func NewQPauseAnimation_1(msecs int, parent QObject_ITF) *QPauseAnimation

Constructs a QPauseAnimation. parent is passed to QObject's constructor. The default duration is 0.

func NewQPauseAnimation_1_

func NewQPauseAnimation_1_(msecs int) *QPauseAnimation

Constructs a QPauseAnimation. parent is passed to QObject's constructor. The default duration is 0.

func NewQPauseAnimation__

func NewQPauseAnimation__() *QPauseAnimation

Constructs a QPauseAnimation. parent is passed to QObject's constructor. The default duration is 0.

func (*QPauseAnimation) Duration

func (this *QPauseAnimation) Duration() int

func (*QPauseAnimation) Event

func (this *QPauseAnimation) Event(e QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QPauseAnimation) GetCthis

func (this *QPauseAnimation) GetCthis() unsafe.Pointer

func (*QPauseAnimation) InheritEvent

func (this *QPauseAnimation) InheritEvent(f func(e *QEvent) bool)

bool event(class QEvent *)

func (*QPauseAnimation) InheritUpdateCurrentTime

func (this *QPauseAnimation) InheritUpdateCurrentTime(f func(arg0 int))

void updateCurrentTime(int)

func (*QPauseAnimation) MetaObject

func (this *QPauseAnimation) MetaObject() *QMetaObject

func (*QPauseAnimation) NewFromPointer

func (*QPauseAnimation) NewFromPointer(cthis unsafe.Pointer) *QPauseAnimation

func (*QPauseAnimation) QPauseAnimation_PTR

func (ptr *QPauseAnimation) QPauseAnimation_PTR() *QPauseAnimation

func (*QPauseAnimation) SetCthis

func (this *QPauseAnimation) SetCthis(cthis unsafe.Pointer)

func (*QPauseAnimation) SetDuration

func (this *QPauseAnimation) SetDuration(msecs int)

func (*QPauseAnimation) UpdateCurrentTime

func (this *QPauseAnimation) UpdateCurrentTime(arg0 int)

Reimplemented from QAbstractAnimation::updateCurrentTime().

type QPauseAnimation_ITF

type QPauseAnimation_ITF interface {
	QAbstractAnimation_ITF
	QPauseAnimation_PTR() *QPauseAnimation
}

type QPersistentModelIndex

type QPersistentModelIndex struct {
	*qtrt.CObject
}

func NewQPersistentModelIndex

func NewQPersistentModelIndex() *QPersistentModelIndex

func NewQPersistentModelIndexFromPointer

func NewQPersistentModelIndexFromPointer(cthis unsafe.Pointer) *QPersistentModelIndex

func NewQPersistentModelIndex_1

func NewQPersistentModelIndex_1(index QModelIndex_ITF) *QPersistentModelIndex

func (*QPersistentModelIndex) Child

func (this *QPersistentModelIndex) Child(row int, column int) *QModelIndex

func (*QPersistentModelIndex) Column

func (this *QPersistentModelIndex) Column() int

func (*QPersistentModelIndex) Data

func (this *QPersistentModelIndex) Data(role int) *QVariant

Returns the data stored under the given role for the item referred to by the index.

Note: If you do not have a value to return, return an invalid QVariant instead of returning 0.

See also Qt::ItemDataRole, setData(), and headerData().

func (*QPersistentModelIndex) Data__

func (this *QPersistentModelIndex) Data__() *QVariant

Returns the data stored under the given role for the item referred to by the index.

Note: If you do not have a value to return, return an invalid QVariant instead of returning 0.

See also Qt::ItemDataRole, setData(), and headerData().

func (*QPersistentModelIndex) Flags

func (this *QPersistentModelIndex) Flags() int

Returns the item flags for the given index.

The base class implementation returns a combination of flags that enables the item (ItemIsEnabled) and allows it to be selected (ItemIsSelectable).

See also Qt::ItemFlags.

func (*QPersistentModelIndex) GetCthis

func (this *QPersistentModelIndex) GetCthis() unsafe.Pointer

func (*QPersistentModelIndex) InternalId

func (this *QPersistentModelIndex) InternalId() uint64

func (*QPersistentModelIndex) InternalPointer

func (this *QPersistentModelIndex) InternalPointer() unsafe.Pointer

func (*QPersistentModelIndex) IsValid

func (this *QPersistentModelIndex) IsValid() bool

func (*QPersistentModelIndex) Model

func (*QPersistentModelIndex) NewFromPointer

func (*QPersistentModelIndex) Operator_equal

func (*QPersistentModelIndex) Operator_equal_1

func (this *QPersistentModelIndex) Operator_equal_1(other unsafe.Pointer) *QPersistentModelIndex

func (*QPersistentModelIndex) Operator_equal_2

func (this *QPersistentModelIndex) Operator_equal_2(other QModelIndex_ITF) *QPersistentModelIndex

func (*QPersistentModelIndex) Operator_equal_equal

func (this *QPersistentModelIndex) Operator_equal_equal(other QPersistentModelIndex_ITF) bool

func (*QPersistentModelIndex) Operator_equal_equal_1

func (this *QPersistentModelIndex) Operator_equal_equal_1(other QModelIndex_ITF) bool

func (*QPersistentModelIndex) Operator_less_than

func (this *QPersistentModelIndex) Operator_less_than(other QPersistentModelIndex_ITF) bool

func (*QPersistentModelIndex) Operator_not_equal

func (this *QPersistentModelIndex) Operator_not_equal(other QPersistentModelIndex_ITF) bool

func (*QPersistentModelIndex) Operator_not_equal_1

func (this *QPersistentModelIndex) Operator_not_equal_1(other QModelIndex_ITF) bool

func (*QPersistentModelIndex) Parent

func (this *QPersistentModelIndex) Parent() *QModelIndex

Returns the parent of the model item with the given index. If the item has no parent, an invalid QModelIndex is returned.

A common convention used in models that expose tree data structures is that only items in the first column have children. For that case, when reimplementing this function in a subclass the column of the returned QModelIndex would be 0.

When reimplementing this function in a subclass, be careful to avoid calling QModelIndex member functions, such as QModelIndex::parent(), since indexes belonging to your model will simply call your implementation, leading to infinite recursion.

See also createIndex().

func (*QPersistentModelIndex) QPersistentModelIndex_PTR

func (ptr *QPersistentModelIndex) QPersistentModelIndex_PTR() *QPersistentModelIndex

func (*QPersistentModelIndex) Row

func (this *QPersistentModelIndex) Row() int

func (*QPersistentModelIndex) SetCthis

func (this *QPersistentModelIndex) SetCthis(cthis unsafe.Pointer)

func (*QPersistentModelIndex) Sibling

func (this *QPersistentModelIndex) Sibling(row int, column int) *QModelIndex

Returns the sibling at row and column for the item at index, or an invalid QModelIndex if there is no sibling at that location.

sibling() is just a convenience function that finds the item's parent, and uses it to retrieve the index of the child item in the specified row and column.

This method can optionally be overridden for implementation-specific optimization.

See also index(), QModelIndex::row(), and QModelIndex::column().

func (*QPersistentModelIndex) Swap

type QPersistentModelIndex_ITF

type QPersistentModelIndex_ITF interface {
	QPersistentModelIndex_PTR() *QPersistentModelIndex
}

type QPluginLoader

type QPluginLoader struct {
	*QObject
}

func NewQPluginLoader

func NewQPluginLoader(parent QObject_ITF) *QPluginLoader

Constructs a plugin loader with the given parent.

func NewQPluginLoaderFromPointer

func NewQPluginLoaderFromPointer(cthis unsafe.Pointer) *QPluginLoader

func NewQPluginLoader_1

func NewQPluginLoader_1(fileName string, parent QObject_ITF) *QPluginLoader

Constructs a plugin loader with the given parent.

func NewQPluginLoader_1_

func NewQPluginLoader_1_(fileName string) *QPluginLoader

Constructs a plugin loader with the given parent.

func NewQPluginLoader__

func NewQPluginLoader__() *QPluginLoader

Constructs a plugin loader with the given parent.

func (*QPluginLoader) ErrorString

func (this *QPluginLoader) ErrorString() string

Returns a text string with the description of the last error that occurred.

This function was introduced in Qt 4.2.

func (*QPluginLoader) FileName

func (this *QPluginLoader) FileName() string

func (*QPluginLoader) GetCthis

func (this *QPluginLoader) GetCthis() unsafe.Pointer

func (*QPluginLoader) Instance

func (this *QPluginLoader) Instance() *QObject

Returns the root component object of the plugin. The plugin is loaded if necessary. The function returns 0 if the plugin could not be loaded or if the root component object could not be instantiated.

If the root component object was destroyed, calling this function creates a new instance.

The root component, returned by this function, is not deleted when the QPluginLoader is destroyed. If you want to ensure that the root component is deleted, you should call unload() as soon you don't need to access the core component anymore. When the library is finally unloaded, the root component will automatically be deleted.

The component object is a QObject. Use qobject_cast() to access interfaces you are interested in.

See also load().

func (*QPluginLoader) IsLoaded

func (this *QPluginLoader) IsLoaded() bool

Returns true if the plugin is loaded; otherwise returns false.

See also load().

func (*QPluginLoader) Load

func (this *QPluginLoader) Load() bool

Loads the plugin and returns true if the plugin was loaded successfully; otherwise returns false. Since instance() always calls this function before resolving any symbols it is not necessary to call it explicitly. In some situations you might want the plugin loaded in advance, in which case you would use this function.

See also unload().

func (*QPluginLoader) LoadHints

func (this *QPluginLoader) LoadHints() int

func (*QPluginLoader) MetaData

func (this *QPluginLoader) MetaData() *QJsonObject

Returns the meta data for this plugin. The meta data is data specified in a json format using the Q_PLUGIN_METADATA() macro when compiling the plugin.

The meta data can be queried in a fast and inexpensive way without actually loading the plugin. This makes it possible to e.g. store capabilities of the plugin in there, and make the decision whether to load the plugin dependent on this meta data.

func (*QPluginLoader) MetaObject

func (this *QPluginLoader) MetaObject() *QMetaObject

func (*QPluginLoader) NewFromPointer

func (*QPluginLoader) NewFromPointer(cthis unsafe.Pointer) *QPluginLoader

func (*QPluginLoader) QPluginLoader_PTR

func (ptr *QPluginLoader) QPluginLoader_PTR() *QPluginLoader

func (*QPluginLoader) SetCthis

func (this *QPluginLoader) SetCthis(cthis unsafe.Pointer)

func (*QPluginLoader) SetFileName

func (this *QPluginLoader) SetFileName(fileName string)

func (*QPluginLoader) SetLoadHints

func (this *QPluginLoader) SetLoadHints(loadHints int)

func (*QPluginLoader) StaticInstances

func (this *QPluginLoader) StaticInstances() *QObjectList

Returns a list of static plugin instances (root components) held by the plugin loader.

See also staticPlugins().

func (*QPluginLoader) Unload

func (this *QPluginLoader) Unload() bool

Unloads the plugin and returns true if the plugin could be unloaded; otherwise returns false.

This happens automatically on application termination, so you shouldn't normally need to call this function.

If other instances of QPluginLoader are using the same plugin, the call will fail, and unloading will only happen when every instance has called unload().

Don't try to delete the root component. Instead rely on that unload() will automatically delete it when needed.

See also instance() and load().

type QPluginLoader_ITF

type QPluginLoader_ITF interface {
	QObject_ITF
	QPluginLoader_PTR() *QPluginLoader
}

type QPoint

type QPoint struct {
	*qtrt.CObject
}

func NewQPoint

func NewQPoint() *QPoint

Constructs a null point, i.e. with coordinates (0, 0)

See also isNull().

func NewQPointFromPointer

func NewQPointFromPointer(cthis unsafe.Pointer) *QPoint

func NewQPoint_1

func NewQPoint_1(xpos int, ypos int) *QPoint

Constructs a null point, i.e. with coordinates (0, 0)

See also isNull().

func (*QPoint) DotProduct

func (this *QPoint) DotProduct(p1 QPoint_ITF, p2 QPoint_ITF) int

QPoint p( 3, 7);

QPoint q(-1, 4);
int lengthSquared = QPoint::dotProduct(p, q);   // lengthSquared becomes 25

Returns the dot product of p1 and p2.

This function was introduced in Qt 5.1.

func (*QPoint) GetCthis

func (this *QPoint) GetCthis() unsafe.Pointer

func (*QPoint) IsNull

func (this *QPoint) IsNull() bool

Returns true if both the x and y coordinates are set to 0, otherwise returns false.

func (*QPoint) ManhattanLength

func (this *QPoint) ManhattanLength() int

Returns the sum of the absolute values of x() and y(), traditionally known as the "Manhattan length" of the vector from the origin to the point. For example:

QPoint oldPosition;

MyWidget::mouseMoveEvent(QMouseEvent *event)
{
    QPoint point = event->pos() - oldPosition;
    if (point.manhattanLength() > 3)
        // the mouse has moved more than 3 pixels since the oldPosition
}

This is a useful, and quick to calculate, approximation to the true length:

double trueLength = std::sqrt(std::pow(x(), 2) + std::pow(y(), 2));

The tradition of "Manhattan length" arises because such distances apply to travelers who can only travel on a rectangular grid, like the streets of Manhattan.

func (*QPoint) NewFromPointer

func (*QPoint) NewFromPointer(cthis unsafe.Pointer) *QPoint

func (*QPoint) Operator_add_equal

func (this *QPoint) Operator_add_equal(p QPoint_ITF) *QPoint

func (*QPoint) Operator_div_equal

func (this *QPoint) Operator_div_equal(divisor float64) *QPoint

func (*QPoint) Operator_minus_equal

func (this *QPoint) Operator_minus_equal(p QPoint_ITF) *QPoint

func (*QPoint) Operator_mul_equal

func (this *QPoint) Operator_mul_equal(factor float32) *QPoint

func (*QPoint) Operator_mul_equal_1

func (this *QPoint) Operator_mul_equal_1(factor float64) *QPoint

func (*QPoint) Operator_mul_equal_2

func (this *QPoint) Operator_mul_equal_2(factor int) *QPoint

func (*QPoint) QPoint_PTR

func (ptr *QPoint) QPoint_PTR() *QPoint

func (*QPoint) Rx

func (this *QPoint) Rx() int

Returns a reference to the x coordinate of this point.

Using a reference makes it possible to directly manipulate x. For example:

QPoint p(1, 2);
p.rx()--;   // p becomes (0, 2)

See also x() and setX().

func (*QPoint) Ry

func (this *QPoint) Ry() int

Returns a reference to the y coordinate of this point.

Using a reference makes it possible to directly manipulate y. For example:

QPoint p(1, 2);
p.ry()++;   // p becomes (1, 3)

See also y() and setY().

func (*QPoint) SetCthis

func (this *QPoint) SetCthis(cthis unsafe.Pointer)

func (*QPoint) SetX

func (this *QPoint) SetX(x int)

Sets the x coordinate of this point to the given x coordinate.

See also x() and setY().

func (*QPoint) SetY

func (this *QPoint) SetY(y int)

Sets the y coordinate of this point to the given y coordinate.

See also y() and setX().

func (*QPoint) X

func (this *QPoint) X() int

Returns the x coordinate of this point.

See also setX() and rx().

func (*QPoint) Y

func (this *QPoint) Y() int

Returns the y coordinate of this point.

See also setY() and ry().

type QPointF

type QPointF struct {
	*qtrt.CObject
}

func NewQPointF

func NewQPointF() *QPointF

func NewQPointFFromPointer

func NewQPointFFromPointer(cthis unsafe.Pointer) *QPointF

func NewQPointF_1

func NewQPointF_1(p QPoint_ITF) *QPointF

func NewQPointF_2

func NewQPointF_2(xpos float64, ypos float64) *QPointF

func (*QPointF) DotProduct

func (this *QPointF) DotProduct(p1 QPointF_ITF, p2 QPointF_ITF) float64

QPoint p( 3, 7);

QPoint q(-1, 4);
int lengthSquared = QPoint::dotProduct(p, q);   // lengthSquared becomes 25

Returns the dot product of p1 and p2.

This function was introduced in Qt 5.1.

func (*QPointF) GetCthis

func (this *QPointF) GetCthis() unsafe.Pointer

func (*QPointF) IsNull

func (this *QPointF) IsNull() bool

Returns true if both the x and y coordinates are set to 0, otherwise returns false.

func (*QPointF) ManhattanLength

func (this *QPointF) ManhattanLength() float64

Returns the sum of the absolute values of x() and y(), traditionally known as the "Manhattan length" of the vector from the origin to the point. For example:

QPoint oldPosition;

MyWidget::mouseMoveEvent(QMouseEvent *event)
{
    QPoint point = event->pos() - oldPosition;
    if (point.manhattanLength() > 3)
        // the mouse has moved more than 3 pixels since the oldPosition
}

This is a useful, and quick to calculate, approximation to the true length:

double trueLength = std::sqrt(std::pow(x(), 2) + std::pow(y(), 2));

The tradition of "Manhattan length" arises because such distances apply to travelers who can only travel on a rectangular grid, like the streets of Manhattan.

func (*QPointF) NewFromPointer

func (*QPointF) NewFromPointer(cthis unsafe.Pointer) *QPointF

func (*QPointF) Operator_add_equal

func (this *QPointF) Operator_add_equal(p QPointF_ITF) *QPointF

func (*QPointF) Operator_div_equal

func (this *QPointF) Operator_div_equal(c float64) *QPointF

func (*QPointF) Operator_minus_equal

func (this *QPointF) Operator_minus_equal(p QPointF_ITF) *QPointF

func (*QPointF) Operator_mul_equal

func (this *QPointF) Operator_mul_equal(c float64) *QPointF

func (*QPointF) QPointF_PTR

func (ptr *QPointF) QPointF_PTR() *QPointF

func (*QPointF) Rx

func (this *QPointF) Rx() float64

Returns a reference to the x coordinate of this point.

Using a reference makes it possible to directly manipulate x. For example:

QPoint p(1, 2);
p.rx()--;   // p becomes (0, 2)

See also x() and setX().

func (*QPointF) Ry

func (this *QPointF) Ry() float64

Returns a reference to the y coordinate of this point.

Using a reference makes it possible to directly manipulate y. For example:

QPoint p(1, 2);
p.ry()++;   // p becomes (1, 3)

See also y() and setY().

func (*QPointF) SetCthis

func (this *QPointF) SetCthis(cthis unsafe.Pointer)

func (*QPointF) SetX

func (this *QPointF) SetX(x float64)

Sets the x coordinate of this point to the given x coordinate.

See also x() and setY().

func (*QPointF) SetY

func (this *QPointF) SetY(y float64)

Sets the y coordinate of this point to the given y coordinate.

See also y() and setX().

func (*QPointF) ToPoint

func (this *QPointF) ToPoint() *QPoint

func (*QPointF) X

func (this *QPointF) X() float64

Returns the x coordinate of this point.

See also setX() and rx().

func (*QPointF) Y

func (this *QPointF) Y() float64

Returns the y coordinate of this point.

See also setY() and ry().

type QPointF_ITF

type QPointF_ITF interface {
	QPointF_PTR() *QPointF
}

type QPoint_ITF

type QPoint_ITF interface {
	QPoint_PTR() *QPoint
}

type QProcess

type QProcess struct {
	*QIODevice
}

func NewQProcess

func NewQProcess(parent QObject_ITF) *QProcess

Constructs a QProcess object with the given parent.

func NewQProcessFromPointer

func NewQProcessFromPointer(cthis unsafe.Pointer) *QProcess

func NewQProcess__

func NewQProcess__() *QProcess

Constructs a QProcess object with the given parent.

func (*QProcess) Arguments

func (this *QProcess) Arguments() *QStringList

Returns the command line arguments the process was last started with.

This function was introduced in Qt 5.0.

See also setArguments() and start().

func (*QProcess) AtEnd

func (this *QProcess) AtEnd() bool

Reimplemented from QIODevice::atEnd().

Returns true if the process is not running, and no more data is available for reading; otherwise returns false.

func (*QProcess) BytesAvailable

func (this *QProcess) BytesAvailable() int64

Reimplemented from QIODevice::bytesAvailable().

func (*QProcess) BytesToWrite

func (this *QProcess) BytesToWrite() int64

Reimplemented from QIODevice::bytesToWrite().

func (*QProcess) CanReadLine

func (this *QProcess) CanReadLine() bool

Reimplemented from QIODevice::canReadLine().

This function operates on the current read channel.

See also readChannel() and setReadChannel().

func (*QProcess) Close

func (this *QProcess) Close()

Reimplemented from QIODevice::close().

Closes all communication with the process and kills it. After calling this function, QProcess will no longer emit readyRead(), and data can no longer be read or written.

func (*QProcess) CloseReadChannel

func (this *QProcess) CloseReadChannel(channel int)

Closes the read channel channel. After calling this function, QProcess will no longer receive data on the channel. Any data that has already been received is still available for reading.

Call this function to save memory, if you are not interested in the output of the process.

See also closeWriteChannel() and setReadChannel().

func (*QProcess) CloseWriteChannel

func (this *QProcess) CloseWriteChannel()

Schedules the write channel of QProcess to be closed. The channel will close once all data has been written to the process. After calling this function, any attempts to write to the process will fail.

Closing the write channel is necessary for programs that read input data until the channel has been closed. For example, the program "more" is used to display text data in a console on both Unix and Windows. But it will not display the text data until QProcess's write channel has been closed. Example:

QProcess more;
more.start("more");
more.write("Text to display");
more.closeWriteChannel();
// QProcess will emit readyRead() once "more" starts printing

The write channel is implicitly opened when start() is called.

See also closeReadChannel().

func (*QProcess) Environment

func (this *QProcess) Environment() *QStringList

func (*QProcess) Error

func (this *QProcess) Error() int

Returns the type of error that occurred last.

See also state().

func (*QProcess) ErrorOccurred

func (this *QProcess) ErrorOccurred(error int)

This signal is emitted when an error occurs with the process. The specified error describes the type of error that occurred.

This function was introduced in Qt 5.6.

func (*QProcess) Error_1

func (this *QProcess) Error_1(error int)

Returns the type of error that occurred last.

See also state().

func (*QProcess) Execute

func (this *QProcess) Execute(program string, arguments QStringList_ITF) int

Starts the program program with the arguments arguments in a new process, waits for it to finish, and then returns the exit code of the process. Any data the new process writes to the console is forwarded to the calling process.

The environment and working directory are inherited from the calling process.

Argument handling is identical to the respective start() overload.

If the process cannot be started, -2 is returned. If the process crashes, -1 is returned. Otherwise, the process' exit code is returned.

See also start().

func (*QProcess) Execute_1

func (this *QProcess) Execute_1(command string) int

Starts the program program with the arguments arguments in a new process, waits for it to finish, and then returns the exit code of the process. Any data the new process writes to the console is forwarded to the calling process.

The environment and working directory are inherited from the calling process.

Argument handling is identical to the respective start() overload.

If the process cannot be started, -2 is returned. If the process crashes, -1 is returned. Otherwise, the process' exit code is returned.

See also start().

func (*QProcess) ExitCode

func (this *QProcess) ExitCode() int

Returns the exit code of the last process that finished.

This value is not valid unless exitStatus() returns NormalExit.

func (*QProcess) ExitStatus

func (this *QProcess) ExitStatus() int

Returns the exit status of the last process that finished.

On Windows, if the process was terminated with TerminateProcess() from another application, this function will still return NormalExit unless the exit code is less than 0.

This function was introduced in Qt 4.1.

func (*QProcess) Finished

func (this *QProcess) Finished(exitCode int)

This signal is emitted when the process finishes. exitCode is the exit code of the process (only valid for normal exits), and exitStatus is the exit status. After the process has finished, the buffers in QProcess are still intact. You can still read any data that the process may have written before it finished.

Note: Signal finished is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:

connect(process, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished),
    [=](int exitCode, QProcess::ExitStatus exitStatus){ \/* ... *\/ });

See also exitStatus().

func (*QProcess) Finished_1

func (this *QProcess) Finished_1(exitCode int, exitStatus int)

This signal is emitted when the process finishes. exitCode is the exit code of the process (only valid for normal exits), and exitStatus is the exit status. After the process has finished, the buffers in QProcess are still intact. You can still read any data that the process may have written before it finished.

Note: Signal finished is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:

connect(process, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished),
    [=](int exitCode, QProcess::ExitStatus exitStatus){ \/* ... *\/ });

See also exitStatus().

func (*QProcess) GetCthis

func (this *QProcess) GetCthis() unsafe.Pointer

func (*QProcess) InheritReadData

func (this *QProcess) InheritReadData(f func(data string, maxlen int64) int64)

long long readData(char *, qint64)

func (*QProcess) InheritSetProcessState

func (this *QProcess) InheritSetProcessState(f func(state int))

void setProcessState(enum QProcess::ProcessState)

func (*QProcess) InheritSetupChildProcess

func (this *QProcess) InheritSetupChildProcess(f func())

void setupChildProcess()

func (*QProcess) InheritWriteData

func (this *QProcess) InheritWriteData(f func(data string, len_ int64) int64)

long long writeData(const char *, qint64)

func (*QProcess) InputChannelMode

func (this *QProcess) InputChannelMode() int

Returns the channel mode of the QProcess standard input channel.

This function was introduced in Qt 5.2.

See also setInputChannelMode() and InputChannelMode.

func (*QProcess) IsSequential

func (this *QProcess) IsSequential() bool

Reimplemented from QIODevice::isSequential().

func (*QProcess) Kill

func (this *QProcess) Kill()

Kills the current process, causing it to exit immediately.

On Windows, kill() uses TerminateProcess, and on Unix and macOS, the SIGKILL signal is sent to the process.

See also terminate().

func (*QProcess) MetaObject

func (this *QProcess) MetaObject() *QMetaObject

func (*QProcess) NewFromPointer

func (*QProcess) NewFromPointer(cthis unsafe.Pointer) *QProcess

func (*QProcess) NullDevice

func (this *QProcess) NullDevice() string

The null device of the operating system.

The returned file path uses native directory separators.

This function was introduced in Qt 5.2.

See also QProcess::setStandardInputFile(), QProcess::setStandardOutputFile(), and QProcess::setStandardErrorFile().

func (*QProcess) Open

func (this *QProcess) Open(mode int) bool

Reimplemented from QIODevice::open().

Starts the program set by setProgram() with arguments set by setArguments(). The OpenMode is set to mode.

This method is an alias for start(), and exists only to fully implement the interface defined by QIODevice.

See also start(), setProgram(), and setArguments().

func (*QProcess) Open__

func (this *QProcess) Open__() bool

Reimplemented from QIODevice::open().

Starts the program set by setProgram() with arguments set by setArguments(). The OpenMode is set to mode.

This method is an alias for start(), and exists only to fully implement the interface defined by QIODevice.

See also start(), setProgram(), and setArguments().

func (*QProcess) Pid

func (this *QProcess) Pid() int64

func (*QProcess) ProcessChannelMode

func (this *QProcess) ProcessChannelMode() int

Returns the channel mode of the QProcess standard output and standard error channels.

This function was introduced in Qt 4.2.

See also setProcessChannelMode(), ProcessChannelMode, and setReadChannel().

func (*QProcess) ProcessEnvironment

func (this *QProcess) ProcessEnvironment() *QProcessEnvironment

Returns the environment that QProcess will pass to its child process, or an empty object if no environment has been set using setEnvironment() or setProcessEnvironment(). If no environment has been set, the environment of the calling process will be used.

This function was introduced in Qt 4.6.

See also setProcessEnvironment(), setEnvironment(), and QProcessEnvironment::isEmpty().

func (*QProcess) ProcessId

func (this *QProcess) ProcessId() int64

Returns the native process identifier for the running process, if available. If no process is currently running, 0 is returned.

This function was introduced in Qt 5.3.

func (*QProcess) Program

func (this *QProcess) Program() string

Returns the program the process was last started with.

This function was introduced in Qt 5.0.

See also setProgram() and start().

func (*QProcess) QProcess_PTR

func (ptr *QProcess) QProcess_PTR() *QProcess

func (*QProcess) ReadAllStandardError

func (this *QProcess) ReadAllStandardError() *QByteArray

Regardless of the current read channel, this function returns all data available from the standard error of the process as a QByteArray.

See also readyReadStandardError(), readAllStandardOutput(), readChannel(), and setReadChannel().

func (*QProcess) ReadAllStandardOutput

func (this *QProcess) ReadAllStandardOutput() *QByteArray

Regardless of the current read channel, this function returns all data available from the standard output of the process as a QByteArray.

See also readyReadStandardOutput(), readAllStandardError(), readChannel(), and setReadChannel().

func (*QProcess) ReadChannel

func (this *QProcess) ReadChannel() int

Returns the current read channel of the QProcess.

See also setReadChannel().

func (*QProcess) ReadChannelMode

func (this *QProcess) ReadChannelMode() int

func (*QProcess) ReadData

func (this *QProcess) ReadData(data string, maxlen int64) int64

Reimplemented from QIODevice::readData().

func (*QProcess) SetArguments

func (this *QProcess) SetArguments(arguments QStringList_ITF)

Set the arguments to pass to the called program when starting the process. This function must be called before start().

This function was introduced in Qt 5.1.

See also start(), setProgram(), and arguments().

func (*QProcess) SetCthis

func (this *QProcess) SetCthis(cthis unsafe.Pointer)

func (*QProcess) SetEnvironment

func (this *QProcess) SetEnvironment(environment QStringList_ITF)

func (*QProcess) SetInputChannelMode

func (this *QProcess) SetInputChannelMode(mode int)

Sets the channel mode of the QProcess standard input channel to the mode specified. This mode will be used the next time start() is called.

This function was introduced in Qt 5.2.

See also inputChannelMode() and InputChannelMode.

func (*QProcess) SetProcessChannelMode

func (this *QProcess) SetProcessChannelMode(mode int)

Sets the channel mode of the QProcess standard output and standard error channels to the mode specified. This mode will be used the next time start() is called. For example:

QProcess builder;
builder.setProcessChannelMode(QProcess::MergedChannels);
builder.start("make", QStringList() << "-j2");

if (!builder.waitForFinished())
    qDebug() << "Make failed:" << builder.errorString();
else
    qDebug() << "Make output:" << builder.readAll();

This function was introduced in Qt 4.2.

See also processChannelMode(), ProcessChannelMode, and setReadChannel().

func (*QProcess) SetProcessEnvironment

func (this *QProcess) SetProcessEnvironment(environment QProcessEnvironment_ITF)

Sets the environment that QProcess will pass to the child process.

For example, the following code adds the environment variable TMPDIR:

QProcess process;
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
env.insert("TMPDIR", "C:\\MyApp\\temp"); // Add an environment variable
process.setProcessEnvironment(env);
process.start("myapp");

Note how, on Windows, environment variable names are case-insensitive.

This function was introduced in Qt 4.6.

See also processEnvironment(), QProcessEnvironment::systemEnvironment(), and setEnvironment().

func (*QProcess) SetProcessState

func (this *QProcess) SetProcessState(state int)

Sets the current state of the QProcess to the state specified.

See also state().

func (*QProcess) SetProgram

func (this *QProcess) SetProgram(program string)

Set the program to use when starting the process. This function must be called before start().

This function was introduced in Qt 5.1.

See also start(), setArguments(), and program().

func (*QProcess) SetReadChannel

func (this *QProcess) SetReadChannel(channel int)

Sets the current read channel of the QProcess to the given channel. The current input channel is used by the functions read(), readAll(), readLine(), and getChar(). It also determines which channel triggers QProcess to emit readyRead().

See also readChannel().

func (*QProcess) SetReadChannelMode

func (this *QProcess) SetReadChannelMode(mode int)

func (*QProcess) SetStandardErrorFile

func (this *QProcess) SetStandardErrorFile(fileName string, mode int)

Redirects the process' standard error to the file fileName. When the redirection is in place, the standard error read channel is closed: reading from it using read() will always fail, as will readAllStandardError(). The file will be appended to if mode is Append, otherwise, it will be truncated.

See setStandardOutputFile() for more information on how the file is opened.

Note: if setProcessChannelMode() was called with an argument of QProcess::MergedChannels, this function has no effect.

This function was introduced in Qt 4.2.

See also setStandardInputFile(), setStandardOutputFile(), and setStandardOutputProcess().

func (*QProcess) SetStandardErrorFile__

func (this *QProcess) SetStandardErrorFile__(fileName string)

Redirects the process' standard error to the file fileName. When the redirection is in place, the standard error read channel is closed: reading from it using read() will always fail, as will readAllStandardError(). The file will be appended to if mode is Append, otherwise, it will be truncated.

See setStandardOutputFile() for more information on how the file is opened.

Note: if setProcessChannelMode() was called with an argument of QProcess::MergedChannels, this function has no effect.

This function was introduced in Qt 4.2.

See also setStandardInputFile(), setStandardOutputFile(), and setStandardOutputProcess().

func (*QProcess) SetStandardInputFile

func (this *QProcess) SetStandardInputFile(fileName string)

Redirects the process' standard input to the file indicated by fileName. When an input redirection is in place, the QProcess object will be in read-only mode (calling write() will result in error).

To make the process read EOF right away, pass nullDevice() here. This is cleaner than using closeWriteChannel() before writing any data, because it can be set up prior to starting the process.

If the file fileName does not exist at the moment start() is called or is not readable, starting the process will fail.

Calling setStandardInputFile() after the process has started has no effect.

This function was introduced in Qt 4.2.

See also setStandardOutputFile(), setStandardErrorFile(), and setStandardOutputProcess().

func (*QProcess) SetStandardOutputFile

func (this *QProcess) SetStandardOutputFile(fileName string, mode int)

Redirects the process' standard output to the file fileName. When the redirection is in place, the standard output read channel is closed: reading from it using read() will always fail, as will readAllStandardOutput().

To discard all standard output from the process, pass nullDevice() here. This is more efficient than simply never reading the standard output, as no QProcess buffers are filled.

If the file fileName doesn't exist at the moment start() is called, it will be created. If it cannot be created, the starting will fail.

If the file exists and mode is QIODevice::Truncate, the file will be truncated. Otherwise (if mode is QIODevice::Append), the file will be appended to.

Calling setStandardOutputFile() after the process has started has no effect.

This function was introduced in Qt 4.2.

See also setStandardInputFile(), setStandardErrorFile(), and setStandardOutputProcess().

func (*QProcess) SetStandardOutputFile__

func (this *QProcess) SetStandardOutputFile__(fileName string)

Redirects the process' standard output to the file fileName. When the redirection is in place, the standard output read channel is closed: reading from it using read() will always fail, as will readAllStandardOutput().

To discard all standard output from the process, pass nullDevice() here. This is more efficient than simply never reading the standard output, as no QProcess buffers are filled.

If the file fileName doesn't exist at the moment start() is called, it will be created. If it cannot be created, the starting will fail.

If the file exists and mode is QIODevice::Truncate, the file will be truncated. Otherwise (if mode is QIODevice::Append), the file will be appended to.

Calling setStandardOutputFile() after the process has started has no effect.

This function was introduced in Qt 4.2.

See also setStandardInputFile(), setStandardErrorFile(), and setStandardOutputProcess().

func (*QProcess) SetStandardOutputProcess

func (this *QProcess) SetStandardOutputProcess(destination QProcess_ITF)

Pipes the standard output stream of this process to the destination process' standard input.

The following shell command:

command1 | command2

Can be accomplished with QProcess with the following code:

QProcess process1;
QProcess process2;

process1.setStandardOutputProcess(&process2);

process1.start("command1");
process2.start("command2");

This function was introduced in Qt 4.2.

func (*QProcess) SetWorkingDirectory

func (this *QProcess) SetWorkingDirectory(dir string)

Sets the working directory to dir. QProcess will start the process in this directory. The default behavior is to start the process in the working directory of the calling process.

Note: On QNX, this may cause all application threads to temporarily freeze.

See also workingDirectory() and start().

func (*QProcess) SetupChildProcess

func (this *QProcess) SetupChildProcess()

This function is called in the child process context just before the program is executed on Unix or macOS (i.e., after fork(), but before execve()). Reimplement this function to do last minute initialization of the child process. Example:

class SandboxProcess : public QProcess
{
    ...
 protected:
     void setupChildProcess();
    ...
};

void SandboxProcess::setupChildProcess()
{
    // Drop all privileges in the child process, and enter
    // a chroot jail.
#if defined Q_OS_UNIX
    ::setgroups(0, 0);
    ::chroot("/etc/safe");
    ::chdir("/");
    ::setgid(safeGid);
    ::setuid(safeUid);
    ::umask(0);
#endif
}

You cannot exit the process (by calling exit(), for instance) from this function. If you need to stop the program before it starts execution, your workaround is to emit finished() and then call exit().

Warning: This function is called by QProcess on Unix and macOS only. On Windows and QNX, it is not called.

func (*QProcess) Start

func (this *QProcess) Start(program string, arguments QStringList_ITF, mode int)

Starts the given program in a new process, passing the command line arguments in arguments.

The QProcess object will immediately enter the Starting state. If the process starts successfully, QProcess will emit started(); otherwise, errorOccurred() will be emitted.

Note: Processes are started asynchronously, which means the started() and errorOccurred() signals may be delayed. Call waitForStarted() to make sure the process has started (or has failed to start) and those signals have been emitted.

Note: No further splitting of the arguments is performed.

Windows: The arguments are quoted and joined into a command line that is compatible with the CommandLineToArgvW() Windows function. For programs that have different command line quoting requirements, you need to use setNativeArguments(). One notable program that does not follow the CommandLineToArgvW() rules is cmd.exe and, by consequence, all batch scripts.

The OpenMode is set to mode.

If the QProcess object is already running a process, a warning may be printed at the console, and the existing process will continue running unaffected.

See also processId(), started(), waitForStarted(), and setNativeArguments().

func (*QProcess) StartDetached

func (this *QProcess) StartDetached(pid unsafe.Pointer) bool

Starts the program set by setProgram() with arguments set by setArguments() in a new process, and detaches from it. Returns true on success; otherwise returns false. If the calling process exits, the detached process will continue to run unaffected.

Unix: The started process will run in its own session and act like a daemon.

The process will be started in the directory set by setWorkingDirectory(). If workingDirectory() is empty, the working directory is inherited from the calling process.

Note: On QNX, this may cause all application threads to temporarily freeze.

If the function is successful then *pid is set to the process identifier of the started process. Note that the child process may exit and the PID may become invalid without notice. Furthermore, after the child process exits, the same PID may be recycled and used by a completely different process. User code should be careful when using this variable, especially if one intends to forcibly terminate the process by operating system means.

Only the following property setters are supported by startDetached():

setArguments() setCreateProcessArgumentsModifier() setNativeArguments() setProcessEnvironment() setProgram() setStandardErrorFile() setStandardInputFile() setStandardOutputFile() setWorkingDirectory()

All other properties of the QProcess object are ignored.

This function was introduced in Qt 5.10.

See also start(), startDetached(const QString &program, const QStringList &arguments, const QString &workingDirectory, qint64 *pid), and startDetached(const QString &command).

func (*QProcess) StartDetached_1

func (this *QProcess) StartDetached_1(program string, arguments QStringList_ITF, workingDirectory string, pid unsafe.Pointer) bool

Starts the program set by setProgram() with arguments set by setArguments() in a new process, and detaches from it. Returns true on success; otherwise returns false. If the calling process exits, the detached process will continue to run unaffected.

Unix: The started process will run in its own session and act like a daemon.

The process will be started in the directory set by setWorkingDirectory(). If workingDirectory() is empty, the working directory is inherited from the calling process.

Note: On QNX, this may cause all application threads to temporarily freeze.

If the function is successful then *pid is set to the process identifier of the started process. Note that the child process may exit and the PID may become invalid without notice. Furthermore, after the child process exits, the same PID may be recycled and used by a completely different process. User code should be careful when using this variable, especially if one intends to forcibly terminate the process by operating system means.

Only the following property setters are supported by startDetached():

setArguments() setCreateProcessArgumentsModifier() setNativeArguments() setProcessEnvironment() setProgram() setStandardErrorFile() setStandardInputFile() setStandardOutputFile() setWorkingDirectory()

All other properties of the QProcess object are ignored.

This function was introduced in Qt 5.10.

See also start(), startDetached(const QString &program, const QStringList &arguments, const QString &workingDirectory, qint64 *pid), and startDetached(const QString &command).

func (*QProcess) StartDetached_1_

func (this *QProcess) StartDetached_1_(program string, arguments QStringList_ITF, workingDirectory string) bool

Starts the program set by setProgram() with arguments set by setArguments() in a new process, and detaches from it. Returns true on success; otherwise returns false. If the calling process exits, the detached process will continue to run unaffected.

Unix: The started process will run in its own session and act like a daemon.

The process will be started in the directory set by setWorkingDirectory(). If workingDirectory() is empty, the working directory is inherited from the calling process.

Note: On QNX, this may cause all application threads to temporarily freeze.

If the function is successful then *pid is set to the process identifier of the started process. Note that the child process may exit and the PID may become invalid without notice. Furthermore, after the child process exits, the same PID may be recycled and used by a completely different process. User code should be careful when using this variable, especially if one intends to forcibly terminate the process by operating system means.

Only the following property setters are supported by startDetached():

setArguments() setCreateProcessArgumentsModifier() setNativeArguments() setProcessEnvironment() setProgram() setStandardErrorFile() setStandardInputFile() setStandardOutputFile() setWorkingDirectory()

All other properties of the QProcess object are ignored.

This function was introduced in Qt 5.10.

See also start(), startDetached(const QString &program, const QStringList &arguments, const QString &workingDirectory, qint64 *pid), and startDetached(const QString &command).

func (*QProcess) StartDetached_2

func (this *QProcess) StartDetached_2(program string, arguments QStringList_ITF) bool

Starts the program set by setProgram() with arguments set by setArguments() in a new process, and detaches from it. Returns true on success; otherwise returns false. If the calling process exits, the detached process will continue to run unaffected.

Unix: The started process will run in its own session and act like a daemon.

The process will be started in the directory set by setWorkingDirectory(). If workingDirectory() is empty, the working directory is inherited from the calling process.

Note: On QNX, this may cause all application threads to temporarily freeze.

If the function is successful then *pid is set to the process identifier of the started process. Note that the child process may exit and the PID may become invalid without notice. Furthermore, after the child process exits, the same PID may be recycled and used by a completely different process. User code should be careful when using this variable, especially if one intends to forcibly terminate the process by operating system means.

Only the following property setters are supported by startDetached():

setArguments() setCreateProcessArgumentsModifier() setNativeArguments() setProcessEnvironment() setProgram() setStandardErrorFile() setStandardInputFile() setStandardOutputFile() setWorkingDirectory()

All other properties of the QProcess object are ignored.

This function was introduced in Qt 5.10.

See also start(), startDetached(const QString &program, const QStringList &arguments, const QString &workingDirectory, qint64 *pid), and startDetached(const QString &command).

func (*QProcess) StartDetached_3

func (this *QProcess) StartDetached_3(command string) bool

Starts the program set by setProgram() with arguments set by setArguments() in a new process, and detaches from it. Returns true on success; otherwise returns false. If the calling process exits, the detached process will continue to run unaffected.

Unix: The started process will run in its own session and act like a daemon.

The process will be started in the directory set by setWorkingDirectory(). If workingDirectory() is empty, the working directory is inherited from the calling process.

Note: On QNX, this may cause all application threads to temporarily freeze.

If the function is successful then *pid is set to the process identifier of the started process. Note that the child process may exit and the PID may become invalid without notice. Furthermore, after the child process exits, the same PID may be recycled and used by a completely different process. User code should be careful when using this variable, especially if one intends to forcibly terminate the process by operating system means.

Only the following property setters are supported by startDetached():

setArguments() setCreateProcessArgumentsModifier() setNativeArguments() setProcessEnvironment() setProgram() setStandardErrorFile() setStandardInputFile() setStandardOutputFile() setWorkingDirectory()

All other properties of the QProcess object are ignored.

This function was introduced in Qt 5.10.

See also start(), startDetached(const QString &program, const QStringList &arguments, const QString &workingDirectory, qint64 *pid), and startDetached(const QString &command).

func (*QProcess) StartDetached__

func (this *QProcess) StartDetached__() bool

Starts the program set by setProgram() with arguments set by setArguments() in a new process, and detaches from it. Returns true on success; otherwise returns false. If the calling process exits, the detached process will continue to run unaffected.

Unix: The started process will run in its own session and act like a daemon.

The process will be started in the directory set by setWorkingDirectory(). If workingDirectory() is empty, the working directory is inherited from the calling process.

Note: On QNX, this may cause all application threads to temporarily freeze.

If the function is successful then *pid is set to the process identifier of the started process. Note that the child process may exit and the PID may become invalid without notice. Furthermore, after the child process exits, the same PID may be recycled and used by a completely different process. User code should be careful when using this variable, especially if one intends to forcibly terminate the process by operating system means.

Only the following property setters are supported by startDetached():

setArguments() setCreateProcessArgumentsModifier() setNativeArguments() setProcessEnvironment() setProgram() setStandardErrorFile() setStandardInputFile() setStandardOutputFile() setWorkingDirectory()

All other properties of the QProcess object are ignored.

This function was introduced in Qt 5.10.

See also start(), startDetached(const QString &program, const QStringList &arguments, const QString &workingDirectory, qint64 *pid), and startDetached(const QString &command).

func (*QProcess) Start_1

func (this *QProcess) Start_1(command string, mode int)

Starts the given program in a new process, passing the command line arguments in arguments.

The QProcess object will immediately enter the Starting state. If the process starts successfully, QProcess will emit started(); otherwise, errorOccurred() will be emitted.

Note: Processes are started asynchronously, which means the started() and errorOccurred() signals may be delayed. Call waitForStarted() to make sure the process has started (or has failed to start) and those signals have been emitted.

Note: No further splitting of the arguments is performed.

Windows: The arguments are quoted and joined into a command line that is compatible with the CommandLineToArgvW() Windows function. For programs that have different command line quoting requirements, you need to use setNativeArguments(). One notable program that does not follow the CommandLineToArgvW() rules is cmd.exe and, by consequence, all batch scripts.

The OpenMode is set to mode.

If the QProcess object is already running a process, a warning may be printed at the console, and the existing process will continue running unaffected.

See also processId(), started(), waitForStarted(), and setNativeArguments().

func (*QProcess) Start_1_

func (this *QProcess) Start_1_(command string)

Starts the given program in a new process, passing the command line arguments in arguments.

The QProcess object will immediately enter the Starting state. If the process starts successfully, QProcess will emit started(); otherwise, errorOccurred() will be emitted.

Note: Processes are started asynchronously, which means the started() and errorOccurred() signals may be delayed. Call waitForStarted() to make sure the process has started (or has failed to start) and those signals have been emitted.

Note: No further splitting of the arguments is performed.

Windows: The arguments are quoted and joined into a command line that is compatible with the CommandLineToArgvW() Windows function. For programs that have different command line quoting requirements, you need to use setNativeArguments(). One notable program that does not follow the CommandLineToArgvW() rules is cmd.exe and, by consequence, all batch scripts.

The OpenMode is set to mode.

If the QProcess object is already running a process, a warning may be printed at the console, and the existing process will continue running unaffected.

See also processId(), started(), waitForStarted(), and setNativeArguments().

func (*QProcess) Start_2

func (this *QProcess) Start_2(mode int)

Starts the given program in a new process, passing the command line arguments in arguments.

The QProcess object will immediately enter the Starting state. If the process starts successfully, QProcess will emit started(); otherwise, errorOccurred() will be emitted.

Note: Processes are started asynchronously, which means the started() and errorOccurred() signals may be delayed. Call waitForStarted() to make sure the process has started (or has failed to start) and those signals have been emitted.

Note: No further splitting of the arguments is performed.

Windows: The arguments are quoted and joined into a command line that is compatible with the CommandLineToArgvW() Windows function. For programs that have different command line quoting requirements, you need to use setNativeArguments(). One notable program that does not follow the CommandLineToArgvW() rules is cmd.exe and, by consequence, all batch scripts.

The OpenMode is set to mode.

If the QProcess object is already running a process, a warning may be printed at the console, and the existing process will continue running unaffected.

See also processId(), started(), waitForStarted(), and setNativeArguments().

func (*QProcess) Start_2_

func (this *QProcess) Start_2_()

Starts the given program in a new process, passing the command line arguments in arguments.

The QProcess object will immediately enter the Starting state. If the process starts successfully, QProcess will emit started(); otherwise, errorOccurred() will be emitted.

Note: Processes are started asynchronously, which means the started() and errorOccurred() signals may be delayed. Call waitForStarted() to make sure the process has started (or has failed to start) and those signals have been emitted.

Note: No further splitting of the arguments is performed.

Windows: The arguments are quoted and joined into a command line that is compatible with the CommandLineToArgvW() Windows function. For programs that have different command line quoting requirements, you need to use setNativeArguments(). One notable program that does not follow the CommandLineToArgvW() rules is cmd.exe and, by consequence, all batch scripts.

The OpenMode is set to mode.

If the QProcess object is already running a process, a warning may be printed at the console, and the existing process will continue running unaffected.

See also processId(), started(), waitForStarted(), and setNativeArguments().

func (*QProcess) Start__

func (this *QProcess) Start__(program string, arguments QStringList_ITF)

Starts the given program in a new process, passing the command line arguments in arguments.

The QProcess object will immediately enter the Starting state. If the process starts successfully, QProcess will emit started(); otherwise, errorOccurred() will be emitted.

Note: Processes are started asynchronously, which means the started() and errorOccurred() signals may be delayed. Call waitForStarted() to make sure the process has started (or has failed to start) and those signals have been emitted.

Note: No further splitting of the arguments is performed.

Windows: The arguments are quoted and joined into a command line that is compatible with the CommandLineToArgvW() Windows function. For programs that have different command line quoting requirements, you need to use setNativeArguments(). One notable program that does not follow the CommandLineToArgvW() rules is cmd.exe and, by consequence, all batch scripts.

The OpenMode is set to mode.

If the QProcess object is already running a process, a warning may be printed at the console, and the existing process will continue running unaffected.

See also processId(), started(), waitForStarted(), and setNativeArguments().

func (*QProcess) State

func (this *QProcess) State() int

Returns the current state of the process.

See also stateChanged() and error().

func (*QProcess) SystemEnvironment

func (this *QProcess) SystemEnvironment() *QStringList

Returns the environment of the calling process as a list of key=value pairs. Example:

QStringList environment = QProcess::systemEnvironment();
// environment = {"PATH=/usr/bin:/usr/local/bin",
//                "USER=greg", "HOME=/home/greg"}

This function does not cache the system environment. Therefore, it's possible to obtain an updated version of the environment if low-level C library functions like setenv or putenv have been called.

However, note that repeated calls to this function will recreate the list of environment variables, which is a non-trivial operation.

Note: For new code, it is recommended to use QProcessEnvironment::systemEnvironment()

This function was introduced in Qt 4.1.

See also QProcessEnvironment::systemEnvironment() and setProcessEnvironment().

func (*QProcess) Terminate

func (this *QProcess) Terminate()

Attempts to terminate the process.

The process may not exit as a result of calling this function (it is given the chance to prompt the user for any unsaved files, etc).

On Windows, terminate() posts a WM_CLOSE message to all top-level windows of the process and then to the main thread of the process itself. On Unix and macOS the SIGTERM signal is sent.

Console applications on Windows that do not run an event loop, or whose event loop does not handle the WM_CLOSE message, can only be terminated by calling kill().

See also kill().

func (*QProcess) WaitForBytesWritten

func (this *QProcess) WaitForBytesWritten(msecs int) bool

Reimplemented from QIODevice::waitForBytesWritten().

func (*QProcess) WaitForBytesWritten__

func (this *QProcess) WaitForBytesWritten__() bool

Reimplemented from QIODevice::waitForBytesWritten().

func (*QProcess) WaitForFinished

func (this *QProcess) WaitForFinished(msecs int) bool

Blocks until the process has finished and the finished() signal has been emitted, or until msecs milliseconds have passed.

Returns true if the process finished; otherwise returns false (if the operation timed out, if an error occurred, or if this QProcess is already finished).

This function can operate without an event loop. It is useful when writing non-GUI applications and when performing I/O operations in a non-GUI thread.

Warning: Calling this function from the main (GUI) thread might cause your user interface to freeze.

If msecs is -1, this function will not time out.

See also finished(), waitForStarted(), waitForReadyRead(), and waitForBytesWritten().

func (*QProcess) WaitForFinished__

func (this *QProcess) WaitForFinished__() bool

Blocks until the process has finished and the finished() signal has been emitted, or until msecs milliseconds have passed.

Returns true if the process finished; otherwise returns false (if the operation timed out, if an error occurred, or if this QProcess is already finished).

This function can operate without an event loop. It is useful when writing non-GUI applications and when performing I/O operations in a non-GUI thread.

Warning: Calling this function from the main (GUI) thread might cause your user interface to freeze.

If msecs is -1, this function will not time out.

See also finished(), waitForStarted(), waitForReadyRead(), and waitForBytesWritten().

func (*QProcess) WaitForReadyRead

func (this *QProcess) WaitForReadyRead(msecs int) bool

Reimplemented from QIODevice::waitForReadyRead().

func (*QProcess) WaitForReadyRead__

func (this *QProcess) WaitForReadyRead__() bool

Reimplemented from QIODevice::waitForReadyRead().

func (*QProcess) WaitForStarted

func (this *QProcess) WaitForStarted(msecs int) bool

Blocks until the process has started and the started() signal has been emitted, or until msecs milliseconds have passed.

Returns true if the process was started successfully; otherwise returns false (if the operation timed out or if an error occurred).

This function can operate without an event loop. It is useful when writing non-GUI applications and when performing I/O operations in a non-GUI thread.

Warning: Calling this function from the main (GUI) thread might cause your user interface to freeze.

If msecs is -1, this function will not time out.

Note: On some UNIX operating systems, this function may return true but the process may later report a QProcess::FailedToStart error.

See also started(), waitForReadyRead(), waitForBytesWritten(), and waitForFinished().

func (*QProcess) WaitForStarted__

func (this *QProcess) WaitForStarted__() bool

Blocks until the process has started and the started() signal has been emitted, or until msecs milliseconds have passed.

Returns true if the process was started successfully; otherwise returns false (if the operation timed out or if an error occurred).

This function can operate without an event loop. It is useful when writing non-GUI applications and when performing I/O operations in a non-GUI thread.

Warning: Calling this function from the main (GUI) thread might cause your user interface to freeze.

If msecs is -1, this function will not time out.

Note: On some UNIX operating systems, this function may return true but the process may later report a QProcess::FailedToStart error.

See also started(), waitForReadyRead(), waitForBytesWritten(), and waitForFinished().

func (*QProcess) WorkingDirectory

func (this *QProcess) WorkingDirectory() string

If QProcess has been assigned a working directory, this function returns the working directory that the QProcess will enter before the program has started. Otherwise, (i.e., no directory has been assigned,) an empty string is returned, and QProcess will use the application's current working directory instead.

See also setWorkingDirectory().

func (*QProcess) WriteData

func (this *QProcess) WriteData(data string, len_ int64) int64

Reimplemented from QIODevice::writeData().

type QProcessEnvironment

type QProcessEnvironment struct {
	*qtrt.CObject
}

func NewQProcessEnvironment

func NewQProcessEnvironment() *QProcessEnvironment

func NewQProcessEnvironmentFromPointer

func NewQProcessEnvironmentFromPointer(cthis unsafe.Pointer) *QProcessEnvironment

func QProcessEnvironment_SystemEnvironment

func QProcessEnvironment_SystemEnvironment() *QProcessEnvironment

func (*QProcessEnvironment) Clear

func (this *QProcessEnvironment) Clear()

func (*QProcessEnvironment) Contains

func (this *QProcessEnvironment) Contains(name string) bool

func (*QProcessEnvironment) GetCthis

func (this *QProcessEnvironment) GetCthis() unsafe.Pointer

func (*QProcessEnvironment) IsEmpty

func (this *QProcessEnvironment) IsEmpty() bool

func (*QProcessEnvironment) Keys

func (this *QProcessEnvironment) Keys() *QStringList

func (*QProcessEnvironment) NewFromPointer

func (*QProcessEnvironment) NewFromPointer(cthis unsafe.Pointer) *QProcessEnvironment

func (*QProcessEnvironment) Operator_equal

func (this *QProcessEnvironment) Operator_equal(other unsafe.Pointer) *QProcessEnvironment

func (*QProcessEnvironment) Operator_equal_1

func (this *QProcessEnvironment) Operator_equal_1(other QProcessEnvironment_ITF) *QProcessEnvironment

func (*QProcessEnvironment) Operator_equal_equal

func (this *QProcessEnvironment) Operator_equal_equal(other QProcessEnvironment_ITF) bool

func (*QProcessEnvironment) Operator_not_equal

func (this *QProcessEnvironment) Operator_not_equal(other QProcessEnvironment_ITF) bool

func (*QProcessEnvironment) QProcessEnvironment_PTR

func (ptr *QProcessEnvironment) QProcessEnvironment_PTR() *QProcessEnvironment

func (*QProcessEnvironment) Remove

func (this *QProcessEnvironment) Remove(name string)

func (*QProcessEnvironment) SetCthis

func (this *QProcessEnvironment) SetCthis(cthis unsafe.Pointer)

func (*QProcessEnvironment) Swap

func (this *QProcessEnvironment) Swap(other QProcessEnvironment_ITF)

func (*QProcessEnvironment) SystemEnvironment

func (this *QProcessEnvironment) SystemEnvironment() *QProcessEnvironment

Returns the environment of the calling process as a list of key=value pairs. Example:

QStringList environment = QProcess::systemEnvironment();
// environment = {"PATH=/usr/bin:/usr/local/bin",
//                "USER=greg", "HOME=/home/greg"}

This function does not cache the system environment. Therefore, it's possible to obtain an updated version of the environment if low-level C library functions like setenv or putenv have been called.

However, note that repeated calls to this function will recreate the list of environment variables, which is a non-trivial operation.

Note: For new code, it is recommended to use QProcessEnvironment::systemEnvironment()

This function was introduced in Qt 4.1.

See also QProcessEnvironment::systemEnvironment() and setProcessEnvironment().

func (*QProcessEnvironment) ToStringList

func (this *QProcessEnvironment) ToStringList() *QStringList

func (*QProcessEnvironment) Value

func (this *QProcessEnvironment) Value(name string, defaultValue string) string

func (*QProcessEnvironment) Value__

func (this *QProcessEnvironment) Value__(name string) string

type QProcessEnvironment_ITF

type QProcessEnvironment_ITF interface {
	QProcessEnvironment_PTR() *QProcessEnvironment
}

type QProcess_ITF

type QProcess_ITF interface {
	QIODevice_ITF
	QProcess_PTR() *QProcess
}

type QProcess__ExitStatus

type QProcess__ExitStatus = int

This enum describes the different exit statuses of QProcess.

See also exitStatus().

const QProcess__CrashExit QProcess__ExitStatus = 1

The process crashed.

const QProcess__NormalExit QProcess__ExitStatus = 0

The process exited normally.

type QProcess__InputChannelMode

type QProcess__InputChannelMode = int

This enum describes the process input channel modes of QProcess. Pass one of these values to setInputChannelMode() to set the current write channel mode.

This enum was introduced or modified in Qt 5.2.

See also setInputChannelMode().

const QProcess__ForwardedInputChannel QProcess__InputChannelMode = 1

QProcess forwards the input of the main process onto the running process. The child process reads its standard input from the same source as the main process. Note that the main process must not try to read its standard input while the child process is running.

const QProcess__ManagedInputChannel QProcess__InputChannelMode = 0

QProcess manages the input of the running process. This is the default input channel mode of QProcess.

type QProcess__ProcessChannel

type QProcess__ProcessChannel = int

This enum describes the process channels used by the running process. Pass one of these values to setReadChannel() to set the current read channel of QProcess.

See also setReadChannel().

const QProcess__StandardError QProcess__ProcessChannel = 1

The standard error (stderr) of the running process.

const QProcess__StandardOutput QProcess__ProcessChannel = 0

The standard output (stdout) of the running process.

type QProcess__ProcessChannelMode

type QProcess__ProcessChannelMode = int

This enum describes the process output channel modes of QProcess. Pass one of these values to setProcessChannelMode() to set the current read channel mode.

Note: Windows intentionally suppresses output from GUI-only applications to inherited consoles. This does not apply to output redirected to files or pipes. To forward the output of GUI-only applications on the console nonetheless, you must use SeparateChannels and do the forwarding yourself by reading the output and writing it to the appropriate output channels.

See also setProcessChannelMode().

const QProcess__ForwardedChannels QProcess__ProcessChannelMode = 2

QProcess forwards the output of the running process onto the main process. Anything the child process writes to its standard output and standard error will be written to the standard output and standard error of the main process.

const QProcess__ForwardedErrorChannel QProcess__ProcessChannelMode = 4
const QProcess__ForwardedOutputChannel QProcess__ProcessChannelMode = 3
const QProcess__MergedChannels QProcess__ProcessChannelMode = 1

QProcess merges the output of the running process into the standard output channel (stdout). The standard error channel (stderr) will not receive any data. The standard output and standard error data of the running process are interleaved.

const QProcess__SeparateChannels QProcess__ProcessChannelMode = 0

QProcess manages the output of the running process, keeping standard output and standard error data in separate internal buffers. You can select the QProcess's current read channel by calling setReadChannel(). This is the default channel mode of QProcess.

type QProcess__ProcessError

type QProcess__ProcessError = int

This enum describes the different types of errors that are reported by QProcess.

See also error().

const QProcess__Crashed QProcess__ProcessError = 1

The process crashed some time after starting successfully.

const QProcess__FailedToStart QProcess__ProcessError = 0

The process failed to start. Either the invoked program is missing, or you may have insufficient permissions to invoke the program.

const QProcess__ReadError QProcess__ProcessError = 3

An error occurred when attempting to read from the process. For example, the process may not be running.

const QProcess__Timedout QProcess__ProcessError = 2

The last waitFor...() function timed out. The state of QProcess is unchanged, and you can try calling waitFor...() again.

const QProcess__UnknownError QProcess__ProcessError = 5

An unknown error occurred. This is the default return value of error().

const QProcess__WriteError QProcess__ProcessError = 4

An error occurred when attempting to write to the process. For example, the process may not be running, or it may have closed its input channel.

type QProcess__ProcessState

type QProcess__ProcessState = int

This enum describes the different states of QProcess.

See also state().

const QProcess__NotRunning QProcess__ProcessState = 0

The process is not running.

const QProcess__Running QProcess__ProcessState = 2

The process is running and is ready for reading and writing.

const QProcess__Starting QProcess__ProcessState = 1

The process is starting, but the program has not yet been invoked.

type QPropertyAnimation

type QPropertyAnimation struct {
	*QVariantAnimation
}

func NewQPropertyAnimation

func NewQPropertyAnimation(parent QObject_ITF) *QPropertyAnimation

Construct a QPropertyAnimation object. parent is passed to QObject's constructor.

func NewQPropertyAnimationFromPointer

func NewQPropertyAnimationFromPointer(cthis unsafe.Pointer) *QPropertyAnimation

func NewQPropertyAnimation_1

func NewQPropertyAnimation_1(target QObject_ITF, propertyName QByteArray_ITF, parent QObject_ITF) *QPropertyAnimation

Construct a QPropertyAnimation object. parent is passed to QObject's constructor.

func NewQPropertyAnimation_1_

func NewQPropertyAnimation_1_(target QObject_ITF, propertyName QByteArray_ITF) *QPropertyAnimation

Construct a QPropertyAnimation object. parent is passed to QObject's constructor.

func NewQPropertyAnimation__

func NewQPropertyAnimation__() *QPropertyAnimation

Construct a QPropertyAnimation object. parent is passed to QObject's constructor.

func (*QPropertyAnimation) Event

func (this *QPropertyAnimation) Event(event QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QPropertyAnimation) GetCthis

func (this *QPropertyAnimation) GetCthis() unsafe.Pointer

func (*QPropertyAnimation) InheritEvent

func (this *QPropertyAnimation) InheritEvent(f func(event *QEvent) bool)

bool event(class QEvent *)

func (*QPropertyAnimation) InheritUpdateCurrentValue

func (this *QPropertyAnimation) InheritUpdateCurrentValue(f func(value *QVariant))

void updateCurrentValue(const class QVariant &)

func (*QPropertyAnimation) InheritUpdateState

func (this *QPropertyAnimation) InheritUpdateState(f func(newState int, oldState int))

void updateState(class QAbstractAnimation::State, class QAbstractAnimation::State)

func (*QPropertyAnimation) MetaObject

func (this *QPropertyAnimation) MetaObject() *QMetaObject

func (*QPropertyAnimation) NewFromPointer

func (*QPropertyAnimation) NewFromPointer(cthis unsafe.Pointer) *QPropertyAnimation

func (*QPropertyAnimation) PropertyName

func (this *QPropertyAnimation) PropertyName() *QByteArray

func (*QPropertyAnimation) QPropertyAnimation_PTR

func (ptr *QPropertyAnimation) QPropertyAnimation_PTR() *QPropertyAnimation

func (*QPropertyAnimation) SetCthis

func (this *QPropertyAnimation) SetCthis(cthis unsafe.Pointer)

func (*QPropertyAnimation) SetPropertyName

func (this *QPropertyAnimation) SetPropertyName(propertyName QByteArray_ITF)

func (*QPropertyAnimation) SetTargetObject

func (this *QPropertyAnimation) SetTargetObject(target QObject_ITF)

func (*QPropertyAnimation) TargetObject

func (this *QPropertyAnimation) TargetObject() *QObject

func (*QPropertyAnimation) UpdateCurrentValue

func (this *QPropertyAnimation) UpdateCurrentValue(value QVariant_ITF)

Reimplemented from QVariantAnimation::updateCurrentValue().

This virtual function is called by QVariantAnimation whenever the current value changes. value is the new, updated value. It updates the current value of the property on the target object.

See also currentValue and currentTime.

func (*QPropertyAnimation) UpdateState

func (this *QPropertyAnimation) UpdateState(newState int, oldState int)

Reimplemented from QAbstractAnimation::updateState().

If the startValue is not defined when the state of the animation changes from Stopped to Running, the current property value is used as the initial value for the animation.

type QPropertyAnimation_ITF

type QPropertyAnimation_ITF interface {
	QVariantAnimation_ITF
	QPropertyAnimation_PTR() *QPropertyAnimation
}

type QRandomGenerator

type QRandomGenerator struct {
	*qtrt.CObject
}

func NewQRandomGenerator

func NewQRandomGenerator(seedValue uint) *QRandomGenerator

func NewQRandomGeneratorFromPointer

func NewQRandomGeneratorFromPointer(cthis unsafe.Pointer) *QRandomGenerator

func NewQRandomGenerator_1

func NewQRandomGenerator_1(seedBuffer unsafe.Pointer, len_ int64) *QRandomGenerator

func NewQRandomGenerator_2

func NewQRandomGenerator_2(begin unsafe.Pointer, end unsafe.Pointer) *QRandomGenerator

func NewQRandomGenerator_3

func NewQRandomGenerator_3(arg0 int) *QRandomGenerator

func NewQRandomGenerator__

func NewQRandomGenerator__() *QRandomGenerator

func QRandomGenerator_Global

func QRandomGenerator_Global() *QRandomGenerator

func QRandomGenerator_SecurelySeeded

func QRandomGenerator_SecurelySeeded() *QRandomGenerator

func QRandomGenerator_System

func QRandomGenerator_System() *QRandomGenerator

func (*QRandomGenerator) Bounded

func (this *QRandomGenerator) Bounded(highest float64) float64

func (*QRandomGenerator) Bounded_1

func (this *QRandomGenerator) Bounded_1(highest uint) uint

func (*QRandomGenerator) Bounded_2

func (this *QRandomGenerator) Bounded_2(highest int) int

func (*QRandomGenerator) Bounded_3

func (this *QRandomGenerator) Bounded_3(lowest uint, highest uint) uint

func (*QRandomGenerator) Bounded_4

func (this *QRandomGenerator) Bounded_4(lowest int, highest int) int

func (*QRandomGenerator) Discard

func (this *QRandomGenerator) Discard(z uint64)

func (*QRandomGenerator) Generate

func (this *QRandomGenerator) Generate() uint

func (*QRandomGenerator) Generate64

func (this *QRandomGenerator) Generate64() uint64

func (*QRandomGenerator) GenerateDouble

func (this *QRandomGenerator) GenerateDouble() float64

func (*QRandomGenerator) Generate_1

func (this *QRandomGenerator) Generate_1(begin unsafe.Pointer, end unsafe.Pointer)

func (*QRandomGenerator) GetCthis

func (this *QRandomGenerator) GetCthis() unsafe.Pointer

func (*QRandomGenerator) Global

func (this *QRandomGenerator) Global() *QRandomGenerator

func (*QRandomGenerator) Max

func (this *QRandomGenerator) Max() uint

func (*QRandomGenerator) Min

func (this *QRandomGenerator) Min() uint

func (*QRandomGenerator) NewFromPointer

func (*QRandomGenerator) NewFromPointer(cthis unsafe.Pointer) *QRandomGenerator

func (*QRandomGenerator) Operator_equal

func (this *QRandomGenerator) Operator_equal(other QRandomGenerator_ITF) *QRandomGenerator

func (*QRandomGenerator) Operator_fncall

func (this *QRandomGenerator) Operator_fncall() uint

func (*QRandomGenerator) QRandomGenerator_PTR

func (ptr *QRandomGenerator) QRandomGenerator_PTR() *QRandomGenerator

func (*QRandomGenerator) SecurelySeeded

func (this *QRandomGenerator) SecurelySeeded() *QRandomGenerator

func (*QRandomGenerator) Seed

func (this *QRandomGenerator) Seed(s uint)

func (*QRandomGenerator) Seed__

func (this *QRandomGenerator) Seed__()

func (*QRandomGenerator) SetCthis

func (this *QRandomGenerator) SetCthis(cthis unsafe.Pointer)

func (*QRandomGenerator) System

func (this *QRandomGenerator) System() *QRandomGenerator

type QRandomGenerator64

type QRandomGenerator64 struct {
	*QRandomGenerator
}

func NewQRandomGenerator64

func NewQRandomGenerator64(seedValue uint) *QRandomGenerator64

func NewQRandomGenerator64FromPointer

func NewQRandomGenerator64FromPointer(cthis unsafe.Pointer) *QRandomGenerator64

func NewQRandomGenerator64_1

func NewQRandomGenerator64_1(seedBuffer unsafe.Pointer, len_ int64) *QRandomGenerator64

func NewQRandomGenerator64_2

func NewQRandomGenerator64_2(begin unsafe.Pointer, end unsafe.Pointer) *QRandomGenerator64

func NewQRandomGenerator64_3

func NewQRandomGenerator64_3(other QRandomGenerator_ITF) *QRandomGenerator64

func NewQRandomGenerator64__

func NewQRandomGenerator64__() *QRandomGenerator64

func QRandomGenerator64_Global

func QRandomGenerator64_Global() *QRandomGenerator64

func QRandomGenerator64_SecurelySeeded

func QRandomGenerator64_SecurelySeeded() *QRandomGenerator64

func QRandomGenerator64_System

func QRandomGenerator64_System() *QRandomGenerator64

func (*QRandomGenerator64) Discard

func (this *QRandomGenerator64) Discard(z uint64)

func (*QRandomGenerator64) Generate

func (this *QRandomGenerator64) Generate() uint64

func (*QRandomGenerator64) GetCthis

func (this *QRandomGenerator64) GetCthis() unsafe.Pointer

func (*QRandomGenerator64) Global

func (this *QRandomGenerator64) Global() *QRandomGenerator64

func (*QRandomGenerator64) Max

func (this *QRandomGenerator64) Max() uint64

func (*QRandomGenerator64) Min

func (this *QRandomGenerator64) Min() uint64

func (*QRandomGenerator64) NewFromPointer

func (*QRandomGenerator64) NewFromPointer(cthis unsafe.Pointer) *QRandomGenerator64

func (*QRandomGenerator64) Operator_fncall

func (this *QRandomGenerator64) Operator_fncall() uint64

func (*QRandomGenerator64) QRandomGenerator64_PTR

func (ptr *QRandomGenerator64) QRandomGenerator64_PTR() *QRandomGenerator64

func (*QRandomGenerator64) SecurelySeeded

func (this *QRandomGenerator64) SecurelySeeded() *QRandomGenerator64

func (*QRandomGenerator64) SetCthis

func (this *QRandomGenerator64) SetCthis(cthis unsafe.Pointer)

func (*QRandomGenerator64) System

func (this *QRandomGenerator64) System() *QRandomGenerator64

type QRandomGenerator64_ITF

type QRandomGenerator64_ITF interface {
	QRandomGenerator_ITF
	QRandomGenerator64_PTR() *QRandomGenerator64
}

type QRandomGenerator_ITF

type QRandomGenerator_ITF interface {
	QRandomGenerator_PTR() *QRandomGenerator
}

type QRandomGenerator__System

type QRandomGenerator__System = int

type QReadLocker

type QReadLocker struct {
	*qtrt.CObject
}

func NewQReadLocker

func NewQReadLocker(readWriteLock QReadWriteLock_ITF) *QReadLocker

func NewQReadLockerFromPointer

func NewQReadLockerFromPointer(cthis unsafe.Pointer) *QReadLocker

func (*QReadLocker) GetCthis

func (this *QReadLocker) GetCthis() unsafe.Pointer

func (*QReadLocker) NewFromPointer

func (*QReadLocker) NewFromPointer(cthis unsafe.Pointer) *QReadLocker

func (*QReadLocker) QReadLocker_PTR

func (ptr *QReadLocker) QReadLocker_PTR() *QReadLocker

func (*QReadLocker) ReadWriteLock

func (this *QReadLocker) ReadWriteLock() *QReadWriteLock

func (*QReadLocker) Relock

func (this *QReadLocker) Relock()

func (*QReadLocker) SetCthis

func (this *QReadLocker) SetCthis(cthis unsafe.Pointer)

func (*QReadLocker) Unlock

func (this *QReadLocker) Unlock()

Unlocks the lock.

Attempting to unlock a lock that is not locked is an error, and will result in program termination.

See also lockForRead(), lockForWrite(), tryLockForRead(), and tryLockForWrite().

type QReadLocker_ITF

type QReadLocker_ITF interface {
	QReadLocker_PTR() *QReadLocker
}

type QReadWriteLock

type QReadWriteLock struct {
	*qtrt.CObject
}

func NewQReadWriteLock

func NewQReadWriteLock(recursionMode int) *QReadWriteLock

Constructs a QReadWriteLock object in the given recursionMode.

The default recursion mode is NonRecursive.

This function was introduced in Qt 4.4.

See also lockForRead(), lockForWrite(), and RecursionMode.

func NewQReadWriteLockFromPointer

func NewQReadWriteLockFromPointer(cthis unsafe.Pointer) *QReadWriteLock

func NewQReadWriteLock__

func NewQReadWriteLock__() *QReadWriteLock

Constructs a QReadWriteLock object in the given recursionMode.

The default recursion mode is NonRecursive.

This function was introduced in Qt 4.4.

See also lockForRead(), lockForWrite(), and RecursionMode.

func (*QReadWriteLock) GetCthis

func (this *QReadWriteLock) GetCthis() unsafe.Pointer

func (*QReadWriteLock) LockForRead

func (this *QReadWriteLock) LockForRead()

Locks the lock for reading. This function will block the current thread if another thread has locked for writing.

It is not possible to lock for read if the thread already has locked for write.

See also unlock(), lockForWrite(), and tryLockForRead().

func (*QReadWriteLock) LockForWrite

func (this *QReadWriteLock) LockForWrite()

Locks the lock for writing. This function will block the current thread if another thread (including the current) has locked for reading or writing (unless the lock has been created using the QReadWriteLock::Recursive mode).

It is not possible to lock for write if the thread already has locked for read.

See also unlock(), lockForRead(), and tryLockForWrite().

func (*QReadWriteLock) NewFromPointer

func (*QReadWriteLock) NewFromPointer(cthis unsafe.Pointer) *QReadWriteLock

func (*QReadWriteLock) QReadWriteLock_PTR

func (ptr *QReadWriteLock) QReadWriteLock_PTR() *QReadWriteLock

func (*QReadWriteLock) SetCthis

func (this *QReadWriteLock) SetCthis(cthis unsafe.Pointer)

func (*QReadWriteLock) TryLockForRead

func (this *QReadWriteLock) TryLockForRead() bool

Attempts to lock for reading. If the lock was obtained, this function returns true, otherwise it returns false instead of waiting for the lock to become available, i.e. it does not block.

The lock attempt will fail if another thread has locked for writing.

If the lock was obtained, the lock must be unlocked with unlock() before another thread can successfully lock it for writing.

It is not possible to lock for read if the thread already has locked for write.

See also unlock() and lockForRead().

func (*QReadWriteLock) TryLockForRead_1

func (this *QReadWriteLock) TryLockForRead_1(timeout int) bool

Attempts to lock for reading. If the lock was obtained, this function returns true, otherwise it returns false instead of waiting for the lock to become available, i.e. it does not block.

The lock attempt will fail if another thread has locked for writing.

If the lock was obtained, the lock must be unlocked with unlock() before another thread can successfully lock it for writing.

It is not possible to lock for read if the thread already has locked for write.

See also unlock() and lockForRead().

func (*QReadWriteLock) TryLockForWrite

func (this *QReadWriteLock) TryLockForWrite() bool

Attempts to lock for writing. If the lock was obtained, this function returns true; otherwise, it returns false immediately.

The lock attempt will fail if another thread has locked for reading or writing.

If the lock was obtained, the lock must be unlocked with unlock() before another thread can successfully lock it.

It is not possible to lock for write if the thread already has locked for read.

See also unlock() and lockForWrite().

func (*QReadWriteLock) TryLockForWrite_1

func (this *QReadWriteLock) TryLockForWrite_1(timeout int) bool

Attempts to lock for writing. If the lock was obtained, this function returns true; otherwise, it returns false immediately.

The lock attempt will fail if another thread has locked for reading or writing.

If the lock was obtained, the lock must be unlocked with unlock() before another thread can successfully lock it.

It is not possible to lock for write if the thread already has locked for read.

See also unlock() and lockForWrite().

func (*QReadWriteLock) Unlock

func (this *QReadWriteLock) Unlock()

Unlocks the lock.

Attempting to unlock a lock that is not locked is an error, and will result in program termination.

See also lockForRead(), lockForWrite(), tryLockForRead(), and tryLockForWrite().

type QReadWriteLock_ITF

type QReadWriteLock_ITF interface {
	QReadWriteLock_PTR() *QReadWriteLock
}

type QReadWriteLock__RecursionMode

type QReadWriteLock__RecursionMode = int

This enum was introduced or modified in Qt 4.4.

See also QReadWriteLock().

const QReadWriteLock__NonRecursive QReadWriteLock__RecursionMode = 0

In this mode, a thread may only lock a QReadWriteLock once.

const QReadWriteLock__Recursive QReadWriteLock__RecursionMode = 1

In this mode, a thread can lock the same QReadWriteLock multiple times. The QReadWriteLock won't be unlocked until a corresponding number of unlock() calls have been made.

type QReadWriteLock__StateForWaitCondition

type QReadWriteLock__StateForWaitCondition = int
const QReadWriteLock__LockedForRead QReadWriteLock__StateForWaitCondition = 0
const QReadWriteLock__LockedForWrite QReadWriteLock__StateForWaitCondition = 1
const QReadWriteLock__RecursivelyLocked QReadWriteLock__StateForWaitCondition = 3
const QReadWriteLock__Unlocked QReadWriteLock__StateForWaitCondition = 2

type QRect

type QRect struct {
	*qtrt.CObject
}

func NewQRect

func NewQRect() *QRect

Constructs a null rectangle.

See also isNull().

func NewQRectFromPointer

func NewQRectFromPointer(cthis unsafe.Pointer) *QRect

func NewQRect_1

func NewQRect_1(topleft QPoint_ITF, bottomright QPoint_ITF) *QRect

Constructs a null rectangle.

See also isNull().

func NewQRect_2

func NewQRect_2(topleft QPoint_ITF, size QSize_ITF) *QRect

Constructs a null rectangle.

See also isNull().

func NewQRect_3

func NewQRect_3(left int, top int, width int, height int) *QRect

Constructs a null rectangle.

See also isNull().

func (*QRect) Adjust

func (this *QRect) Adjust(x1 int, y1 int, x2 int, y2 int)

Adds dx1, dy1, dx2 and dy2 respectively to the existing coordinates of the rectangle.

See also adjusted() and setRect().

func (*QRect) Adjusted

func (this *QRect) Adjusted(x1 int, y1 int, x2 int, y2 int) *QRect

Returns a new rectangle with dx1, dy1, dx2 and dy2 added respectively to the existing coordinates of this rectangle.

See also adjust().

func (*QRect) Bottom

func (this *QRect) Bottom() int

Returns the y-coordinate of the rectangle's bottom edge.

Note that for historical reasons this function returns top() + height() - 1; use y() + height() to retrieve the true y-coordinate.

See also setBottom(), bottomLeft(), and bottomRight().

func (*QRect) BottomLeft

func (this *QRect) BottomLeft() *QPoint

Returns the position of the rectangle's bottom-left corner. Note that for historical reasons this function returns QPoint(left(), top() + height() - 1).

See also setBottomLeft(), bottom(), and left().

func (*QRect) BottomRight

func (this *QRect) BottomRight() *QPoint

Returns the position of the rectangle's bottom-right corner.

Note that for historical reasons this function returns QPoint(left() + width() -1, top() + height() - 1).

See also setBottomRight(), bottom(), and right().

func (*QRect) Center

func (this *QRect) Center() *QPoint

Returns the center point of the rectangle.

See also moveCenter().

func (*QRect) Contains

func (this *QRect) Contains(r QRect_ITF, proper bool) bool

Returns true if the given point is inside or on the edge of the rectangle, otherwise returns false. If proper is true, this function only returns true if the given point is inside the rectangle (i.e., not on the edge).

See also intersects().

func (*QRect) Contains_1

func (this *QRect) Contains_1(p QPoint_ITF, proper bool) bool

Returns true if the given point is inside or on the edge of the rectangle, otherwise returns false. If proper is true, this function only returns true if the given point is inside the rectangle (i.e., not on the edge).

See also intersects().

func (*QRect) Contains_1_

func (this *QRect) Contains_1_(p QPoint_ITF) bool

Returns true if the given point is inside or on the edge of the rectangle, otherwise returns false. If proper is true, this function only returns true if the given point is inside the rectangle (i.e., not on the edge).

See also intersects().

func (*QRect) Contains_2

func (this *QRect) Contains_2(x int, y int) bool

Returns true if the given point is inside or on the edge of the rectangle, otherwise returns false. If proper is true, this function only returns true if the given point is inside the rectangle (i.e., not on the edge).

See also intersects().

func (*QRect) Contains_3

func (this *QRect) Contains_3(x int, y int, proper bool) bool

Returns true if the given point is inside or on the edge of the rectangle, otherwise returns false. If proper is true, this function only returns true if the given point is inside the rectangle (i.e., not on the edge).

See also intersects().

func (*QRect) Contains__

func (this *QRect) Contains__(r QRect_ITF) bool

Returns true if the given point is inside or on the edge of the rectangle, otherwise returns false. If proper is true, this function only returns true if the given point is inside the rectangle (i.e., not on the edge).

See also intersects().

func (*QRect) GetCoords

func (this *QRect) GetCoords(x1 unsafe.Pointer, y1 unsafe.Pointer, x2 unsafe.Pointer, y2 unsafe.Pointer)

Extracts the position of the rectangle's top-left corner to *x1 and *y1, and the position of the bottom-right corner to *x2 and *y2.

See also setCoords() and getRect().

func (*QRect) GetCthis

func (this *QRect) GetCthis() unsafe.Pointer

func (*QRect) GetRect

func (this *QRect) GetRect(x unsafe.Pointer, y unsafe.Pointer, w unsafe.Pointer, h unsafe.Pointer)

Extracts the position of the rectangle's top-left corner to *x and *y, and its dimensions to *width and *height.

See also setRect() and getCoords().

func (*QRect) Height

func (this *QRect) Height() int

Returns the height of the rectangle.

See also setHeight(), width(), and size().

func (*QRect) Intersected

func (this *QRect) Intersected(other QRect_ITF) *QRect

Returns the intersection of this rectangle and the given rectangle. Note that r.intersected(s) is equivalent to r & s.

This function was introduced in Qt 4.2.

See also intersects(), united(), and operator&=().

func (*QRect) Intersects

func (this *QRect) Intersects(r QRect_ITF) bool

Returns true if this rectangle intersects with the given rectangle (i.e., there is at least one pixel that is within both rectangles), otherwise returns false.

The intersection rectangle can be retrieved using the intersected() function.

See also contains().

func (*QRect) IsEmpty

func (this *QRect) IsEmpty() bool

Returns true if the rectangle is empty, otherwise returns false.

An empty rectangle has a left() > right() or top() > bottom(). An empty rectangle is not valid (i.e., isEmpty() == !isValid()).

Use the normalized() function to retrieve a rectangle where the corners are swapped.

See also isNull(), isValid(), and normalized().

func (*QRect) IsNull

func (this *QRect) IsNull() bool

Returns true if the rectangle is a null rectangle, otherwise returns false.

A null rectangle has both the width and the height set to 0 (i.e., right() == left() - 1 and bottom() == top() - 1). A null rectangle is also empty, and hence is not valid.

See also isEmpty() and isValid().

func (*QRect) IsValid

func (this *QRect) IsValid() bool

Returns true if the rectangle is valid, otherwise returns false.

A valid rectangle has a left() <= right() and top() <= bottom(). Note that non-trivial operations like intersections are not defined for invalid rectangles. A valid rectangle is not empty (i.e., isValid() == !isEmpty()).

See also isNull(), isEmpty(), and normalized().

func (*QRect) Left

func (this *QRect) Left() int

Returns the x-coordinate of the rectangle's left edge. Equivalent to x().

See also setLeft(), topLeft(), and bottomLeft().

func (*QRect) MarginsAdded

func (this *QRect) MarginsAdded(margins QMargins_ITF) *QRect

Returns a rectangle grown by the margins.

This function was introduced in Qt 5.1.

See also operator+=(), marginsRemoved(), and operator-=().

func (*QRect) MarginsRemoved

func (this *QRect) MarginsRemoved(margins QMargins_ITF) *QRect

Removes the margins from the rectangle, shrinking it.

This function was introduced in Qt 5.1.

See also marginsAdded(), operator+=(), and operator-=().

func (*QRect) MoveBottom

func (this *QRect) MoveBottom(pos int)

Moves the rectangle vertically, leaving the rectangle's bottom edge at the given y coordinate. The rectangle's size is unchanged.

See also bottom(), setBottom(), and moveTop().

func (*QRect) MoveBottomLeft

func (this *QRect) MoveBottomLeft(p QPoint_ITF)

Moves the rectangle, leaving the bottom-left corner at the given position. The rectangle's size is unchanged.

See also setBottomLeft(), moveBottom(), and moveLeft().

func (*QRect) MoveBottomRight

func (this *QRect) MoveBottomRight(p QPoint_ITF)

Moves the rectangle, leaving the bottom-right corner at the given position. The rectangle's size is unchanged.

See also setBottomRight(), moveRight(), and moveBottom().

func (*QRect) MoveCenter

func (this *QRect) MoveCenter(p QPoint_ITF)

Moves the rectangle, leaving the center point at the given position. The rectangle's size is unchanged.

See also center().

func (*QRect) MoveLeft

func (this *QRect) MoveLeft(pos int)

Moves the rectangle horizontally, leaving the rectangle's left edge at the given x coordinate. The rectangle's size is unchanged.

See also left(), setLeft(), and moveRight().

func (*QRect) MoveRight

func (this *QRect) MoveRight(pos int)

Moves the rectangle horizontally, leaving the rectangle's right edge at the given x coordinate. The rectangle's size is unchanged.

See also right(), setRight(), and moveLeft().

func (*QRect) MoveTo

func (this *QRect) MoveTo(x int, t int)

Moves the rectangle, leaving the top-left corner at the given position (x, y). The rectangle's size is unchanged.

See also translate() and moveTopLeft().

func (*QRect) MoveTo_1

func (this *QRect) MoveTo_1(p QPoint_ITF)

Moves the rectangle, leaving the top-left corner at the given position (x, y). The rectangle's size is unchanged.

See also translate() and moveTopLeft().

func (*QRect) MoveTop

func (this *QRect) MoveTop(pos int)

Moves the rectangle vertically, leaving the rectangle's top edge at the given y coordinate. The rectangle's size is unchanged.

See also top(), setTop(), and moveBottom().

func (*QRect) MoveTopLeft

func (this *QRect) MoveTopLeft(p QPoint_ITF)

Moves the rectangle, leaving the top-left corner at the given position. The rectangle's size is unchanged.

See also setTopLeft(), moveTop(), and moveLeft().

func (*QRect) MoveTopRight

func (this *QRect) MoveTopRight(p QPoint_ITF)

Moves the rectangle, leaving the top-right corner at the given position. The rectangle's size is unchanged.

See also setTopRight(), moveTop(), and moveRight().

func (*QRect) NewFromPointer

func (*QRect) NewFromPointer(cthis unsafe.Pointer) *QRect

func (*QRect) Normalized

func (this *QRect) Normalized() *QRect

Returns a normalized rectangle; i.e., a rectangle that has a non-negative width and height.

If width() < 0 the function swaps the left and right corners, and it swaps the top and bottom corners if height() < 0.

See also isValid() and isEmpty().

func (*QRect) Operator_add_equal

func (this *QRect) Operator_add_equal(margins QMargins_ITF) *QRect

func (*QRect) Operator_and

func (this *QRect) Operator_and(r QRect_ITF) *QRect

func (*QRect) Operator_and_equal

func (this *QRect) Operator_and_equal(r QRect_ITF) *QRect

func (*QRect) Operator_minus_equal

func (this *QRect) Operator_minus_equal(margins QMargins_ITF) *QRect

func (*QRect) Operator_or

func (this *QRect) Operator_or(r QRect_ITF) *QRect

func (*QRect) Operator_or_equal

func (this *QRect) Operator_or_equal(r QRect_ITF) *QRect

func (*QRect) QRect_PTR

func (ptr *QRect) QRect_PTR() *QRect

func (*QRect) Right

func (this *QRect) Right() int

Returns the x-coordinate of the rectangle's right edge.

Note that for historical reasons this function returns left() + width() - 1; use x() + width() to retrieve the true x-coordinate.

See also setRight(), topRight(), and bottomRight().

func (*QRect) SetBottom

func (this *QRect) SetBottom(pos int)

Sets the bottom edge of the rectangle to the given y coordinate. May change the height, but will never change the top edge of the rectangle.

See also bottom() and moveBottom().

func (*QRect) SetBottomLeft

func (this *QRect) SetBottomLeft(p QPoint_ITF)

Set the bottom-left corner of the rectangle to the given position. May change the size, but will never change the top-right corner of the rectangle.

See also bottomLeft() and moveBottomLeft().

func (*QRect) SetBottomRight

func (this *QRect) SetBottomRight(p QPoint_ITF)

Set the bottom-right corner of the rectangle to the given position. May change the size, but will never change the top-left corner of the rectangle.

See also bottomRight() and moveBottomRight().

func (*QRect) SetCoords

func (this *QRect) SetCoords(x1 int, y1 int, x2 int, y2 int)

Sets the coordinates of the rectangle's top-left corner to (x1, y1), and the coordinates of its bottom-right corner to (x2, y2).

See also getCoords() and setRect().

func (*QRect) SetCthis

func (this *QRect) SetCthis(cthis unsafe.Pointer)

func (*QRect) SetHeight

func (this *QRect) SetHeight(h int)

Sets the height of the rectangle to the given height. The bottom edge is changed, but not the top one.

See also height() and setSize().

func (*QRect) SetLeft

func (this *QRect) SetLeft(pos int)

Sets the left edge of the rectangle to the given x coordinate. May change the width, but will never change the right edge of the rectangle.

Equivalent to setX().

See also left() and moveLeft().

func (*QRect) SetRect

func (this *QRect) SetRect(x int, y int, w int, h int)

Sets the coordinates of the rectangle's top-left corner to (x, y), and its size to the given width and height.

See also getRect() and setCoords().

func (*QRect) SetRight

func (this *QRect) SetRight(pos int)

Sets the right edge of the rectangle to the given x coordinate. May change the width, but will never change the left edge of the rectangle.

See also right() and moveRight().

func (*QRect) SetSize

func (this *QRect) SetSize(s QSize_ITF)

Sets the size of the rectangle to the given size. The top-left corner is not moved.

See also size(), setWidth(), and setHeight().

func (*QRect) SetTop

func (this *QRect) SetTop(pos int)

Sets the top edge of the rectangle to the given y coordinate. May change the height, but will never change the bottom edge of the rectangle.

Equivalent to setY().

See also top() and moveTop().

func (*QRect) SetTopLeft

func (this *QRect) SetTopLeft(p QPoint_ITF)

Set the top-left corner of the rectangle to the given position. May change the size, but will never change the bottom-right corner of the rectangle.

See also topLeft() and moveTopLeft().

func (*QRect) SetTopRight

func (this *QRect) SetTopRight(p QPoint_ITF)

Set the top-right corner of the rectangle to the given position. May change the size, but will never change the bottom-left corner of the rectangle.

See also topRight() and moveTopRight().

func (*QRect) SetWidth

func (this *QRect) SetWidth(w int)

Sets the width of the rectangle to the given width. The right edge is changed, but not the left one.

See also width() and setSize().

func (*QRect) SetX

func (this *QRect) SetX(x int)

Sets the left edge of the rectangle to the given x coordinate. May change the width, but will never change the right edge of the rectangle.

Equivalent to setLeft().

See also x(), setY(), and setTopLeft().

func (*QRect) SetY

func (this *QRect) SetY(y int)

Sets the top edge of the rectangle to the given y coordinate. May change the height, but will never change the bottom edge of the rectangle.

Equivalent to setTop().

See also y(), setX(), and setTopLeft().

func (*QRect) Size

func (this *QRect) Size() *QSize

Returns the size of the rectangle.

See also setSize(), width(), and height().

func (*QRect) Top

func (this *QRect) Top() int

Returns the y-coordinate of the rectangle's top edge. Equivalent to y().

See also setTop(), topLeft(), and topRight().

func (*QRect) TopLeft

func (this *QRect) TopLeft() *QPoint

Returns the position of the rectangle's top-left corner.

See also setTopLeft(), top(), and left().

func (*QRect) TopRight

func (this *QRect) TopRight() *QPoint

Returns the position of the rectangle's top-right corner.

Note that for historical reasons this function returns QPoint(left() + width() -1, top()).

See also setTopRight(), top(), and right().

func (*QRect) Translate

func (this *QRect) Translate(dx int, dy int)

Moves the rectangle dx along the x axis and dy along the y axis, relative to the current position. Positive values move the rectangle to the right and down.

See also moveTopLeft(), moveTo(), and translated().

func (*QRect) Translate_1

func (this *QRect) Translate_1(p QPoint_ITF)

Moves the rectangle dx along the x axis and dy along the y axis, relative to the current position. Positive values move the rectangle to the right and down.

See also moveTopLeft(), moveTo(), and translated().

func (*QRect) Translated

func (this *QRect) Translated(dx int, dy int) *QRect

Returns a copy of the rectangle that is translated dx along the x axis and dy along the y axis, relative to the current position. Positive values move the rectangle to the right and down.

See also translate().

func (*QRect) Translated_1

func (this *QRect) Translated_1(p QPoint_ITF) *QRect

Returns a copy of the rectangle that is translated dx along the x axis and dy along the y axis, relative to the current position. Positive values move the rectangle to the right and down.

See also translate().

func (*QRect) Transposed

func (this *QRect) Transposed() *QRect

Returns a copy of the rectangle that has its width and height exchanged:

QRect r = {15, 51, 42, 24};
r = r.transposed(); // r == {15, 51, 24, 42}

This function was introduced in Qt 5.7.

See also QSize::transposed().

func (*QRect) United

func (this *QRect) United(other QRect_ITF) *QRect

Returns the bounding rectangle of this rectangle and the given rectangle.

This function was introduced in Qt 4.2.

See also intersected().

func (*QRect) Width

func (this *QRect) Width() int

Returns the width of the rectangle.

See also setWidth(), height(), and size().

func (*QRect) X

func (this *QRect) X() int

Returns the x-coordinate of the rectangle's left edge. Equivalent to left().

See also setX(), y(), and topLeft().

func (*QRect) Y

func (this *QRect) Y() int

Returns the y-coordinate of the rectangle's top edge. Equivalent to top().

See also setY(), x(), and topLeft().

type QRectF

type QRectF struct {
	*qtrt.CObject
}

func NewQRectF

func NewQRectF() *QRectF

func NewQRectFFromPointer

func NewQRectFFromPointer(cthis unsafe.Pointer) *QRectF

func NewQRectF_1

func NewQRectF_1(topleft QPointF_ITF, size QSizeF_ITF) *QRectF

func NewQRectF_2

func NewQRectF_2(topleft QPointF_ITF, bottomRight QPointF_ITF) *QRectF

func NewQRectF_3

func NewQRectF_3(left float64, top float64, width float64, height float64) *QRectF

func NewQRectF_4

func NewQRectF_4(rect QRect_ITF) *QRectF

func (*QRectF) Adjust

func (this *QRectF) Adjust(x1 float64, y1 float64, x2 float64, y2 float64)

Adds dx1, dy1, dx2 and dy2 respectively to the existing coordinates of the rectangle.

See also adjusted() and setRect().

func (*QRectF) Adjusted

func (this *QRectF) Adjusted(x1 float64, y1 float64, x2 float64, y2 float64) *QRectF

Returns a new rectangle with dx1, dy1, dx2 and dy2 added respectively to the existing coordinates of this rectangle.

See also adjust().

func (*QRectF) Bottom

func (this *QRectF) Bottom() float64

Returns the y-coordinate of the rectangle's bottom edge.

Note that for historical reasons this function returns top() + height() - 1; use y() + height() to retrieve the true y-coordinate.

See also setBottom(), bottomLeft(), and bottomRight().

func (*QRectF) BottomLeft

func (this *QRectF) BottomLeft() *QPointF

Returns the position of the rectangle's bottom-left corner. Note that for historical reasons this function returns QPoint(left(), top() + height() - 1).

See also setBottomLeft(), bottom(), and left().

func (*QRectF) BottomRight

func (this *QRectF) BottomRight() *QPointF

Returns the position of the rectangle's bottom-right corner.

Note that for historical reasons this function returns QPoint(left() + width() -1, top() + height() - 1).

See also setBottomRight(), bottom(), and right().

func (*QRectF) Center

func (this *QRectF) Center() *QPointF

Returns the center point of the rectangle.

See also moveCenter().

func (*QRectF) Contains

func (this *QRectF) Contains(r QRectF_ITF) bool

Returns true if the given point is inside or on the edge of the rectangle, otherwise returns false. If proper is true, this function only returns true if the given point is inside the rectangle (i.e., not on the edge).

See also intersects().

func (*QRectF) Contains_1

func (this *QRectF) Contains_1(p QPointF_ITF) bool

Returns true if the given point is inside or on the edge of the rectangle, otherwise returns false. If proper is true, this function only returns true if the given point is inside the rectangle (i.e., not on the edge).

See also intersects().

func (*QRectF) Contains_2

func (this *QRectF) Contains_2(x float64, y float64) bool

Returns true if the given point is inside or on the edge of the rectangle, otherwise returns false. If proper is true, this function only returns true if the given point is inside the rectangle (i.e., not on the edge).

See also intersects().

func (*QRectF) GetCoords

func (this *QRectF) GetCoords(x1 unsafe.Pointer, y1 unsafe.Pointer, x2 unsafe.Pointer, y2 unsafe.Pointer)

Extracts the position of the rectangle's top-left corner to *x1 and *y1, and the position of the bottom-right corner to *x2 and *y2.

See also setCoords() and getRect().

func (*QRectF) GetCthis

func (this *QRectF) GetCthis() unsafe.Pointer

func (*QRectF) GetRect

func (this *QRectF) GetRect(x unsafe.Pointer, y unsafe.Pointer, w unsafe.Pointer, h unsafe.Pointer)

Extracts the position of the rectangle's top-left corner to *x and *y, and its dimensions to *width and *height.

See also setRect() and getCoords().

func (*QRectF) Height

func (this *QRectF) Height() float64

Returns the height of the rectangle.

See also setHeight(), width(), and size().

func (*QRectF) Intersected

func (this *QRectF) Intersected(other QRectF_ITF) *QRectF

Returns the intersection of this rectangle and the given rectangle. Note that r.intersected(s) is equivalent to r & s.

This function was introduced in Qt 4.2.

See also intersects(), united(), and operator&=().

func (*QRectF) Intersects

func (this *QRectF) Intersects(r QRectF_ITF) bool

Returns true if this rectangle intersects with the given rectangle (i.e., there is at least one pixel that is within both rectangles), otherwise returns false.

The intersection rectangle can be retrieved using the intersected() function.

See also contains().

func (*QRectF) IsEmpty

func (this *QRectF) IsEmpty() bool

Returns true if the rectangle is empty, otherwise returns false.

An empty rectangle has a left() > right() or top() > bottom(). An empty rectangle is not valid (i.e., isEmpty() == !isValid()).

Use the normalized() function to retrieve a rectangle where the corners are swapped.

See also isNull(), isValid(), and normalized().

func (*QRectF) IsNull

func (this *QRectF) IsNull() bool

Returns true if the rectangle is a null rectangle, otherwise returns false.

A null rectangle has both the width and the height set to 0 (i.e., right() == left() - 1 and bottom() == top() - 1). A null rectangle is also empty, and hence is not valid.

See also isEmpty() and isValid().

func (*QRectF) IsValid

func (this *QRectF) IsValid() bool

Returns true if the rectangle is valid, otherwise returns false.

A valid rectangle has a left() <= right() and top() <= bottom(). Note that non-trivial operations like intersections are not defined for invalid rectangles. A valid rectangle is not empty (i.e., isValid() == !isEmpty()).

See also isNull(), isEmpty(), and normalized().

func (*QRectF) Left

func (this *QRectF) Left() float64

Returns the x-coordinate of the rectangle's left edge. Equivalent to x().

See also setLeft(), topLeft(), and bottomLeft().

func (*QRectF) MarginsAdded

func (this *QRectF) MarginsAdded(margins QMarginsF_ITF) *QRectF

Returns a rectangle grown by the margins.

This function was introduced in Qt 5.1.

See also operator+=(), marginsRemoved(), and operator-=().

func (*QRectF) MarginsRemoved

func (this *QRectF) MarginsRemoved(margins QMarginsF_ITF) *QRectF

Removes the margins from the rectangle, shrinking it.

This function was introduced in Qt 5.1.

See also marginsAdded(), operator+=(), and operator-=().

func (*QRectF) MoveBottom

func (this *QRectF) MoveBottom(pos float64)

Moves the rectangle vertically, leaving the rectangle's bottom edge at the given y coordinate. The rectangle's size is unchanged.

See also bottom(), setBottom(), and moveTop().

func (*QRectF) MoveBottomLeft

func (this *QRectF) MoveBottomLeft(p QPointF_ITF)

Moves the rectangle, leaving the bottom-left corner at the given position. The rectangle's size is unchanged.

See also setBottomLeft(), moveBottom(), and moveLeft().

func (*QRectF) MoveBottomRight

func (this *QRectF) MoveBottomRight(p QPointF_ITF)

Moves the rectangle, leaving the bottom-right corner at the given position. The rectangle's size is unchanged.

See also setBottomRight(), moveRight(), and moveBottom().

func (*QRectF) MoveCenter

func (this *QRectF) MoveCenter(p QPointF_ITF)

Moves the rectangle, leaving the center point at the given position. The rectangle's size is unchanged.

See also center().

func (*QRectF) MoveLeft

func (this *QRectF) MoveLeft(pos float64)

Moves the rectangle horizontally, leaving the rectangle's left edge at the given x coordinate. The rectangle's size is unchanged.

See also left(), setLeft(), and moveRight().

func (*QRectF) MoveRight

func (this *QRectF) MoveRight(pos float64)

Moves the rectangle horizontally, leaving the rectangle's right edge at the given x coordinate. The rectangle's size is unchanged.

See also right(), setRight(), and moveLeft().

func (*QRectF) MoveTo

func (this *QRectF) MoveTo(x float64, y float64)

Moves the rectangle, leaving the top-left corner at the given position (x, y). The rectangle's size is unchanged.

See also translate() and moveTopLeft().

func (*QRectF) MoveTo_1

func (this *QRectF) MoveTo_1(p QPointF_ITF)

Moves the rectangle, leaving the top-left corner at the given position (x, y). The rectangle's size is unchanged.

See also translate() and moveTopLeft().

func (*QRectF) MoveTop

func (this *QRectF) MoveTop(pos float64)

Moves the rectangle vertically, leaving the rectangle's top edge at the given y coordinate. The rectangle's size is unchanged.

See also top(), setTop(), and moveBottom().

func (*QRectF) MoveTopLeft

func (this *QRectF) MoveTopLeft(p QPointF_ITF)

Moves the rectangle, leaving the top-left corner at the given position. The rectangle's size is unchanged.

See also setTopLeft(), moveTop(), and moveLeft().

func (*QRectF) MoveTopRight

func (this *QRectF) MoveTopRight(p QPointF_ITF)

Moves the rectangle, leaving the top-right corner at the given position. The rectangle's size is unchanged.

See also setTopRight(), moveTop(), and moveRight().

func (*QRectF) NewFromPointer

func (*QRectF) NewFromPointer(cthis unsafe.Pointer) *QRectF

func (*QRectF) Normalized

func (this *QRectF) Normalized() *QRectF

Returns a normalized rectangle; i.e., a rectangle that has a non-negative width and height.

If width() < 0 the function swaps the left and right corners, and it swaps the top and bottom corners if height() < 0.

See also isValid() and isEmpty().

func (*QRectF) Operator_add_equal

func (this *QRectF) Operator_add_equal(margins QMarginsF_ITF) *QRectF

func (*QRectF) Operator_and

func (this *QRectF) Operator_and(r QRectF_ITF) *QRectF

func (*QRectF) Operator_and_equal

func (this *QRectF) Operator_and_equal(r QRectF_ITF) *QRectF

func (*QRectF) Operator_minus_equal

func (this *QRectF) Operator_minus_equal(margins QMarginsF_ITF) *QRectF

func (*QRectF) Operator_or

func (this *QRectF) Operator_or(r QRectF_ITF) *QRectF

func (*QRectF) Operator_or_equal

func (this *QRectF) Operator_or_equal(r QRectF_ITF) *QRectF

func (*QRectF) QRectF_PTR

func (ptr *QRectF) QRectF_PTR() *QRectF

func (*QRectF) Right

func (this *QRectF) Right() float64

Returns the x-coordinate of the rectangle's right edge.

Note that for historical reasons this function returns left() + width() - 1; use x() + width() to retrieve the true x-coordinate.

See also setRight(), topRight(), and bottomRight().

func (*QRectF) SetBottom

func (this *QRectF) SetBottom(pos float64)

Sets the bottom edge of the rectangle to the given y coordinate. May change the height, but will never change the top edge of the rectangle.

See also bottom() and moveBottom().

func (*QRectF) SetBottomLeft

func (this *QRectF) SetBottomLeft(p QPointF_ITF)

Set the bottom-left corner of the rectangle to the given position. May change the size, but will never change the top-right corner of the rectangle.

See also bottomLeft() and moveBottomLeft().

func (*QRectF) SetBottomRight

func (this *QRectF) SetBottomRight(p QPointF_ITF)

Set the bottom-right corner of the rectangle to the given position. May change the size, but will never change the top-left corner of the rectangle.

See also bottomRight() and moveBottomRight().

func (*QRectF) SetCoords

func (this *QRectF) SetCoords(x1 float64, y1 float64, x2 float64, y2 float64)

Sets the coordinates of the rectangle's top-left corner to (x1, y1), and the coordinates of its bottom-right corner to (x2, y2).

See also getCoords() and setRect().

func (*QRectF) SetCthis

func (this *QRectF) SetCthis(cthis unsafe.Pointer)

func (*QRectF) SetHeight

func (this *QRectF) SetHeight(h float64)

Sets the height of the rectangle to the given height. The bottom edge is changed, but not the top one.

See also height() and setSize().

func (*QRectF) SetLeft

func (this *QRectF) SetLeft(pos float64)

Sets the left edge of the rectangle to the given x coordinate. May change the width, but will never change the right edge of the rectangle.

Equivalent to setX().

See also left() and moveLeft().

func (*QRectF) SetRect

func (this *QRectF) SetRect(x float64, y float64, w float64, h float64)

Sets the coordinates of the rectangle's top-left corner to (x, y), and its size to the given width and height.

See also getRect() and setCoords().

func (*QRectF) SetRight

func (this *QRectF) SetRight(pos float64)

Sets the right edge of the rectangle to the given x coordinate. May change the width, but will never change the left edge of the rectangle.

See also right() and moveRight().

func (*QRectF) SetSize

func (this *QRectF) SetSize(s QSizeF_ITF)

Sets the size of the rectangle to the given size. The top-left corner is not moved.

See also size(), setWidth(), and setHeight().

func (*QRectF) SetTop

func (this *QRectF) SetTop(pos float64)

Sets the top edge of the rectangle to the given y coordinate. May change the height, but will never change the bottom edge of the rectangle.

Equivalent to setY().

See also top() and moveTop().

func (*QRectF) SetTopLeft

func (this *QRectF) SetTopLeft(p QPointF_ITF)

Set the top-left corner of the rectangle to the given position. May change the size, but will never change the bottom-right corner of the rectangle.

See also topLeft() and moveTopLeft().

func (*QRectF) SetTopRight

func (this *QRectF) SetTopRight(p QPointF_ITF)

Set the top-right corner of the rectangle to the given position. May change the size, but will never change the bottom-left corner of the rectangle.

See also topRight() and moveTopRight().

func (*QRectF) SetWidth

func (this *QRectF) SetWidth(w float64)

Sets the width of the rectangle to the given width. The right edge is changed, but not the left one.

See also width() and setSize().

func (*QRectF) SetX

func (this *QRectF) SetX(pos float64)

Sets the left edge of the rectangle to the given x coordinate. May change the width, but will never change the right edge of the rectangle.

Equivalent to setLeft().

See also x(), setY(), and setTopLeft().

func (*QRectF) SetY

func (this *QRectF) SetY(pos float64)

Sets the top edge of the rectangle to the given y coordinate. May change the height, but will never change the bottom edge of the rectangle.

Equivalent to setTop().

See also y(), setX(), and setTopLeft().

func (*QRectF) Size

func (this *QRectF) Size() *QSizeF

Returns the size of the rectangle.

See also setSize(), width(), and height().

func (*QRectF) ToAlignedRect

func (this *QRectF) ToAlignedRect() *QRect

func (*QRectF) ToRect

func (this *QRectF) ToRect() *QRect

func (*QRectF) Top

func (this *QRectF) Top() float64

Returns the y-coordinate of the rectangle's top edge. Equivalent to y().

See also setTop(), topLeft(), and topRight().

func (*QRectF) TopLeft

func (this *QRectF) TopLeft() *QPointF

Returns the position of the rectangle's top-left corner.

See also setTopLeft(), top(), and left().

func (*QRectF) TopRight

func (this *QRectF) TopRight() *QPointF

Returns the position of the rectangle's top-right corner.

Note that for historical reasons this function returns QPoint(left() + width() -1, top()).

See also setTopRight(), top(), and right().

func (*QRectF) Translate

func (this *QRectF) Translate(dx float64, dy float64)

Moves the rectangle dx along the x axis and dy along the y axis, relative to the current position. Positive values move the rectangle to the right and down.

See also moveTopLeft(), moveTo(), and translated().

func (*QRectF) Translate_1

func (this *QRectF) Translate_1(p QPointF_ITF)

Moves the rectangle dx along the x axis and dy along the y axis, relative to the current position. Positive values move the rectangle to the right and down.

See also moveTopLeft(), moveTo(), and translated().

func (*QRectF) Translated

func (this *QRectF) Translated(dx float64, dy float64) *QRectF

Returns a copy of the rectangle that is translated dx along the x axis and dy along the y axis, relative to the current position. Positive values move the rectangle to the right and down.

See also translate().

func (*QRectF) Translated_1

func (this *QRectF) Translated_1(p QPointF_ITF) *QRectF

Returns a copy of the rectangle that is translated dx along the x axis and dy along the y axis, relative to the current position. Positive values move the rectangle to the right and down.

See also translate().

func (*QRectF) Transposed

func (this *QRectF) Transposed() *QRectF

Returns a copy of the rectangle that has its width and height exchanged:

QRect r = {15, 51, 42, 24};
r = r.transposed(); // r == {15, 51, 24, 42}

This function was introduced in Qt 5.7.

See also QSize::transposed().

func (*QRectF) United

func (this *QRectF) United(other QRectF_ITF) *QRectF

Returns the bounding rectangle of this rectangle and the given rectangle.

This function was introduced in Qt 4.2.

See also intersected().

func (*QRectF) Width

func (this *QRectF) Width() float64

Returns the width of the rectangle.

See also setWidth(), height(), and size().

func (*QRectF) X

func (this *QRectF) X() float64

Returns the x-coordinate of the rectangle's left edge. Equivalent to left().

See also setX(), y(), and topLeft().

func (*QRectF) Y

func (this *QRectF) Y() float64

Returns the y-coordinate of the rectangle's top edge. Equivalent to top().

See also setY(), x(), and topLeft().

type QRectF_ITF

type QRectF_ITF interface {
	QRectF_PTR() *QRectF
}

type QRect_ITF

type QRect_ITF interface {
	QRect_PTR() *QRect
}

type QRegExp

type QRegExp struct {
	*qtrt.CObject
}

func NewQRegExp

func NewQRegExp() *QRegExp

Constructs an empty regexp.

See also isValid() and errorString().

func NewQRegExpFromPointer

func NewQRegExpFromPointer(cthis unsafe.Pointer) *QRegExp

func NewQRegExp_1

func NewQRegExp_1(pattern string, cs int, syntax int) *QRegExp

Constructs an empty regexp.

See also isValid() and errorString().

func NewQRegExp_1_

func NewQRegExp_1_(pattern string) *QRegExp

Constructs an empty regexp.

See also isValid() and errorString().

func NewQRegExp_1_1

func NewQRegExp_1_1(pattern string, cs int) *QRegExp

Constructs an empty regexp.

See also isValid() and errorString().

func (*QRegExp) Cap

func (this *QRegExp) Cap(nth int) string

Returns the text captured by the nth subexpression. The entire match has index 0 and the parenthesized subexpressions have indexes starting from 1 (excluding non-capturing parentheses).

QRegExp rxlen("(\\d+)(?:\\s*)(cm|inch)");
int pos = rxlen.indexIn("Length: 189cm");
if (pos > -1) {
    QString value = rxlen.cap(1); // "189"
    QString unit = rxlen.cap(2);  // "cm"
    // ...
}

The order of elements matched by cap() is as follows. The first element, cap(0), is the entire matching string. Each subsequent element corresponds to the next capturing open left parentheses. Thus cap(1) is the text of the first capturing parentheses, cap(2) is the text of the second, and so on.

See also capturedTexts() and pos().

func (*QRegExp) Cap_1

func (this *QRegExp) Cap_1(nth int) string

Returns the text captured by the nth subexpression. The entire match has index 0 and the parenthesized subexpressions have indexes starting from 1 (excluding non-capturing parentheses).

QRegExp rxlen("(\\d+)(?:\\s*)(cm|inch)");
int pos = rxlen.indexIn("Length: 189cm");
if (pos > -1) {
    QString value = rxlen.cap(1); // "189"
    QString unit = rxlen.cap(2);  // "cm"
    // ...
}

The order of elements matched by cap() is as follows. The first element, cap(0), is the entire matching string. Each subsequent element corresponds to the next capturing open left parentheses. Thus cap(1) is the text of the first capturing parentheses, cap(2) is the text of the second, and so on.

See also capturedTexts() and pos().

func (*QRegExp) Cap_1_

func (this *QRegExp) Cap_1_() string

Returns the text captured by the nth subexpression. The entire match has index 0 and the parenthesized subexpressions have indexes starting from 1 (excluding non-capturing parentheses).

QRegExp rxlen("(\\d+)(?:\\s*)(cm|inch)");
int pos = rxlen.indexIn("Length: 189cm");
if (pos > -1) {
    QString value = rxlen.cap(1); // "189"
    QString unit = rxlen.cap(2);  // "cm"
    // ...
}

The order of elements matched by cap() is as follows. The first element, cap(0), is the entire matching string. Each subsequent element corresponds to the next capturing open left parentheses. Thus cap(1) is the text of the first capturing parentheses, cap(2) is the text of the second, and so on.

See also capturedTexts() and pos().

func (*QRegExp) Cap__

func (this *QRegExp) Cap__() string

Returns the text captured by the nth subexpression. The entire match has index 0 and the parenthesized subexpressions have indexes starting from 1 (excluding non-capturing parentheses).

QRegExp rxlen("(\\d+)(?:\\s*)(cm|inch)");
int pos = rxlen.indexIn("Length: 189cm");
if (pos > -1) {
    QString value = rxlen.cap(1); // "189"
    QString unit = rxlen.cap(2);  // "cm"
    // ...
}

The order of elements matched by cap() is as follows. The first element, cap(0), is the entire matching string. Each subsequent element corresponds to the next capturing open left parentheses. Thus cap(1) is the text of the first capturing parentheses, cap(2) is the text of the second, and so on.

See also capturedTexts() and pos().

func (*QRegExp) CaptureCount

func (this *QRegExp) CaptureCount() int

Returns the number of captures contained in the regular expression.

This function was introduced in Qt 4.6.

func (*QRegExp) CapturedTexts

func (this *QRegExp) CapturedTexts() *QStringList

Returns a list of the captured text strings.

The first string in the list is the entire matched string. Each subsequent list element contains a string that matched a (capturing) subexpression of the regexp.

For example:

QRegExp rx("(\\d+)(\\s*)(cm|inch(es)?)");
int pos = rx.indexIn("Length: 36 inches");
QStringList list = rx.capturedTexts();
// list is now ("36 inches", "36", " ", "inches", "es")

The above example also captures elements that may be present but which we have no interest in. This problem can be solved by using non-capturing parentheses:

QRegExp rx("(\\d+)(?:\\s*)(cm|inch(?:es)?)");
int pos = rx.indexIn("Length: 36 inches");
QStringList list = rx.capturedTexts();
// list is now ("36 inches", "36", "inches")

Note that if you want to iterate over the list, you should iterate over a copy, e.g.

QStringList list = rx.capturedTexts();
QStringList::iterator it = list.begin();
while (it != list.end()) {
    myProcessing(*it);
    ++it;
}

Some regexps can match an indeterminate number of times. For example if the input string is "Offsets: 12 14 99 231 7" and the regexp, rx, is (\d+)+, we would hope to get a list of all the numbers matched. However, after calling rx.indexIn(str), capturedTexts() will return the list ("12", "12"), i.e. the entire match was "12" and the first subexpression matched was "12". The correct approach is to use cap() in a loop.

The order of elements in the string list is as follows. The first element is the entire matching string. Each subsequent element corresponds to the next capturing open left parentheses. Thus capturedTexts()[1] is the text of the first capturing parentheses, capturedTexts()[2] is the text of the second and so on (corresponding to $1, $2, etc., in some other regexp languages).

See also cap() and pos().

func (*QRegExp) CapturedTexts_1

func (this *QRegExp) CapturedTexts_1() *QStringList

Returns a list of the captured text strings.

The first string in the list is the entire matched string. Each subsequent list element contains a string that matched a (capturing) subexpression of the regexp.

For example:

QRegExp rx("(\\d+)(\\s*)(cm|inch(es)?)");
int pos = rx.indexIn("Length: 36 inches");
QStringList list = rx.capturedTexts();
// list is now ("36 inches", "36", " ", "inches", "es")

The above example also captures elements that may be present but which we have no interest in. This problem can be solved by using non-capturing parentheses:

QRegExp rx("(\\d+)(?:\\s*)(cm|inch(?:es)?)");
int pos = rx.indexIn("Length: 36 inches");
QStringList list = rx.capturedTexts();
// list is now ("36 inches", "36", "inches")

Note that if you want to iterate over the list, you should iterate over a copy, e.g.

QStringList list = rx.capturedTexts();
QStringList::iterator it = list.begin();
while (it != list.end()) {
    myProcessing(*it);
    ++it;
}

Some regexps can match an indeterminate number of times. For example if the input string is "Offsets: 12 14 99 231 7" and the regexp, rx, is (\d+)+, we would hope to get a list of all the numbers matched. However, after calling rx.indexIn(str), capturedTexts() will return the list ("12", "12"), i.e. the entire match was "12" and the first subexpression matched was "12". The correct approach is to use cap() in a loop.

The order of elements in the string list is as follows. The first element is the entire matching string. Each subsequent element corresponds to the next capturing open left parentheses. Thus capturedTexts()[1] is the text of the first capturing parentheses, capturedTexts()[2] is the text of the second and so on (corresponding to $1, $2, etc., in some other regexp languages).

See also cap() and pos().

func (*QRegExp) CaseSensitivity

func (this *QRegExp) CaseSensitivity() int

Returns Qt::CaseSensitive if the regexp is matched case sensitively; otherwise returns Qt::CaseInsensitive.

See also setCaseSensitivity(), patternSyntax(), pattern(), and isMinimal().

func (*QRegExp) ErrorString

func (this *QRegExp) ErrorString() string

Returns a text string that explains why a regexp pattern is invalid the case being; otherwise returns "no error occurred".

See also isValid().

func (*QRegExp) ErrorString_1

func (this *QRegExp) ErrorString_1() string

Returns a text string that explains why a regexp pattern is invalid the case being; otherwise returns "no error occurred".

See also isValid().

func (*QRegExp) Escape

func (this *QRegExp) Escape(str string) string

Returns the string str with every regexp special character escaped with a backslash. The special characters are $, (,), *, +, ., ?, [, ,], ^, {, | and }.

Example:

s1 = QRegExp::escape("bingo");   // s1 == "bingo"
s2 = QRegExp::escape("f(x)");    // s2 == "f\\(x\\)"

This function is useful to construct regexp patterns dynamically:

QRegExp rx("(" + QRegExp::escape(name) +
           "|" + QRegExp::escape(alias) + ")");

See also setPatternSyntax().

func (*QRegExp) ExactMatch

func (this *QRegExp) ExactMatch(str string) bool

Returns true if str is matched exactly by this regular expression; otherwise returns false. You can determine how much of the string was matched by calling matchedLength().

For a given regexp string R, exactMatch("R") is the equivalent of indexIn("^R$") since exactMatch() effectively encloses the regexp in the start of string and end of string anchors, except that it sets matchedLength() differently.

For example, if the regular expression is blue, then exactMatch() returns true only for input blue. For inputs bluebell, blutak and lightblue, exactMatch() returns false and matchedLength() will return 4, 3 and 0 respectively.

Although const, this function sets matchedLength(), capturedTexts(), and pos().

See also indexIn() and lastIndexIn().

func (*QRegExp) GetCthis

func (this *QRegExp) GetCthis() unsafe.Pointer

func (*QRegExp) IndexIn

func (this *QRegExp) IndexIn(str string, offset int, caretMode int) int

Attempts to find a match in str from position offset (0 by default). If offset is -1, the search starts at the last character; if -2, at the next to last character; etc.

Returns the position of the first match, or -1 if there was no match.

The caretMode parameter can be used to instruct whether ^ should match at index 0 or at offset.

You might prefer to use QString::indexOf(), QString::contains(), or even QStringList::filter(). To replace matches use QString::replace().

Example:

QString str = "offsets: 1.23 .50 71.00 6.00";
QRegExp rx("\\d*\\.\\d+");    // primitive floating point matching
int count = 0;
int pos = 0;
while ((pos = rx.indexIn(str, pos)) != -1) {
    ++count;
    pos += rx.matchedLength();
}
// pos will be 9, 14, 18 and finally 24; count will end up as 4

Although const, this function sets matchedLength(), capturedTexts() and pos().

If the QRegExp is a wildcard expression (see setPatternSyntax()) and want to test a string against the whole wildcard expression, use exactMatch() instead of this function.

See also lastIndexIn() and exactMatch().

func (*QRegExp) IndexIn__

func (this *QRegExp) IndexIn__(str string) int

Attempts to find a match in str from position offset (0 by default). If offset is -1, the search starts at the last character; if -2, at the next to last character; etc.

Returns the position of the first match, or -1 if there was no match.

The caretMode parameter can be used to instruct whether ^ should match at index 0 or at offset.

You might prefer to use QString::indexOf(), QString::contains(), or even QStringList::filter(). To replace matches use QString::replace().

Example:

QString str = "offsets: 1.23 .50 71.00 6.00";
QRegExp rx("\\d*\\.\\d+");    // primitive floating point matching
int count = 0;
int pos = 0;
while ((pos = rx.indexIn(str, pos)) != -1) {
    ++count;
    pos += rx.matchedLength();
}
// pos will be 9, 14, 18 and finally 24; count will end up as 4

Although const, this function sets matchedLength(), capturedTexts() and pos().

If the QRegExp is a wildcard expression (see setPatternSyntax()) and want to test a string against the whole wildcard expression, use exactMatch() instead of this function.

See also lastIndexIn() and exactMatch().

func (*QRegExp) IndexIn__1

func (this *QRegExp) IndexIn__1(str string, offset int) int

Attempts to find a match in str from position offset (0 by default). If offset is -1, the search starts at the last character; if -2, at the next to last character; etc.

Returns the position of the first match, or -1 if there was no match.

The caretMode parameter can be used to instruct whether ^ should match at index 0 or at offset.

You might prefer to use QString::indexOf(), QString::contains(), or even QStringList::filter(). To replace matches use QString::replace().

Example:

QString str = "offsets: 1.23 .50 71.00 6.00";
QRegExp rx("\\d*\\.\\d+");    // primitive floating point matching
int count = 0;
int pos = 0;
while ((pos = rx.indexIn(str, pos)) != -1) {
    ++count;
    pos += rx.matchedLength();
}
// pos will be 9, 14, 18 and finally 24; count will end up as 4

Although const, this function sets matchedLength(), capturedTexts() and pos().

If the QRegExp is a wildcard expression (see setPatternSyntax()) and want to test a string against the whole wildcard expression, use exactMatch() instead of this function.

See also lastIndexIn() and exactMatch().

func (*QRegExp) IsEmpty

func (this *QRegExp) IsEmpty() bool

Returns true if the pattern string is empty; otherwise returns false.

If you call exactMatch() with an empty pattern on an empty string it will return true; otherwise it returns false since it operates over the whole string. If you call indexIn() with an empty pattern on any string it will return the start offset (0 by default) because the empty pattern matches the 'emptiness' at the start of the string. In this case the length of the match returned by matchedLength() will be 0.

See QString::isEmpty().

func (*QRegExp) IsMinimal

func (this *QRegExp) IsMinimal() bool

Returns true if minimal (non-greedy) matching is enabled; otherwise returns false.

See also caseSensitivity() and setMinimal().

func (*QRegExp) IsValid

func (this *QRegExp) IsValid() bool

Returns true if the regular expression is valid; otherwise returns false. An invalid regular expression never matches.

The pattern [a-z is an example of an invalid pattern, since it lacks a closing square bracket.

Note that the validity of a regexp may also depend on the setting of the wildcard flag, for example *.html is a valid wildcard regexp but an invalid full regexp.

See also errorString().

func (*QRegExp) LastIndexIn

func (this *QRegExp) LastIndexIn(str string, offset int, caretMode int) int

Attempts to find a match backwards in str from position offset. If offset is -1 (the default), the search starts at the last character; if -2, at the next to last character; etc.

Returns the position of the first match, or -1 if there was no match.

The caretMode parameter can be used to instruct whether ^ should match at index 0 or at offset.

Although const, this function sets matchedLength(), capturedTexts() and pos().

Warning: Searching backwards is much slower than searching forwards.

See also indexIn() and exactMatch().

func (*QRegExp) LastIndexIn__

func (this *QRegExp) LastIndexIn__(str string) int

Attempts to find a match backwards in str from position offset. If offset is -1 (the default), the search starts at the last character; if -2, at the next to last character; etc.

Returns the position of the first match, or -1 if there was no match.

The caretMode parameter can be used to instruct whether ^ should match at index 0 or at offset.

Although const, this function sets matchedLength(), capturedTexts() and pos().

Warning: Searching backwards is much slower than searching forwards.

See also indexIn() and exactMatch().

func (*QRegExp) LastIndexIn__1

func (this *QRegExp) LastIndexIn__1(str string, offset int) int

Attempts to find a match backwards in str from position offset. If offset is -1 (the default), the search starts at the last character; if -2, at the next to last character; etc.

Returns the position of the first match, or -1 if there was no match.

The caretMode parameter can be used to instruct whether ^ should match at index 0 or at offset.

Although const, this function sets matchedLength(), capturedTexts() and pos().

Warning: Searching backwards is much slower than searching forwards.

See also indexIn() and exactMatch().

func (*QRegExp) MatchedLength

func (this *QRegExp) MatchedLength() int

Returns the length of the last matched string, or -1 if there was no match.

See also exactMatch(), indexIn(), and lastIndexIn().

func (*QRegExp) NewFromPointer

func (*QRegExp) NewFromPointer(cthis unsafe.Pointer) *QRegExp

func (*QRegExp) Operator_equal

func (this *QRegExp) Operator_equal(rx QRegExp_ITF) *QRegExp

func (*QRegExp) Operator_equal_1

func (this *QRegExp) Operator_equal_1(other unsafe.Pointer) *QRegExp

func (*QRegExp) Operator_equal_equal

func (this *QRegExp) Operator_equal_equal(rx QRegExp_ITF) bool

func (*QRegExp) Operator_not_equal

func (this *QRegExp) Operator_not_equal(rx QRegExp_ITF) bool

func (*QRegExp) Pattern

func (this *QRegExp) Pattern() string

Returns the pattern string of the regular expression. The pattern has either regular expression syntax or wildcard syntax, depending on patternSyntax().

See also setPattern(), patternSyntax(), and caseSensitivity().

func (*QRegExp) PatternSyntax

func (this *QRegExp) PatternSyntax() int

Returns the syntax used by the regular expression. The default is QRegExp::RegExp.

See also setPatternSyntax(), pattern(), and caseSensitivity().

func (*QRegExp) Pos

func (this *QRegExp) Pos(nth int) int

Returns the position of the nth captured text in the searched string. If nth is 0 (the default), pos() returns the position of the whole match.

Example:

QRegExp rx("/([a-z]+)/([a-z]+)");
rx.indexIn("Output /dev/null");   // returns 7 (position of /dev/null)
rx.pos(0);                        // returns 7 (position of /dev/null)
rx.pos(1);                        // returns 8 (position of dev)
rx.pos(2);                        // returns 12 (position of null)

For zero-length matches, pos() always returns -1. (For example, if cap(4) would return an empty string, pos(4) returns -1.) This is a feature of the implementation.

See also cap() and capturedTexts().

func (*QRegExp) Pos_1

func (this *QRegExp) Pos_1(nth int) int

Returns the position of the nth captured text in the searched string. If nth is 0 (the default), pos() returns the position of the whole match.

Example:

QRegExp rx("/([a-z]+)/([a-z]+)");
rx.indexIn("Output /dev/null");   // returns 7 (position of /dev/null)
rx.pos(0);                        // returns 7 (position of /dev/null)
rx.pos(1);                        // returns 8 (position of dev)
rx.pos(2);                        // returns 12 (position of null)

For zero-length matches, pos() always returns -1. (For example, if cap(4) would return an empty string, pos(4) returns -1.) This is a feature of the implementation.

See also cap() and capturedTexts().

func (*QRegExp) Pos_1_

func (this *QRegExp) Pos_1_() int

Returns the position of the nth captured text in the searched string. If nth is 0 (the default), pos() returns the position of the whole match.

Example:

QRegExp rx("/([a-z]+)/([a-z]+)");
rx.indexIn("Output /dev/null");   // returns 7 (position of /dev/null)
rx.pos(0);                        // returns 7 (position of /dev/null)
rx.pos(1);                        // returns 8 (position of dev)
rx.pos(2);                        // returns 12 (position of null)

For zero-length matches, pos() always returns -1. (For example, if cap(4) would return an empty string, pos(4) returns -1.) This is a feature of the implementation.

See also cap() and capturedTexts().

func (*QRegExp) Pos__

func (this *QRegExp) Pos__() int

Returns the position of the nth captured text in the searched string. If nth is 0 (the default), pos() returns the position of the whole match.

Example:

QRegExp rx("/([a-z]+)/([a-z]+)");
rx.indexIn("Output /dev/null");   // returns 7 (position of /dev/null)
rx.pos(0);                        // returns 7 (position of /dev/null)
rx.pos(1);                        // returns 8 (position of dev)
rx.pos(2);                        // returns 12 (position of null)

For zero-length matches, pos() always returns -1. (For example, if cap(4) would return an empty string, pos(4) returns -1.) This is a feature of the implementation.

See also cap() and capturedTexts().

func (*QRegExp) QRegExp_PTR

func (ptr *QRegExp) QRegExp_PTR() *QRegExp

func (*QRegExp) SetCaseSensitivity

func (this *QRegExp) SetCaseSensitivity(cs int)

Sets case sensitive matching to cs.

If cs is Qt::CaseSensitive, \.txt$ matches readme.txt but not README.TXT.

See also caseSensitivity(), setPatternSyntax(), setPattern(), and setMinimal().

func (*QRegExp) SetCthis

func (this *QRegExp) SetCthis(cthis unsafe.Pointer)

func (*QRegExp) SetMinimal

func (this *QRegExp) SetMinimal(minimal bool)

Enables or disables minimal matching. If minimal is false, matching is greedy (maximal) which is the default.

For example, suppose we have the input string "We must be <b>bold</b>, very <b>bold</b>!" and the pattern <b>.*</b>. With the default greedy (maximal) matching, the match is "We must be <b>bold</b>, very <b>bold</b>!". But with minimal (non-greedy) matching, the first match is: "We must be <b>bold</b>, very <b>bold</b>!" and the second match is "We must be <b>bold</b>, very <b>bold</b>!". In practice we might use the pattern <b>[^<]*</b> instead, although this will still fail for nested tags.

See also isMinimal() and setCaseSensitivity().

func (*QRegExp) SetPattern

func (this *QRegExp) SetPattern(pattern string)

Sets the pattern string to pattern. The case sensitivity, wildcard, and minimal matching options are not changed.

See also pattern(), setPatternSyntax(), and setCaseSensitivity().

func (*QRegExp) SetPatternSyntax

func (this *QRegExp) SetPatternSyntax(syntax int)

Sets the syntax mode for the regular expression. The default is QRegExp::RegExp.

Setting syntax to QRegExp::Wildcard enables simple shell-like QRegExp wildcard matching. For example, r*.txt matches the string readme.txt in wildcard mode, but does not match readme.

Setting syntax to QRegExp::FixedString means that the pattern is interpreted as a plain string. Special characters (e.g., backslash) don't need to be escaped then.

See also patternSyntax(), setPattern(), setCaseSensitivity(), and escape().

func (*QRegExp) Swap

func (this *QRegExp) Swap(other QRegExp_ITF)

Swaps regular expression other with this regular expression. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

type QRegExp_ITF

type QRegExp_ITF interface {
	QRegExp_PTR() *QRegExp
}

type QRegExp__CaretMode

type QRegExp__CaretMode = int

The CaretMode enum defines the different meanings of the caret (^) in a regular expression. The possible values are:

const QRegExp__CaretAtOffset QRegExp__CaretMode = 1

The caret corresponds to the start offset of the search.

const QRegExp__CaretAtZero QRegExp__CaretMode = 0
const QRegExp__CaretWontMatch QRegExp__CaretMode = 2

The caret never matches.

type QRegExp__PatternSyntax

type QRegExp__PatternSyntax = int

The syntax used to interpret the meaning of the pattern.

See also setPatternSyntax().

const QRegExp__FixedString QRegExp__PatternSyntax = 2

The pattern is a fixed string. This is equivalent to using the RegExp pattern on a string in which all metacharacters are escaped using escape().

const QRegExp__RegExp QRegExp__PatternSyntax = 0

A rich Perl-like pattern matching syntax. This is the default.

const QRegExp__RegExp2 QRegExp__PatternSyntax = 3
const QRegExp__W3CXmlSchema11 QRegExp__PatternSyntax = 5
const QRegExp__Wildcard QRegExp__PatternSyntax = 1

This provides a simple pattern matching syntax similar to that used by shells (command interpreters) for "file globbing". See QRegExp wildcard matching.

const QRegExp__WildcardUnix QRegExp__PatternSyntax = 4

This is similar to Wildcard but with the behavior of a Unix shell. The wildcard characters can be escaped with the character "\".

type QRegularExpression

type QRegularExpression struct {
	*qtrt.CObject
}

func NewQRegularExpression

func NewQRegularExpression() *QRegularExpression

Constructs a QRegularExpression object with an empty pattern and no pattern options.

See also setPattern() and setPatternOptions().

func NewQRegularExpressionFromPointer

func NewQRegularExpressionFromPointer(cthis unsafe.Pointer) *QRegularExpression

func NewQRegularExpression_1

func NewQRegularExpression_1(pattern string, options int) *QRegularExpression

Constructs a QRegularExpression object with an empty pattern and no pattern options.

See also setPattern() and setPatternOptions().

func NewQRegularExpression_1_

func NewQRegularExpression_1_(pattern string) *QRegularExpression

Constructs a QRegularExpression object with an empty pattern and no pattern options.

See also setPattern() and setPatternOptions().

func (*QRegularExpression) CaptureCount

func (this *QRegularExpression) CaptureCount() int

Returns the number of capturing groups inside the pattern string, or -1 if the regular expression is not valid.

Note: The implicit capturing group 0 is not included in the returned number.

See also isValid().

func (*QRegularExpression) ErrorString

func (this *QRegularExpression) ErrorString() string

Returns a textual description of the error found when checking the validity of the regular expression, or "no error" if no error was found.

See also isValid() and patternErrorOffset().

func (*QRegularExpression) Escape

func (this *QRegularExpression) Escape(str string) string

Escapes all characters of str so that they no longer have any special meaning when used as a regular expression pattern string, and returns the escaped string. For instance:

QString escaped = QRegularExpression::escape("a(x) = f(x) + g(x)");
// escaped == "a\\(x\\)\\ \\=\\ f\\(x\\)\\ \\+\\ g\\(x\\)"

This is very convenient in order to build patterns from arbitrary strings:

QString pattern = "(" + QRegularExpression::escape(name) +
                  "|" + QRegularExpression::escape(nickname) + ")";
QRegularExpression re(pattern);

Note: This function implements Perl's quotemeta algorithm and escapes with a backslash all characters in str, except for the characters in the [A-Z], [a-z] and [0-9] ranges, as well as the underscore (_) character. The only difference with Perl is that a literal NUL inside str is escaped with the sequence "\\0" (backslash + '0'), instead of "\\\0" (backslash + NUL).

func (*QRegularExpression) GetCthis

func (this *QRegularExpression) GetCthis() unsafe.Pointer

func (*QRegularExpression) GlobalMatch

func (this *QRegularExpression) GlobalMatch(subject string, offset int, matchType int, matchOptions int) *QRegularExpressionMatchIterator

Attempts to perform a global match of the regular expression against the given subject string, starting at the position offset inside the subject, using a match of type matchType and honoring the given matchOptions.

The returned QRegularExpressionMatchIterator is positioned before the first match result (if any).

See also QRegularExpressionMatchIterator and global matching.

func (*QRegularExpression) GlobalMatch_1

func (this *QRegularExpression) GlobalMatch_1(subjectRef QStringRef_ITF, offset int, matchType int, matchOptions int) *QRegularExpressionMatchIterator

Attempts to perform a global match of the regular expression against the given subject string, starting at the position offset inside the subject, using a match of type matchType and honoring the given matchOptions.

The returned QRegularExpressionMatchIterator is positioned before the first match result (if any).

See also QRegularExpressionMatchIterator and global matching.

func (*QRegularExpression) GlobalMatch_1_

func (this *QRegularExpression) GlobalMatch_1_(subjectRef QStringRef_ITF) *QRegularExpressionMatchIterator

Attempts to perform a global match of the regular expression against the given subject string, starting at the position offset inside the subject, using a match of type matchType and honoring the given matchOptions.

The returned QRegularExpressionMatchIterator is positioned before the first match result (if any).

See also QRegularExpressionMatchIterator and global matching.

func (*QRegularExpression) GlobalMatch_1_1

func (this *QRegularExpression) GlobalMatch_1_1(subjectRef QStringRef_ITF, offset int) *QRegularExpressionMatchIterator

Attempts to perform a global match of the regular expression against the given subject string, starting at the position offset inside the subject, using a match of type matchType and honoring the given matchOptions.

The returned QRegularExpressionMatchIterator is positioned before the first match result (if any).

See also QRegularExpressionMatchIterator and global matching.

func (*QRegularExpression) GlobalMatch_1_2

func (this *QRegularExpression) GlobalMatch_1_2(subjectRef QStringRef_ITF, offset int, matchType int) *QRegularExpressionMatchIterator

Attempts to perform a global match of the regular expression against the given subject string, starting at the position offset inside the subject, using a match of type matchType and honoring the given matchOptions.

The returned QRegularExpressionMatchIterator is positioned before the first match result (if any).

See also QRegularExpressionMatchIterator and global matching.

func (*QRegularExpression) GlobalMatch__

func (this *QRegularExpression) GlobalMatch__(subject string) *QRegularExpressionMatchIterator

Attempts to perform a global match of the regular expression against the given subject string, starting at the position offset inside the subject, using a match of type matchType and honoring the given matchOptions.

The returned QRegularExpressionMatchIterator is positioned before the first match result (if any).

See also QRegularExpressionMatchIterator and global matching.

func (*QRegularExpression) GlobalMatch__1

func (this *QRegularExpression) GlobalMatch__1(subject string, offset int) *QRegularExpressionMatchIterator

Attempts to perform a global match of the regular expression against the given subject string, starting at the position offset inside the subject, using a match of type matchType and honoring the given matchOptions.

The returned QRegularExpressionMatchIterator is positioned before the first match result (if any).

See also QRegularExpressionMatchIterator and global matching.

func (*QRegularExpression) GlobalMatch__2

func (this *QRegularExpression) GlobalMatch__2(subject string, offset int, matchType int) *QRegularExpressionMatchIterator

Attempts to perform a global match of the regular expression against the given subject string, starting at the position offset inside the subject, using a match of type matchType and honoring the given matchOptions.

The returned QRegularExpressionMatchIterator is positioned before the first match result (if any).

See also QRegularExpressionMatchIterator and global matching.

func (*QRegularExpression) IsValid

func (this *QRegularExpression) IsValid() bool

Returns true if the regular expression is a valid regular expression (that is, it contains no syntax errors, etc.), or false otherwise. Use errorString() to obtain a textual description of the error.

See also errorString() and patternErrorOffset().

func (*QRegularExpression) Match

func (this *QRegularExpression) Match(subject string, offset int, matchType int, matchOptions int) *QRegularExpressionMatch

Attempts to match the regular expression against the given subject string, starting at the position offset inside the subject, using a match of type matchType and honoring the given matchOptions.

The returned QRegularExpressionMatch object contains the results of the match.

See also QRegularExpressionMatch and normal matching.

func (*QRegularExpression) Match_1

func (this *QRegularExpression) Match_1(subjectRef QStringRef_ITF, offset int, matchType int, matchOptions int) *QRegularExpressionMatch

Attempts to match the regular expression against the given subject string, starting at the position offset inside the subject, using a match of type matchType and honoring the given matchOptions.

The returned QRegularExpressionMatch object contains the results of the match.

See also QRegularExpressionMatch and normal matching.

func (*QRegularExpression) Match_1_

func (this *QRegularExpression) Match_1_(subjectRef QStringRef_ITF) *QRegularExpressionMatch

Attempts to match the regular expression against the given subject string, starting at the position offset inside the subject, using a match of type matchType and honoring the given matchOptions.

The returned QRegularExpressionMatch object contains the results of the match.

See also QRegularExpressionMatch and normal matching.

func (*QRegularExpression) Match_1_1

func (this *QRegularExpression) Match_1_1(subjectRef QStringRef_ITF, offset int) *QRegularExpressionMatch

Attempts to match the regular expression against the given subject string, starting at the position offset inside the subject, using a match of type matchType and honoring the given matchOptions.

The returned QRegularExpressionMatch object contains the results of the match.

See also QRegularExpressionMatch and normal matching.

func (*QRegularExpression) Match_1_2

func (this *QRegularExpression) Match_1_2(subjectRef QStringRef_ITF, offset int, matchType int) *QRegularExpressionMatch

Attempts to match the regular expression against the given subject string, starting at the position offset inside the subject, using a match of type matchType and honoring the given matchOptions.

The returned QRegularExpressionMatch object contains the results of the match.

See also QRegularExpressionMatch and normal matching.

func (*QRegularExpression) Match__

func (this *QRegularExpression) Match__(subject string) *QRegularExpressionMatch

Attempts to match the regular expression against the given subject string, starting at the position offset inside the subject, using a match of type matchType and honoring the given matchOptions.

The returned QRegularExpressionMatch object contains the results of the match.

See also QRegularExpressionMatch and normal matching.

func (*QRegularExpression) Match__1

func (this *QRegularExpression) Match__1(subject string, offset int) *QRegularExpressionMatch

Attempts to match the regular expression against the given subject string, starting at the position offset inside the subject, using a match of type matchType and honoring the given matchOptions.

The returned QRegularExpressionMatch object contains the results of the match.

See also QRegularExpressionMatch and normal matching.

func (*QRegularExpression) Match__2

func (this *QRegularExpression) Match__2(subject string, offset int, matchType int) *QRegularExpressionMatch

Attempts to match the regular expression against the given subject string, starting at the position offset inside the subject, using a match of type matchType and honoring the given matchOptions.

The returned QRegularExpressionMatch object contains the results of the match.

See also QRegularExpressionMatch and normal matching.

func (*QRegularExpression) NamedCaptureGroups

func (this *QRegularExpression) NamedCaptureGroups() *QStringList

Returns a list of captureCount() + 1 elements, containing the names of the named capturing groups in the pattern string. The list is sorted such that the element of the list at position i is the name of the i-th capturing group, if it has a name, or an empty string if that capturing group is unnamed.

For instance, given the regular expression

(?<day>\d\d)-(?<month>\d\d)-(?<year>\d\d\d\d) (\w+) (?<name>\w+)

namedCaptureGroups() will return the following list:

("", "day", "month", "year", "", "name")

which corresponds to the fact that the capturing group #0 (corresponding to the whole match) has no name, the capturing group #1 has name "day", the capturing group #2 has name "month", etc.

If the regular expression is not valid, returns an empty list.

This function was introduced in Qt 5.1.

See also isValid(), QRegularExpressionMatch::captured(), and QString::isEmpty().

func (*QRegularExpression) NewFromPointer

func (*QRegularExpression) NewFromPointer(cthis unsafe.Pointer) *QRegularExpression

func (*QRegularExpression) Operator_equal

func (*QRegularExpression) Operator_equal_1

func (this *QRegularExpression) Operator_equal_1(re unsafe.Pointer) *QRegularExpression

func (*QRegularExpression) Operator_equal_equal

func (this *QRegularExpression) Operator_equal_equal(re QRegularExpression_ITF) bool

func (*QRegularExpression) Operator_not_equal

func (this *QRegularExpression) Operator_not_equal(re QRegularExpression_ITF) bool

func (*QRegularExpression) Optimize

func (this *QRegularExpression) Optimize()

Forces an immediate optimization of the pattern, including JIT-compiling it (if the JIT compiler is enabled).

Patterns are normally optimized only after a certain number of usages. If you can predict that this QRegularExpression object is going to be used for several matches, it may be convenient to optimize it in advance by calling this function.

This function was introduced in Qt 5.4.

See also QRegularExpression::OptimizeOnFirstUsageOption.

func (*QRegularExpression) Pattern

func (this *QRegularExpression) Pattern() string

Returns the pattern string of the regular expression.

See also setPattern() and patternOptions().

func (*QRegularExpression) PatternErrorOffset

func (this *QRegularExpression) PatternErrorOffset() int

Returns the offset, inside the pattern string, at which an error was found when checking the validity of the regular expression. If no error was found, then -1 is returned.

See also pattern(), isValid(), and errorString().

func (*QRegularExpression) PatternOptions

func (this *QRegularExpression) PatternOptions() int

Returns the pattern options for the regular expression.

See also setPatternOptions() and pattern().

func (*QRegularExpression) QRegularExpression_PTR

func (ptr *QRegularExpression) QRegularExpression_PTR() *QRegularExpression

func (*QRegularExpression) SetCthis

func (this *QRegularExpression) SetCthis(cthis unsafe.Pointer)

func (*QRegularExpression) SetPattern

func (this *QRegularExpression) SetPattern(pattern string)

Sets the pattern string of the regular expression to pattern. The pattern options are left unchanged.

See also pattern() and setPatternOptions().

func (*QRegularExpression) SetPatternOptions

func (this *QRegularExpression) SetPatternOptions(options int)

Sets the given options as the pattern options of the regular expression. The pattern string is left unchanged.

See also patternOptions() and setPattern().

func (*QRegularExpression) Swap

func (this *QRegularExpression) Swap(other QRegularExpression_ITF)

Swaps the regular expression other with this regular expression. This operation is very fast and never fails.

type QRegularExpressionMatch

type QRegularExpressionMatch struct {
	*qtrt.CObject
}

func NewQRegularExpressionMatch

func NewQRegularExpressionMatch() *QRegularExpressionMatch

func NewQRegularExpressionMatchFromPointer

func NewQRegularExpressionMatchFromPointer(cthis unsafe.Pointer) *QRegularExpressionMatch

func (*QRegularExpressionMatch) Captured

func (this *QRegularExpressionMatch) Captured(nth int) string

func (*QRegularExpressionMatch) CapturedEnd

func (this *QRegularExpressionMatch) CapturedEnd(nth int) int

func (*QRegularExpressionMatch) CapturedEnd_1

func (this *QRegularExpressionMatch) CapturedEnd_1(name string) int

func (*QRegularExpressionMatch) CapturedEnd_2

func (this *QRegularExpressionMatch) CapturedEnd_2(name QStringView_ITF) int

func (*QRegularExpressionMatch) CapturedEnd__

func (this *QRegularExpressionMatch) CapturedEnd__() int

func (*QRegularExpressionMatch) CapturedLength

func (this *QRegularExpressionMatch) CapturedLength(nth int) int

func (*QRegularExpressionMatch) CapturedLength_1

func (this *QRegularExpressionMatch) CapturedLength_1(name string) int

func (*QRegularExpressionMatch) CapturedLength_2

func (this *QRegularExpressionMatch) CapturedLength_2(name QStringView_ITF) int

func (*QRegularExpressionMatch) CapturedLength__

func (this *QRegularExpressionMatch) CapturedLength__() int

func (*QRegularExpressionMatch) CapturedRef

func (this *QRegularExpressionMatch) CapturedRef(nth int) *QStringRef

func (*QRegularExpressionMatch) CapturedRef_1

func (this *QRegularExpressionMatch) CapturedRef_1(name string) *QStringRef

func (*QRegularExpressionMatch) CapturedRef_2

func (this *QRegularExpressionMatch) CapturedRef_2(name QStringView_ITF) *QStringRef

func (*QRegularExpressionMatch) CapturedRef__

func (this *QRegularExpressionMatch) CapturedRef__() *QStringRef

func (*QRegularExpressionMatch) CapturedStart

func (this *QRegularExpressionMatch) CapturedStart(nth int) int

func (*QRegularExpressionMatch) CapturedStart_1

func (this *QRegularExpressionMatch) CapturedStart_1(name string) int

func (*QRegularExpressionMatch) CapturedStart_2

func (this *QRegularExpressionMatch) CapturedStart_2(name QStringView_ITF) int

func (*QRegularExpressionMatch) CapturedStart__

func (this *QRegularExpressionMatch) CapturedStart__() int

func (*QRegularExpressionMatch) CapturedTexts

func (this *QRegularExpressionMatch) CapturedTexts() *QStringList

func (*QRegularExpressionMatch) CapturedView

func (this *QRegularExpressionMatch) CapturedView(nth int) *QStringView

func (*QRegularExpressionMatch) CapturedView_1

func (this *QRegularExpressionMatch) CapturedView_1(name QStringView_ITF) *QStringView

func (*QRegularExpressionMatch) CapturedView__

func (this *QRegularExpressionMatch) CapturedView__() *QStringView

func (*QRegularExpressionMatch) Captured_1

func (this *QRegularExpressionMatch) Captured_1(name string) string

func (*QRegularExpressionMatch) Captured_2

func (this *QRegularExpressionMatch) Captured_2(name QStringView_ITF) string

func (*QRegularExpressionMatch) Captured__

func (this *QRegularExpressionMatch) Captured__() string

func (*QRegularExpressionMatch) GetCthis

func (this *QRegularExpressionMatch) GetCthis() unsafe.Pointer

func (*QRegularExpressionMatch) HasMatch

func (this *QRegularExpressionMatch) HasMatch() bool

func (*QRegularExpressionMatch) HasPartialMatch

func (this *QRegularExpressionMatch) HasPartialMatch() bool

func (*QRegularExpressionMatch) IsValid

func (this *QRegularExpressionMatch) IsValid() bool

Returns true if the regular expression is a valid regular expression (that is, it contains no syntax errors, etc.), or false otherwise. Use errorString() to obtain a textual description of the error.

See also errorString() and patternErrorOffset().

func (*QRegularExpressionMatch) LastCapturedIndex

func (this *QRegularExpressionMatch) LastCapturedIndex() int

func (*QRegularExpressionMatch) MatchOptions

func (this *QRegularExpressionMatch) MatchOptions() int

func (*QRegularExpressionMatch) MatchType

func (this *QRegularExpressionMatch) MatchType() int

func (*QRegularExpressionMatch) NewFromPointer

func (*QRegularExpressionMatch) Operator_equal

func (*QRegularExpressionMatch) Operator_equal_1

func (this *QRegularExpressionMatch) Operator_equal_1(match_ unsafe.Pointer) *QRegularExpressionMatch

func (*QRegularExpressionMatch) QRegularExpressionMatch_PTR

func (ptr *QRegularExpressionMatch) QRegularExpressionMatch_PTR() *QRegularExpressionMatch

func (*QRegularExpressionMatch) RegularExpression

func (this *QRegularExpressionMatch) RegularExpression() *QRegularExpression

func (*QRegularExpressionMatch) SetCthis

func (this *QRegularExpressionMatch) SetCthis(cthis unsafe.Pointer)

func (*QRegularExpressionMatch) Swap

Swaps the regular expression other with this regular expression. This operation is very fast and never fails.

type QRegularExpressionMatchIterator

type QRegularExpressionMatchIterator struct {
	*qtrt.CObject
}

func NewQRegularExpressionMatchIterator

func NewQRegularExpressionMatchIterator() *QRegularExpressionMatchIterator

func NewQRegularExpressionMatchIteratorFromPointer

func NewQRegularExpressionMatchIteratorFromPointer(cthis unsafe.Pointer) *QRegularExpressionMatchIterator

func (*QRegularExpressionMatchIterator) GetCthis

func (*QRegularExpressionMatchIterator) HasNext

func (this *QRegularExpressionMatchIterator) HasNext() bool

func (*QRegularExpressionMatchIterator) IsValid

func (this *QRegularExpressionMatchIterator) IsValid() bool

Returns true if the regular expression is a valid regular expression (that is, it contains no syntax errors, etc.), or false otherwise. Use errorString() to obtain a textual description of the error.

See also errorString() and patternErrorOffset().

func (*QRegularExpressionMatchIterator) MatchOptions

func (this *QRegularExpressionMatchIterator) MatchOptions() int

func (*QRegularExpressionMatchIterator) MatchType

func (this *QRegularExpressionMatchIterator) MatchType() int

func (*QRegularExpressionMatchIterator) NewFromPointer

func (*QRegularExpressionMatchIterator) Next

func (*QRegularExpressionMatchIterator) Operator_equal

func (*QRegularExpressionMatchIterator) Operator_equal_1

func (*QRegularExpressionMatchIterator) PeekNext

func (*QRegularExpressionMatchIterator) QRegularExpressionMatchIterator_PTR

func (ptr *QRegularExpressionMatchIterator) QRegularExpressionMatchIterator_PTR() *QRegularExpressionMatchIterator

func (*QRegularExpressionMatchIterator) RegularExpression

func (this *QRegularExpressionMatchIterator) RegularExpression() *QRegularExpression

func (*QRegularExpressionMatchIterator) SetCthis

func (this *QRegularExpressionMatchIterator) SetCthis(cthis unsafe.Pointer)

func (*QRegularExpressionMatchIterator) Swap

Swaps the regular expression other with this regular expression. This operation is very fast and never fails.

type QRegularExpressionMatchIterator_ITF

type QRegularExpressionMatchIterator_ITF interface {
	QRegularExpressionMatchIterator_PTR() *QRegularExpressionMatchIterator
}

type QRegularExpressionMatch_ITF

type QRegularExpressionMatch_ITF interface {
	QRegularExpressionMatch_PTR() *QRegularExpressionMatch
}

type QRegularExpression_ITF

type QRegularExpression_ITF interface {
	QRegularExpression_PTR() *QRegularExpression
}

type QRegularExpression__MatchOption

type QRegularExpression__MatchOption = int
const QRegularExpression__AnchoredMatchOption QRegularExpression__MatchOption = 1
const QRegularExpression__DontCheckSubjectStringMatchOption QRegularExpression__MatchOption = 2
const QRegularExpression__NoMatchOption QRegularExpression__MatchOption = 0

type QRegularExpression__MatchType

type QRegularExpression__MatchType = int

The MatchType enum defines the type of the match that should be attempted against the subject string.

const QRegularExpression__NoMatch QRegularExpression__MatchType = 3
const QRegularExpression__NormalMatch QRegularExpression__MatchType = 0

A normal match is done.

const QRegularExpression__PartialPreferCompleteMatch QRegularExpression__MatchType = 1

The pattern string is matched partially against the subject string. If a partial match is found, then it is recorded, and other matching alternatives are tried as usual. If a complete match is then found, then it's preferred to the partial match; in this case only the complete match is reported. If instead no complete match is found (but only the partial one), then the partial one is reported.

const QRegularExpression__PartialPreferFirstMatch QRegularExpression__MatchType = 2

The pattern string is matched partially against the subject string. If a partial match is found, then matching stops and the partial match is reported. In this case, other matching alternatives (potentially leading to a complete match) are not tried. Moreover, this match type assumes that the subject string only a substring of a larger text, and that (in this text) there are other characters beyond the end of the subject string. This can lead to surprising results; see the discussion in the partial matching section for more details.

type QRegularExpression__PatternOption

type QRegularExpression__PatternOption = int
const QRegularExpression__CaseInsensitiveOption QRegularExpression__PatternOption = 1
const QRegularExpression__DontAutomaticallyOptimizeOption QRegularExpression__PatternOption = 256
const QRegularExpression__DontCaptureOption QRegularExpression__PatternOption = 32
const QRegularExpression__DotMatchesEverythingOption QRegularExpression__PatternOption = 2
const QRegularExpression__ExtendedPatternSyntaxOption QRegularExpression__PatternOption = 8
const QRegularExpression__InvertedGreedinessOption QRegularExpression__PatternOption = 16
const QRegularExpression__MultilineOption QRegularExpression__PatternOption = 4
const QRegularExpression__NoPatternOption QRegularExpression__PatternOption = 0
const QRegularExpression__OptimizeOnFirstUsageOption QRegularExpression__PatternOption = 128
const QRegularExpression__UseUnicodePropertiesOption QRegularExpression__PatternOption = 64

type QResource

type QResource struct {
	*qtrt.CObject
}

func NewQResource

func NewQResource(file string, locale QLocale_ITF) *QResource

Constructs a QResource pointing to file. locale is used to load a specific localization of a resource data.

See also QFileInfo, QDir::searchPaths(), setFileName(), and setLocale().

func NewQResourceFromPointer

func NewQResourceFromPointer(cthis unsafe.Pointer) *QResource

func NewQResource__

func NewQResource__() *QResource

Constructs a QResource pointing to file. locale is used to load a specific localization of a resource data.

See also QFileInfo, QDir::searchPaths(), setFileName(), and setLocale().

func NewQResource__1

func NewQResource__1(file string) *QResource

Constructs a QResource pointing to file. locale is used to load a specific localization of a resource data.

See also QFileInfo, QDir::searchPaths(), setFileName(), and setLocale().

func (*QResource) AbsoluteFilePath

func (this *QResource) AbsoluteFilePath() string

Returns the real path that this QResource represents, if the resource was found via the QDir::searchPaths() it will be indicated in the path.

See also fileName().

func (*QResource) AddSearchPath

func (this *QResource) AddSearchPath(path string)

func (*QResource) Children

func (this *QResource) Children() *QStringList

Returns a list of all resources in this directory, if the resource represents a file the list will be empty.

See also isDir().

func (*QResource) Data

func (this *QResource) Data() unsafe.Pointer

Returns direct access to a read only segment of data that this resource represents. If the resource is compressed the data returns is compressed and qUncompress() must be used to access the data. If the resource is a directory 0 is returned.

See also size(), isCompressed(), and isFile().

func (*QResource) FileName

func (this *QResource) FileName() string

Returns the full path to the file that this QResource represents as it was passed.

See also setFileName() and absoluteFilePath().

func (*QResource) GetCthis

func (this *QResource) GetCthis() unsafe.Pointer

func (*QResource) InheritChildren

func (this *QResource) InheritChildren(f func() unsafe.Pointer)

QStringList children()

func (*QResource) InheritIsDir

func (this *QResource) InheritIsDir(f func() bool)

bool isDir()

func (*QResource) InheritIsFile

func (this *QResource) InheritIsFile(f func() bool)

bool isFile()

func (*QResource) IsCompressed

func (this *QResource) IsCompressed() bool

Returns true if the resource represents a file and the data backing it is in a compressed format, false otherwise.

See also data() and isFile().

func (*QResource) IsDir

func (this *QResource) IsDir() bool

Returns true if the resource represents a directory and thus may have children() in it, false if it represents a file.

See also isFile().

func (*QResource) IsFile

func (this *QResource) IsFile() bool

Returns true if the resource represents a file and thus has data backing it, false if it represents a directory.

See also isDir().

func (*QResource) IsValid

func (this *QResource) IsValid() bool

Returns true if the resource really exists in the resource hierarchy, false otherwise.

func (*QResource) LastModified

func (this *QResource) LastModified() *QDateTime

Returns the date and time when the file was last modified before packaging into a resource.

func (*QResource) Locale

func (this *QResource) Locale() *QLocale

Returns the locale used to locate the data for the QResource.

See also setLocale().

func (*QResource) NewFromPointer

func (*QResource) NewFromPointer(cthis unsafe.Pointer) *QResource

func (*QResource) QResource_PTR

func (ptr *QResource) QResource_PTR() *QResource

func (*QResource) RegisterResource

func (this *QResource) RegisterResource(rccFilename string, resourceRoot string) bool

Registers the resource with the given rccFileName at the location in the resource tree specified by mapRoot, and returns true if the file is successfully opened; otherwise returns false.

See also unregisterResource().

func (*QResource) RegisterResource_1

func (this *QResource) RegisterResource_1(rccData unsafe.Pointer, resourceRoot string) bool

Registers the resource with the given rccFileName at the location in the resource tree specified by mapRoot, and returns true if the file is successfully opened; otherwise returns false.

See also unregisterResource().

func (*QResource) RegisterResource_1_

func (this *QResource) RegisterResource_1_(rccData unsafe.Pointer) bool

Registers the resource with the given rccFileName at the location in the resource tree specified by mapRoot, and returns true if the file is successfully opened; otherwise returns false.

See also unregisterResource().

func (*QResource) RegisterResource__

func (this *QResource) RegisterResource__(rccFilename string) bool

Registers the resource with the given rccFileName at the location in the resource tree specified by mapRoot, and returns true if the file is successfully opened; otherwise returns false.

See also unregisterResource().

func (*QResource) SearchPaths

func (this *QResource) SearchPaths() *QStringList

func (*QResource) SetCthis

func (this *QResource) SetCthis(cthis unsafe.Pointer)

func (*QResource) SetFileName

func (this *QResource) SetFileName(file string)

Sets a QResource to point to file. file can either be absolute, in which case it is opened directly, if relative then the file will be tried to be found in QDir::searchPaths().

See also fileName() and absoluteFilePath().

func (*QResource) SetLocale

func (this *QResource) SetLocale(locale QLocale_ITF)

Sets a QResource to only load the localization of resource to for locale. If a resource for the specific locale is not found then the C locale is used.

See also locale() and setFileName().

func (*QResource) Size

func (this *QResource) Size() int64

Returns the size of the data backing the resource.

See also data() and isFile().

func (*QResource) UnregisterResource

func (this *QResource) UnregisterResource(rccFilename string, resourceRoot string) bool

Unregisters the resource with the given rccFileName at the location in the resource tree specified by mapRoot, and returns true if the resource is successfully unloaded and no references exist for the resource; otherwise returns false.

See also registerResource().

func (*QResource) UnregisterResource_1

func (this *QResource) UnregisterResource_1(rccData unsafe.Pointer, resourceRoot string) bool

Unregisters the resource with the given rccFileName at the location in the resource tree specified by mapRoot, and returns true if the resource is successfully unloaded and no references exist for the resource; otherwise returns false.

See also registerResource().

func (*QResource) UnregisterResource_1_

func (this *QResource) UnregisterResource_1_(rccData unsafe.Pointer) bool

Unregisters the resource with the given rccFileName at the location in the resource tree specified by mapRoot, and returns true if the resource is successfully unloaded and no references exist for the resource; otherwise returns false.

See also registerResource().

func (*QResource) UnregisterResource__

func (this *QResource) UnregisterResource__(rccFilename string) bool

Unregisters the resource with the given rccFileName at the location in the resource tree specified by mapRoot, and returns true if the resource is successfully unloaded and no references exist for the resource; otherwise returns false.

See also registerResource().

type QResource_ITF

type QResource_ITF interface {
	QResource_PTR() *QResource
}

type QRunnable

type QRunnable struct {
	*qtrt.CObject
}

func NewQRunnable

func NewQRunnable() *QRunnable

Constructs a QRunnable. Auto-deletion is enabled by default.

See also autoDelete() and setAutoDelete().

func NewQRunnableFromPointer

func NewQRunnableFromPointer(cthis unsafe.Pointer) *QRunnable

func (*QRunnable) AutoDelete

func (this *QRunnable) AutoDelete() bool

Returns true is auto-deletion is enabled; false otherwise.

If auto-deletion is enabled, QThreadPool will automatically delete this runnable after calling run(); otherwise, ownership remains with the application programmer.

See also setAutoDelete() and QThreadPool.

func (*QRunnable) GetCthis

func (this *QRunnable) GetCthis() unsafe.Pointer

func (*QRunnable) NewFromPointer

func (*QRunnable) NewFromPointer(cthis unsafe.Pointer) *QRunnable

func (*QRunnable) QRunnable_PTR

func (ptr *QRunnable) QRunnable_PTR() *QRunnable

func (*QRunnable) Run

func (this *QRunnable) Run()

Implement this pure virtual function in your subclass.

func (*QRunnable) SetAutoDelete

func (this *QRunnable) SetAutoDelete(_autoDelete bool)

Enables auto-deletion if autoDelete is true; otherwise auto-deletion is disabled.

If auto-deletion is enabled, QThreadPool will automatically delete this runnable after calling run(); otherwise, ownership remains with the application programmer.

Note that this flag must be set before calling QThreadPool::start(). Calling this function after QThreadPool::start() results in undefined behavior.

See also autoDelete() and QThreadPool.

func (*QRunnable) SetCthis

func (this *QRunnable) SetCthis(cthis unsafe.Pointer)

type QRunnable_ITF

type QRunnable_ITF interface {
	QRunnable_PTR() *QRunnable
}

type QSaveFile

type QSaveFile struct {
	*QFileDevice
}

func NewQSaveFile

func NewQSaveFile(name string) *QSaveFile

Constructs a new file object to represent the file with the given name.

func NewQSaveFileFromPointer

func NewQSaveFileFromPointer(cthis unsafe.Pointer) *QSaveFile

func NewQSaveFile_1

func NewQSaveFile_1(parent QObject_ITF) *QSaveFile

Constructs a new file object to represent the file with the given name.

func NewQSaveFile_1_

func NewQSaveFile_1_() *QSaveFile

Constructs a new file object to represent the file with the given name.

func NewQSaveFile_2

func NewQSaveFile_2(name string, parent QObject_ITF) *QSaveFile

Constructs a new file object to represent the file with the given name.

func (*QSaveFile) CancelWriting

func (this *QSaveFile) CancelWriting()

Cancels writing the new file.

If the application changes its mind while saving, it can call cancelWriting(), which sets an error code so that commit() will discard the temporary file.

Alternatively, it can simply make sure not to call commit().

Further write operations are possible after calling this method, but none of it will have any effect, the written file will be discarded.

This method has no effect when direct write fallback is used. This is the case when saving over an existing file in a readonly directory: no temporary file can be created, so the existing file is overwritten no matter what, and cancelWriting() cannot do anything about that, the contents of the existing file will be lost.

See also commit().

func (*QSaveFile) Commit

func (this *QSaveFile) Commit() bool

Commits the changes to disk, if all previous writes were successful.

It is mandatory to call this at the end of the saving operation, otherwise the file will be discarded.

If an error happened during writing, deletes the temporary file and returns false. Otherwise, renames it to the final fileName and returns true on success. Finally, closes the device.

See also cancelWriting().

func (*QSaveFile) DirectWriteFallback

func (this *QSaveFile) DirectWriteFallback() bool

Returns true if the fallback solution for saving files in read-only directories is enabled.

See also setDirectWriteFallback().

func (*QSaveFile) FileName

func (this *QSaveFile) FileName() string

Reimplemented from QFileDevice::fileName().

Returns the name set by setFileName() or to the QSaveFile constructor.

See also setFileName().

func (*QSaveFile) GetCthis

func (this *QSaveFile) GetCthis() unsafe.Pointer

func (*QSaveFile) InheritWriteData

func (this *QSaveFile) InheritWriteData(f func(data string, len_ int64) int64)

long long writeData(const char *, qint64)

func (*QSaveFile) MetaObject

func (this *QSaveFile) MetaObject() *QMetaObject

func (*QSaveFile) NewFromPointer

func (*QSaveFile) NewFromPointer(cthis unsafe.Pointer) *QSaveFile

func (*QSaveFile) Open

func (this *QSaveFile) Open(flags int) bool

Reimplemented from QIODevice::open().

Opens the file using OpenMode mode, returning true if successful; otherwise false.

Important: the mode must include QIODevice::WriteOnly. It may also have additional flags, such as QIODevice::Text and QIODevice::Unbuffered.

QIODevice::ReadWrite and QIODevice::Append are not supported at the moment.

See also QIODevice::OpenMode and setFileName().

func (*QSaveFile) QSaveFile_PTR

func (ptr *QSaveFile) QSaveFile_PTR() *QSaveFile

func (*QSaveFile) SetCthis

func (this *QSaveFile) SetCthis(cthis unsafe.Pointer)

func (*QSaveFile) SetDirectWriteFallback

func (this *QSaveFile) SetDirectWriteFallback(enabled bool)

Allows writing over the existing file if necessary.

QSaveFile creates a temporary file in the same directory as the final file and atomically renames it. However this is not possible if the directory permissions do not allow creating new files. In order to preserve atomicity guarantees, open() fails when it cannot create the temporary file.

In order to allow users to edit files with write permissions in a directory with restricted permissions, call setDirectWriteFallback() with enabled set to true, and the following calls to open() will fallback to opening the existing file directly and writing into it, without the use of a temporary file. This does not have atomicity guarantees, i.e. an application crash or for instance a power failure could lead to a partially-written file on disk. It also means cancelWriting() has no effect, in such a case.

Typically, to save documents edited by the user, call setDirectWriteFallback(true), and to save application internal files (configuration files, data files, ...), keep the default setting which ensures atomicity.

See also directWriteFallback().

func (*QSaveFile) SetFileName

func (this *QSaveFile) SetFileName(name string)

Sets the name of the file. The name can have no path, a relative path, or an absolute path.

See also QFile::setFileName() and fileName().

func (*QSaveFile) WriteData

func (this *QSaveFile) WriteData(data string, len_ int64) int64

Reimplemented from QIODevice::writeData().

type QSaveFile_ITF

type QSaveFile_ITF interface {
	QFileDevice_ITF
	QSaveFile_PTR() *QSaveFile
}

type QScopedPointerPodDeleter

type QScopedPointerPodDeleter struct {
	*qtrt.CObject
}

func NewQScopedPointerPodDeleterFromPointer

func NewQScopedPointerPodDeleterFromPointer(cthis unsafe.Pointer) *QScopedPointerPodDeleter

func (*QScopedPointerPodDeleter) Cleanup

func (this *QScopedPointerPodDeleter) Cleanup(pointer unsafe.Pointer)

func (*QScopedPointerPodDeleter) GetCthis

func (this *QScopedPointerPodDeleter) GetCthis() unsafe.Pointer

func (*QScopedPointerPodDeleter) NewFromPointer

func (*QScopedPointerPodDeleter) QScopedPointerPodDeleter_PTR

func (ptr *QScopedPointerPodDeleter) QScopedPointerPodDeleter_PTR() *QScopedPointerPodDeleter

func (*QScopedPointerPodDeleter) SetCthis

func (this *QScopedPointerPodDeleter) SetCthis(cthis unsafe.Pointer)

type QScopedPointerPodDeleter_ITF

type QScopedPointerPodDeleter_ITF interface {
	QScopedPointerPodDeleter_PTR() *QScopedPointerPodDeleter
}

type QSemaphore

type QSemaphore struct {
	*qtrt.CObject
}

func NewQSemaphore

func NewQSemaphore(n int) *QSemaphore

Creates a new semaphore and initializes the number of resources it guards to n (by default, 0).

See also release() and available().

func NewQSemaphoreFromPointer

func NewQSemaphoreFromPointer(cthis unsafe.Pointer) *QSemaphore

func NewQSemaphore__

func NewQSemaphore__() *QSemaphore

Creates a new semaphore and initializes the number of resources it guards to n (by default, 0).

See also release() and available().

func (*QSemaphore) Acquire

func (this *QSemaphore) Acquire(n int)

Tries to acquire n resources guarded by the semaphore. If n > available(), this call will block until enough resources are available.

See also release(), available(), and tryAcquire().

func (*QSemaphore) Acquire__

func (this *QSemaphore) Acquire__()

Tries to acquire n resources guarded by the semaphore. If n > available(), this call will block until enough resources are available.

See also release(), available(), and tryAcquire().

func (*QSemaphore) Available

func (this *QSemaphore) Available() int

Returns the number of resources currently available to the semaphore. This number can never be negative.

See also acquire() and release().

func (*QSemaphore) GetCthis

func (this *QSemaphore) GetCthis() unsafe.Pointer

func (*QSemaphore) NewFromPointer

func (*QSemaphore) NewFromPointer(cthis unsafe.Pointer) *QSemaphore

func (*QSemaphore) QSemaphore_PTR

func (ptr *QSemaphore) QSemaphore_PTR() *QSemaphore

func (*QSemaphore) Release

func (this *QSemaphore) Release(n int)

Releases n resources guarded by the semaphore.

This function can be used to "create" resources as well. For example:

QSemaphore sem(5);      // a semaphore that guards 5 resources
sem.acquire(5);         // acquire all 5 resources
sem.release(5);         // release the 5 resources
sem.release(10);        // "create" 10 new resources

QSemaphoreReleaser is a RAII wrapper around this function.

See also acquire(), available(), and QSemaphoreReleaser.

func (*QSemaphore) Release__

func (this *QSemaphore) Release__()

Releases n resources guarded by the semaphore.

This function can be used to "create" resources as well. For example:

QSemaphore sem(5);      // a semaphore that guards 5 resources
sem.acquire(5);         // acquire all 5 resources
sem.release(5);         // release the 5 resources
sem.release(10);        // "create" 10 new resources

QSemaphoreReleaser is a RAII wrapper around this function.

See also acquire(), available(), and QSemaphoreReleaser.

func (*QSemaphore) SetCthis

func (this *QSemaphore) SetCthis(cthis unsafe.Pointer)

func (*QSemaphore) TryAcquire

func (this *QSemaphore) TryAcquire(n int) bool

Tries to acquire n resources guarded by the semaphore and returns true on success. If available() < n, this call immediately returns false without acquiring any resources.

Example:

QSemaphore sem(5);      // sem.available() == 5
sem.tryAcquire(250);    // sem.available() == 5, returns false
sem.tryAcquire(3);      // sem.available() == 2, returns true

See also acquire().

func (*QSemaphore) TryAcquire_1

func (this *QSemaphore) TryAcquire_1(n int, timeout int) bool

Tries to acquire n resources guarded by the semaphore and returns true on success. If available() < n, this call immediately returns false without acquiring any resources.

Example:

QSemaphore sem(5);      // sem.available() == 5
sem.tryAcquire(250);    // sem.available() == 5, returns false
sem.tryAcquire(3);      // sem.available() == 2, returns true

See also acquire().

func (*QSemaphore) TryAcquire__

func (this *QSemaphore) TryAcquire__() bool

Tries to acquire n resources guarded by the semaphore and returns true on success. If available() < n, this call immediately returns false without acquiring any resources.

Example:

QSemaphore sem(5);      // sem.available() == 5
sem.tryAcquire(250);    // sem.available() == 5, returns false
sem.tryAcquire(3);      // sem.available() == 2, returns true

See also acquire().

type QSemaphoreReleaser

type QSemaphoreReleaser struct {
	*qtrt.CObject
}

func NewQSemaphoreReleaser

func NewQSemaphoreReleaser() *QSemaphoreReleaser

func NewQSemaphoreReleaserFromPointer

func NewQSemaphoreReleaserFromPointer(cthis unsafe.Pointer) *QSemaphoreReleaser

func NewQSemaphoreReleaser_1

func NewQSemaphoreReleaser_1(sem QSemaphore_ITF, n int) *QSemaphoreReleaser

func NewQSemaphoreReleaser_1_

func NewQSemaphoreReleaser_1_(sem QSemaphore_ITF) *QSemaphoreReleaser

func NewQSemaphoreReleaser_2

func NewQSemaphoreReleaser_2(sem QSemaphore_ITF, n int) *QSemaphoreReleaser

func NewQSemaphoreReleaser_2_

func NewQSemaphoreReleaser_2_(sem QSemaphore_ITF) *QSemaphoreReleaser

func (*QSemaphoreReleaser) Cancel

func (this *QSemaphoreReleaser) Cancel() *QSemaphore

func (*QSemaphoreReleaser) GetCthis

func (this *QSemaphoreReleaser) GetCthis() unsafe.Pointer

func (*QSemaphoreReleaser) NewFromPointer

func (*QSemaphoreReleaser) NewFromPointer(cthis unsafe.Pointer) *QSemaphoreReleaser

func (*QSemaphoreReleaser) QSemaphoreReleaser_PTR

func (ptr *QSemaphoreReleaser) QSemaphoreReleaser_PTR() *QSemaphoreReleaser

func (*QSemaphoreReleaser) Semaphore

func (this *QSemaphoreReleaser) Semaphore() *QSemaphore

func (*QSemaphoreReleaser) SetCthis

func (this *QSemaphoreReleaser) SetCthis(cthis unsafe.Pointer)

func (*QSemaphoreReleaser) Swap

func (this *QSemaphoreReleaser) Swap(other QSemaphoreReleaser_ITF)

type QSemaphoreReleaser_ITF

type QSemaphoreReleaser_ITF interface {
	QSemaphoreReleaser_PTR() *QSemaphoreReleaser
}

type QSemaphore_ITF

type QSemaphore_ITF interface {
	QSemaphore_PTR() *QSemaphore
}

type QSequentialAnimationGroup

type QSequentialAnimationGroup struct {
	*QAnimationGroup
}

func NewQSequentialAnimationGroup

func NewQSequentialAnimationGroup(parent QObject_ITF) *QSequentialAnimationGroup

Constructs a QSequentialAnimationGroup. parent is passed to QObject's constructor.

func NewQSequentialAnimationGroupFromPointer

func NewQSequentialAnimationGroupFromPointer(cthis unsafe.Pointer) *QSequentialAnimationGroup

func NewQSequentialAnimationGroup__

func NewQSequentialAnimationGroup__() *QSequentialAnimationGroup

Constructs a QSequentialAnimationGroup. parent is passed to QObject's constructor.

func (*QSequentialAnimationGroup) AddPause

func (this *QSequentialAnimationGroup) AddPause(msecs int) *QPauseAnimation

Adds a pause of msecs to this animation group. The pause is considered as a special type of animation, thus animationCount will be increased by one.

See also insertPause() and QAnimationGroup::addAnimation().

func (*QSequentialAnimationGroup) CurrentAnimation

func (this *QSequentialAnimationGroup) CurrentAnimation() *QAbstractAnimation

func (*QSequentialAnimationGroup) CurrentAnimationChanged

func (this *QSequentialAnimationGroup) CurrentAnimationChanged(current QAbstractAnimation_ITF)

QSequentialAnimationGroup emits this signal when currentAnimation has been changed. current is the current animation.

Note: Notifier signal for property currentAnimation.

See also currentAnimation().

func (*QSequentialAnimationGroup) Duration

func (this *QSequentialAnimationGroup) Duration() int

Reimplemented from QAbstractAnimation::duration().

func (*QSequentialAnimationGroup) Event

func (this *QSequentialAnimationGroup) Event(event QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QSequentialAnimationGroup) GetCthis

func (this *QSequentialAnimationGroup) GetCthis() unsafe.Pointer

func (*QSequentialAnimationGroup) InheritEvent

func (this *QSequentialAnimationGroup) InheritEvent(f func(event *QEvent) bool)

bool event(class QEvent *)

func (*QSequentialAnimationGroup) InheritUpdateCurrentTime

func (this *QSequentialAnimationGroup) InheritUpdateCurrentTime(f func(arg0 int))

void updateCurrentTime(int)

func (*QSequentialAnimationGroup) InheritUpdateDirection

func (this *QSequentialAnimationGroup) InheritUpdateDirection(f func(direction int))

void updateDirection(class QAbstractAnimation::Direction)

func (*QSequentialAnimationGroup) InheritUpdateState

func (this *QSequentialAnimationGroup) InheritUpdateState(f func(newState int, oldState int))

void updateState(class QAbstractAnimation::State, class QAbstractAnimation::State)

func (*QSequentialAnimationGroup) InsertPause

func (this *QSequentialAnimationGroup) InsertPause(index int, msecs int) *QPauseAnimation

Inserts a pause of msecs milliseconds at index in this animation group.

See also addPause() and QAnimationGroup::insertAnimation().

func (*QSequentialAnimationGroup) MetaObject

func (this *QSequentialAnimationGroup) MetaObject() *QMetaObject

func (*QSequentialAnimationGroup) NewFromPointer

func (*QSequentialAnimationGroup) QSequentialAnimationGroup_PTR

func (ptr *QSequentialAnimationGroup) QSequentialAnimationGroup_PTR() *QSequentialAnimationGroup

func (*QSequentialAnimationGroup) SetCthis

func (this *QSequentialAnimationGroup) SetCthis(cthis unsafe.Pointer)

func (*QSequentialAnimationGroup) UpdateCurrentTime

func (this *QSequentialAnimationGroup) UpdateCurrentTime(arg0 int)

Reimplemented from QAbstractAnimation::updateCurrentTime().

func (*QSequentialAnimationGroup) UpdateDirection

func (this *QSequentialAnimationGroup) UpdateDirection(direction int)

Reimplemented from QAbstractAnimation::updateDirection().

func (*QSequentialAnimationGroup) UpdateState

func (this *QSequentialAnimationGroup) UpdateState(newState int, oldState int)

Reimplemented from QAbstractAnimation::updateState().

type QSequentialAnimationGroup_ITF

type QSequentialAnimationGroup_ITF interface {
	QAnimationGroup_ITF
	QSequentialAnimationGroup_PTR() *QSequentialAnimationGroup
}

type QSequentialIterable

type QSequentialIterable struct {
	*qtrt.CObject
}

func NewQSequentialIterableFromPointer

func NewQSequentialIterableFromPointer(cthis unsafe.Pointer) *QSequentialIterable

func (*QSequentialIterable) At

func (this *QSequentialIterable) At(idx int) *QVariant

func (*QSequentialIterable) Begin

func (this *QSequentialIterable) Begin() unsafe.Pointer

func (*QSequentialIterable) CanReverseIterate

func (this *QSequentialIterable) CanReverseIterate() bool

func (*QSequentialIterable) End

func (this *QSequentialIterable) End() unsafe.Pointer

func (*QSequentialIterable) GetCthis

func (this *QSequentialIterable) GetCthis() unsafe.Pointer

func (*QSequentialIterable) NewFromPointer

func (*QSequentialIterable) NewFromPointer(cthis unsafe.Pointer) *QSequentialIterable

func (*QSequentialIterable) QSequentialIterable_PTR

func (ptr *QSequentialIterable) QSequentialIterable_PTR() *QSequentialIterable

func (*QSequentialIterable) SetCthis

func (this *QSequentialIterable) SetCthis(cthis unsafe.Pointer)

func (*QSequentialIterable) Size

func (this *QSequentialIterable) Size() int

type QSequentialIterable_ITF

type QSequentialIterable_ITF interface {
	QSequentialIterable_PTR() *QSequentialIterable
}

type QSettings

type QSettings struct {
	*QObject
}

func NewQSettings

func NewQSettings(organization string, application string, parent QObject_ITF) *QSettings

Constructs a QSettings object for accessing settings of the application called application from the organization called organization, and with parent parent.

Example:

QSettings settings("Moose Tech", "Facturo-Pro");

The scope is set to QSettings::UserScope, and the format is set to QSettings::NativeFormat (i.e. calling setDefaultFormat() before calling this constructor has no effect).

See also setDefaultFormat() and Fallback Mechanism.

func NewQSettingsFromPointer

func NewQSettingsFromPointer(cthis unsafe.Pointer) *QSettings

func NewQSettings_1

func NewQSettings_1(scope int, organization string, application string, parent QObject_ITF) *QSettings

Constructs a QSettings object for accessing settings of the application called application from the organization called organization, and with parent parent.

Example:

QSettings settings("Moose Tech", "Facturo-Pro");

The scope is set to QSettings::UserScope, and the format is set to QSettings::NativeFormat (i.e. calling setDefaultFormat() before calling this constructor has no effect).

See also setDefaultFormat() and Fallback Mechanism.

func NewQSettings_1_

func NewQSettings_1_(scope int, organization string) *QSettings

Constructs a QSettings object for accessing settings of the application called application from the organization called organization, and with parent parent.

Example:

QSettings settings("Moose Tech", "Facturo-Pro");

The scope is set to QSettings::UserScope, and the format is set to QSettings::NativeFormat (i.e. calling setDefaultFormat() before calling this constructor has no effect).

See also setDefaultFormat() and Fallback Mechanism.

func NewQSettings_1_1

func NewQSettings_1_1(scope int, organization string, application string) *QSettings

Constructs a QSettings object for accessing settings of the application called application from the organization called organization, and with parent parent.

Example:

QSettings settings("Moose Tech", "Facturo-Pro");

The scope is set to QSettings::UserScope, and the format is set to QSettings::NativeFormat (i.e. calling setDefaultFormat() before calling this constructor has no effect).

See also setDefaultFormat() and Fallback Mechanism.

func NewQSettings_2

func NewQSettings_2(format int, scope int, organization string, application string, parent QObject_ITF) *QSettings

Constructs a QSettings object for accessing settings of the application called application from the organization called organization, and with parent parent.

Example:

QSettings settings("Moose Tech", "Facturo-Pro");

The scope is set to QSettings::UserScope, and the format is set to QSettings::NativeFormat (i.e. calling setDefaultFormat() before calling this constructor has no effect).

See also setDefaultFormat() and Fallback Mechanism.

func NewQSettings_2_

func NewQSettings_2_(format int, scope int, organization string) *QSettings

Constructs a QSettings object for accessing settings of the application called application from the organization called organization, and with parent parent.

Example:

QSettings settings("Moose Tech", "Facturo-Pro");

The scope is set to QSettings::UserScope, and the format is set to QSettings::NativeFormat (i.e. calling setDefaultFormat() before calling this constructor has no effect).

See also setDefaultFormat() and Fallback Mechanism.

func NewQSettings_2_1

func NewQSettings_2_1(format int, scope int, organization string, application string) *QSettings

Constructs a QSettings object for accessing settings of the application called application from the organization called organization, and with parent parent.

Example:

QSettings settings("Moose Tech", "Facturo-Pro");

The scope is set to QSettings::UserScope, and the format is set to QSettings::NativeFormat (i.e. calling setDefaultFormat() before calling this constructor has no effect).

See also setDefaultFormat() and Fallback Mechanism.

func NewQSettings_3

func NewQSettings_3(fileName string, format int, parent QObject_ITF) *QSettings

Constructs a QSettings object for accessing settings of the application called application from the organization called organization, and with parent parent.

Example:

QSettings settings("Moose Tech", "Facturo-Pro");

The scope is set to QSettings::UserScope, and the format is set to QSettings::NativeFormat (i.e. calling setDefaultFormat() before calling this constructor has no effect).

See also setDefaultFormat() and Fallback Mechanism.

func NewQSettings_3_

func NewQSettings_3_(fileName string, format int) *QSettings

Constructs a QSettings object for accessing settings of the application called application from the organization called organization, and with parent parent.

Example:

QSettings settings("Moose Tech", "Facturo-Pro");

The scope is set to QSettings::UserScope, and the format is set to QSettings::NativeFormat (i.e. calling setDefaultFormat() before calling this constructor has no effect).

See also setDefaultFormat() and Fallback Mechanism.

func NewQSettings_4

func NewQSettings_4(parent QObject_ITF) *QSettings

Constructs a QSettings object for accessing settings of the application called application from the organization called organization, and with parent parent.

Example:

QSettings settings("Moose Tech", "Facturo-Pro");

The scope is set to QSettings::UserScope, and the format is set to QSettings::NativeFormat (i.e. calling setDefaultFormat() before calling this constructor has no effect).

See also setDefaultFormat() and Fallback Mechanism.

func NewQSettings_4_

func NewQSettings_4_() *QSettings

Constructs a QSettings object for accessing settings of the application called application from the organization called organization, and with parent parent.

Example:

QSettings settings("Moose Tech", "Facturo-Pro");

The scope is set to QSettings::UserScope, and the format is set to QSettings::NativeFormat (i.e. calling setDefaultFormat() before calling this constructor has no effect).

See also setDefaultFormat() and Fallback Mechanism.

func NewQSettings__

func NewQSettings__(organization string) *QSettings

Constructs a QSettings object for accessing settings of the application called application from the organization called organization, and with parent parent.

Example:

QSettings settings("Moose Tech", "Facturo-Pro");

The scope is set to QSettings::UserScope, and the format is set to QSettings::NativeFormat (i.e. calling setDefaultFormat() before calling this constructor has no effect).

See also setDefaultFormat() and Fallback Mechanism.

func NewQSettings__1

func NewQSettings__1(organization string, application string) *QSettings

Constructs a QSettings object for accessing settings of the application called application from the organization called organization, and with parent parent.

Example:

QSettings settings("Moose Tech", "Facturo-Pro");

The scope is set to QSettings::UserScope, and the format is set to QSettings::NativeFormat (i.e. calling setDefaultFormat() before calling this constructor has no effect).

See also setDefaultFormat() and Fallback Mechanism.

func (*QSettings) AllKeys

func (this *QSettings) AllKeys() *QStringList

Returns a list of all keys, including subkeys, that can be read using the QSettings object.

Example:

QSettings settings;
settings.setValue("fridge/color", QColor(Qt::white));
settings.setValue("fridge/size", QSize(32, 96));
settings.setValue("sofa", true);
settings.setValue("tv", false);

QStringList keys = settings.allKeys();
// keys: ["fridge/color", "fridge/size", "sofa", "tv"]

If a group is set using beginGroup(), only the keys in the group are returned, without the group prefix:

settings.beginGroup("fridge");
keys = settings.allKeys();
// keys: ["color", "size"]

See also childGroups() and childKeys().

func (*QSettings) ApplicationName

func (this *QSettings) ApplicationName() string

Returns the application name used for storing the settings.

This function was introduced in Qt 4.4.

See also QCoreApplication::applicationName(), format(), scope(), and organizationName().

func (*QSettings) BeginGroup

func (this *QSettings) BeginGroup(prefix string)

Appends prefix to the current group.

The current group is automatically prepended to all keys specified to QSettings. In addition, query functions such as childGroups(), childKeys(), and allKeys() are based on the group. By default, no group is set.

Groups are useful to avoid typing in the same setting paths over and over. For example:

settings.beginGroup("mainwindow");
settings.setValue("size", win->size());
settings.setValue("fullScreen", win->isFullScreen());
settings.endGroup();

settings.beginGroup("outputpanel");
settings.setValue("visible", panel->isVisible());
settings.endGroup();

This will set the value of three settings:

mainwindow/size mainwindow/fullScreen outputpanel/visible

Call endGroup() to reset the current group to what it was before the corresponding beginGroup() call. Groups can be nested.

See also endGroup() and group().

func (*QSettings) BeginReadArray

func (this *QSettings) BeginReadArray(prefix string) int

Adds prefix to the current group and starts reading from an array. Returns the size of the array.

Example:

struct Login {
    QString userName;
    QString password;
};
QList<Login> logins;
...

QSettings settings;
int size = settings.beginReadArray("logins");
for (int i = 0; i < size; ++i) {
    settings.setArrayIndex(i);
    Login login;
    login.userName = settings.value("userName").toString();
    login.password = settings.value("password").toString();
    logins.append(login);
}
settings.endArray();

Use beginWriteArray() to write the array in the first place.

See also beginWriteArray(), endArray(), and setArrayIndex().

func (*QSettings) BeginWriteArray

func (this *QSettings) BeginWriteArray(prefix string, size int)

Adds prefix to the current group and starts writing an array of size size. If size is -1 (the default), it is automatically determined based on the indexes of the entries written.

If you have many occurrences of a certain set of keys, you can use arrays to make your life easier. For example, let's suppose that you want to save a variable-length list of user names and passwords. You could then write:

struct Login {
    QString userName;
    QString password;
};
QList<Login> logins;
...

QSettings settings;
settings.beginWriteArray("logins");
for (int i = 0; i < logins.size(); ++i) {
    settings.setArrayIndex(i);
    settings.setValue("userName", list.at(i).userName);
    settings.setValue("password", list.at(i).password);
}
settings.endArray();

The generated keys will have the form

logins/size logins/1/userName logins/1/password logins/2/userName logins/2/password logins/3/userName logins/3/password ...

To read back an array, use beginReadArray().

See also beginReadArray(), endArray(), and setArrayIndex().

func (*QSettings) BeginWriteArray__

func (this *QSettings) BeginWriteArray__(prefix string)

Adds prefix to the current group and starts writing an array of size size. If size is -1 (the default), it is automatically determined based on the indexes of the entries written.

If you have many occurrences of a certain set of keys, you can use arrays to make your life easier. For example, let's suppose that you want to save a variable-length list of user names and passwords. You could then write:

struct Login {
    QString userName;
    QString password;
};
QList<Login> logins;
...

QSettings settings;
settings.beginWriteArray("logins");
for (int i = 0; i < logins.size(); ++i) {
    settings.setArrayIndex(i);
    settings.setValue("userName", list.at(i).userName);
    settings.setValue("password", list.at(i).password);
}
settings.endArray();

The generated keys will have the form

logins/size logins/1/userName logins/1/password logins/2/userName logins/2/password logins/3/userName logins/3/password ...

To read back an array, use beginReadArray().

See also beginReadArray(), endArray(), and setArrayIndex().

func (*QSettings) ChildGroups

func (this *QSettings) ChildGroups() *QStringList

Returns a list of all key top-level groups that contain keys that can be read using the QSettings object.

Example:

QSettings settings;
settings.setValue("fridge/color", QColor(Qt::white));
settings.setValue("fridge/size", QSize(32, 96));
settings.setValue("sofa", true);
settings.setValue("tv", false);

QStringList groups = settings.childGroups();
// groups: ["fridge"]

If a group is set using beginGroup(), the first-level keys in that group are returned, without the group prefix.

settings.beginGroup("fridge");
groups = settings.childGroups();
// groups: []

You can navigate through the entire setting hierarchy using childKeys() and childGroups() recursively.

See also childKeys() and allKeys().

func (*QSettings) ChildKeys

func (this *QSettings) ChildKeys() *QStringList

Returns a list of all top-level keys that can be read using the QSettings object.

Example:

QSettings settings;
settings.setValue("fridge/color", QColor(Qt::white));
settings.setValue("fridge/size", QSize(32, 96));
settings.setValue("sofa", true);
settings.setValue("tv", false);

QStringList keys = settings.childKeys();
// keys: ["sofa", "tv"]

If a group is set using beginGroup(), the top-level keys in that group are returned, without the group prefix:

settings.beginGroup("fridge");
keys = settings.childKeys();
// keys: ["color", "size"]

You can navigate through the entire setting hierarchy using childKeys() and childGroups() recursively.

See also childGroups() and allKeys().

func (*QSettings) Clear

func (this *QSettings) Clear()

Removes all entries in the primary location associated to this QSettings object.

Entries in fallback locations are not removed.

If you only want to remove the entries in the current group(), use remove("") instead.

See also remove() and setFallbacksEnabled().

func (*QSettings) Contains

func (this *QSettings) Contains(key string) bool

Returns true if there exists a setting called key; returns false otherwise.

If a group is set using beginGroup(), key is taken to be relative to that group.

Note that the Windows registry and INI files use case-insensitive keys, whereas the CFPreferences API on macOS and iOS uses case-sensitive keys. To avoid portability problems, see the Section and Key Syntax rules.

See also value() and setValue().

func (*QSettings) DefaultFormat

func (this *QSettings) DefaultFormat() int

Returns default file format used for storing settings for the QSettings(QObject *) constructor. If no default format is set, QSettings::NativeFormat is used.

This function was introduced in Qt 4.4.

See also setDefaultFormat() and format().

func (*QSettings) EndArray

func (this *QSettings) EndArray()

Closes the array that was started using beginReadArray() or beginWriteArray().

See also beginReadArray() and beginWriteArray().

func (*QSettings) EndGroup

func (this *QSettings) EndGroup()

Resets the group to what it was before the corresponding beginGroup() call.

Example:

settings.beginGroup("alpha");
// settings.group() == "alpha"

settings.beginGroup("beta");
// settings.group() == "alpha/beta"

settings.endGroup();
// settings.group() == "alpha"

settings.endGroup();
// settings.group() == ""

See also beginGroup() and group().

func (*QSettings) Event

func (this *QSettings) Event(event QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QSettings) FallbacksEnabled

func (this *QSettings) FallbacksEnabled() bool

Returns true if fallbacks are enabled; returns false otherwise.

By default, fallbacks are enabled.

See also setFallbacksEnabled().

func (*QSettings) FileName

func (this *QSettings) FileName() string

Returns the path where settings written using this QSettings object are stored.

On Windows, if the format is QSettings::NativeFormat, the return value is a system registry path, not a file path.

See also isWritable() and format().

func (*QSettings) Format

func (this *QSettings) Format() int

Returns the format used for storing the settings.

This function was introduced in Qt 4.4.

See also defaultFormat(), fileName(), scope(), organizationName(), and applicationName().

func (*QSettings) GetCthis

func (this *QSettings) GetCthis() unsafe.Pointer

func (*QSettings) Group

func (this *QSettings) Group() string

Returns the current group.

See also beginGroup() and endGroup().

func (*QSettings) InheritEvent

func (this *QSettings) InheritEvent(f func(event *QEvent) bool)

bool event(class QEvent *)

func (*QSettings) IniCodec

func (this *QSettings) IniCodec() *QTextCodec

Returns the codec that is used for accessing INI files. By default, no codec is used, so a null pointer is returned.

This function was introduced in Qt 4.5.

See also setIniCodec().

func (*QSettings) IsAtomicSyncRequired

func (this *QSettings) IsAtomicSyncRequired() bool

Returns true if QSettings is only allowed to perform atomic saving and reloading (synchronization) of the settings. Returns false if it is allowed to save the settings contents directly to the configuration file.

The default is true.

This function was introduced in Qt 5.10.

See also setAtomicSyncRequired() and QSaveFile.

func (*QSettings) IsWritable

func (this *QSettings) IsWritable() bool

Returns true if settings can be written using this QSettings object; returns false otherwise.

One reason why isWritable() might return false is if QSettings operates on a read-only file.

Warning: This function is not perfectly reliable, because the file permissions can change at any time.

See also fileName(), status(), and sync().

func (*QSettings) MetaObject

func (this *QSettings) MetaObject() *QMetaObject

func (*QSettings) NewFromPointer

func (*QSettings) NewFromPointer(cthis unsafe.Pointer) *QSettings

func (*QSettings) OrganizationName

func (this *QSettings) OrganizationName() string

Returns the organization name used for storing the settings.

This function was introduced in Qt 4.4.

See also QCoreApplication::organizationName(), format(), scope(), and applicationName().

func (*QSettings) QSettings_PTR

func (ptr *QSettings) QSettings_PTR() *QSettings

func (*QSettings) Remove

func (this *QSettings) Remove(key string)

Removes the setting key and any sub-settings of key.

Example:

QSettings settings;
settings.setValue("ape");
settings.setValue("monkey", 1);
settings.setValue("monkey/sea", 2);
settings.setValue("monkey/doe", 4);

settings.remove("monkey");
QStringList keys = settings.allKeys();
// keys: ["ape"]

Be aware that if one of the fallback locations contains a setting with the same key, that setting will be visible after calling remove().

If key is an empty string, all keys in the current group() are removed. For example:

QSettings settings;
settings.setValue("ape");
settings.setValue("monkey", 1);
settings.setValue("monkey/sea", 2);
settings.setValue("monkey/doe", 4);

settings.beginGroup("monkey");
settings.remove("");
settings.endGroup();

QStringList keys = settings.allKeys();
// keys: ["ape"]

Note that the Windows registry and INI files use case-insensitive keys, whereas the CFPreferences API on macOS and iOS uses case-sensitive keys. To avoid portability problems, see the Section and Key Syntax rules.

See also setValue(), value(), and contains().

func (*QSettings) Scope

func (this *QSettings) Scope() int

Returns the scope used for storing the settings.

This function was introduced in Qt 4.4.

See also format(), organizationName(), and applicationName().

func (*QSettings) SetArrayIndex

func (this *QSettings) SetArrayIndex(i int)

Sets the current array index to i. Calls to functions such as setValue(), value(), remove(), and contains() will operate on the array entry at that index.

You must call beginReadArray() or beginWriteArray() before you can call this function.

func (*QSettings) SetAtomicSyncRequired

func (this *QSettings) SetAtomicSyncRequired(enable bool)

Configures whether QSettings is required to perform atomic saving and reloading (synchronization) of the settings. If the enable argument is true (the default), sync() will only perform synchronization operations that are atomic. If this is not possible, sync() will fail and status() will be an error condition.

Setting this property to false will allow QSettings to write directly to the configuration file and ignore any errors trying to lock it against other processes trying to write at the same time. Because of the potential for corruption, this option should be used with care, but is required in certain conditions, like a QSettings::IniFormat configuration file that exists in an otherwise non-writeable directory or NTFS Alternate Data Streams.

See QSaveFile for more information on the feature.

This function was introduced in Qt 5.10.

See also isAtomicSyncRequired() and QSaveFile.

func (*QSettings) SetCthis

func (this *QSettings) SetCthis(cthis unsafe.Pointer)

func (*QSettings) SetDefaultFormat

func (this *QSettings) SetDefaultFormat(format int)

Sets the default file format to the given format, which is used for storing settings for the QSettings(QObject *) constructor.

If no default format is set, QSettings::NativeFormat is used. See the documentation for the QSettings constructor you are using to see if that constructor will ignore this function.

This function was introduced in Qt 4.4.

See also defaultFormat() and format().

func (*QSettings) SetFallbacksEnabled

func (this *QSettings) SetFallbacksEnabled(b bool)

Sets whether fallbacks are enabled to b.

By default, fallbacks are enabled.

See also fallbacksEnabled().

func (*QSettings) SetIniCodec

func (this *QSettings) SetIniCodec(codec QTextCodec_ITF)

Sets the codec for accessing INI files (including .conf files on Unix) to codec. The codec is used for decoding any data that is read from the INI file, and for encoding any data that is written to the file. By default, no codec is used, and non-ASCII characters are encoded using standard INI escape sequences.

Warning: The codec must be set immediately after creating the QSettings object, before accessing any data.

This function was introduced in Qt 4.5.

See also iniCodec().

func (*QSettings) SetIniCodec_1

func (this *QSettings) SetIniCodec_1(codecName string)

Sets the codec for accessing INI files (including .conf files on Unix) to codec. The codec is used for decoding any data that is read from the INI file, and for encoding any data that is written to the file. By default, no codec is used, and non-ASCII characters are encoded using standard INI escape sequences.

Warning: The codec must be set immediately after creating the QSettings object, before accessing any data.

This function was introduced in Qt 4.5.

See also iniCodec().

func (*QSettings) SetPath

func (this *QSettings) SetPath(format int, scope int, path string)

Sets the path used for storing settings for the given format and scope, to path. The format can be a custom format.

The table below summarizes the default values:

PlatformFormatScopePath

WindowsIniFormatUserScopeFOLDERID_RoamingAppData SystemScopeFOLDERID_ProgramData UnixNativeFormat, IniFormatUserScope$HOME/.config SystemScope/etc/xdg Qt for Embedded LinuxNativeFormat, IniFormatUserScope$HOME/Settings SystemScope/etc/xdg macOS and iOSIniFormatUserScope$HOME/.config SystemScope/etc/xdg

The default UserScope paths on Unix, macOS, and iOS ($HOME/.config or $HOME/Settings) can be overridden by the user by setting the XDG_CONFIG_HOME environment variable. The default SystemScope paths on Unix, macOS, and iOS (/etc/xdg) can be overridden when building the Qt library using the configure script's -sysconfdir flag (see QLibraryInfo for details).

Setting the NativeFormat paths on Windows, macOS, and iOS has no effect.

Warning: This function doesn't affect existing QSettings objects.

This function was introduced in Qt 4.1.

See also registerFormat().

func (*QSettings) SetSystemIniPath

func (this *QSettings) SetSystemIniPath(dir string)

func (*QSettings) SetUserIniPath

func (this *QSettings) SetUserIniPath(dir string)

func (*QSettings) SetValue

func (this *QSettings) SetValue(key string, value QVariant_ITF)

Sets the value of setting key to value. If the key already exists, the previous value is overwritten.

Note that the Windows registry and INI files use case-insensitive keys, whereas the CFPreferences API on macOS and iOS uses case-sensitive keys. To avoid portability problems, see the Section and Key Syntax rules.

Example:

QSettings settings;
settings.setValue("interval", 30);
settings.value("interval").toInt();     // returns 30

settings.setValue("interval", 6.55);
settings.value("interval").toDouble();  // returns 6.55

See also value(), remove(), and contains().

func (*QSettings) Status

func (this *QSettings) Status() int

Returns a status code indicating the first error that was met by QSettings, or QSettings::NoError if no error occurred.

Be aware that QSettings delays performing some operations. For this reason, you might want to call sync() to ensure that the data stored in QSettings is written to disk before calling status().

See also sync().

func (*QSettings) Sync

func (this *QSettings) Sync()

Writes any unsaved changes to permanent storage, and reloads any settings that have been changed in the meantime by another application.

This function is called automatically from QSettings's destructor and by the event loop at regular intervals, so you normally don't need to call it yourself.

See also status().

func (*QSettings) Value

func (this *QSettings) Value(key string, defaultValue QVariant_ITF) *QVariant

Returns the value for setting key. If the setting doesn't exist, returns defaultValue.

If no default value is specified, a default QVariant is returned.

Note that the Windows registry and INI files use case-insensitive keys, whereas the CFPreferences API on macOS and iOS uses case-sensitive keys. To avoid portability problems, see the Section and Key Syntax rules.

Example:

QSettings settings;
settings.setValue("animal/snake", 58);
settings.value("animal/snake", 1024).toInt();   // returns 58
settings.value("animal/zebra", 1024).toInt();   // returns 1024
settings.value("animal/zebra").toInt();         // returns 0

See also setValue(), contains(), and remove().

func (*QSettings) Value__

func (this *QSettings) Value__(key string) *QVariant

Returns the value for setting key. If the setting doesn't exist, returns defaultValue.

If no default value is specified, a default QVariant is returned.

Note that the Windows registry and INI files use case-insensitive keys, whereas the CFPreferences API on macOS and iOS uses case-sensitive keys. To avoid portability problems, see the Section and Key Syntax rules.

Example:

QSettings settings;
settings.setValue("animal/snake", 58);
settings.value("animal/snake", 1024).toInt();   // returns 58
settings.value("animal/zebra", 1024).toInt();   // returns 1024
settings.value("animal/zebra").toInt();         // returns 0

See also setValue(), contains(), and remove().

type QSettings_ITF

type QSettings_ITF interface {
	QObject_ITF
	QSettings_PTR() *QSettings
}

type QSettings__Format

type QSettings__Format = int

This enum type specifies the storage format used by QSettings.

On Unix, NativeFormat and IniFormat mean the same thing, except that the file extension is different (.conf for NativeFormat, .ini for IniFormat).

The INI file format is a Windows file format that Qt supports on all platforms. In the absence of an INI standard, we try to follow what Microsoft does, with the following exceptions:

If you store types that QVariant can't convert to QString (e.g., QPoint, QRect, and QSize), Qt uses an @-based syntax to encode the type. For example:

pos = @Point(100 100)

To minimize compatibility issues, any @ that doesn't appear at the first position in the value or that isn't followed by a Qt type (Point, Rect, Size, etc.) is treated as a normal character.

Although backslash is a special character in INI files, most Windows applications don't escape backslashes (\) in file paths:

windir = C:\Windows

QSettings always treats backslash as a special character and provides no API for reading or writing such entries.

The INI file format has severe restrictions on the syntax of a key. Qt works around this by using % as an escape character in keys. In addition, if you save a top-level setting (a key with no slashes in it, e.g., "someKey"), it will appear in the INI file's "General" section. To avoid overwriting other keys, if you save something using a key such as "General/someKey", the key will be located in the "%General" section, not in the "General" section. Following the philosophy that we should be liberal in what we accept and conservative in what we generate, QSettings will accept Latin-1 encoded INI files, but generate pure ASCII files, where non-ASCII values are encoded using standard INI escape sequences. To make the INI files more readable (but potentially less compatible), call setIniCodec().

See also registerFormat() and setPath().

const QSettings__CustomFormat1 QSettings__Format = 17
const QSettings__CustomFormat10 QSettings__Format = 26
const QSettings__CustomFormat11 QSettings__Format = 27
const QSettings__CustomFormat12 QSettings__Format = 28
const QSettings__CustomFormat13 QSettings__Format = 29
const QSettings__CustomFormat14 QSettings__Format = 30
const QSettings__CustomFormat15 QSettings__Format = 31
const QSettings__CustomFormat16 QSettings__Format = 32
const QSettings__CustomFormat2 QSettings__Format = 18
const QSettings__CustomFormat3 QSettings__Format = 19
const QSettings__CustomFormat4 QSettings__Format = 20
const QSettings__CustomFormat5 QSettings__Format = 21
const QSettings__CustomFormat6 QSettings__Format = 22
const QSettings__CustomFormat7 QSettings__Format = 23
const QSettings__CustomFormat8 QSettings__Format = 24
const QSettings__CustomFormat9 QSettings__Format = 25
const QSettings__IniFormat QSettings__Format = 1

Store the settings in INI files.

const QSettings__InvalidFormat QSettings__Format = 16
const QSettings__NativeFormat QSettings__Format = 0

Store the settings using the most appropriate storage format for the platform. On Windows, this means the system registry; on macOS and iOS, this means the CFPreferences API; on Unix, this means textual configuration files in INI format.

type QSettings__Scope

type QSettings__Scope = int

This enum specifies whether settings are user-specific or shared by all users of the same system.

See also setPath().

const QSettings__SystemScope QSettings__Scope = 1

Store settings in a global location, so that all users on the same machine access the same set of settings.

const QSettings__UserScope QSettings__Scope = 0

Store settings in a location specific to the current user (e.g., in the user's home directory).

type QSettings__Status

type QSettings__Status = int

The following status values are possible:

See also status().

const QSettings__AccessError QSettings__Status = 1

An access error occurred (e.g. trying to write to a read-only file).

const QSettings__FormatError QSettings__Status = 2

A format error occurred (e.g. loading a malformed INI file).

const QSettings__NoError QSettings__Status = 0

No error occurred.

type QSharedData

type QSharedData struct {
	*qtrt.CObject
}

func NewQSharedData

func NewQSharedData() *QSharedData

Constructs a QSharedData object with a reference count of 0.

func NewQSharedDataFromPointer

func NewQSharedDataFromPointer(cthis unsafe.Pointer) *QSharedData

func (*QSharedData) GetCthis

func (this *QSharedData) GetCthis() unsafe.Pointer

func (*QSharedData) NewFromPointer

func (*QSharedData) NewFromPointer(cthis unsafe.Pointer) *QSharedData

func (*QSharedData) QSharedData_PTR

func (ptr *QSharedData) QSharedData_PTR() *QSharedData

func (*QSharedData) SetCthis

func (this *QSharedData) SetCthis(cthis unsafe.Pointer)

type QSharedData_ITF

type QSharedData_ITF interface {
	QSharedData_PTR() *QSharedData
}

type QSharedMemory

type QSharedMemory struct {
	*QObject
}

func NewQSharedMemory

func NewQSharedMemory(parent QObject_ITF) *QSharedMemory

Constructs a shared memory object with the given parent and with its key set to key. Because its key is set, its create() and attach() functions can be called.

See also setKey(), create(), and attach().

func NewQSharedMemoryFromPointer

func NewQSharedMemoryFromPointer(cthis unsafe.Pointer) *QSharedMemory

func NewQSharedMemory_1

func NewQSharedMemory_1(key string, parent QObject_ITF) *QSharedMemory

Constructs a shared memory object with the given parent and with its key set to key. Because its key is set, its create() and attach() functions can be called.

See also setKey(), create(), and attach().

func NewQSharedMemory_1_

func NewQSharedMemory_1_(key string) *QSharedMemory

Constructs a shared memory object with the given parent and with its key set to key. Because its key is set, its create() and attach() functions can be called.

See also setKey(), create(), and attach().

func NewQSharedMemory__

func NewQSharedMemory__() *QSharedMemory

Constructs a shared memory object with the given parent and with its key set to key. Because its key is set, its create() and attach() functions can be called.

See also setKey(), create(), and attach().

func (*QSharedMemory) Attach

func (this *QSharedMemory) Attach(mode int) bool

Attempts to attach the process to the shared memory segment identified by the key that was passed to the constructor or to a call to setKey() or setNativeKey(). The access mode is ReadWrite by default. It can also be ReadOnly. Returns true if the attach operation is successful. If false is returned, call error() to determine which error occurred. After attaching the shared memory segment, a pointer to the shared memory can be obtained by calling data().

See also isAttached(), detach(), and create().

func (*QSharedMemory) Attach__

func (this *QSharedMemory) Attach__() bool

Attempts to attach the process to the shared memory segment identified by the key that was passed to the constructor or to a call to setKey() or setNativeKey(). The access mode is ReadWrite by default. It can also be ReadOnly. Returns true if the attach operation is successful. If false is returned, call error() to determine which error occurred. After attaching the shared memory segment, a pointer to the shared memory can be obtained by calling data().

See also isAttached(), detach(), and create().

func (*QSharedMemory) ConstData

func (this *QSharedMemory) ConstData() unsafe.Pointer

Returns a const pointer to the contents of the shared memory segment, if one is attached. Otherwise it returns null. Remember to lock the shared memory with lock() before reading from or writing to the shared memory, and remember to release the lock with unlock() after you are done.

See also attach() and create().

func (*QSharedMemory) Create

func (this *QSharedMemory) Create(size int, mode int) bool

Creates a shared memory segment of size bytes with the key passed to the constructor, set with setKey() or set with setNativeKey(), then attaches to the new shared memory segment with the given access mode and returns true. If a shared memory segment identified by the key already exists, the attach operation is not performed and false is returned. When the return value is false, call error() to determine which error occurred.

See also error().

func (*QSharedMemory) Create__

func (this *QSharedMemory) Create__(size int) bool

Creates a shared memory segment of size bytes with the key passed to the constructor, set with setKey() or set with setNativeKey(), then attaches to the new shared memory segment with the given access mode and returns true. If a shared memory segment identified by the key already exists, the attach operation is not performed and false is returned. When the return value is false, call error() to determine which error occurred.

See also error().

func (*QSharedMemory) Data

func (this *QSharedMemory) Data() unsafe.Pointer

Returns a pointer to the contents of the shared memory segment, if one is attached. Otherwise it returns null. Remember to lock the shared memory with lock() before reading from or writing to the shared memory, and remember to release the lock with unlock() after you are done.

See also attach().

func (*QSharedMemory) Data_1

func (this *QSharedMemory) Data_1() unsafe.Pointer

Returns a pointer to the contents of the shared memory segment, if one is attached. Otherwise it returns null. Remember to lock the shared memory with lock() before reading from or writing to the shared memory, and remember to release the lock with unlock() after you are done.

See also attach().

func (*QSharedMemory) Detach

func (this *QSharedMemory) Detach() bool

Detaches the process from the shared memory segment. If this was the last process attached to the shared memory segment, then the shared memory segment is released by the system, i.e., the contents are destroyed. The function returns true if it detaches the shared memory segment. If it returns false, it usually means the segment either isn't attached, or it is locked by another process.

See also attach() and isAttached().

func (*QSharedMemory) Error

func (this *QSharedMemory) Error() int

Returns a value indicating whether an error occurred, and, if so, which error it was.

See also errorString().

func (*QSharedMemory) ErrorString

func (this *QSharedMemory) ErrorString() string

Returns a text description of the last error that occurred. If error() returns an error value, call this function to get a text string that describes the error.

See also error().

func (*QSharedMemory) GetCthis

func (this *QSharedMemory) GetCthis() unsafe.Pointer

func (*QSharedMemory) IsAttached

func (this *QSharedMemory) IsAttached() bool

Returns true if this process is attached to the shared memory segment.

See also attach() and detach().

func (*QSharedMemory) Key

func (this *QSharedMemory) Key() string

Returns the key assigned with setKey() to this shared memory, or a null key if no key has been assigned, or if the segment is using a nativeKey(). The key is the identifier used by Qt applications to identify the shared memory segment.

You can find the native, platform specific, key used by the operating system by calling nativeKey().

See also setKey() and setNativeKey().

func (*QSharedMemory) Lock

func (this *QSharedMemory) Lock() bool

This is a semaphore that locks the shared memory segment for access by this process and returns true. If another process has locked the segment, this function blocks until the lock is released. Then it acquires the lock and returns true. If this function returns false, it means that you have ignored a false return from create() or attach(), that you have set the key with setNativeKey() or that QSystemSemaphore::acquire() failed due to an unknown system error.

See also unlock(), data(), and QSystemSemaphore::acquire().

func (*QSharedMemory) MetaObject

func (this *QSharedMemory) MetaObject() *QMetaObject

func (*QSharedMemory) NativeKey

func (this *QSharedMemory) NativeKey() string

Returns the native, platform specific, key for this shared memory object. The native key is the identifier used by the operating system to identify the shared memory segment.

You can use the native key to access shared memory segments that have not been created by Qt, or to grant shared memory access to non-Qt applications.

This function was introduced in Qt 4.8.

See also setKey() and setNativeKey().

func (*QSharedMemory) NewFromPointer

func (*QSharedMemory) NewFromPointer(cthis unsafe.Pointer) *QSharedMemory

func (*QSharedMemory) QSharedMemory_PTR

func (ptr *QSharedMemory) QSharedMemory_PTR() *QSharedMemory

func (*QSharedMemory) SetCthis

func (this *QSharedMemory) SetCthis(cthis unsafe.Pointer)

func (*QSharedMemory) SetKey

func (this *QSharedMemory) SetKey(key string)

Sets the platform independent key for this shared memory object. If key is the same as the current key, the function returns without doing anything.

You can call key() to retrieve the platform independent key. Internally, QSharedMemory converts this key into a platform specific key. If you instead call nativeKey(), you will get the platform specific, converted key.

If the shared memory object is attached to an underlying shared memory segment, it will detach from it before setting the new key. This function does not do an attach().

See also key(), nativeKey(), and isAttached().

func (*QSharedMemory) SetNativeKey

func (this *QSharedMemory) SetNativeKey(key string)

Sets the native, platform specific, key for this shared memory object. If key is the same as the current native key, the function returns without doing anything. If all you want is to assign a key to a segment, you should call setKey() instead.

You can call nativeKey() to retrieve the native key. If a native key has been assigned, calling key() will return a null string.

If the shared memory object is attached to an underlying shared memory segment, it will detach from it before setting the new key. This function does not do an attach().

The application will not be portable if you set a native key.

This function was introduced in Qt 4.8.

See also nativeKey(), key(), and isAttached().

func (*QSharedMemory) Size

func (this *QSharedMemory) Size() int

Returns the size of the attached shared memory segment. If no shared memory segment is attached, 0 is returned.

Note: The size of the segment may be larger than the requested size that was passed to create().

See also create() and attach().

func (*QSharedMemory) Unlock

func (this *QSharedMemory) Unlock() bool

Releases the lock on the shared memory segment and returns true, if the lock is currently held by this process. If the segment is not locked, or if the lock is held by another process, nothing happens and false is returned.

See also lock().

type QSharedMemory_ITF

type QSharedMemory_ITF interface {
	QObject_ITF
	QSharedMemory_PTR() *QSharedMemory
}

type QSharedMemory__AccessMode

type QSharedMemory__AccessMode = int
const QSharedMemory__ReadOnly QSharedMemory__AccessMode = 0

The shared memory segment is read-only. Writing to the shared memory segment is not allowed. An attempt to write to a shared memory segment created with ReadOnly causes the program to abort.

const QSharedMemory__ReadWrite QSharedMemory__AccessMode = 1

Reading and writing the shared memory segment are both allowed.

type QSharedMemory__SharedMemoryError

type QSharedMemory__SharedMemoryError = int
const QSharedMemory__AlreadyExists QSharedMemory__SharedMemoryError = 4

A create() operation failed because a shared memory segment with the specified key already existed.

const QSharedMemory__InvalidSize QSharedMemory__SharedMemoryError = 2

A create operation failed because the requested size was invalid.

const QSharedMemory__KeyError QSharedMemory__SharedMemoryError = 3

The operation failed because of an invalid key.

const QSharedMemory__LockError QSharedMemory__SharedMemoryError = 6

The attempt to lock() the shared memory segment failed because create() or attach() failed and returned false, or because a system error occurred in QSystemSemaphore::acquire().

const QSharedMemory__NoError QSharedMemory__SharedMemoryError = 0

No error occurred.

const QSharedMemory__NotFound QSharedMemory__SharedMemoryError = 5

An attach() failed because a shared memory segment with the specified key could not be found.

const QSharedMemory__OutOfResources QSharedMemory__SharedMemoryError = 7

A create() operation failed because there was not enough memory available to fill the request.

const QSharedMemory__PermissionDenied QSharedMemory__SharedMemoryError = 1

The operation failed because the caller didn't have the required permissions.

const QSharedMemory__UnknownError QSharedMemory__SharedMemoryError = 8

Something else happened and it was bad.

type QSignalBlocker

type QSignalBlocker struct {
	*qtrt.CObject
}

func NewQSignalBlocker

func NewQSignalBlocker(o QObject_ITF) *QSignalBlocker

func NewQSignalBlockerFromPointer

func NewQSignalBlockerFromPointer(cthis unsafe.Pointer) *QSignalBlocker

func NewQSignalBlocker_1

func NewQSignalBlocker_1(o QObject_ITF) *QSignalBlocker

func (*QSignalBlocker) GetCthis

func (this *QSignalBlocker) GetCthis() unsafe.Pointer

func (*QSignalBlocker) NewFromPointer

func (*QSignalBlocker) NewFromPointer(cthis unsafe.Pointer) *QSignalBlocker

func (*QSignalBlocker) QSignalBlocker_PTR

func (ptr *QSignalBlocker) QSignalBlocker_PTR() *QSignalBlocker

func (*QSignalBlocker) Reblock

func (this *QSignalBlocker) Reblock()

func (*QSignalBlocker) SetCthis

func (this *QSignalBlocker) SetCthis(cthis unsafe.Pointer)

func (*QSignalBlocker) Unblock

func (this *QSignalBlocker) Unblock()

type QSignalBlocker_ITF

type QSignalBlocker_ITF interface {
	QSignalBlocker_PTR() *QSignalBlocker
}

type QSignalMapper

type QSignalMapper struct {
	*QObject
}

func NewQSignalMapper

func NewQSignalMapper(parent QObject_ITF) *QSignalMapper

This function is deprecated.

Constructs a QSignalMapper with parent parent.

func NewQSignalMapperFromPointer

func NewQSignalMapperFromPointer(cthis unsafe.Pointer) *QSignalMapper

func NewQSignalMapper__

func NewQSignalMapper__() *QSignalMapper

This function is deprecated.

Constructs a QSignalMapper with parent parent.

func (*QSignalMapper) GetCthis

func (this *QSignalMapper) GetCthis() unsafe.Pointer

func (*QSignalMapper) Map

func (this *QSignalMapper) Map()

This slot emits signals based on which object sends signals to it.

func (*QSignalMapper) Map_1

func (this *QSignalMapper) Map_1(sender QObject_ITF)

This slot emits signals based on which object sends signals to it.

func (*QSignalMapper) Mapped

func (this *QSignalMapper) Mapped(arg0 int)

This signal is emitted when map() is signalled from an object that has an integer mapping set. The object's mapped integer is passed in i.

Note: Signal mapped is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:

connect(signalMapper, QOverload<int>::of(&QSignalMapper::mapped),
    [=](int i){ \/* ... *\/ });

See also setMapping().

func (*QSignalMapper) Mapped_1

func (this *QSignalMapper) Mapped_1(arg0 string)

This signal is emitted when map() is signalled from an object that has an integer mapping set. The object's mapped integer is passed in i.

Note: Signal mapped is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:

connect(signalMapper, QOverload<int>::of(&QSignalMapper::mapped),
    [=](int i){ \/* ... *\/ });

See also setMapping().

func (*QSignalMapper) Mapped_2

func (this *QSignalMapper) Mapped_2(arg0 unsafe.Pointer)

This signal is emitted when map() is signalled from an object that has an integer mapping set. The object's mapped integer is passed in i.

Note: Signal mapped is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:

connect(signalMapper, QOverload<int>::of(&QSignalMapper::mapped),
    [=](int i){ \/* ... *\/ });

See also setMapping().

func (*QSignalMapper) Mapped_3

func (this *QSignalMapper) Mapped_3(arg0 QObject_ITF)

This signal is emitted when map() is signalled from an object that has an integer mapping set. The object's mapped integer is passed in i.

Note: Signal mapped is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:

connect(signalMapper, QOverload<int>::of(&QSignalMapper::mapped),
    [=](int i){ \/* ... *\/ });

See also setMapping().

func (*QSignalMapper) Mapping

func (this *QSignalMapper) Mapping(id int) *QObject

Returns the sender QObject that is associated with the id.

See also setMapping().

func (*QSignalMapper) Mapping_1

func (this *QSignalMapper) Mapping_1(text string) *QObject

Returns the sender QObject that is associated with the id.

See also setMapping().

func (*QSignalMapper) Mapping_2

func (this *QSignalMapper) Mapping_2(widget unsafe.Pointer) *QObject

Returns the sender QObject that is associated with the id.

See also setMapping().

func (*QSignalMapper) Mapping_3

func (this *QSignalMapper) Mapping_3(object QObject_ITF) *QObject

Returns the sender QObject that is associated with the id.

See also setMapping().

func (*QSignalMapper) MetaObject

func (this *QSignalMapper) MetaObject() *QMetaObject

func (*QSignalMapper) NewFromPointer

func (*QSignalMapper) NewFromPointer(cthis unsafe.Pointer) *QSignalMapper

func (*QSignalMapper) QSignalMapper_PTR

func (ptr *QSignalMapper) QSignalMapper_PTR() *QSignalMapper

func (*QSignalMapper) RemoveMappings

func (this *QSignalMapper) RemoveMappings(sender QObject_ITF)

Removes all mappings for sender.

This is done automatically when mapped objects are destroyed.

Note: This does not disconnect any signals. If sender is not destroyed then this will need to be done explicitly if required.

func (*QSignalMapper) SetCthis

func (this *QSignalMapper) SetCthis(cthis unsafe.Pointer)

func (*QSignalMapper) SetMapping

func (this *QSignalMapper) SetMapping(sender QObject_ITF, id int)

Adds a mapping so that when map() is signalled from the given sender, the signal mapped(id) is emitted.

There may be at most one integer ID for each sender.

See also mapping().

func (*QSignalMapper) SetMapping_1

func (this *QSignalMapper) SetMapping_1(sender QObject_ITF, text string)

Adds a mapping so that when map() is signalled from the given sender, the signal mapped(id) is emitted.

There may be at most one integer ID for each sender.

See also mapping().

func (*QSignalMapper) SetMapping_2

func (this *QSignalMapper) SetMapping_2(sender QObject_ITF, widget unsafe.Pointer)

Adds a mapping so that when map() is signalled from the given sender, the signal mapped(id) is emitted.

There may be at most one integer ID for each sender.

See also mapping().

func (*QSignalMapper) SetMapping_3

func (this *QSignalMapper) SetMapping_3(sender QObject_ITF, object QObject_ITF)

Adds a mapping so that when map() is signalled from the given sender, the signal mapped(id) is emitted.

There may be at most one integer ID for each sender.

See also mapping().

type QSignalMapper_ITF

type QSignalMapper_ITF interface {
	QObject_ITF
	QSignalMapper_PTR() *QSignalMapper
}

type QSignalTransition

type QSignalTransition struct {
	*QAbstractTransition
}

func NewQSignalTransition

func NewQSignalTransition(sourceState QState_ITF) *QSignalTransition

Constructs a new signal transition with the given sourceState.

func NewQSignalTransitionFromPointer

func NewQSignalTransitionFromPointer(cthis unsafe.Pointer) *QSignalTransition

func NewQSignalTransition_1

func NewQSignalTransition_1(sender QObject_ITF, signal string, sourceState QState_ITF) *QSignalTransition

Constructs a new signal transition with the given sourceState.

func NewQSignalTransition_1_

func NewQSignalTransition_1_(sender QObject_ITF, signal string) *QSignalTransition

Constructs a new signal transition with the given sourceState.

func NewQSignalTransition__

func NewQSignalTransition__() *QSignalTransition

Constructs a new signal transition with the given sourceState.

func (*QSignalTransition) Event

func (this *QSignalTransition) Event(e QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QSignalTransition) EventTest

func (this *QSignalTransition) EventTest(event QEvent_ITF) bool

Reimplemented from QAbstractTransition::eventTest().

The default implementation returns true if the event is a QStateMachine::SignalEvent object and the event's sender and signal index match this transition, and returns false otherwise.

func (*QSignalTransition) GetCthis

func (this *QSignalTransition) GetCthis() unsafe.Pointer

func (*QSignalTransition) InheritEvent

func (this *QSignalTransition) InheritEvent(f func(e *QEvent) bool)

bool event(class QEvent *)

func (*QSignalTransition) InheritEventTest

func (this *QSignalTransition) InheritEventTest(f func(event *QEvent) bool)

bool eventTest(class QEvent *)

func (*QSignalTransition) InheritOnTransition

func (this *QSignalTransition) InheritOnTransition(f func(event *QEvent))

void onTransition(class QEvent *)

func (*QSignalTransition) MetaObject

func (this *QSignalTransition) MetaObject() *QMetaObject

func (*QSignalTransition) NewFromPointer

func (*QSignalTransition) NewFromPointer(cthis unsafe.Pointer) *QSignalTransition

func (*QSignalTransition) OnTransition

func (this *QSignalTransition) OnTransition(event QEvent_ITF)

Reimplemented from QAbstractTransition::onTransition().

func (*QSignalTransition) QSignalTransition_PTR

func (ptr *QSignalTransition) QSignalTransition_PTR() *QSignalTransition

func (*QSignalTransition) SenderObject

func (this *QSignalTransition) SenderObject() *QObject

Returns the sender object associated with this signal transition.

Note: Getter function for property senderObject.

See also setSenderObject().

func (*QSignalTransition) SetCthis

func (this *QSignalTransition) SetCthis(cthis unsafe.Pointer)

func (*QSignalTransition) SetSenderObject

func (this *QSignalTransition) SetSenderObject(sender QObject_ITF)

Sets the sender object associated with this signal transition.

Note: Setter function for property senderObject.

See also senderObject().

func (*QSignalTransition) SetSignal

func (this *QSignalTransition) SetSignal(signal QByteArray_ITF)

Sets the signal associated with this signal transition.

Note: Setter function for property signal.

See also signal().

func (*QSignalTransition) Signal

func (this *QSignalTransition) Signal() *QByteArray

Returns the signal associated with this signal transition.

Note: Getter function for property signal.

See also setSignal().

type QSignalTransition_ITF

type QSignalTransition_ITF interface {
	QAbstractTransition_ITF
	QSignalTransition_PTR() *QSignalTransition
}

type QSize

type QSize struct {
	*qtrt.CObject
}

func NewQSize

func NewQSize() *QSize

Constructs a size with an invalid width and height (i.e., isValid() returns false).

See also isValid().

func NewQSizeFromPointer

func NewQSizeFromPointer(cthis unsafe.Pointer) *QSize

func NewQSize_1

func NewQSize_1(w int, h int) *QSize

Constructs a size with an invalid width and height (i.e., isValid() returns false).

See also isValid().

func (*QSize) BoundedTo

func (this *QSize) BoundedTo(arg0 QSize_ITF) *QSize

Returns a size holding the minimum width and height of this size and the given otherSize.

See also expandedTo() and scale().

func (*QSize) ExpandedTo

func (this *QSize) ExpandedTo(arg0 QSize_ITF) *QSize

Returns a size holding the maximum width and height of this size and the given otherSize.

See also boundedTo() and scale().

func (*QSize) GetCthis

func (this *QSize) GetCthis() unsafe.Pointer

func (*QSize) Height

func (this *QSize) Height() int

Returns the height.

See also width() and setHeight().

func (*QSize) IsEmpty

func (this *QSize) IsEmpty() bool

Returns true if either of the width and height is less than or equal to 0; otherwise returns false.

See also isNull() and isValid().

func (*QSize) IsNull

func (this *QSize) IsNull() bool

Returns true if both the width and height is 0; otherwise returns false.

See also isValid() and isEmpty().

func (*QSize) IsValid

func (this *QSize) IsValid() bool

Returns true if both the width and height is equal to or greater than 0; otherwise returns false.

See also isNull() and isEmpty().

func (*QSize) NewFromPointer

func (*QSize) NewFromPointer(cthis unsafe.Pointer) *QSize

func (*QSize) Operator_add_equal

func (this *QSize) Operator_add_equal(arg0 QSize_ITF) *QSize

func (*QSize) Operator_div_equal

func (this *QSize) Operator_div_equal(c float64) *QSize

func (*QSize) Operator_minus_equal

func (this *QSize) Operator_minus_equal(arg0 QSize_ITF) *QSize

func (*QSize) Operator_mul_equal

func (this *QSize) Operator_mul_equal(c float64) *QSize

func (*QSize) QSize_PTR

func (ptr *QSize) QSize_PTR() *QSize

func (*QSize) Rheight

func (this *QSize) Rheight() int

Returns a reference to the height.

Using a reference makes it possible to manipulate the height directly. For example:

QSize size(100, 10);
size.rheight() += 5;

// size becomes (100,15)

See also rwidth() and setHeight().

func (*QSize) Rwidth

func (this *QSize) Rwidth() int

Returns a reference to the width.

Using a reference makes it possible to manipulate the width directly. For example:

QSize size(100, 10);
size.rwidth() += 20;

// size becomes (120,10)

See also rheight() and setWidth().

func (*QSize) Scale

func (this *QSize) Scale(w int, h int, mode int)

Scales the size to a rectangle with the given width and height, according to the specified mode:

If mode is Qt::IgnoreAspectRatio, the size is set to (width, height). If mode is Qt::KeepAspectRatio, the current size is scaled to a rectangle as large as possible inside (width, height), preserving the aspect ratio. If mode is Qt::KeepAspectRatioByExpanding, the current size is scaled to a rectangle as small as possible outside (width, height), preserving the aspect ratio.

Example:

QSize t1(10, 12);
t1.scale(60, 60, Qt::IgnoreAspectRatio);
// t1 is (60, 60)

QSize t2(10, 12);
t2.scale(60, 60, Qt::KeepAspectRatio);
// t2 is (50, 60)

QSize t3(10, 12);
t3.scale(60, 60, Qt::KeepAspectRatioByExpanding);
// t3 is (60, 72)

See also setWidth(), setHeight(), and scaled().

func (*QSize) Scale_1

func (this *QSize) Scale_1(s QSize_ITF, mode int)

Scales the size to a rectangle with the given width and height, according to the specified mode:

If mode is Qt::IgnoreAspectRatio, the size is set to (width, height). If mode is Qt::KeepAspectRatio, the current size is scaled to a rectangle as large as possible inside (width, height), preserving the aspect ratio. If mode is Qt::KeepAspectRatioByExpanding, the current size is scaled to a rectangle as small as possible outside (width, height), preserving the aspect ratio.

Example:

QSize t1(10, 12);
t1.scale(60, 60, Qt::IgnoreAspectRatio);
// t1 is (60, 60)

QSize t2(10, 12);
t2.scale(60, 60, Qt::KeepAspectRatio);
// t2 is (50, 60)

QSize t3(10, 12);
t3.scale(60, 60, Qt::KeepAspectRatioByExpanding);
// t3 is (60, 72)

See also setWidth(), setHeight(), and scaled().

func (*QSize) Scaled

func (this *QSize) Scaled(w int, h int, mode int) *QSize

Return a size scaled to a rectangle with the given width and height, according to the specified mode.

This function was introduced in Qt 5.0.

See also scale().

func (*QSize) Scaled_1

func (this *QSize) Scaled_1(s QSize_ITF, mode int) *QSize

Return a size scaled to a rectangle with the given width and height, according to the specified mode.

This function was introduced in Qt 5.0.

See also scale().

func (*QSize) SetCthis

func (this *QSize) SetCthis(cthis unsafe.Pointer)

func (*QSize) SetHeight

func (this *QSize) SetHeight(h int)

Sets the height to the given height.

See also rheight(), height(), and setWidth().

func (*QSize) SetWidth

func (this *QSize) SetWidth(w int)

Sets the width to the given width.

See also rwidth(), width(), and setHeight().

func (*QSize) Transpose

func (this *QSize) Transpose()

Swaps the width and height values.

See also setWidth(), setHeight(), and transposed().

func (*QSize) Transposed

func (this *QSize) Transposed() *QSize

Returns a QSize with width and height swapped.

This function was introduced in Qt 5.0.

See also transpose().

func (*QSize) Width

func (this *QSize) Width() int

Returns the width.

See also height() and setWidth().

type QSizeF

type QSizeF struct {
	*qtrt.CObject
}

func NewQSizeF

func NewQSizeF() *QSizeF

func NewQSizeFFromPointer

func NewQSizeFFromPointer(cthis unsafe.Pointer) *QSizeF

func NewQSizeF_1

func NewQSizeF_1(sz QSize_ITF) *QSizeF

func NewQSizeF_2

func NewQSizeF_2(w float64, h float64) *QSizeF

func (*QSizeF) BoundedTo

func (this *QSizeF) BoundedTo(arg0 QSizeF_ITF) *QSizeF

Returns a size holding the minimum width and height of this size and the given otherSize.

See also expandedTo() and scale().

func (*QSizeF) ExpandedTo

func (this *QSizeF) ExpandedTo(arg0 QSizeF_ITF) *QSizeF

Returns a size holding the maximum width and height of this size and the given otherSize.

See also boundedTo() and scale().

func (*QSizeF) GetCthis

func (this *QSizeF) GetCthis() unsafe.Pointer

func (*QSizeF) Height

func (this *QSizeF) Height() float64

Returns the height.

See also width() and setHeight().

func (*QSizeF) IsEmpty

func (this *QSizeF) IsEmpty() bool

Returns true if either of the width and height is less than or equal to 0; otherwise returns false.

See also isNull() and isValid().

func (*QSizeF) IsNull

func (this *QSizeF) IsNull() bool

Returns true if both the width and height is 0; otherwise returns false.

See also isValid() and isEmpty().

func (*QSizeF) IsValid

func (this *QSizeF) IsValid() bool

Returns true if both the width and height is equal to or greater than 0; otherwise returns false.

See also isNull() and isEmpty().

func (*QSizeF) NewFromPointer

func (*QSizeF) NewFromPointer(cthis unsafe.Pointer) *QSizeF

func (*QSizeF) Operator_add_equal

func (this *QSizeF) Operator_add_equal(arg0 QSizeF_ITF) *QSizeF

func (*QSizeF) Operator_div_equal

func (this *QSizeF) Operator_div_equal(c float64) *QSizeF

func (*QSizeF) Operator_minus_equal

func (this *QSizeF) Operator_minus_equal(arg0 QSizeF_ITF) *QSizeF

func (*QSizeF) Operator_mul_equal

func (this *QSizeF) Operator_mul_equal(c float64) *QSizeF

func (*QSizeF) QSizeF_PTR

func (ptr *QSizeF) QSizeF_PTR() *QSizeF

func (*QSizeF) Rheight

func (this *QSizeF) Rheight() float64

Returns a reference to the height.

Using a reference makes it possible to manipulate the height directly. For example:

QSize size(100, 10);
size.rheight() += 5;

// size becomes (100,15)

See also rwidth() and setHeight().

func (*QSizeF) Rwidth

func (this *QSizeF) Rwidth() float64

Returns a reference to the width.

Using a reference makes it possible to manipulate the width directly. For example:

QSize size(100, 10);
size.rwidth() += 20;

// size becomes (120,10)

See also rheight() and setWidth().

func (*QSizeF) Scale

func (this *QSizeF) Scale(w float64, h float64, mode int)

Scales the size to a rectangle with the given width and height, according to the specified mode:

If mode is Qt::IgnoreAspectRatio, the size is set to (width, height). If mode is Qt::KeepAspectRatio, the current size is scaled to a rectangle as large as possible inside (width, height), preserving the aspect ratio. If mode is Qt::KeepAspectRatioByExpanding, the current size is scaled to a rectangle as small as possible outside (width, height), preserving the aspect ratio.

Example:

QSize t1(10, 12);
t1.scale(60, 60, Qt::IgnoreAspectRatio);
// t1 is (60, 60)

QSize t2(10, 12);
t2.scale(60, 60, Qt::KeepAspectRatio);
// t2 is (50, 60)

QSize t3(10, 12);
t3.scale(60, 60, Qt::KeepAspectRatioByExpanding);
// t3 is (60, 72)

See also setWidth(), setHeight(), and scaled().

func (*QSizeF) Scale_1

func (this *QSizeF) Scale_1(s QSizeF_ITF, mode int)

Scales the size to a rectangle with the given width and height, according to the specified mode:

If mode is Qt::IgnoreAspectRatio, the size is set to (width, height). If mode is Qt::KeepAspectRatio, the current size is scaled to a rectangle as large as possible inside (width, height), preserving the aspect ratio. If mode is Qt::KeepAspectRatioByExpanding, the current size is scaled to a rectangle as small as possible outside (width, height), preserving the aspect ratio.

Example:

QSize t1(10, 12);
t1.scale(60, 60, Qt::IgnoreAspectRatio);
// t1 is (60, 60)

QSize t2(10, 12);
t2.scale(60, 60, Qt::KeepAspectRatio);
// t2 is (50, 60)

QSize t3(10, 12);
t3.scale(60, 60, Qt::KeepAspectRatioByExpanding);
// t3 is (60, 72)

See also setWidth(), setHeight(), and scaled().

func (*QSizeF) Scaled

func (this *QSizeF) Scaled(w float64, h float64, mode int) *QSizeF

Return a size scaled to a rectangle with the given width and height, according to the specified mode.

This function was introduced in Qt 5.0.

See also scale().

func (*QSizeF) Scaled_1

func (this *QSizeF) Scaled_1(s QSizeF_ITF, mode int) *QSizeF

Return a size scaled to a rectangle with the given width and height, according to the specified mode.

This function was introduced in Qt 5.0.

See also scale().

func (*QSizeF) SetCthis

func (this *QSizeF) SetCthis(cthis unsafe.Pointer)

func (*QSizeF) SetHeight

func (this *QSizeF) SetHeight(h float64)

Sets the height to the given height.

See also rheight(), height(), and setWidth().

func (*QSizeF) SetWidth

func (this *QSizeF) SetWidth(w float64)

Sets the width to the given width.

See also rwidth(), width(), and setHeight().

func (*QSizeF) ToSize

func (this *QSizeF) ToSize() *QSize

func (*QSizeF) Transpose

func (this *QSizeF) Transpose()

Swaps the width and height values.

See also setWidth(), setHeight(), and transposed().

func (*QSizeF) Transposed

func (this *QSizeF) Transposed() *QSizeF

Returns a QSize with width and height swapped.

This function was introduced in Qt 5.0.

See also transpose().

func (*QSizeF) Width

func (this *QSizeF) Width() float64

Returns the width.

See also height() and setWidth().

type QSizeF_ITF

type QSizeF_ITF interface {
	QSizeF_PTR() *QSizeF
}

type QSize_ITF

type QSize_ITF interface {
	QSize_PTR() *QSize
}

type QSocketNotifier

type QSocketNotifier struct {
	*QObject
}

func NewQSocketNotifier

func NewQSocketNotifier(socket int64, arg1 int, parent QObject_ITF) *QSocketNotifier

Constructs a socket notifier with the given parent. It enables the socket, and watches for events of the given type.

It is generally advisable to explicitly enable or disable the socket notifier, especially for write notifiers.

Note for Windows users: The socket passed to QSocketNotifier will become non-blocking, even if it was created as a blocking socket.

See also setEnabled() and isEnabled().

func NewQSocketNotifierFromPointer

func NewQSocketNotifierFromPointer(cthis unsafe.Pointer) *QSocketNotifier

func NewQSocketNotifier__

func NewQSocketNotifier__(socket int64, arg1 int) *QSocketNotifier

Constructs a socket notifier with the given parent. It enables the socket, and watches for events of the given type.

It is generally advisable to explicitly enable or disable the socket notifier, especially for write notifiers.

Note for Windows users: The socket passed to QSocketNotifier will become non-blocking, even if it was created as a blocking socket.

See also setEnabled() and isEnabled().

func (*QSocketNotifier) Event

func (this *QSocketNotifier) Event(arg0 QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QSocketNotifier) GetCthis

func (this *QSocketNotifier) GetCthis() unsafe.Pointer

func (*QSocketNotifier) InheritEvent

func (this *QSocketNotifier) InheritEvent(f func(arg0 *QEvent) bool)

bool event(class QEvent *)

func (*QSocketNotifier) IsEnabled

func (this *QSocketNotifier) IsEnabled() bool

Returns true if the notifier is enabled; otherwise returns false.

See also setEnabled().

func (*QSocketNotifier) MetaObject

func (this *QSocketNotifier) MetaObject() *QMetaObject

func (*QSocketNotifier) NewFromPointer

func (*QSocketNotifier) NewFromPointer(cthis unsafe.Pointer) *QSocketNotifier

func (*QSocketNotifier) QSocketNotifier_PTR

func (ptr *QSocketNotifier) QSocketNotifier_PTR() *QSocketNotifier

func (*QSocketNotifier) SetCthis

func (this *QSocketNotifier) SetCthis(cthis unsafe.Pointer)

func (*QSocketNotifier) SetEnabled

func (this *QSocketNotifier) SetEnabled(arg0 bool)

If enable is true, the notifier is enabled; otherwise the notifier is disabled.

The notifier is enabled by default, i.e. it emits the activated() signal whenever a socket event corresponding to its type occurs. If it is disabled, it ignores socket events (the same effect as not creating the socket notifier).

Write notifiers should normally be disabled immediately after the activated() signal has been emitted

See also isEnabled() and activated().

func (*QSocketNotifier) Socket

func (this *QSocketNotifier) Socket() int64

Returns the socket identifier specified to the constructor.

See also type().

func (*QSocketNotifier) Type

func (this *QSocketNotifier) Type() int

Returns the socket event type specified to the constructor.

See also socket().

type QSocketNotifier_ITF

type QSocketNotifier_ITF interface {
	QObject_ITF
	QSocketNotifier_PTR() *QSocketNotifier
}

type QSocketNotifier__Type

type QSocketNotifier__Type = int

This enum describes the various types of events that a socket notifier can recognize. The type must be specified when constructing the socket notifier.

Note that if you need to monitor both reads and writes for the same file descriptor, you must create two socket notifiers. Note also that it is not possible to install two socket notifiers of the same type (Read, Write, Exception) on the same socket.

See also QSocketNotifier() and type().

const QSocketNotifier__Exception QSocketNotifier__Type = 2

An exception has occurred. We recommend against using this.

const QSocketNotifier__Read QSocketNotifier__Type = 0

There is data to be read.

const QSocketNotifier__Write QSocketNotifier__Type = 1

Data can be written.

type QSortFilterProxyModel

type QSortFilterProxyModel struct {
	*QAbstractProxyModel
}

func NewQSortFilterProxyModel

func NewQSortFilterProxyModel(parent QObject_ITF) *QSortFilterProxyModel

Constructs a sorting filter model with the given parent.

func NewQSortFilterProxyModelFromPointer

func NewQSortFilterProxyModelFromPointer(cthis unsafe.Pointer) *QSortFilterProxyModel

func NewQSortFilterProxyModel__

func NewQSortFilterProxyModel__() *QSortFilterProxyModel

Constructs a sorting filter model with the given parent.

func (*QSortFilterProxyModel) Buddy

Reimplemented from QAbstractItemModel::buddy().

func (*QSortFilterProxyModel) CanFetchMore

func (this *QSortFilterProxyModel) CanFetchMore(parent QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::canFetchMore().

func (*QSortFilterProxyModel) Clear

func (this *QSortFilterProxyModel) Clear()

func (*QSortFilterProxyModel) ColumnCount

func (this *QSortFilterProxyModel) ColumnCount(parent QModelIndex_ITF) int

Reimplemented from QAbstractItemModel::columnCount().

func (*QSortFilterProxyModel) ColumnCount__

func (this *QSortFilterProxyModel) ColumnCount__() int

Reimplemented from QAbstractItemModel::columnCount().

func (*QSortFilterProxyModel) Data

func (this *QSortFilterProxyModel) Data(index QModelIndex_ITF, role int) *QVariant

Reimplemented from QAbstractItemModel::data().

See also setData().

func (*QSortFilterProxyModel) Data__

func (this *QSortFilterProxyModel) Data__(index QModelIndex_ITF) *QVariant

Reimplemented from QAbstractItemModel::data().

See also setData().

func (*QSortFilterProxyModel) DropMimeData

func (this *QSortFilterProxyModel) DropMimeData(data QMimeData_ITF, action int, row int, column int, parent QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::dropMimeData().

func (*QSortFilterProxyModel) DynamicSortFilter

func (this *QSortFilterProxyModel) DynamicSortFilter() bool

func (*QSortFilterProxyModel) FetchMore

func (this *QSortFilterProxyModel) FetchMore(parent QModelIndex_ITF)

Reimplemented from QAbstractItemModel::fetchMore().

func (*QSortFilterProxyModel) FilterAcceptsColumn

func (this *QSortFilterProxyModel) FilterAcceptsColumn(source_column int, source_parent QModelIndex_ITF) bool

Returns true if the item in the column indicated by the given source_column and source_parent should be included in the model; otherwise returns false.

The default implementation returns true if the value held by the relevant item matches the filter string, wildcard string or regular expression.

Note: By default, the Qt::DisplayRole is used to determine if the column should be accepted or not. This can be changed by setting the filterRole property.

See also filterAcceptsRow(), setFilterFixedString(), setFilterRegExp(), and setFilterWildcard().

func (*QSortFilterProxyModel) FilterAcceptsRow

func (this *QSortFilterProxyModel) FilterAcceptsRow(source_row int, source_parent QModelIndex_ITF) bool

Returns true if the item in the row indicated by the given source_row and source_parent should be included in the model; otherwise returns false.

The default implementation returns true if the value held by the relevant item matches the filter string, wildcard string or regular expression.

Note: By default, the Qt::DisplayRole is used to determine if the row should be accepted or not. This can be changed by setting the filterRole property.

See also filterAcceptsColumn(), setFilterFixedString(), setFilterRegExp(), and setFilterWildcard().

func (*QSortFilterProxyModel) FilterCaseSensitivity

func (this *QSortFilterProxyModel) FilterCaseSensitivity() int

func (*QSortFilterProxyModel) FilterChanged

func (this *QSortFilterProxyModel) FilterChanged()

func (*QSortFilterProxyModel) FilterKeyColumn

func (this *QSortFilterProxyModel) FilterKeyColumn() int

func (*QSortFilterProxyModel) FilterRegExp

func (this *QSortFilterProxyModel) FilterRegExp() *QRegExp

func (*QSortFilterProxyModel) FilterRole

func (this *QSortFilterProxyModel) FilterRole() int

func (*QSortFilterProxyModel) Flags

func (this *QSortFilterProxyModel) Flags(index QModelIndex_ITF) int

Reimplemented from QAbstractItemModel::flags().

func (*QSortFilterProxyModel) GetCthis

func (this *QSortFilterProxyModel) GetCthis() unsafe.Pointer

func (*QSortFilterProxyModel) HasChildren

func (this *QSortFilterProxyModel) HasChildren(parent QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::hasChildren().

func (*QSortFilterProxyModel) HasChildren__

func (this *QSortFilterProxyModel) HasChildren__() bool

Reimplemented from QAbstractItemModel::hasChildren().

func (*QSortFilterProxyModel) HeaderData

func (this *QSortFilterProxyModel) HeaderData(section int, orientation int, role int) *QVariant

Reimplemented from QAbstractItemModel::headerData().

See also setHeaderData().

func (*QSortFilterProxyModel) HeaderData__

func (this *QSortFilterProxyModel) HeaderData__(section int, orientation int) *QVariant

Reimplemented from QAbstractItemModel::headerData().

See also setHeaderData().

func (*QSortFilterProxyModel) Index

func (this *QSortFilterProxyModel) Index(row int, column int, parent QModelIndex_ITF) *QModelIndex

Reimplemented from QAbstractItemModel::index().

func (*QSortFilterProxyModel) Index__

func (this *QSortFilterProxyModel) Index__(row int, column int) *QModelIndex

Reimplemented from QAbstractItemModel::index().

func (*QSortFilterProxyModel) InheritFilterAcceptsColumn

func (this *QSortFilterProxyModel) InheritFilterAcceptsColumn(f func(source_column int, source_parent *QModelIndex) bool)

bool filterAcceptsColumn(int, const class QModelIndex &)

func (*QSortFilterProxyModel) InheritFilterAcceptsRow

func (this *QSortFilterProxyModel) InheritFilterAcceptsRow(f func(source_row int, source_parent *QModelIndex) bool)

bool filterAcceptsRow(int, const class QModelIndex &)

func (*QSortFilterProxyModel) InheritFilterChanged

func (this *QSortFilterProxyModel) InheritFilterChanged(f func())

void filterChanged()

func (*QSortFilterProxyModel) InheritInvalidateFilter

func (this *QSortFilterProxyModel) InheritInvalidateFilter(f func())

void invalidateFilter()

func (*QSortFilterProxyModel) InheritLessThan

func (this *QSortFilterProxyModel) InheritLessThan(f func(source_left *QModelIndex, source_right *QModelIndex) bool)

bool lessThan(const class QModelIndex &, const class QModelIndex &)

func (*QSortFilterProxyModel) InsertColumns

func (this *QSortFilterProxyModel) InsertColumns(column int, count int, parent QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::insertColumns().

func (*QSortFilterProxyModel) InsertColumns__

func (this *QSortFilterProxyModel) InsertColumns__(column int, count int) bool

Reimplemented from QAbstractItemModel::insertColumns().

func (*QSortFilterProxyModel) InsertRows

func (this *QSortFilterProxyModel) InsertRows(row int, count int, parent QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::insertRows().

func (*QSortFilterProxyModel) InsertRows__

func (this *QSortFilterProxyModel) InsertRows__(row int, count int) bool

Reimplemented from QAbstractItemModel::insertRows().

func (*QSortFilterProxyModel) Invalidate

func (this *QSortFilterProxyModel) Invalidate()

Invalidates the current sorting and filtering.

This function was introduced in Qt 4.3.

See also invalidateFilter().

func (*QSortFilterProxyModel) InvalidateFilter

func (this *QSortFilterProxyModel) InvalidateFilter()

Invalidates the current filtering.

This function should be called if you are implementing custom filtering (e.g. filterAcceptsRow()), and your filter parameters have changed.

This function was introduced in Qt 4.3.

See also invalidate().

func (*QSortFilterProxyModel) IsRecursiveFilteringEnabled

func (this *QSortFilterProxyModel) IsRecursiveFilteringEnabled() bool

func (*QSortFilterProxyModel) IsSortLocaleAware

func (this *QSortFilterProxyModel) IsSortLocaleAware() bool

func (*QSortFilterProxyModel) LessThan

func (this *QSortFilterProxyModel) LessThan(source_left QModelIndex_ITF, source_right QModelIndex_ITF) bool

Returns true if the value of the item referred to by the given index source_left is less than the value of the item referred to by the given index source_right, otherwise returns false.

This function is used as the < operator when sorting, and handles the following QVariant types:

QMetaType::Int QMetaType::UInt QMetaType::LongLong QMetaType::ULongLong QMetaType::Float QMetaType::Double QMetaType::QChar QMetaType::QDate QMetaType::QTime QMetaType::QDateTime QMetaType::QString

Any other type will be converted to a QString using QVariant::toString().

Comparison of QStrings is case sensitive by default; this can be changed using the sortCaseSensitivity property.

By default, the Qt::DisplayRole associated with the QModelIndexes is used for comparisons. This can be changed by setting the sortRole property.

Note: The indices passed in correspond to the source model.

See also sortRole, sortCaseSensitivity, and dynamicSortFilter.

func (*QSortFilterProxyModel) MapFromSource

func (this *QSortFilterProxyModel) MapFromSource(sourceIndex QModelIndex_ITF) *QModelIndex

Reimplemented from QAbstractProxyModel::mapFromSource().

Returns the model index in the QSortFilterProxyModel given the sourceIndex from the source model.

See also mapToSource().

func (*QSortFilterProxyModel) MapSelectionFromSource

func (this *QSortFilterProxyModel) MapSelectionFromSource(sourceSelection QItemSelection_ITF) *QItemSelection

Reimplemented from QAbstractProxyModel::mapSelectionFromSource().

func (*QSortFilterProxyModel) MapSelectionToSource

func (this *QSortFilterProxyModel) MapSelectionToSource(proxySelection QItemSelection_ITF) *QItemSelection

Reimplemented from QAbstractProxyModel::mapSelectionToSource().

func (*QSortFilterProxyModel) MapToSource

func (this *QSortFilterProxyModel) MapToSource(proxyIndex QModelIndex_ITF) *QModelIndex

Reimplemented from QAbstractProxyModel::mapToSource().

Returns the source model index corresponding to the given proxyIndex from the sorting filter model.

See also mapFromSource().

func (*QSortFilterProxyModel) Match

func (this *QSortFilterProxyModel) Match(start QModelIndex_ITF, role int, value QVariant_ITF, hits int, flags int) *QModelIndexList

Reimplemented from QAbstractItemModel::match().

func (*QSortFilterProxyModel) Match__

func (this *QSortFilterProxyModel) Match__(start QModelIndex_ITF, role int, value QVariant_ITF) *QModelIndexList

Reimplemented from QAbstractItemModel::match().

func (*QSortFilterProxyModel) Match__1

func (this *QSortFilterProxyModel) Match__1(start QModelIndex_ITF, role int, value QVariant_ITF, hits int) *QModelIndexList

Reimplemented from QAbstractItemModel::match().

func (*QSortFilterProxyModel) MetaObject

func (this *QSortFilterProxyModel) MetaObject() *QMetaObject

func (*QSortFilterProxyModel) MimeTypes

func (this *QSortFilterProxyModel) MimeTypes() *QStringList

Reimplemented from QAbstractItemModel::mimeTypes().

func (*QSortFilterProxyModel) NewFromPointer

func (*QSortFilterProxyModel) Parent

func (this *QSortFilterProxyModel) Parent(child QModelIndex_ITF) *QModelIndex

Reimplemented from QAbstractItemModel::parent().

func (*QSortFilterProxyModel) QSortFilterProxyModel_PTR

func (ptr *QSortFilterProxyModel) QSortFilterProxyModel_PTR() *QSortFilterProxyModel

func (*QSortFilterProxyModel) RemoveColumns

func (this *QSortFilterProxyModel) RemoveColumns(column int, count int, parent QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::removeColumns().

func (*QSortFilterProxyModel) RemoveColumns__

func (this *QSortFilterProxyModel) RemoveColumns__(column int, count int) bool

Reimplemented from QAbstractItemModel::removeColumns().

func (*QSortFilterProxyModel) RemoveRows

func (this *QSortFilterProxyModel) RemoveRows(row int, count int, parent QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::removeRows().

func (*QSortFilterProxyModel) RemoveRows__

func (this *QSortFilterProxyModel) RemoveRows__(row int, count int) bool

Reimplemented from QAbstractItemModel::removeRows().

func (*QSortFilterProxyModel) RowCount

func (this *QSortFilterProxyModel) RowCount(parent QModelIndex_ITF) int

Reimplemented from QAbstractItemModel::rowCount().

func (*QSortFilterProxyModel) RowCount__

func (this *QSortFilterProxyModel) RowCount__() int

Reimplemented from QAbstractItemModel::rowCount().

func (*QSortFilterProxyModel) SetCthis

func (this *QSortFilterProxyModel) SetCthis(cthis unsafe.Pointer)

func (*QSortFilterProxyModel) SetData

func (this *QSortFilterProxyModel) SetData(index QModelIndex_ITF, value QVariant_ITF, role int) bool

Reimplemented from QAbstractItemModel::setData().

See also data().

func (*QSortFilterProxyModel) SetData__

func (this *QSortFilterProxyModel) SetData__(index QModelIndex_ITF, value QVariant_ITF) bool

Reimplemented from QAbstractItemModel::setData().

See also data().

func (*QSortFilterProxyModel) SetDynamicSortFilter

func (this *QSortFilterProxyModel) SetDynamicSortFilter(enable bool)

func (*QSortFilterProxyModel) SetFilterCaseSensitivity

func (this *QSortFilterProxyModel) SetFilterCaseSensitivity(cs int)

func (*QSortFilterProxyModel) SetFilterFixedString

func (this *QSortFilterProxyModel) SetFilterFixedString(pattern string)

Sets the fixed string used to filter the contents of the source model to the given pattern.

See also setFilterCaseSensitivity(), setFilterRegExp(), setFilterWildcard(), and filterRegExp().

func (*QSortFilterProxyModel) SetFilterKeyColumn

func (this *QSortFilterProxyModel) SetFilterKeyColumn(column int)

func (*QSortFilterProxyModel) SetFilterRegExp

func (this *QSortFilterProxyModel) SetFilterRegExp(regExp QRegExp_ITF)

func (*QSortFilterProxyModel) SetFilterRegExp_1

func (this *QSortFilterProxyModel) SetFilterRegExp_1(pattern string)

func (*QSortFilterProxyModel) SetFilterRole

func (this *QSortFilterProxyModel) SetFilterRole(role int)

func (*QSortFilterProxyModel) SetFilterWildcard

func (this *QSortFilterProxyModel) SetFilterWildcard(pattern string)

Sets the wildcard expression used to filter the contents of the source model to the given pattern.

See also setFilterCaseSensitivity(), setFilterRegExp(), setFilterFixedString(), and filterRegExp().

func (*QSortFilterProxyModel) SetHeaderData

func (this *QSortFilterProxyModel) SetHeaderData(section int, orientation int, value QVariant_ITF, role int) bool

Reimplemented from QAbstractItemModel::setHeaderData().

See also headerData().

func (*QSortFilterProxyModel) SetHeaderData__

func (this *QSortFilterProxyModel) SetHeaderData__(section int, orientation int, value QVariant_ITF) bool

Reimplemented from QAbstractItemModel::setHeaderData().

See also headerData().

func (*QSortFilterProxyModel) SetRecursiveFilteringEnabled

func (this *QSortFilterProxyModel) SetRecursiveFilteringEnabled(recursive bool)

func (*QSortFilterProxyModel) SetSortCaseSensitivity

func (this *QSortFilterProxyModel) SetSortCaseSensitivity(cs int)

func (*QSortFilterProxyModel) SetSortLocaleAware

func (this *QSortFilterProxyModel) SetSortLocaleAware(on bool)

func (*QSortFilterProxyModel) SetSortRole

func (this *QSortFilterProxyModel) SetSortRole(role int)

func (*QSortFilterProxyModel) SetSourceModel

func (this *QSortFilterProxyModel) SetSourceModel(sourceModel QAbstractItemModel_ITF)

Reimplemented from QAbstractProxyModel::setSourceModel().

func (*QSortFilterProxyModel) Sibling

func (this *QSortFilterProxyModel) Sibling(row int, column int, idx QModelIndex_ITF) *QModelIndex

Reimplemented from QAbstractItemModel::sibling().

func (*QSortFilterProxyModel) Sort

func (this *QSortFilterProxyModel) Sort(column int, order int)

Reimplemented from QAbstractItemModel::sort().

func (*QSortFilterProxyModel) SortCaseSensitivity

func (this *QSortFilterProxyModel) SortCaseSensitivity() int

func (*QSortFilterProxyModel) SortColumn

func (this *QSortFilterProxyModel) SortColumn() int

the column currently used for sorting

This returns the most recently used sort column.

This function was introduced in Qt 4.5.

func (*QSortFilterProxyModel) SortOrder

func (this *QSortFilterProxyModel) SortOrder() int

the order currently used for sorting

This returns the most recently used sort order.

This function was introduced in Qt 4.5.

func (*QSortFilterProxyModel) SortRole

func (this *QSortFilterProxyModel) SortRole() int

func (*QSortFilterProxyModel) Sort__

func (this *QSortFilterProxyModel) Sort__(column int)

Reimplemented from QAbstractItemModel::sort().

func (*QSortFilterProxyModel) Span

func (this *QSortFilterProxyModel) Span(index QModelIndex_ITF) *QSize

Reimplemented from QAbstractItemModel::span().

func (*QSortFilterProxyModel) SupportedDropActions

func (this *QSortFilterProxyModel) SupportedDropActions() int

Reimplemented from QAbstractItemModel::supportedDropActions().

type QSortFilterProxyModel_ITF

type QSortFilterProxyModel_ITF interface {
	QAbstractProxyModel_ITF
	QSortFilterProxyModel_PTR() *QSortFilterProxyModel
}

type QStandardPaths

type QStandardPaths struct {
	*qtrt.CObject
}

func NewQStandardPathsFromPointer

func NewQStandardPathsFromPointer(cthis unsafe.Pointer) *QStandardPaths

func (*QStandardPaths) DisplayName

func (this *QStandardPaths) DisplayName(type_ int) string

Returns a localized display name for the given location type or an empty QString if no relevant location can be found.

func (*QStandardPaths) EnableTestMode

func (this *QStandardPaths) EnableTestMode(testMode bool)

func (*QStandardPaths) FindExecutable

func (this *QStandardPaths) FindExecutable(executableName string, paths QStringList_ITF) string

Finds the executable named executableName in the paths specified by paths, or the system paths if paths is empty.

On most operating systems the system path is determined by the PATH environment variable.

The directories where to search for the executable can be set in the paths argument. To search in both your own paths and the system paths, call findExecutable twice, once with paths set and once with paths empty.

Symlinks are not resolved, in order to preserve behavior for the case of executables whose behavior depends on the name they are invoked with.

Note: On Windows, the usual executable extensions (from the PATHEXT environment variable) are automatically appended, so that for instance findExecutable("foo") will find foo.exe or foo.bat if present.

Returns the absolute file path to the executable, or an empty string if not found.

func (*QStandardPaths) FindExecutable__

func (this *QStandardPaths) FindExecutable__(executableName string) string

Finds the executable named executableName in the paths specified by paths, or the system paths if paths is empty.

On most operating systems the system path is determined by the PATH environment variable.

The directories where to search for the executable can be set in the paths argument. To search in both your own paths and the system paths, call findExecutable twice, once with paths set and once with paths empty.

Symlinks are not resolved, in order to preserve behavior for the case of executables whose behavior depends on the name they are invoked with.

Note: On Windows, the usual executable extensions (from the PATHEXT environment variable) are automatically appended, so that for instance findExecutable("foo") will find foo.exe or foo.bat if present.

Returns the absolute file path to the executable, or an empty string if not found.

func (*QStandardPaths) GetCthis

func (this *QStandardPaths) GetCthis() unsafe.Pointer

func (*QStandardPaths) IsTestModeEnabled

func (this *QStandardPaths) IsTestModeEnabled() bool

func (*QStandardPaths) Locate

func (this *QStandardPaths) Locate(type_ int, fileName string, options int) string

Tries to find a file or directory called fileName in the standard locations for type.

The full path to the first file or directory (depending on options) found is returned. If no such file or directory can be found, an empty string is returned.

func (*QStandardPaths) LocateAll

func (this *QStandardPaths) LocateAll(type_ int, fileName string, options int) *QStringList

Tries to find all files or directories called fileName in the standard locations for type.

The options flag allows to specify whether to look for files or directories.

Returns the list of all the files that were found.

func (*QStandardPaths) LocateAll__

func (this *QStandardPaths) LocateAll__(type_ int, fileName string) *QStringList

Tries to find all files or directories called fileName in the standard locations for type.

The options flag allows to specify whether to look for files or directories.

Returns the list of all the files that were found.

func (*QStandardPaths) Locate__

func (this *QStandardPaths) Locate__(type_ int, fileName string) string

Tries to find a file or directory called fileName in the standard locations for type.

The full path to the first file or directory (depending on options) found is returned. If no such file or directory can be found, an empty string is returned.

func (*QStandardPaths) NewFromPointer

func (*QStandardPaths) NewFromPointer(cthis unsafe.Pointer) *QStandardPaths

func (*QStandardPaths) QStandardPaths_PTR

func (ptr *QStandardPaths) QStandardPaths_PTR() *QStandardPaths

func (*QStandardPaths) SetCthis

func (this *QStandardPaths) SetCthis(cthis unsafe.Pointer)

func (*QStandardPaths) SetTestModeEnabled

func (this *QStandardPaths) SetTestModeEnabled(testMode bool)

If testMode is true, this enables a special "test mode" in QStandardPaths, which changes writable locations to point to test directories, in order to prevent auto tests from reading from or writing to the current user's configuration.

This affects the locations into which test programs might write files: GenericDataLocation, DataLocation, ConfigLocation, GenericConfigLocation, AppConfigLocation, GenericCacheLocation, CacheLocation. Other locations are not affected.

On Unix, XDG_DATA_HOME is set to ~/.qttest/share, XDG_CONFIG_HOME is set to ~/.qttest/config, and XDG_CACHE_HOME is set to ~/.qttest/cache.

On macOS, data goes to ~/.qttest/Application Support, cache goes to ~/.qttest/Cache, and config goes to ~/.qttest/Preferences.

On Windows, everything goes to a "qttest" directory under Application Data.

func (*QStandardPaths) StandardLocations

func (this *QStandardPaths) StandardLocations(type_ int) *QStringList

Returns all the directories where files of type belong.

The list of directories is sorted from high to low priority, starting with writableLocation() if it can be determined. This list is empty if no locations for type are defined.

See also writableLocation().

func (*QStandardPaths) WritableLocation

func (this *QStandardPaths) WritableLocation(type_ int) string

Returns the directory where files of type should be written to, or an empty string if the location cannot be determined.

Note: The storage location returned can be a directory that does not exist; i.e., it may need to be created by the system or the user.

type QStandardPaths_ITF

type QStandardPaths_ITF interface {
	QStandardPaths_PTR() *QStandardPaths
}

type QStandardPaths__LocateOption

type QStandardPaths__LocateOption = int
const QStandardPaths__LocateDirectory QStandardPaths__LocateOption = 1
const QStandardPaths__LocateFile QStandardPaths__LocateOption = 0

type QStandardPaths__StandardLocation

type QStandardPaths__StandardLocation = int

This enum describes the different locations that can be queried using methods such as QStandardPaths::writableLocation, QStandardPaths::standardLocations, and QStandardPaths::displayName.

Some of the values in this enum represent a user configuration. Such enum values will return the same paths in different applications, so they could be used to share data with other applications. Other values are specific to this application. Each enum value in the table below describes whether it's application-specific or generic.

Application-specific directories should be assumed to be unreachable by other applications. Therefore, files placed there might not be readable by other applications, even if run by the same user. On the other hand, generic directories should be assumed to be accessible by all applications run by this user, but should still be assumed to be unreachable by applications by other users.

Data interchange with other users is out of the scope of QStandardPaths.

The following table gives examples of paths on different operating systems. The first path is the writable path (unless noted). Other, additional paths, if any, represent non-writable locations.

Path typemacOSWindows

DesktopLocation"~/Desktop""C:/Users/<USER>/Desktop" DocumentsLocation"~/Documents""C:/Users/<USER>/Documents" FontsLocation"/System/Library/Fonts" (not writable)"C:/Windows/Fonts" (not writable) ApplicationsLocation"/Applications" (not writable)"C:/Users/<USER>/AppData/Roaming/Microsoft/Windows/Start Menu/Programs" MusicLocation"~/Music""C:/Users/<USER>/Music" MoviesLocation"~/Movies""C:/Users/<USER>/Videos" PicturesLocation"~/Pictures""C:/Users/<USER>/Pictures" TempLocationrandomly generated by the OS"C:/Users/<USER>/AppData/Local/Temp" HomeLocation"~""C:/Users/<USER>" DataLocation"~/Library/Application Support/<APPNAME>", "/Library/Application Support/<APPNAME>". "<APPDIR>/../Resources""C:/Users/<USER>/AppData/Local/<APPNAME>", "C:/ProgramData/<APPNAME>", "<APPDIR>", "<APPDIR>/data", "<APPDIR>/data/<APPNAME>" CacheLocation"~/Library/Caches/<APPNAME>", "/Library/Caches/<APPNAME>""C:/Users/<USER>/AppData/Local/<APPNAME>/cache" GenericDataLocation"~/Library/Application Support", "/Library/Application Support""C:/Users/<USER>/AppData/Local", "C:/ProgramData", "<APPDIR>", "<APPDIR>/data" RuntimeLocation"~/Library/Application Support""C:/Users/<USER>" ConfigLocation"~/Library/Preferences""C:/Users/<USER>/AppData/Local/<APPNAME>", "C:/ProgramData/<APPNAME>" GenericConfigLocation"~/Library/Preferences""C:/Users/<USER>/AppData/Local", "C:/ProgramData" DownloadLocation"~/Downloads""C:/Users/<USER>/Documents" GenericCacheLocation"~/Library/Caches", "/Library/Caches""C:/Users/<USER>/AppData/Local/cache" AppDataLocation"~/Library/Application Support/<APPNAME>", "/Library/Application Support/<APPNAME>". "<APPDIR>/../Resources""C:/Users/<USER>/AppData/Roaming/<APPNAME>", "C:/ProgramData/<APPNAME>", "<APPDIR>", "<APPDIR>/data", "<APPDIR>/data/<APPNAME>" AppLocalDataLocation"~/Library/Application Support/<APPNAME>", "/Library/Application Support/<APPNAME>". "<APPDIR>/../Resources""C:/Users/<USER>/AppData/Local/<APPNAME>", "C:/ProgramData/<APPNAME>", "<APPDIR>", "<APPDIR>/data", "<APPDIR>/data/<APPNAME>" AppConfigLocation"~/Library/Preferences/<APPNAME>""C:/Users/<USER>/AppData/Local/<APPNAME>", "C:/ProgramData/<APPNAME>"

Path typeLinux

DesktopLocation"~/Desktop" DocumentsLocation"~/Documents" FontsLocation"~/.fonts" ApplicationsLocation"~/.local/share/applications", "/usr/local/share/applications", "/usr/share/applications" MusicLocation"~/Music" MoviesLocation"~/Videos" PicturesLocation"~/Pictures" TempLocation"/tmp" HomeLocation"~" DataLocation"~/.local/share/<APPNAME>", "/usr/local/share/<APPNAME>", "/usr/share/<APPNAME>" CacheLocation"~/.cache/<APPNAME>" GenericDataLocation"~/.local/share", "/usr/local/share", "/usr/share" RuntimeLocation"/run/user/<USER>" ConfigLocation"~/.config", "/etc/xdg" GenericConfigLocation"~/.config", "/etc/xdg" DownloadLocation"~/Downloads" GenericCacheLocation"~/.cache" AppDataLocation"~/.local/share/<APPNAME>", "/usr/local/share/<APPNAME>", "/usr/share/<APPNAME>" AppLocalDataLocation"~/.local/share/<APPNAME>", "/usr/local/share/<APPNAME>", "/usr/share/<APPNAME>" AppConfigLocation"~/.config/<APPNAME>", "/etc/xdg/<APPNAME>"

Path typeAndroidiOS

DesktopLocation"<APPROOT>/files""<APPROOT>/Documents/Desktop" DocumentsLocation"<USER>/Documents", "<USER>/<APPNAME>/Documents""<APPROOT>/Documents" FontsLocation"/system/fonts" (not writable)"<APPROOT>/Library/Fonts" ApplicationsLocationnot supported (directory not readable)not supported MusicLocation"<USER>/Music", "<USER>/<APPNAME>/Music""<APPROOT>/Documents/Music" MoviesLocation"<USER>/Movies", "<USER>/<APPNAME>/Movies""<APPROOT>/Documents/Movies" PicturesLocation"<USER>/Pictures", "<USER>/<APPNAME>/Pictures""<APPROOT>/Documents/Pictures", "assets-library://" TempLocation"<APPROOT>/cache""<APPROOT>/tmp" HomeLocation"<APPROOT>/files""<APPROOT>" (not writable) DataLocation"<APPROOT>/files", "<USER>/<APPNAME>/files""<APPROOT>/Library/Application Support" CacheLocation"<APPROOT>/cache", "<USER>/<APPNAME>/cache""<APPROOT>/Library/Caches" GenericDataLocation"<USER>""<APPROOT>/Documents" RuntimeLocation"<APPROOT>/cache"not supported ConfigLocation"<APPROOT>/files/settings""<APPROOT>/Library/Preferences" GenericConfigLocation"<APPROOT>/files/settings" (there is no shared settings)"<APPROOT>/Library/Preferences" DownloadLocation"<USER>/Downloads", "<USER>/<APPNAME>/Downloads""<APPROOT>/Documents/Downloads" GenericCacheLocation"<APPROOT>/cache" (there is no shared cache)"<APPROOT>/Library/Caches" AppDataLocation"<APPROOT>/files", "<USER>/<APPNAME>/files""<APPROOT>/Library/Application Support" AppConfigLocation"<APPROOT>/files/settings""<APPROOT>/Library/Preferences/<APPNAME>" AppLocalDataLocation"<APPROOT>/files", "<USER>/<APPNAME>/files""<APPROOT>/Library/Application Support"

In the table above, <APPNAME> is usually the organization name, the application name, or both, or a unique name generated at packaging. Similarly, <APPROOT> is the location where this application is installed (often a sandbox). <APPDIR> is the directory containing the application executable.

The paths above should not be relied upon, as they may change according to OS configuration, locale, or they may change in future Qt versions.

Note: On Android, applications with open files on the external storage (<USER> locations), will be killed if the external storage is unmounted.

See also writableLocation(), standardLocations(), displayName(), locate(), and locateAll().

const QStandardPaths__AppConfigLocation QStandardPaths__StandardLocation = 18
const QStandardPaths__AppDataLocation QStandardPaths__StandardLocation = 17
const QStandardPaths__AppLocalDataLocation QStandardPaths__StandardLocation = 9
const QStandardPaths__ApplicationsLocation QStandardPaths__StandardLocation = 3

Returns the directory containing the user applications (either executables, application bundles, or shortcuts to them). This is a generic value. Note that installing applications may require additional, platform-specific operations. Files, folders or shortcuts in this directory are platform-specific.

const QStandardPaths__CacheLocation QStandardPaths__StandardLocation = 10
const QStandardPaths__ConfigLocation QStandardPaths__StandardLocation = 13
const QStandardPaths__DataLocation QStandardPaths__StandardLocation = 9

Returns the same value as AppLocalDataLocation. This enumeration value is deprecated. Using AppDataLocation is preferable since on Windows, the roaming path is recommended.

const QStandardPaths__DesktopLocation QStandardPaths__StandardLocation = 0

Returns the user's desktop directory. This is a generic value. On systems with no concept of a desktop.

const QStandardPaths__DocumentsLocation QStandardPaths__StandardLocation = 1

Returns the directory containing user document files. This is a generic value. The returned path is never empty.

const QStandardPaths__DownloadLocation QStandardPaths__StandardLocation = 14
const QStandardPaths__FontsLocation QStandardPaths__StandardLocation = 2

Returns the directory containing user's fonts. This is a generic value. Note that installing fonts may require additional, platform-specific operations.

const QStandardPaths__GenericCacheLocation QStandardPaths__StandardLocation = 15
const QStandardPaths__GenericConfigLocation QStandardPaths__StandardLocation = 16
const QStandardPaths__GenericDataLocation QStandardPaths__StandardLocation = 11
const QStandardPaths__HomeLocation QStandardPaths__StandardLocation = 8

Returns the user's home directory (the same as QDir::homePath()). On Unix systems, this is equal to the HOME environment variable. This value might be generic or application-specific, but the returned path is never empty.

const QStandardPaths__MoviesLocation QStandardPaths__StandardLocation = 5

Returns the directory containing the user's movies and videos. This is a generic value. If no directory specific for movie files exists, a sensible fallback for storing user documents is returned.

const QStandardPaths__MusicLocation QStandardPaths__StandardLocation = 4

Returns the directory containing the user's music or other audio files. This is a generic value. If no directory specific for music files exists, a sensible fallback for storing user documents is returned.

const QStandardPaths__PicturesLocation QStandardPaths__StandardLocation = 6

Returns the directory containing the user's pictures or photos. This is a generic value. If no directory specific for picture files exists, a sensible fallback for storing user documents is returned.

const QStandardPaths__RuntimeLocation QStandardPaths__StandardLocation = 12
const QStandardPaths__TempLocation QStandardPaths__StandardLocation = 7

Returns a directory where temporary files can be stored. The returned value might be application-specific, shared among other applications for this user, or even system-wide. The returned path is never empty.

type QState

type QState struct {
	*QAbstractState
}

func NewQState

func NewQState(parent QState_ITF) *QState

Constructs a new state with the given parent state.

func NewQStateFromPointer

func NewQStateFromPointer(cthis unsafe.Pointer) *QState

func NewQState_1

func NewQState_1(childMode int, parent QState_ITF) *QState

Constructs a new state with the given parent state.

func NewQState_1_

func NewQState_1_(childMode int) *QState

Constructs a new state with the given parent state.

func NewQState__

func NewQState__() *QState

Constructs a new state with the given parent state.

func (*QState) AddTransition

func (this *QState) AddTransition(transition QAbstractTransition_ITF)

Adds the given transition. The transition has this state as the source. This state takes ownership of the transition.

func (*QState) AddTransition_1

func (this *QState) AddTransition_1(sender QObject_ITF, signal string, target QAbstractState_ITF) *QSignalTransition

Adds the given transition. The transition has this state as the source. This state takes ownership of the transition.

func (*QState) AddTransition_2

func (this *QState) AddTransition_2(target QAbstractState_ITF) *QAbstractTransition

Adds the given transition. The transition has this state as the source. This state takes ownership of the transition.

func (*QState) AssignProperty

func (this *QState) AssignProperty(object QObject_ITF, name string, value QVariant_ITF)

Instructs this state to set the property with the given name of the given object to the given value when the state is entered.

See also propertiesAssigned().

func (*QState) ChildMode

func (this *QState) ChildMode() int

Returns the child mode of this state.

Note: Getter function for property childMode.

See also setChildMode().

func (*QState) ErrorState

func (this *QState) ErrorState() *QAbstractState

Returns this state's error state.

Note: Getter function for property errorState.

See also setErrorState() and QStateMachine::error().

func (*QState) Event

func (this *QState) Event(e QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QState) GetCthis

func (this *QState) GetCthis() unsafe.Pointer

func (*QState) InheritEvent

func (this *QState) InheritEvent(f func(e *QEvent) bool)

bool event(class QEvent *)

func (*QState) InheritOnEntry

func (this *QState) InheritOnEntry(f func(event *QEvent))

void onEntry(class QEvent *)

func (*QState) InheritOnExit

func (this *QState) InheritOnExit(f func(event *QEvent))

void onExit(class QEvent *)

func (*QState) InitialState

func (this *QState) InitialState() *QAbstractState

Returns this state's initial state, or 0 if the state has no initial state.

Note: Getter function for property initialState.

See also setInitialState().

func (*QState) MetaObject

func (this *QState) MetaObject() *QMetaObject

func (*QState) NewFromPointer

func (*QState) NewFromPointer(cthis unsafe.Pointer) *QState

func (*QState) OnEntry

func (this *QState) OnEntry(event QEvent_ITF)

Reimplemented from QAbstractState::onEntry().

func (*QState) OnExit

func (this *QState) OnExit(event QEvent_ITF)

Reimplemented from QAbstractState::onExit().

func (*QState) QState_PTR

func (ptr *QState) QState_PTR() *QState

func (*QState) RemoveTransition

func (this *QState) RemoveTransition(transition QAbstractTransition_ITF)

Removes the given transition from this state. The state releases ownership of the transition.

See also addTransition().

func (*QState) SetChildMode

func (this *QState) SetChildMode(mode int)

Sets the child mode of this state.

Note: Setter function for property childMode.

See also childMode().

func (*QState) SetCthis

func (this *QState) SetCthis(cthis unsafe.Pointer)

func (*QState) SetErrorState

func (this *QState) SetErrorState(state QAbstractState_ITF)

Sets this state's error state to be the given state. If the error state is not set, or if it is set to 0, the state will inherit its parent's error state recursively. If no error state is set for the state itself or any of its ancestors, an error will cause the machine to stop executing and an error will be printed to the console.

Note: Setter function for property errorState.

See also errorState().

func (*QState) SetInitialState

func (this *QState) SetInitialState(state QAbstractState_ITF)

Sets this state's initial state to be the given state. state has to be a child of this state.

Note: Setter function for property initialState.

See also initialState().

type QStateMachine

type QStateMachine struct {
	*QState
}

func NewQStateMachine

func NewQStateMachine(parent QObject_ITF) *QStateMachine

Constructs a new state machine with the given parent.

func NewQStateMachineFromPointer

func NewQStateMachineFromPointer(cthis unsafe.Pointer) *QStateMachine

func NewQStateMachine_1

func NewQStateMachine_1(childMode int, parent QObject_ITF) *QStateMachine

Constructs a new state machine with the given parent.

func NewQStateMachine_1_

func NewQStateMachine_1_(childMode int) *QStateMachine

Constructs a new state machine with the given parent.

func NewQStateMachine__

func NewQStateMachine__() *QStateMachine

Constructs a new state machine with the given parent.

func (*QStateMachine) AddDefaultAnimation

func (this *QStateMachine) AddDefaultAnimation(animation QAbstractAnimation_ITF)

Adds a default animation to be considered for any transition.

func (*QStateMachine) AddState

func (this *QStateMachine) AddState(state QAbstractState_ITF)

Adds the given state to this state machine. The state becomes a top-level state.

If the state is already in a different machine, it will first be removed from its old machine, and then added to this machine.

See also removeState() and setInitialState().

func (*QStateMachine) BeginMicrostep

func (this *QStateMachine) BeginMicrostep(event QEvent_ITF)

func (*QStateMachine) BeginSelectTransitions

func (this *QStateMachine) BeginSelectTransitions(event QEvent_ITF)

func (*QStateMachine) CancelDelayedEvent

func (this *QStateMachine) CancelDelayedEvent(id int) bool

Cancels the delayed event identified by the given id. The id should be a value returned by a call to postDelayedEvent(). Returns true if the event was successfully cancelled, otherwise returns false.

Note: This function is thread-safe.

See also postDelayedEvent().

func (*QStateMachine) ClearError

func (this *QStateMachine) ClearError()

Clears the error string and error code of the state machine.

func (*QStateMachine) EndMicrostep

func (this *QStateMachine) EndMicrostep(event QEvent_ITF)

func (*QStateMachine) EndSelectTransitions

func (this *QStateMachine) EndSelectTransitions(event QEvent_ITF)

func (*QStateMachine) Error

func (this *QStateMachine) Error() int

Returns the error code of the last error that occurred in the state machine.

func (*QStateMachine) ErrorString

func (this *QStateMachine) ErrorString() string

Returns the error string of the last error that occurred in the state machine.

Note: Getter function for property errorString.

func (*QStateMachine) Event

func (this *QStateMachine) Event(e QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QStateMachine) EventFilter

func (this *QStateMachine) EventFilter(watched QObject_ITF, event QEvent_ITF) bool

Reimplemented from QObject::eventFilter().

func (*QStateMachine) GetCthis

func (this *QStateMachine) GetCthis() unsafe.Pointer

func (*QStateMachine) GlobalRestorePolicy

func (this *QStateMachine) GlobalRestorePolicy() int

Returns the restore policy of the state machine.

Note: Getter function for property globalRestorePolicy.

See also setGlobalRestorePolicy().

func (*QStateMachine) InheritBeginMicrostep

func (this *QStateMachine) InheritBeginMicrostep(f func(event *QEvent))

void beginMicrostep(class QEvent *)

func (*QStateMachine) InheritBeginSelectTransitions

func (this *QStateMachine) InheritBeginSelectTransitions(f func(event *QEvent))

void beginSelectTransitions(class QEvent *)

func (*QStateMachine) InheritEndMicrostep

func (this *QStateMachine) InheritEndMicrostep(f func(event *QEvent))

void endMicrostep(class QEvent *)

func (*QStateMachine) InheritEndSelectTransitions

func (this *QStateMachine) InheritEndSelectTransitions(f func(event *QEvent))

void endSelectTransitions(class QEvent *)

func (*QStateMachine) InheritEvent

func (this *QStateMachine) InheritEvent(f func(e *QEvent) bool)

bool event(class QEvent *)

func (*QStateMachine) InheritOnEntry

func (this *QStateMachine) InheritOnEntry(f func(event *QEvent))

void onEntry(class QEvent *)

func (*QStateMachine) InheritOnExit

func (this *QStateMachine) InheritOnExit(f func(event *QEvent))

void onExit(class QEvent *)

func (*QStateMachine) IsAnimated

func (this *QStateMachine) IsAnimated() bool

Returns whether animations are enabled for this state machine.

Note: Getter function for property animated.

func (*QStateMachine) IsRunning

func (this *QStateMachine) IsRunning() bool

func (*QStateMachine) MetaObject

func (this *QStateMachine) MetaObject() *QMetaObject

func (*QStateMachine) NewFromPointer

func (*QStateMachine) NewFromPointer(cthis unsafe.Pointer) *QStateMachine

func (*QStateMachine) OnEntry

func (this *QStateMachine) OnEntry(event QEvent_ITF)

Reimplemented from QAbstractState::onEntry().

This function will call start() to start the state machine.

func (*QStateMachine) OnExit

func (this *QStateMachine) OnExit(event QEvent_ITF)

Reimplemented from QAbstractState::onExit().

This function will call stop() to stop the state machine and subsequently emit the stopped() signal.

func (*QStateMachine) PostDelayedEvent

func (this *QStateMachine) PostDelayedEvent(event QEvent_ITF, delay int) int

Posts the given event for processing by this state machine, with the given delay in milliseconds. Returns an identifier associated with the delayed event, or -1 if the event could not be posted.

This function returns immediately. When the delay has expired, the event will be added to the state machine's event queue for processing. The state machine takes ownership of the event and deletes it once it has been processed.

You can only post events when the state machine is running.

Note: This function is thread-safe.

See also cancelDelayedEvent() and postEvent().

func (*QStateMachine) PostEvent

func (this *QStateMachine) PostEvent(event QEvent_ITF, priority int)

Posts the given event of the given priority for processing by this state machine.

This function returns immediately. The event is added to the state machine's event queue. Events are processed in the order posted. The state machine takes ownership of the event and deletes it once it has been processed.

You can only post events when the state machine is running or when it is starting up.

Note: This function is thread-safe.

See also postDelayedEvent().

func (*QStateMachine) PostEvent__

func (this *QStateMachine) PostEvent__(event QEvent_ITF)

Posts the given event of the given priority for processing by this state machine.

This function returns immediately. The event is added to the state machine's event queue. Events are processed in the order posted. The state machine takes ownership of the event and deletes it once it has been processed.

You can only post events when the state machine is running or when it is starting up.

Note: This function is thread-safe.

See also postDelayedEvent().

func (*QStateMachine) QStateMachine_PTR

func (ptr *QStateMachine) QStateMachine_PTR() *QStateMachine

func (*QStateMachine) RemoveDefaultAnimation

func (this *QStateMachine) RemoveDefaultAnimation(animation QAbstractAnimation_ITF)

Removes animation from the list of default animations.

func (*QStateMachine) RemoveState

func (this *QStateMachine) RemoveState(state QAbstractState_ITF)

Removes the given state from this state machine. The state machine releases ownership of the state.

See also addState().

func (*QStateMachine) RunningChanged

func (this *QStateMachine) RunningChanged(running bool)

This signal is emitted when the running property is changed with running as argument.

This function was introduced in Qt 5.4.

Note: Notifier signal for property running.

See also QStateMachine::running.

func (*QStateMachine) SetAnimated

func (this *QStateMachine) SetAnimated(enabled bool)

Sets whether animations are enabled for this state machine.

Note: Setter function for property animated.

See also isAnimated().

func (*QStateMachine) SetCthis

func (this *QStateMachine) SetCthis(cthis unsafe.Pointer)

func (*QStateMachine) SetGlobalRestorePolicy

func (this *QStateMachine) SetGlobalRestorePolicy(restorePolicy int)

Sets the restore policy of the state machine to restorePolicy. The default restore policy is QState::DontRestoreProperties.

Note: Setter function for property globalRestorePolicy.

See also globalRestorePolicy().

func (*QStateMachine) SetRunning

func (this *QStateMachine) SetRunning(running bool)

func (*QStateMachine) Start

func (this *QStateMachine) Start()

Starts this state machine. The machine will reset its configuration and transition to the initial state. When a final top-level state (QFinalState) is entered, the machine will emit the finished() signal.

Note: A state machine will not run without a running event loop, such as the main application event loop started with QCoreApplication::exec() or QApplication::exec().

See also started(), finished(), stop(), initialState(), and setRunning().

func (*QStateMachine) Stop

func (this *QStateMachine) Stop()

Stops this state machine. The state machine will stop processing events and then emit the stopped() signal.

See also stopped(), start(), and setRunning().

type QStateMachine_ITF

type QStateMachine_ITF interface {
	QState_ITF
	QStateMachine_PTR() *QStateMachine
}

type QStateMachine__Error

type QStateMachine__Error = int

This enum type defines errors that can occur in the state machine at run time. When the state machine encounters an unrecoverable error at run time, it will set the error code returned by error(), the error message returned by errorString(), and enter an error state based on the context of the error.

See also setErrorState().

const QStateMachine__NoCommonAncestorForTransitionError QStateMachine__Error = 3

The machine has selected a transition whose source and targets are not part of the same tree of states, and thus are not part of the same state machine. Commonly, this could mean that one of the states has not been given any parent or added to any machine. The context of this error is the source state of the transition.

const QStateMachine__NoDefaultStateInHistoryStateError QStateMachine__Error = 2

The machine has entered a QHistoryState which does not have a default state set. The context of this error is the QHistoryState which is missing a default state.

const QStateMachine__NoError QStateMachine__Error = 0

No error has occurred.

const QStateMachine__NoInitialStateError QStateMachine__Error = 1

The machine has entered a QState with children which does not have an initial state set. The context of this error is the state which is missing an initial state.

type QStateMachine__EventPriority

type QStateMachine__EventPriority = int

This enum type specifies the priority of an event posted to the state machine using postEvent().

Events of high priority are processed before events of normal priority.

const QStateMachine__HighPriority QStateMachine__EventPriority = 1

The event has high priority.

const QStateMachine__NormalPriority QStateMachine__EventPriority = 0

The event has normal priority.

type QState_ITF

type QState_ITF interface {
	QAbstractState_ITF
	QState_PTR() *QState
}

type QState__ChildMode

type QState__ChildMode = int

This enum specifies how a state's child states are treated.

const QState__ExclusiveStates QState__ChildMode = 0

The child states are mutually exclusive and an initial state must be set by calling QState::setInitialState().

const QState__ParallelStates QState__ChildMode = 1

The child states are parallel. When the parent state is entered, all its child states are entered in parallel.

type QState__RestorePolicy

type QState__RestorePolicy = int

This enum specifies the restore policy type. The restore policy takes effect when the machine enters a state which sets one or more properties. If the restore policy is set to RestoreProperties, the state machine will save the original value of the property before the new value is set.

Later, when the machine either enters a state which does not set a value for the given property, the property will automatically be restored to its initial value.

Only one initial value will be saved for any given property. If a value for a property has already been saved by the state machine, it will not be overwritten until the property has been successfully restored.

See also QStateMachine::globalRestorePolicy and QState::assignProperty().

const QState__DontRestoreProperties QState__RestorePolicy = 0

The state machine should not save the initial values of properties and restore them later.

const QState__RestoreProperties QState__RestorePolicy = 1

The state machine should save the initial values of properties and restore them later.

type QStaticByteArrayMatcherBase

type QStaticByteArrayMatcherBase struct {
	*qtrt.CObject
}

func NewQStaticByteArrayMatcherBase

func NewQStaticByteArrayMatcherBase(pattern string, n uint) *QStaticByteArrayMatcherBase

func NewQStaticByteArrayMatcherBaseFromPointer

func NewQStaticByteArrayMatcherBaseFromPointer(cthis unsafe.Pointer) *QStaticByteArrayMatcherBase

func (*QStaticByteArrayMatcherBase) GetCthis

func (this *QStaticByteArrayMatcherBase) GetCthis() unsafe.Pointer

func (*QStaticByteArrayMatcherBase) IndexOfIn

func (this *QStaticByteArrayMatcherBase) IndexOfIn(needle string, nlen uint, haystack string, hlen int, from int) int

func (*QStaticByteArrayMatcherBase) InheritIndexOfIn

func (this *QStaticByteArrayMatcherBase) InheritIndexOfIn(f func(needle string, nlen uint, haystack string, hlen int, from int) int)

int indexOfIn(const char *, uint, const char *, int, int)

func (*QStaticByteArrayMatcherBase) NewFromPointer

func (*QStaticByteArrayMatcherBase) QStaticByteArrayMatcherBase_PTR

func (ptr *QStaticByteArrayMatcherBase) QStaticByteArrayMatcherBase_PTR() *QStaticByteArrayMatcherBase

func (*QStaticByteArrayMatcherBase) SetCthis

func (this *QStaticByteArrayMatcherBase) SetCthis(cthis unsafe.Pointer)

type QStaticByteArrayMatcherBase_ITF

type QStaticByteArrayMatcherBase_ITF interface {
	QStaticByteArrayMatcherBase_PTR() *QStaticByteArrayMatcherBase
}

type QStaticPlugin

type QStaticPlugin struct {
	*qtrt.CObject
}

func NewQStaticPluginFromPointer

func NewQStaticPluginFromPointer(cthis unsafe.Pointer) *QStaticPlugin

func (*QStaticPlugin) GetCthis

func (this *QStaticPlugin) GetCthis() unsafe.Pointer

func (*QStaticPlugin) MetaData

func (this *QStaticPlugin) MetaData() *QJsonObject

func (*QStaticPlugin) NewFromPointer

func (*QStaticPlugin) NewFromPointer(cthis unsafe.Pointer) *QStaticPlugin

func (*QStaticPlugin) QStaticPlugin_PTR

func (ptr *QStaticPlugin) QStaticPlugin_PTR() *QStaticPlugin

func (*QStaticPlugin) SetCthis

func (this *QStaticPlugin) SetCthis(cthis unsafe.Pointer)

type QStaticPlugin_ITF

type QStaticPlugin_ITF interface {
	QStaticPlugin_PTR() *QStaticPlugin
}

type QStorageInfo

type QStorageInfo struct {
	*qtrt.CObject
}

func NewQStorageInfo

func NewQStorageInfo() *QStorageInfo

Constructs an empty QStorageInfo object.

Objects created with the default constructor will be invalid and therefore not ready for use.

See also setPath(), isReady(), and isValid().

func NewQStorageInfoFromPointer

func NewQStorageInfoFromPointer(cthis unsafe.Pointer) *QStorageInfo

func NewQStorageInfo_1

func NewQStorageInfo_1(path string) *QStorageInfo

Constructs an empty QStorageInfo object.

Objects created with the default constructor will be invalid and therefore not ready for use.

See also setPath(), isReady(), and isValid().

func NewQStorageInfo_2

func NewQStorageInfo_2(dir QDir_ITF) *QStorageInfo

Constructs an empty QStorageInfo object.

Objects created with the default constructor will be invalid and therefore not ready for use.

See also setPath(), isReady(), and isValid().

func QStorageInfo_Root

func QStorageInfo_Root() *QStorageInfo

func (*QStorageInfo) BlockSize

func (this *QStorageInfo) BlockSize() int

Returns the optimal transfer block size for this filesystem.

Returns -1 if QStorageInfo could not determine the size or if the QStorageInfo object is not valid.

This function was introduced in Qt 5.6.

func (*QStorageInfo) BytesAvailable

func (this *QStorageInfo) BytesAvailable() int64

Returns the size (in bytes) available for the current user. It returns the total size available if the user is the root user or a system administrator.

This size can be less than or equal to the free size returned by bytesFree() function.

Returns -1 if QStorageInfo object is not valid.

See also bytesTotal() and bytesFree().

func (*QStorageInfo) BytesFree

func (this *QStorageInfo) BytesFree() int64

Returns the number of free bytes in a volume. Note that if there are quotas on the filesystem, this value can be larger than the value returned by bytesAvailable().

Returns -1 if QStorageInfo object is not valid.

See also bytesTotal() and bytesAvailable().

func (*QStorageInfo) BytesTotal

func (this *QStorageInfo) BytesTotal() int64

Returns the total volume size in bytes.

Returns -1 if QStorageInfo object is not valid.

See also bytesFree() and bytesAvailable().

func (*QStorageInfo) Device

func (this *QStorageInfo) Device() *QByteArray

Returns the device for this volume.

For example, on Unix filesystems (including macOS), this returns the devpath like /dev/sda0 for local storages. On Windows, it returns the UNC path starting with \\\\?\\ for local storages (in other words, the volume GUID).

See also rootPath() and subvolume().

func (*QStorageInfo) DisplayName

func (this *QStorageInfo) DisplayName() string

Returns the volume's name, if available, or the root path if not.

func (*QStorageInfo) FileSystemType

func (this *QStorageInfo) FileSystemType() *QByteArray

Returns the type name of the filesystem.

This is a platform-dependent function, and filesystem names can vary between different operating systems. For example, on Windows filesystems they can be named NTFS, and on Linux they can be named ntfs-3g or fuseblk.

See also name().

func (*QStorageInfo) GetCthis

func (this *QStorageInfo) GetCthis() unsafe.Pointer

func (*QStorageInfo) IsReadOnly

func (this *QStorageInfo) IsReadOnly() bool

Returns true if the current filesystem is protected from writing; false otherwise.

func (*QStorageInfo) IsReady

func (this *QStorageInfo) IsReady() bool

Returns true if the current filesystem is ready to work; false otherwise. For example, false is returned if the CD volume is not inserted.

Note that fileSystemType(), name(), bytesTotal(), bytesFree(), and bytesAvailable() will return invalid data until the volume is ready.

See also isValid().

func (*QStorageInfo) IsRoot

func (this *QStorageInfo) IsRoot() bool

Returns true if this QStorageInfo represents the system root volume; false otherwise.

On Unix filesystems, the root volume is a volume mounted on /. On Windows, the root volume is the volume where the OS is installed.

See also root().

func (*QStorageInfo) IsValid

func (this *QStorageInfo) IsValid() bool

Returns true if the QStorageInfo specified by rootPath exists and is mounted correctly.

See also isReady().

func (*QStorageInfo) Name

func (this *QStorageInfo) Name() string

Returns the human-readable name of a filesystem, usually called label.

Not all filesystems support this feature. In this case, the value returned by this method could be empty. An empty string is returned if the file system does not support labels, or if no label is set.

On Linux, retrieving the volume's label requires udev to be present in the system.

See also fileSystemType().

func (*QStorageInfo) NewFromPointer

func (*QStorageInfo) NewFromPointer(cthis unsafe.Pointer) *QStorageInfo

func (*QStorageInfo) Operator_equal

func (this *QStorageInfo) Operator_equal(other QStorageInfo_ITF) *QStorageInfo

func (*QStorageInfo) Operator_equal_1

func (this *QStorageInfo) Operator_equal_1(other unsafe.Pointer) *QStorageInfo

func (*QStorageInfo) QStorageInfo_PTR

func (ptr *QStorageInfo) QStorageInfo_PTR() *QStorageInfo

func (*QStorageInfo) Refresh

func (this *QStorageInfo) Refresh()

Resets QStorageInfo's internal cache.

QStorageInfo caches information about storage to speed up performance. QStorageInfo retrieves information during object construction and/or when calling the setPath() method. You have to manually reset the cache by calling this function to update storage information.

func (*QStorageInfo) Root

func (this *QStorageInfo) Root() *QStorageInfo

Returns a QStorageInfo object that represents the system root volume.

On Unix systems this call returns the root ('/') volume; in Windows the volume where the operating system is installed.

See also isRoot().

func (*QStorageInfo) RootPath

func (this *QStorageInfo) RootPath() string

Returns the mount point of the filesystem this QStorageInfo object represents.

On Windows, it returns the volume letter in case the volume is not mounted to a directory.

Note that the value returned by rootPath() is the real mount point of a volume, and may not be equal to the value passed to the constructor or setPath() method. For example, if you have only the root volume in the system, and pass '/directory' to setPath(), then this method will return '/'.

See also setPath() and device().

func (*QStorageInfo) SetCthis

func (this *QStorageInfo) SetCthis(cthis unsafe.Pointer)

func (*QStorageInfo) SetPath

func (this *QStorageInfo) SetPath(path string)

Sets this QStorageInfo object to the filesystem mounted where path is located.

path can either be a root path of the filesystem, a directory, or a file within that filesystem.

See also rootPath().

func (*QStorageInfo) Subvolume

func (this *QStorageInfo) Subvolume() *QByteArray

Returns the subvolume name for this volume.

Some filesystem types allow multiple subvolumes inside one device, which may be mounted in different paths. If the subvolume could be detected, it is returned here. The format of the subvolume name is specific to each filesystem type.

If this volume was not mounted from a subvolume of a larger filesystem or if the subvolume could not be detected, this function returns an empty byte array.

This function was introduced in Qt 5.9.

See also device().

func (*QStorageInfo) Swap

func (this *QStorageInfo) Swap(other QStorageInfo_ITF)

Swaps this volume info with other. This function is very fast and never fails.

type QStorageInfo_ITF

type QStorageInfo_ITF interface {
	QStorageInfo_PTR() *QStorageInfo
}

type QString

type QString struct {
	*qtrt.CObject
}

func NewQString

func NewQString() *QString

Constructs a null string. Null strings are also empty.

See also isEmpty().

func NewQStringFromPointer

func NewQStringFromPointer(cthis unsafe.Pointer) *QString

func NewQString_1

func NewQString_1(unicode QChar_ITF, size int) *QString

Constructs a null string. Null strings are also empty.

See also isEmpty().

func NewQString_1_

func NewQString_1_(unicode QChar_ITF) *QString

Constructs a null string. Null strings are also empty.

See also isEmpty().

func NewQString_2

func NewQString_2(c QChar_ITF) *QString

Constructs a null string. Null strings are also empty.

See also isEmpty().

func NewQString_3

func NewQString_3(size int, c QChar_ITF) *QString

Constructs a null string. Null strings are also empty.

See also isEmpty().

func NewQString_4

func NewQString_4(latin1 QLatin1String_ITF) *QString

Constructs a null string. Null strings are also empty.

See also isEmpty().

func NewQString_5

func NewQString_5(ch string) *QString

Constructs a null string. Null strings are also empty.

See also isEmpty().

func NewQString_6

func NewQString_6(a QByteArray_ITF) *QString

Constructs a null string. Null strings are also empty.

See also isEmpty().

func NewQString_7

func NewQString_7(size int, arg1 int) *QString

Constructs a null string. Null strings are also empty.

See also isEmpty().

func (*QString) Arg

func (this *QString) Arg(a int64, fieldwidth int, base int, fillChar QChar_ITF) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_1

func (this *QString) Arg_1(a uint64, fieldwidth int, base int, fillChar QChar_ITF) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_10

func (this *QString) Arg_10(a QChar_ITF, fieldWidth int, fillChar QChar_ITF) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_10_

func (this *QString) Arg_10_(a QChar_ITF) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_10_1

func (this *QString) Arg_10_1(a QChar_ITF, fieldWidth int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_11

func (this *QString) Arg_11(a string, fieldWidth int, fillChar QChar_ITF) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_11_

func (this *QString) Arg_11_(a string) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_11_1

func (this *QString) Arg_11_1(a string, fieldWidth int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_12

func (this *QString) Arg_12(a QStringView_ITF, fieldWidth int, fillChar QChar_ITF) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_12_

func (this *QString) Arg_12_(a QStringView_ITF) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_12_1

func (this *QString) Arg_12_1(a QStringView_ITF, fieldWidth int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_13

func (this *QString) Arg_13(a QLatin1String_ITF, fieldWidth int, fillChar QChar_ITF) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_13_

func (this *QString) Arg_13_(a QLatin1String_ITF) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_13_1

func (this *QString) Arg_13_1(a QLatin1String_ITF, fieldWidth int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_14

func (this *QString) Arg_14(a1 string, a2 string) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_15

func (this *QString) Arg_15(a1 string, a2 string, a3 string) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_16

func (this *QString) Arg_16(a1 string, a2 string, a3 string, a4 string) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_17

func (this *QString) Arg_17(a1 string, a2 string, a3 string, a4 string, a5 string) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_18

func (this *QString) Arg_18(a1 string, a2 string, a3 string, a4 string, a5 string, a6 string) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_19

func (this *QString) Arg_19(a1 string, a2 string, a3 string, a4 string, a5 string, a6 string, a7 string) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_1_

func (this *QString) Arg_1_(a uint64) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_1_1

func (this *QString) Arg_1_1(a uint64, fieldwidth int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_1_2

func (this *QString) Arg_1_2(a uint64, fieldwidth int, base int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_2

func (this *QString) Arg_2(a int, fieldwidth int, base int, fillChar QChar_ITF) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_20

func (this *QString) Arg_20(a1 string, a2 string, a3 string, a4 string, a5 string, a6 string, a7 string, a8 string) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_21

func (this *QString) Arg_21(a1 string, a2 string, a3 string, a4 string, a5 string, a6 string, a7 string, a8 string, a9 string) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_2_

func (this *QString) Arg_2_(a int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_2_1

func (this *QString) Arg_2_1(a int, fieldwidth int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_2_2

func (this *QString) Arg_2_2(a int, fieldwidth int, base int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_3

func (this *QString) Arg_3(a uint, fieldwidth int, base int, fillChar QChar_ITF) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_3_

func (this *QString) Arg_3_(a uint) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_3_1

func (this *QString) Arg_3_1(a uint, fieldwidth int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_3_2

func (this *QString) Arg_3_2(a uint, fieldwidth int, base int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_4

func (this *QString) Arg_4(a int, fieldWidth int, base int, fillChar QChar_ITF) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_4_

func (this *QString) Arg_4_(a int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_4_1

func (this *QString) Arg_4_1(a int, fieldWidth int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_4_2

func (this *QString) Arg_4_2(a int, fieldWidth int, base int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_5

func (this *QString) Arg_5(a uint, fieldWidth int, base int, fillChar QChar_ITF) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_5_

func (this *QString) Arg_5_(a uint) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_5_1

func (this *QString) Arg_5_1(a uint, fieldWidth int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_5_2

func (this *QString) Arg_5_2(a uint, fieldWidth int, base int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_6

func (this *QString) Arg_6(a int16, fieldWidth int, base int, fillChar QChar_ITF) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_6_

func (this *QString) Arg_6_(a int16) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_6_1

func (this *QString) Arg_6_1(a int16, fieldWidth int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_6_2

func (this *QString) Arg_6_2(a int16, fieldWidth int, base int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_7

func (this *QString) Arg_7(a uint16, fieldWidth int, base int, fillChar QChar_ITF) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_7_

func (this *QString) Arg_7_(a uint16) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_7_1

func (this *QString) Arg_7_1(a uint16, fieldWidth int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_7_2

func (this *QString) Arg_7_2(a uint16, fieldWidth int, base int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_8

func (this *QString) Arg_8(a float64, fieldWidth int, fmt_ byte, prec int, fillChar QChar_ITF) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_8_

func (this *QString) Arg_8_(a float64) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_8_1

func (this *QString) Arg_8_1(a float64, fieldWidth int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_8_2

func (this *QString) Arg_8_2(a float64, fieldWidth int, fmt_ byte) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_8_3

func (this *QString) Arg_8_3(a float64, fieldWidth int, fmt_ byte, prec int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_9

func (this *QString) Arg_9(a byte, fieldWidth int, fillChar QChar_ITF) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_9_

func (this *QString) Arg_9_(a byte) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg_9_1

func (this *QString) Arg_9_1(a byte, fieldWidth int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg__

func (this *QString) Arg__(a int64) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg__1

func (this *QString) Arg__1(a int64, fieldwidth int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) Arg__2

func (this *QString) Arg__2(a int64, fieldwidth int, base int) string

Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, ..., %99.

fieldWidth specifies the minimum amount of space that argument a shall occupy. If a requires less space than fieldWidth, it is padded to fieldWidth with character fillChar. A positive fieldWidth produces right-aligned text. A negative fieldWidth produces left-aligned text.

This example shows how we might create a status string for reporting progress while processing a list of files:

QString i;           // current file's number
QString total;       // number of files to process
QString fileName;    // current file's name

QString status = QString("Processing file %1 of %2: %3")
                .arg(i).arg(total).arg(fileName);

First, arg(i) replaces %1. Then arg(total) replaces %2. Finally, arg(fileName) replaces %3.

One advantage of using arg() over asprintf() is that the order of the numbered place markers can change, if the application's strings are translated into other languages, but each arg() will still replace the lowest numbered unreplaced place marker, no matter where it appears. Also, if place marker %i appears more than once in the string, the arg() replaces all of them.

If there is no unreplaced place marker remaining, a warning message is output and the result is undefined. Place marker numbers must be in the range 1 to 99.

func (*QString) At

func (this *QString) At(i int) *QChar

Returns the character at the given index position in the string.

The position must be a valid index position in the string (i.e., 0 <= position < size()).

See also operator[]().

func (*QString) Back

func (this *QString) Back() *QChar

Returns the last character in the string. Same as at(size() - 1).

This function is provided for STL compatibility.

Warning: Calling this function on an empty string constitutes undefined behavior.

This function was introduced in Qt 5.10.

See also front(), at(), and operator[]().

func (*QString) Back_1

func (this *QString) Back_1() *QCharRef

Returns the last character in the string. Same as at(size() - 1).

This function is provided for STL compatibility.

Warning: Calling this function on an empty string constitutes undefined behavior.

This function was introduced in Qt 5.10.

See also front(), at(), and operator[]().

func (*QString) Begin

func (this *QString) Begin() *QChar

Returns an STL-style iterator pointing to the first character in the string.

See also constBegin() and end().

func (*QString) Begin_1

func (this *QString) Begin_1() *QChar

Returns an STL-style iterator pointing to the first character in the string.

See also constBegin() and end().

func (*QString) Capacity

func (this *QString) Capacity() int

Returns the maximum number of characters that can be stored in the string without forcing a reallocation.

The sole purpose of this function is to provide a means of fine tuning QString's memory usage. In general, you will rarely ever need to call this function. If you want to know how many characters are in the string, call size().

See also reserve() and squeeze().

func (*QString) Cbegin

func (this *QString) Cbegin() *QChar

Returns a const STL-style iterator pointing to the first character in the string.

This function was introduced in Qt 5.0.

See also begin() and cend().

func (*QString) Cend

func (this *QString) Cend() *QChar

Returns a const STL-style iterator pointing to the imaginary character after the last character in the list.

This function was introduced in Qt 5.0.

See also cbegin() and end().

func (*QString) Chop

func (this *QString) Chop(n int)

Removes n characters from the end of the string.

If n is greater than or equal to size(), the result is an empty string; if n is negative, it is equivalent to passing zero.

Example:

QString str("LOGOUT\r\n");
str.chop(2);
// str == "LOGOUT"

If you want to remove characters from the beginning of the string, use remove() instead.

See also truncate(), resize(), remove(), and QStringRef::chop().

func (*QString) Chopped

func (this *QString) Chopped(n int) string

Returns a substring that contains the size() - len leftmost characters of this string.

Note: The behavior is undefined if len is negative or greater than size().

This function was introduced in Qt 5.10.

See also endsWith(), left(), right(), mid(), chop(), and truncate().

func (*QString) Clear

func (this *QString) Clear()

Clears the contents of the string and makes it null.

See also resize() and isNull().

func (*QString) Compare

func (this *QString) Compare(s string, cs int) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QString) Compare_1

func (this *QString) Compare_1(other QLatin1String_ITF, cs int) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QString) Compare_1_

func (this *QString) Compare_1_(other QLatin1String_ITF) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QString) Compare_2

func (this *QString) Compare_2(s1 string, s2 string, cs int) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QString) Compare_2_

func (this *QString) Compare_2_(s1 string, s2 string) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QString) Compare_3

func (this *QString) Compare_3(s1 string, s2 QLatin1String_ITF, cs int) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QString) Compare_3_

func (this *QString) Compare_3_(s1 string, s2 QLatin1String_ITF) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QString) Compare_4

func (this *QString) Compare_4(s1 QLatin1String_ITF, s2 string, cs int) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QString) Compare_4_

func (this *QString) Compare_4_(s1 QLatin1String_ITF, s2 string) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QString) Compare_5

func (this *QString) Compare_5(s QStringRef_ITF, cs int) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QString) Compare_5_

func (this *QString) Compare_5_(s QStringRef_ITF) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QString) Compare_6

func (this *QString) Compare_6(s1 string, s2 QStringRef_ITF, arg2 int) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QString) Compare_6_

func (this *QString) Compare_6_(s1 string, s2 QStringRef_ITF) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QString) Compare__

func (this *QString) Compare__(s string) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QString) ConstBegin

func (this *QString) ConstBegin() *QChar

Returns a const STL-style iterator pointing to the first character in the string.

See also begin() and constEnd().

func (*QString) ConstData

func (this *QString) ConstData() *QChar

Returns a pointer to the data stored in the QString. The pointer can be used to access the characters that compose the string.

Note that the pointer remains valid only as long as the string is not modified.

Note: The returned string may not be '\0'-terminated. Use size() to determine the length of the array.

See also data(), operator[](), and fromRawData().

func (*QString) ConstEnd

func (this *QString) ConstEnd() *QChar

Returns a const STL-style iterator pointing to the imaginary character after the last character in the list.

See also constBegin() and end().

func (*QString) Contains

func (this *QString) Contains(c QChar_ITF, cs int) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QString) Contains_1

func (this *QString) Contains_1(s string, cs int) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QString) Contains_1_

func (this *QString) Contains_1_(s string) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QString) Contains_2

func (this *QString) Contains_2(s QLatin1String_ITF, cs int) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QString) Contains_2_

func (this *QString) Contains_2_(s QLatin1String_ITF) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QString) Contains_3

func (this *QString) Contains_3(s QStringRef_ITF, cs int) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QString) Contains_3_

func (this *QString) Contains_3_(s QStringRef_ITF) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QString) Contains_4

func (this *QString) Contains_4(rx QRegExp_ITF) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QString) Contains_5

func (this *QString) Contains_5(rx QRegExp_ITF) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QString) Contains_6

func (this *QString) Contains_6(re QRegularExpression_ITF) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QString) Contains_7

func (this *QString) Contains_7(re QRegularExpression_ITF, match_ QRegularExpressionMatch_ITF) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QString) Contains__

func (this *QString) Contains__(c QChar_ITF) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QString) Count

func (this *QString) Count() int

Returns the number of (potentially overlapping) occurrences of the string str in this string.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

See also contains() and indexOf().

func (*QString) Count_1

func (this *QString) Count_1(c QChar_ITF, cs int) int

Returns the number of (potentially overlapping) occurrences of the string str in this string.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

See also contains() and indexOf().

func (*QString) Count_1_

func (this *QString) Count_1_(c QChar_ITF) int

Returns the number of (potentially overlapping) occurrences of the string str in this string.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

See also contains() and indexOf().

func (*QString) Count_2

func (this *QString) Count_2(s string, cs int) int

Returns the number of (potentially overlapping) occurrences of the string str in this string.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

See also contains() and indexOf().

func (*QString) Count_2_

func (this *QString) Count_2_(s string) int

Returns the number of (potentially overlapping) occurrences of the string str in this string.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

See also contains() and indexOf().

func (*QString) Count_3

func (this *QString) Count_3(s QStringRef_ITF, cs int) int

Returns the number of (potentially overlapping) occurrences of the string str in this string.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

See also contains() and indexOf().

func (*QString) Count_3_

func (this *QString) Count_3_(s QStringRef_ITF) int

Returns the number of (potentially overlapping) occurrences of the string str in this string.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

See also contains() and indexOf().

func (*QString) Count_4

func (this *QString) Count_4(arg0 QRegExp_ITF) int

Returns the number of (potentially overlapping) occurrences of the string str in this string.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

See also contains() and indexOf().

func (*QString) Count_5

func (this *QString) Count_5(re QRegularExpression_ITF) int

Returns the number of (potentially overlapping) occurrences of the string str in this string.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

See also contains() and indexOf().

func (*QString) Data

func (this *QString) Data() *QChar

Returns a pointer to the data stored in the QString. The pointer can be used to access and modify the characters that compose the string.

Unlike constData() and unicode(), the returned data is always '\0'-terminated.

Example:

QString str = "Hello world";
QChar *data = str.data();
while (!data->isNull()) {
    qDebug() << data->unicode();
    ++data;
}

Note that the pointer remains valid only as long as the string is not modified by other means. For read-only access, constData() is faster because it never causes a deep copy to occur.

See also constData() and operator[]().

func (*QString) Data_1

func (this *QString) Data_1() *QChar

Returns a pointer to the data stored in the QString. The pointer can be used to access and modify the characters that compose the string.

Unlike constData() and unicode(), the returned data is always '\0'-terminated.

Example:

QString str = "Hello world";
QChar *data = str.data();
while (!data->isNull()) {
    qDebug() << data->unicode();
    ++data;
}

Note that the pointer remains valid only as long as the string is not modified by other means. For read-only access, constData() is faster because it never causes a deep copy to occur.

See also constData() and operator[]().

func (*QString) Detach

func (this *QString) Detach()

func (*QString) End

func (this *QString) End() *QChar

Returns an STL-style iterator pointing to the imaginary character after the last character in the string.

See also begin() and constEnd().

func (*QString) End_1

func (this *QString) End_1() *QChar

Returns an STL-style iterator pointing to the imaginary character after the last character in the string.

See also begin() and constEnd().

func (*QString) EndsWith

func (this *QString) EndsWith(s string, cs int) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QString) EndsWith_1

func (this *QString) EndsWith_1(s QStringRef_ITF, cs int) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QString) EndsWith_1_

func (this *QString) EndsWith_1_(s QStringRef_ITF) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QString) EndsWith_2

func (this *QString) EndsWith_2(s QStringView_ITF, cs int) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QString) EndsWith_2_

func (this *QString) EndsWith_2_(s QStringView_ITF) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QString) EndsWith_3

func (this *QString) EndsWith_3(s QLatin1String_ITF, cs int) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QString) EndsWith_3_

func (this *QString) EndsWith_3_(s QLatin1String_ITF) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QString) EndsWith_4

func (this *QString) EndsWith_4(c QChar_ITF, cs int) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QString) EndsWith_4_

func (this *QString) EndsWith_4_(c QChar_ITF) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QString) EndsWith__

func (this *QString) EndsWith__(s string) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QString) Fill

func (this *QString) Fill(c QChar_ITF, size int) string

Sets every character in the string to character ch. If size is different from -1 (default), the string is resized to size beforehand.

Example:

QString str = "Berlin";
str.fill('z');
// str == "zzzzzz"

str.fill('A', 2);
// str == "AA"

See also resize().

func (*QString) Fill__

func (this *QString) Fill__(c QChar_ITF) string

Sets every character in the string to character ch. If size is different from -1 (default), the string is resized to size beforehand.

Example:

QString str = "Berlin";
str.fill('z');
// str == "zzzzzz"

str.fill('A', 2);
// str == "AA"

See also resize().

func (*QString) FromLatin1

func (this *QString) FromLatin1(str string, size int) string

Returns a QString initialized with the first size characters of the Latin-1 string str.

If size is -1 (default), it is taken to be strlen(str).

See also toLatin1(), fromUtf8(), and fromLocal8Bit().

func (*QString) FromLatin1_1

func (this *QString) FromLatin1_1(str QByteArray_ITF) string

Returns a QString initialized with the first size characters of the Latin-1 string str.

If size is -1 (default), it is taken to be strlen(str).

See also toLatin1(), fromUtf8(), and fromLocal8Bit().

func (*QString) FromLatin1__

func (this *QString) FromLatin1__(str string) string

Returns a QString initialized with the first size characters of the Latin-1 string str.

If size is -1 (default), it is taken to be strlen(str).

See also toLatin1(), fromUtf8(), and fromLocal8Bit().

func (*QString) FromLocal8Bit

func (this *QString) FromLocal8Bit(str string, size int) string

Returns a QString initialized with the first size characters of the 8-bit string str.

If size is -1 (default), it is taken to be strlen(str).

QTextCodec::codecForLocale() is used to perform the conversion.

See also toLocal8Bit(), fromLatin1(), and fromUtf8().

func (*QString) FromLocal8Bit_1

func (this *QString) FromLocal8Bit_1(str QByteArray_ITF) string

Returns a QString initialized with the first size characters of the 8-bit string str.

If size is -1 (default), it is taken to be strlen(str).

QTextCodec::codecForLocale() is used to perform the conversion.

See also toLocal8Bit(), fromLatin1(), and fromUtf8().

func (*QString) FromLocal8Bit__

func (this *QString) FromLocal8Bit__(str string) string

Returns a QString initialized with the first size characters of the 8-bit string str.

If size is -1 (default), it is taken to be strlen(str).

QTextCodec::codecForLocale() is used to perform the conversion.

See also toLocal8Bit(), fromLatin1(), and fromUtf8().

func (*QString) FromRawData

func (this *QString) FromRawData(arg0 QChar_ITF, size int) string

Constructs a QString that uses the first size Unicode characters in the array unicode. The data in unicode is not copied. The caller must be able to guarantee that unicode will not be deleted or modified as long as the QString (or an unmodified copy of it) exists.

Any attempts to modify the QString or copies of it will cause it to create a deep copy of the data, ensuring that the raw data isn't modified.

Here's an example of how we can use a QRegularExpression on raw data in memory without requiring to copy the data into a QString:

QRegularExpression pattern("\u00A4");
static const QChar unicode[] = {
        0x005A, 0x007F, 0x00A4, 0x0060,
        0x1009, 0x0020, 0x0020};
int size = sizeof(unicode) / sizeof(QChar);

QString str = QString::fromRawData(unicode, size);
if (str.contains(pattern) {
    // ...
}

Warning: A string created with fromRawData() is not '\0'-terminated, unless the raw data contains a '\0' character at position size. This means unicode() will not return a '\0'-terminated string (although utf16() does, at the cost of copying the raw data).

See also fromUtf16() and setRawData().

func (*QString) FromUcs4

func (this *QString) FromUcs4(arg0 unsafe.Pointer, size int) string

Returns a QString initialized with the first size characters of the Unicode string unicode (ISO-10646-UCS-4 encoded).

If size is -1 (default), unicode must be terminated with a 0.

This function was introduced in Qt 4.2.

See also toUcs4(), fromUtf16(), utf16(), setUtf16(), fromWCharArray(), and fromStdU32String().

func (*QString) FromUcs4_1

func (this *QString) FromUcs4_1(str unsafe.Pointer, size int) string

Returns a QString initialized with the first size characters of the Unicode string unicode (ISO-10646-UCS-4 encoded).

If size is -1 (default), unicode must be terminated with a 0.

This function was introduced in Qt 4.2.

See also toUcs4(), fromUtf16(), utf16(), setUtf16(), fromWCharArray(), and fromStdU32String().

func (*QString) FromUcs4_1_

func (this *QString) FromUcs4_1_(str unsafe.Pointer) string

Returns a QString initialized with the first size characters of the Unicode string unicode (ISO-10646-UCS-4 encoded).

If size is -1 (default), unicode must be terminated with a 0.

This function was introduced in Qt 4.2.

See also toUcs4(), fromUtf16(), utf16(), setUtf16(), fromWCharArray(), and fromStdU32String().

func (*QString) FromUcs4__

func (this *QString) FromUcs4__(arg0 unsafe.Pointer) string

Returns a QString initialized with the first size characters of the Unicode string unicode (ISO-10646-UCS-4 encoded).

If size is -1 (default), unicode must be terminated with a 0.

This function was introduced in Qt 4.2.

See also toUcs4(), fromUtf16(), utf16(), setUtf16(), fromWCharArray(), and fromStdU32String().

func (*QString) FromUtf16

func (this *QString) FromUtf16(arg0 unsafe.Pointer, size int) string

Returns a QString initialized with the first size characters of the Unicode string unicode (ISO-10646-UTF-16 encoded).

If size is -1 (default), unicode must be terminated with a 0.

This function checks for a Byte Order Mark (BOM). If it is missing, host byte order is assumed.

This function is slow compared to the other Unicode conversions. Use QString(const QChar *, int) or QString(const QChar *) if possible.

QString makes a deep copy of the Unicode data.

See also utf16(), setUtf16(), and fromStdU16String().

func (*QString) FromUtf16_1

func (this *QString) FromUtf16_1(str unsafe.Pointer, size int) string

Returns a QString initialized with the first size characters of the Unicode string unicode (ISO-10646-UTF-16 encoded).

If size is -1 (default), unicode must be terminated with a 0.

This function checks for a Byte Order Mark (BOM). If it is missing, host byte order is assumed.

This function is slow compared to the other Unicode conversions. Use QString(const QChar *, int) or QString(const QChar *) if possible.

QString makes a deep copy of the Unicode data.

See also utf16(), setUtf16(), and fromStdU16String().

func (*QString) FromUtf16_1_

func (this *QString) FromUtf16_1_(str unsafe.Pointer) string

Returns a QString initialized with the first size characters of the Unicode string unicode (ISO-10646-UTF-16 encoded).

If size is -1 (default), unicode must be terminated with a 0.

This function checks for a Byte Order Mark (BOM). If it is missing, host byte order is assumed.

This function is slow compared to the other Unicode conversions. Use QString(const QChar *, int) or QString(const QChar *) if possible.

QString makes a deep copy of the Unicode data.

See also utf16(), setUtf16(), and fromStdU16String().

func (*QString) FromUtf16__

func (this *QString) FromUtf16__(arg0 unsafe.Pointer) string

Returns a QString initialized with the first size characters of the Unicode string unicode (ISO-10646-UTF-16 encoded).

If size is -1 (default), unicode must be terminated with a 0.

This function checks for a Byte Order Mark (BOM). If it is missing, host byte order is assumed.

This function is slow compared to the other Unicode conversions. Use QString(const QChar *, int) or QString(const QChar *) if possible.

QString makes a deep copy of the Unicode data.

See also utf16(), setUtf16(), and fromStdU16String().

func (*QString) FromUtf8

func (this *QString) FromUtf8(str string, size int) string

Returns a QString initialized with the first size bytes of the UTF-8 string str.

If size is -1 (default), it is taken to be strlen(str).

UTF-8 is a Unicode codec and can represent all characters in a Unicode string like QString. However, invalid sequences are possible with UTF-8 and, if any such are found, they will be replaced with one or more "replacement characters", or suppressed. These include non-Unicode sequences, non-characters, overlong sequences or surrogate codepoints encoded into UTF-8.

This function can be used to process incoming data incrementally as long as all UTF-8 characters are terminated within the incoming data. Any unterminated characters at the end of the string will be replaced or suppressed. In order to do stateful decoding, please use QTextDecoder.

See also toUtf8(), fromLatin1(), and fromLocal8Bit().

func (*QString) FromUtf8_1

func (this *QString) FromUtf8_1(str QByteArray_ITF) string

Returns a QString initialized with the first size bytes of the UTF-8 string str.

If size is -1 (default), it is taken to be strlen(str).

UTF-8 is a Unicode codec and can represent all characters in a Unicode string like QString. However, invalid sequences are possible with UTF-8 and, if any such are found, they will be replaced with one or more "replacement characters", or suppressed. These include non-Unicode sequences, non-characters, overlong sequences or surrogate codepoints encoded into UTF-8.

This function can be used to process incoming data incrementally as long as all UTF-8 characters are terminated within the incoming data. Any unterminated characters at the end of the string will be replaced or suppressed. In order to do stateful decoding, please use QTextDecoder.

See also toUtf8(), fromLatin1(), and fromLocal8Bit().

func (*QString) FromUtf8__

func (this *QString) FromUtf8__(str string) string

Returns a QString initialized with the first size bytes of the UTF-8 string str.

If size is -1 (default), it is taken to be strlen(str).

UTF-8 is a Unicode codec and can represent all characters in a Unicode string like QString. However, invalid sequences are possible with UTF-8 and, if any such are found, they will be replaced with one or more "replacement characters", or suppressed. These include non-Unicode sequences, non-characters, overlong sequences or surrogate codepoints encoded into UTF-8.

This function can be used to process incoming data incrementally as long as all UTF-8 characters are terminated within the incoming data. Any unterminated characters at the end of the string will be replaced or suppressed. In order to do stateful decoding, please use QTextDecoder.

See also toUtf8(), fromLatin1(), and fromLocal8Bit().

func (*QString) FromWCharArray

func (this *QString) FromWCharArray(string unsafe.Pointer, size int) string

Returns a copy of the string, where the encoding of string depends on the size of wchar. If wchar is 4 bytes, the string is interpreted as UCS-4, if wchar is 2 bytes it is interpreted as UTF-16.

If size is -1 (default), the string has to be 0 terminated.

This function was introduced in Qt 4.2.

See also fromUtf16(), fromLatin1(), fromLocal8Bit(), fromUtf8(), fromUcs4(), and fromStdWString().

func (*QString) FromWCharArray__

func (this *QString) FromWCharArray__(string unsafe.Pointer) string

Returns a copy of the string, where the encoding of string depends on the size of wchar. If wchar is 4 bytes, the string is interpreted as UCS-4, if wchar is 2 bytes it is interpreted as UTF-16.

If size is -1 (default), the string has to be 0 terminated.

This function was introduced in Qt 4.2.

See also fromUtf16(), fromLatin1(), fromLocal8Bit(), fromUtf8(), fromUcs4(), and fromStdWString().

func (*QString) Front

func (this *QString) Front() *QChar

Returns the first character in the string. Same as at(0).

This function is provided for STL compatibility.

Warning: Calling this function on an empty string constitutes undefined behavior.

This function was introduced in Qt 5.10.

See also back(), at(), and operator[]().

func (*QString) Front_1

func (this *QString) Front_1() *QCharRef

Returns the first character in the string. Same as at(0).

This function is provided for STL compatibility.

Warning: Calling this function on an empty string constitutes undefined behavior.

This function was introduced in Qt 5.10.

See also back(), at(), and operator[]().

func (*QString) GetCthis

func (this *QString) GetCthis() unsafe.Pointer

func (*QString) IndexOf

func (this *QString) IndexOf(c QChar_ITF, from int, cs int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IndexOf_1

func (this *QString) IndexOf_1(s string, from int, cs int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IndexOf_1_

func (this *QString) IndexOf_1_(s string) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IndexOf_1_1

func (this *QString) IndexOf_1_1(s string, from int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IndexOf_2

func (this *QString) IndexOf_2(s QLatin1String_ITF, from int, cs int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IndexOf_2_

func (this *QString) IndexOf_2_(s QLatin1String_ITF) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IndexOf_2_1

func (this *QString) IndexOf_2_1(s QLatin1String_ITF, from int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IndexOf_3

func (this *QString) IndexOf_3(s QStringRef_ITF, from int, cs int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IndexOf_3_

func (this *QString) IndexOf_3_(s QStringRef_ITF) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IndexOf_3_1

func (this *QString) IndexOf_3_1(s QStringRef_ITF, from int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IndexOf_4

func (this *QString) IndexOf_4(arg0 QRegExp_ITF, from int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IndexOf_4_

func (this *QString) IndexOf_4_(arg0 QRegExp_ITF) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IndexOf_5

func (this *QString) IndexOf_5(arg0 QRegExp_ITF, from int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IndexOf_5_

func (this *QString) IndexOf_5_(arg0 QRegExp_ITF) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IndexOf_6

func (this *QString) IndexOf_6(re QRegularExpression_ITF, from int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IndexOf_6_

func (this *QString) IndexOf_6_(re QRegularExpression_ITF) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IndexOf_7

func (this *QString) IndexOf_7(re QRegularExpression_ITF, from int, rmatch QRegularExpressionMatch_ITF) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IndexOf__

func (this *QString) IndexOf__(c QChar_ITF) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IndexOf__1

func (this *QString) IndexOf__1(c QChar_ITF, from int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QString) IsDetached

func (this *QString) IsDetached() bool

func (*QString) IsEmpty

func (this *QString) IsEmpty() bool

Returns true if the string has no characters; otherwise returns false.

Example:

QString().isEmpty();            // returns true
QString("").isEmpty();          // returns true
QString("x").isEmpty();         // returns false
QString("abc").isEmpty();       // returns false

See also size().

func (*QString) IsNull

func (this *QString) IsNull() bool

Returns true if this string is null; otherwise returns false.

Example:

QString().isNull();             // returns true
QString("").isNull();           // returns false
QString("abc").isNull();        // returns false

Qt makes a distinction between null strings and empty strings for historical reasons. For most applications, what matters is whether or not a string contains any data, and this can be determined using the isEmpty() function.

See also isEmpty().

func (*QString) IsRightToLeft

func (this *QString) IsRightToLeft() bool

Returns true if the string is read right to left.

See also QStringRef::isRightToLeft().

func (*QString) IsSharedWith

func (this *QString) IsSharedWith(other string) bool

func (*QString) IsSimpleText

func (this *QString) IsSimpleText() bool

func (*QString) LastIndexOf

func (this *QString) LastIndexOf(c QChar_ITF, from int, cs int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) LastIndexOf_1

func (this *QString) LastIndexOf_1(s string, from int, cs int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) LastIndexOf_1_

func (this *QString) LastIndexOf_1_(s string) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) LastIndexOf_1_1

func (this *QString) LastIndexOf_1_1(s string, from int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) LastIndexOf_2

func (this *QString) LastIndexOf_2(s QLatin1String_ITF, from int, cs int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) LastIndexOf_2_

func (this *QString) LastIndexOf_2_(s QLatin1String_ITF) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) LastIndexOf_2_1

func (this *QString) LastIndexOf_2_1(s QLatin1String_ITF, from int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) LastIndexOf_3

func (this *QString) LastIndexOf_3(s QStringRef_ITF, from int, cs int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) LastIndexOf_3_

func (this *QString) LastIndexOf_3_(s QStringRef_ITF) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) LastIndexOf_3_1

func (this *QString) LastIndexOf_3_1(s QStringRef_ITF, from int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) LastIndexOf_4

func (this *QString) LastIndexOf_4(arg0 QRegExp_ITF, from int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) LastIndexOf_4_

func (this *QString) LastIndexOf_4_(arg0 QRegExp_ITF) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) LastIndexOf_5

func (this *QString) LastIndexOf_5(arg0 QRegExp_ITF, from int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) LastIndexOf_5_

func (this *QString) LastIndexOf_5_(arg0 QRegExp_ITF) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) LastIndexOf_6

func (this *QString) LastIndexOf_6(re QRegularExpression_ITF, from int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) LastIndexOf_6_

func (this *QString) LastIndexOf_6_(re QRegularExpression_ITF) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) LastIndexOf_7

func (this *QString) LastIndexOf_7(re QRegularExpression_ITF, from int, rmatch QRegularExpressionMatch_ITF) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) LastIndexOf__

func (this *QString) LastIndexOf__(c QChar_ITF) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) LastIndexOf__1

func (this *QString) LastIndexOf__1(c QChar_ITF, from int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QString) Left

func (this *QString) Left(n int) string

Returns a substring that contains the n leftmost characters of the string.

The entire string is returned if n is greater than or equal to size(), or less than zero.

QString x = "Pineapple";
QString y = x.left(4);      // y == "Pine"

See also right(), mid(), startsWith(), chopped(), chop(), and truncate().

func (*QString) LeftJustified

func (this *QString) LeftJustified(width int, fill QChar_ITF, trunc bool) string

Returns a string of size width that contains this string padded by the fill character.

If truncate is false and the size() of the string is more than width, then the returned string is a copy of the string.

QString s = "apple";
QString t = s.leftJustified(8, '.');    // t == "apple..."

If truncate is true and the size() of the string is more than width, then any characters in a copy of the string after position width are removed, and the copy is returned.

QString str = "Pineapple";
str = str.leftJustified(5, '.', true);    // str == "Pinea"

See also rightJustified().

func (*QString) LeftJustified__

func (this *QString) LeftJustified__(width int) string

Returns a string of size width that contains this string padded by the fill character.

If truncate is false and the size() of the string is more than width, then the returned string is a copy of the string.

QString s = "apple";
QString t = s.leftJustified(8, '.');    // t == "apple..."

If truncate is true and the size() of the string is more than width, then any characters in a copy of the string after position width are removed, and the copy is returned.

QString str = "Pineapple";
str = str.leftJustified(5, '.', true);    // str == "Pinea"

See also rightJustified().

func (*QString) LeftJustified__1

func (this *QString) LeftJustified__1(width int, fill QChar_ITF) string

Returns a string of size width that contains this string padded by the fill character.

If truncate is false and the size() of the string is more than width, then the returned string is a copy of the string.

QString s = "apple";
QString t = s.leftJustified(8, '.');    // t == "apple..."

If truncate is true and the size() of the string is more than width, then any characters in a copy of the string after position width are removed, and the copy is returned.

QString str = "Pineapple";
str = str.leftJustified(5, '.', true);    // str == "Pinea"

See also rightJustified().

func (*QString) LeftRef

func (this *QString) LeftRef(n int) *QStringRef

Returns a substring reference to the n leftmost characters of the string.

If n is greater than or equal to size(), or less than zero, a reference to the entire string is returned.

QString x = "Pineapple";
QStringRef y = x.leftRef(4);        // y == "Pine"

This function was introduced in Qt 4.4.

See also left(), rightRef(), midRef(), and startsWith().

func (*QString) Length

func (this *QString) Length() int

Returns the number of characters in this string. Equivalent to size().

See also resize().

func (*QString) LocaleAwareCompare

func (this *QString) LocaleAwareCompare(s string) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

The comparison is performed in a locale- and also platform-dependent manner. Use this function to present sorted lists of strings to the user.

On macOS and iOS this function compares according the "Order for sorted lists" setting in the International preferences panel.

See also compare() and QLocale.

func (*QString) LocaleAwareCompare_1

func (this *QString) LocaleAwareCompare_1(s1 string, s2 string) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

The comparison is performed in a locale- and also platform-dependent manner. Use this function to present sorted lists of strings to the user.

On macOS and iOS this function compares according the "Order for sorted lists" setting in the International preferences panel.

See also compare() and QLocale.

func (*QString) LocaleAwareCompare_2

func (this *QString) LocaleAwareCompare_2(s QStringRef_ITF) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

The comparison is performed in a locale- and also platform-dependent manner. Use this function to present sorted lists of strings to the user.

On macOS and iOS this function compares according the "Order for sorted lists" setting in the International preferences panel.

See also compare() and QLocale.

func (*QString) LocaleAwareCompare_3

func (this *QString) LocaleAwareCompare_3(s1 string, s2 QStringRef_ITF) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

The comparison is performed in a locale- and also platform-dependent manner. Use this function to present sorted lists of strings to the user.

On macOS and iOS this function compares according the "Order for sorted lists" setting in the International preferences panel.

See also compare() and QLocale.

func (*QString) Mid

func (this *QString) Mid(position int, n int) string

Returns a string that contains n characters of this string, starting at the specified position index.

Returns a null string if the position index exceeds the length of the string. If there are less than n characters available in the string starting at the given position, or if n is -1 (default), the function returns all characters that are available from the specified position.

Example:

QString x = "Nine pineapples";
QString y = x.mid(5, 4);            // y == "pine"
QString z = x.mid(5);               // z == "pineapples"

See also left(), right(), chopped(), chop(), and truncate().

func (*QString) MidRef

func (this *QString) MidRef(position int, n int) *QStringRef

Returns a substring reference to n characters of this string, starting at the specified position.

If the position exceeds the length of the string, a null reference is returned.

If there are less than n characters available in the string, starting at the given position, or if n is -1 (default), the function returns all characters from the specified position onwards.

Example:

QString x = "Nine pineapples";
QStringRef y = x.midRef(5, 4);      // y == "pine"
QStringRef z = x.midRef(5);         // z == "pineapples"

This function was introduced in Qt 4.4.

See also mid(), leftRef(), and rightRef().

func (*QString) MidRef__

func (this *QString) MidRef__(position int) *QStringRef

Returns a substring reference to n characters of this string, starting at the specified position.

If the position exceeds the length of the string, a null reference is returned.

If there are less than n characters available in the string, starting at the given position, or if n is -1 (default), the function returns all characters from the specified position onwards.

Example:

QString x = "Nine pineapples";
QStringRef y = x.midRef(5, 4);      // y == "pine"
QStringRef z = x.midRef(5);         // z == "pineapples"

This function was introduced in Qt 4.4.

See also mid(), leftRef(), and rightRef().

func (*QString) Mid__

func (this *QString) Mid__(position int) string

Returns a string that contains n characters of this string, starting at the specified position index.

Returns a null string if the position index exceeds the length of the string. If there are less than n characters available in the string starting at the given position, or if n is -1 (default), the function returns all characters that are available from the specified position.

Example:

QString x = "Nine pineapples";
QString y = x.mid(5, 4);            // y == "pine"
QString z = x.mid(5);               // z == "pineapples"

See also left(), right(), chopped(), chop(), and truncate().

func (*QString) NewFromPointer

func (*QString) NewFromPointer(cthis unsafe.Pointer) *QString

func (*QString) Normalized

func (this *QString) Normalized(mode int, version int) string

Returns the string in the given Unicode normalization mode, according to the given version of the Unicode standard.

func (*QString) Normalized__

func (this *QString) Normalized__(mode int) string

Returns the string in the given Unicode normalization mode, according to the given version of the Unicode standard.

func (*QString) Number

func (this *QString) Number(arg0 int, base int) string

Returns a string equivalent of the number n according to the specified base.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

long a = 63;
QString s = QString::number(a, 16);             // s == "3f"
QString t = QString::number(a, 16).toUpper();     // t == "3F"

See also setNum().

func (*QString) Number_1

func (this *QString) Number_1(arg0 uint, base int) string

Returns a string equivalent of the number n according to the specified base.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

long a = 63;
QString s = QString::number(a, 16);             // s == "3f"
QString t = QString::number(a, 16).toUpper();     // t == "3F"

See also setNum().

func (*QString) Number_1_

func (this *QString) Number_1_(arg0 uint) string

Returns a string equivalent of the number n according to the specified base.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

long a = 63;
QString s = QString::number(a, 16);             // s == "3f"
QString t = QString::number(a, 16).toUpper();     // t == "3F"

See also setNum().

func (*QString) Number_2

func (this *QString) Number_2(arg0 int, base int) string

Returns a string equivalent of the number n according to the specified base.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

long a = 63;
QString s = QString::number(a, 16);             // s == "3f"
QString t = QString::number(a, 16).toUpper();     // t == "3F"

See also setNum().

func (*QString) Number_2_

func (this *QString) Number_2_(arg0 int) string

Returns a string equivalent of the number n according to the specified base.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

long a = 63;
QString s = QString::number(a, 16);             // s == "3f"
QString t = QString::number(a, 16).toUpper();     // t == "3F"

See also setNum().

func (*QString) Number_3

func (this *QString) Number_3(arg0 uint, base int) string

Returns a string equivalent of the number n according to the specified base.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

long a = 63;
QString s = QString::number(a, 16);             // s == "3f"
QString t = QString::number(a, 16).toUpper();     // t == "3F"

See also setNum().

func (*QString) Number_3_

func (this *QString) Number_3_(arg0 uint) string

Returns a string equivalent of the number n according to the specified base.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

long a = 63;
QString s = QString::number(a, 16);             // s == "3f"
QString t = QString::number(a, 16).toUpper();     // t == "3F"

See also setNum().

func (*QString) Number_4

func (this *QString) Number_4(arg0 int64, base int) string

Returns a string equivalent of the number n according to the specified base.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

long a = 63;
QString s = QString::number(a, 16);             // s == "3f"
QString t = QString::number(a, 16).toUpper();     // t == "3F"

See also setNum().

func (*QString) Number_4_

func (this *QString) Number_4_(arg0 int64) string

Returns a string equivalent of the number n according to the specified base.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

long a = 63;
QString s = QString::number(a, 16);             // s == "3f"
QString t = QString::number(a, 16).toUpper();     // t == "3F"

See also setNum().

func (*QString) Number_5

func (this *QString) Number_5(arg0 uint64, base int) string

Returns a string equivalent of the number n according to the specified base.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

long a = 63;
QString s = QString::number(a, 16);             // s == "3f"
QString t = QString::number(a, 16).toUpper();     // t == "3F"

See also setNum().

func (*QString) Number_5_

func (this *QString) Number_5_(arg0 uint64) string

Returns a string equivalent of the number n according to the specified base.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

long a = 63;
QString s = QString::number(a, 16);             // s == "3f"
QString t = QString::number(a, 16).toUpper();     // t == "3F"

See also setNum().

func (*QString) Number_6

func (this *QString) Number_6(arg0 float64, f byte, prec int) string

Returns a string equivalent of the number n according to the specified base.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

long a = 63;
QString s = QString::number(a, 16);             // s == "3f"
QString t = QString::number(a, 16).toUpper();     // t == "3F"

See also setNum().

func (*QString) Number_6_

func (this *QString) Number_6_(arg0 float64) string

Returns a string equivalent of the number n according to the specified base.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

long a = 63;
QString s = QString::number(a, 16);             // s == "3f"
QString t = QString::number(a, 16).toUpper();     // t == "3F"

See also setNum().

func (*QString) Number_6_1

func (this *QString) Number_6_1(arg0 float64, f byte) string

Returns a string equivalent of the number n according to the specified base.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

long a = 63;
QString s = QString::number(a, 16);             // s == "3f"
QString t = QString::number(a, 16).toUpper();     // t == "3F"

See also setNum().

func (*QString) Number__

func (this *QString) Number__(arg0 int) string

Returns a string equivalent of the number n according to the specified base.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

long a = 63;
QString s = QString::number(a, 16);             // s == "3f"
QString t = QString::number(a, 16).toUpper();     // t == "3F"

See also setNum().

func (*QString) Operator_add_equal

func (this *QString) Operator_add_equal(c QChar_ITF) string

func (*QString) Operator_add_equal_1

func (this *QString) Operator_add_equal_1(c int) string

func (*QString) Operator_add_equal_2

func (this *QString) Operator_add_equal_2(s string) string

func (*QString) Operator_add_equal_3

func (this *QString) Operator_add_equal_3(s QStringRef_ITF) string

func (*QString) Operator_add_equal_4

func (this *QString) Operator_add_equal_4(s QLatin1String_ITF) string

func (*QString) Operator_add_equal_5

func (this *QString) Operator_add_equal_5(s string) string

func (*QString) Operator_add_equal_6

func (this *QString) Operator_add_equal_6(s QByteArray_ITF) string

func (*QString) Operator_add_equal_7

func (this *QString) Operator_add_equal_7(c byte) string

func (*QString) Operator_equal

func (this *QString) Operator_equal(c QChar_ITF) string

func (*QString) Operator_equal_1

func (this *QString) Operator_equal_1(arg0 string) string

func (*QString) Operator_equal_2

func (this *QString) Operator_equal_2(latin1 QLatin1String_ITF) string

func (*QString) Operator_equal_3

func (this *QString) Operator_equal_3(other unsafe.Pointer) string

func (*QString) Operator_equal_4

func (this *QString) Operator_equal_4(ch string) string

func (*QString) Operator_equal_5

func (this *QString) Operator_equal_5(a QByteArray_ITF) string

func (*QString) Operator_equal_6

func (this *QString) Operator_equal_6(c byte) string

func (*QString) Operator_equal_equal

func (this *QString) Operator_equal_equal(s QLatin1String_ITF) bool

func (*QString) Operator_equal_equal_1

func (this *QString) Operator_equal_equal_1(s string) bool

func (*QString) Operator_equal_equal_2

func (this *QString) Operator_equal_equal_2(s QByteArray_ITF) bool

func (*QString) Operator_get_index

func (this *QString) Operator_get_index(i int) *QChar

func (*QString) Operator_get_index_1

func (this *QString) Operator_get_index_1(i int) *QCharRef

func (*QString) Operator_get_index_2

func (this *QString) Operator_get_index_2(i uint) *QChar

func (*QString) Operator_get_index_3

func (this *QString) Operator_get_index_3(i uint) *QCharRef

func (*QString) Operator_greater_than

func (this *QString) Operator_greater_than(s QLatin1String_ITF) bool

func (*QString) Operator_greater_than_1

func (this *QString) Operator_greater_than_1(s string) bool

func (*QString) Operator_greater_than_2

func (this *QString) Operator_greater_than_2(s QByteArray_ITF) bool

func (*QString) Operator_greater_than_equal

func (this *QString) Operator_greater_than_equal(s QLatin1String_ITF) bool

func (*QString) Operator_greater_than_equal_1

func (this *QString) Operator_greater_than_equal_1(s string) bool

func (*QString) Operator_greater_than_equal_2

func (this *QString) Operator_greater_than_equal_2(s QByteArray_ITF) bool

func (*QString) Operator_less_than

func (this *QString) Operator_less_than(s QLatin1String_ITF) bool

func (*QString) Operator_less_than_1

func (this *QString) Operator_less_than_1(s string) bool

func (*QString) Operator_less_than_2

func (this *QString) Operator_less_than_2(s QByteArray_ITF) bool

func (*QString) Operator_less_than_equal

func (this *QString) Operator_less_than_equal(s QLatin1String_ITF) bool

func (*QString) Operator_less_than_equal_1

func (this *QString) Operator_less_than_equal_1(s string) bool

func (*QString) Operator_less_than_equal_2

func (this *QString) Operator_less_than_equal_2(s QByteArray_ITF) bool

func (*QString) Operator_not_equal

func (this *QString) Operator_not_equal(s QLatin1String_ITF) bool

func (*QString) Operator_not_equal_1

func (this *QString) Operator_not_equal_1(s string) bool

func (*QString) Operator_not_equal_2

func (this *QString) Operator_not_equal_2(s QByteArray_ITF) bool

func (*QString) Push_back

func (this *QString) Push_back(c QChar_ITF)

This function is provided for STL compatibility, appending the given other string onto the end of this string. It is equivalent to append(other).

See also append().

func (*QString) Push_back_1

func (this *QString) Push_back_1(s string)

This function is provided for STL compatibility, appending the given other string onto the end of this string. It is equivalent to append(other).

See also append().

func (*QString) Push_front

func (this *QString) Push_front(c QChar_ITF)

This function is provided for STL compatibility, prepending the given other string to the beginning of this string. It is equivalent to prepend(other).

See also prepend().

func (*QString) Push_front_1

func (this *QString) Push_front_1(s string)

This function is provided for STL compatibility, prepending the given other string to the beginning of this string. It is equivalent to prepend(other).

See also prepend().

func (*QString) QString_PTR

func (ptr *QString) QString_PTR() *QString

func (*QString) Remove

func (this *QString) Remove(i int, len_ int) string

Removes n characters from the string, starting at the given position index, and returns a reference to the string.

If the specified position index is within the string, but position + n is beyond the end of the string, the string is truncated at the specified position.

QString s = "Montreal";
s.remove(1, 4);
// s == "Meal"

See also insert() and replace().

func (*QString) Remove_1

func (this *QString) Remove_1(c QChar_ITF, cs int) string

Removes n characters from the string, starting at the given position index, and returns a reference to the string.

If the specified position index is within the string, but position + n is beyond the end of the string, the string is truncated at the specified position.

QString s = "Montreal";
s.remove(1, 4);
// s == "Meal"

See also insert() and replace().

func (*QString) Remove_1_

func (this *QString) Remove_1_(c QChar_ITF) string

Removes n characters from the string, starting at the given position index, and returns a reference to the string.

If the specified position index is within the string, but position + n is beyond the end of the string, the string is truncated at the specified position.

QString s = "Montreal";
s.remove(1, 4);
// s == "Meal"

See also insert() and replace().

func (*QString) Remove_2

func (this *QString) Remove_2(s string, cs int) string

Removes n characters from the string, starting at the given position index, and returns a reference to the string.

If the specified position index is within the string, but position + n is beyond the end of the string, the string is truncated at the specified position.

QString s = "Montreal";
s.remove(1, 4);
// s == "Meal"

See also insert() and replace().

func (*QString) Remove_2_

func (this *QString) Remove_2_(s string) string

Removes n characters from the string, starting at the given position index, and returns a reference to the string.

If the specified position index is within the string, but position + n is beyond the end of the string, the string is truncated at the specified position.

QString s = "Montreal";
s.remove(1, 4);
// s == "Meal"

See also insert() and replace().

func (*QString) Remove_3

func (this *QString) Remove_3(rx QRegExp_ITF) string

Removes n characters from the string, starting at the given position index, and returns a reference to the string.

If the specified position index is within the string, but position + n is beyond the end of the string, the string is truncated at the specified position.

QString s = "Montreal";
s.remove(1, 4);
// s == "Meal"

See also insert() and replace().

func (*QString) Remove_4

func (this *QString) Remove_4(re QRegularExpression_ITF) string

Removes n characters from the string, starting at the given position index, and returns a reference to the string.

If the specified position index is within the string, but position + n is beyond the end of the string, the string is truncated at the specified position.

QString s = "Montreal";
s.remove(1, 4);
// s == "Meal"

See also insert() and replace().

func (*QString) Repeated

func (this *QString) Repeated(times int) string

Returns a copy of this string repeated the specified number of times.

If times is less than 1, an empty string is returned.

Example:

QString str("ab");
str.repeated(4);            // returns "abababab"

This function was introduced in Qt 4.5.

func (*QString) Replace

func (this *QString) Replace(i int, len_ int, after QChar_ITF) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_1

func (this *QString) Replace_1(i int, len_ int, s QChar_ITF, slen int) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_10

func (this *QString) Replace_10(c QChar_ITF, after QLatin1String_ITF, cs int) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_10_

func (this *QString) Replace_10_(c QChar_ITF, after QLatin1String_ITF) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_11

func (this *QString) Replace_11(rx QRegExp_ITF, after string) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_12

func (this *QString) Replace_12(re QRegularExpression_ITF, after string) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_2

func (this *QString) Replace_2(i int, len_ int, after string) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_3

func (this *QString) Replace_3(before QChar_ITF, after QChar_ITF, cs int) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_3_

func (this *QString) Replace_3_(before QChar_ITF, after QChar_ITF) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_4

func (this *QString) Replace_4(before QChar_ITF, blen int, after QChar_ITF, alen int, cs int) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_4_

func (this *QString) Replace_4_(before QChar_ITF, blen int, after QChar_ITF, alen int) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_5

func (this *QString) Replace_5(before QLatin1String_ITF, after QLatin1String_ITF, cs int) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_5_

func (this *QString) Replace_5_(before QLatin1String_ITF, after QLatin1String_ITF) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_6

func (this *QString) Replace_6(before QLatin1String_ITF, after string, cs int) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_6_

func (this *QString) Replace_6_(before QLatin1String_ITF, after string) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_7

func (this *QString) Replace_7(before string, after QLatin1String_ITF, cs int) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_7_

func (this *QString) Replace_7_(before string, after QLatin1String_ITF) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_8

func (this *QString) Replace_8(before string, after string, cs int) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_8_

func (this *QString) Replace_8_(before string, after string) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_9

func (this *QString) Replace_9(c QChar_ITF, after string, cs int) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Replace_9_

func (this *QString) Replace_9_(c QChar_ITF, after string) string

Replaces n characters beginning at index position with the string after and returns a reference to this string.

Note: If the specified position index is within the string, but position + n goes outside the strings range, then n will be adjusted to stop at the end of the string.

Example:

QString x = "Say yes!";
QString y = "no";
x.replace(4, 3, y);
// x == "Say no!"

See also insert() and remove().

func (*QString) Reserve

func (this *QString) Reserve(size int)

Attempts to allocate memory for at least size characters. If you know in advance how large the string will be, you can call this function, and if you resize the string often you are likely to get better performance. If size is an underestimate, the worst that will happen is that the QString will be a bit slower.

The sole purpose of this function is to provide a means of fine tuning QString's memory usage. In general, you will rarely ever need to call this function. If you want to change the size of the string, call resize().

This function is useful for code that needs to build up a long string and wants to avoid repeated reallocation. In this example, we want to add to the string until some condition is true, and we're fairly sure that size is large enough to make a call to reserve() worthwhile:

QString result;
int maxSize;
bool condition;
QChar nextChar;

result.reserve(maxSize);

while (condition)
    result.append(nextChar);

result.squeeze();

See also squeeze() and capacity().

func (*QString) Resize

func (this *QString) Resize(size int)

Sets the size of the string to size characters.

If size is greater than the current size, the string is extended to make it size characters long with the extra characters added to the end. The new characters are uninitialized.

If size is less than the current size, characters are removed from the end.

Example:

QString s = "Hello world";
s.resize(5);
// s == "Hello"

s.resize(8);
// s == "Hello???" (where ? stands for any character)

If you want to append a certain number of identical characters to the string, use the resize(int, QChar) overload.

If you want to expand the string so that it reaches a certain width and fill the new positions with a particular character, use the leftJustified() function:

If size is negative, it is equivalent to passing zero.

QString r = "Hello";
r = r.leftJustified(10, ' ');
// r == "Hello     "

See also truncate() and reserve().

func (*QString) Resize_1

func (this *QString) Resize_1(size int, fillChar QChar_ITF)

Sets the size of the string to size characters.

If size is greater than the current size, the string is extended to make it size characters long with the extra characters added to the end. The new characters are uninitialized.

If size is less than the current size, characters are removed from the end.

Example:

QString s = "Hello world";
s.resize(5);
// s == "Hello"

s.resize(8);
// s == "Hello???" (where ? stands for any character)

If you want to append a certain number of identical characters to the string, use the resize(int, QChar) overload.

If you want to expand the string so that it reaches a certain width and fill the new positions with a particular character, use the leftJustified() function:

If size is negative, it is equivalent to passing zero.

QString r = "Hello";
r = r.leftJustified(10, ' ');
// r == "Hello     "

See also truncate() and reserve().

func (*QString) Right

func (this *QString) Right(n int) string

Returns a substring that contains the n rightmost characters of the string.

The entire string is returned if n is greater than or equal to size(), or less than zero.

QString x = "Pineapple";
QString y = x.right(5);      // y == "apple"

See also left(), mid(), endsWith(), chopped(), chop(), and truncate().

func (*QString) RightJustified

func (this *QString) RightJustified(width int, fill QChar_ITF, trunc bool) string

Returns a string of size() width that contains the fill character followed by the string. For example:

QString s = "apple";
QString t = s.rightJustified(8, '.');    // t == "...apple"

If truncate is false and the size() of the string is more than width, then the returned string is a copy of the string.

If truncate is true and the size() of the string is more than width, then the resulting string is truncated at position width.

QString str = "Pineapple";
str = str.rightJustified(5, '.', true);    // str == "Pinea"

See also leftJustified().

func (*QString) RightJustified__

func (this *QString) RightJustified__(width int) string

Returns a string of size() width that contains the fill character followed by the string. For example:

QString s = "apple";
QString t = s.rightJustified(8, '.');    // t == "...apple"

If truncate is false and the size() of the string is more than width, then the returned string is a copy of the string.

If truncate is true and the size() of the string is more than width, then the resulting string is truncated at position width.

QString str = "Pineapple";
str = str.rightJustified(5, '.', true);    // str == "Pinea"

See also leftJustified().

func (*QString) RightJustified__1

func (this *QString) RightJustified__1(width int, fill QChar_ITF) string

Returns a string of size() width that contains the fill character followed by the string. For example:

QString s = "apple";
QString t = s.rightJustified(8, '.');    // t == "...apple"

If truncate is false and the size() of the string is more than width, then the returned string is a copy of the string.

If truncate is true and the size() of the string is more than width, then the resulting string is truncated at position width.

QString str = "Pineapple";
str = str.rightJustified(5, '.', true);    // str == "Pinea"

See also leftJustified().

func (*QString) RightRef

func (this *QString) RightRef(n int) *QStringRef

Returns a substring reference to the n rightmost characters of the string.

If n is greater than or equal to size(), or less than zero, a reference to the entire string is returned.

QString x = "Pineapple";
QStringRef y = x.rightRef(5);       // y == "apple"

This function was introduced in Qt 4.4.

See also right(), leftRef(), midRef(), and endsWith().

func (*QString) Section

func (this *QString) Section(sep QChar_ITF, start int, end int, flags int) string

This function returns a section of the string.

This string is treated as a sequence of fields separated by the character, sep. The returned string consists of the fields from position start to position end inclusive. If end is not specified, all fields from position start to the end of the string are included. Fields are numbered 0, 1, 2, etc., counting from the left, and -1, -2, etc., counting from right to left.

The flags argument can be used to affect some aspects of the function's behavior, e.g. whether to be case sensitive, whether to skip empty fields and how to deal with leading and trailing separators; see SectionFlags.

QString str;
QString csv = "forename,middlename,surname,phone";
QString path = "/usr/local/bin/myapp"; // First field is empty
QString::SectionFlag flag = QString::SectionSkipEmpty;

str = csv.section(',', 2, 2);   // str == "surname"
str = path.section('/', 3, 4);  // str == "bin/myapp"
str = path.section('/', 3, 3, flag); // str == "myapp"

If start or end is negative, we count fields from the right of the string, the right-most field being -1, the one from right-most field being -2, and so on.

str = csv.section(',', -3, -2);  // str == "middlename,surname"
str = path.section('/', -1); // str == "myapp"

See also split().

func (*QString) Section_1

func (this *QString) Section_1(in_sep string, start int, end int, flags int) string

This function returns a section of the string.

This string is treated as a sequence of fields separated by the character, sep. The returned string consists of the fields from position start to position end inclusive. If end is not specified, all fields from position start to the end of the string are included. Fields are numbered 0, 1, 2, etc., counting from the left, and -1, -2, etc., counting from right to left.

The flags argument can be used to affect some aspects of the function's behavior, e.g. whether to be case sensitive, whether to skip empty fields and how to deal with leading and trailing separators; see SectionFlags.

QString str;
QString csv = "forename,middlename,surname,phone";
QString path = "/usr/local/bin/myapp"; // First field is empty
QString::SectionFlag flag = QString::SectionSkipEmpty;

str = csv.section(',', 2, 2);   // str == "surname"
str = path.section('/', 3, 4);  // str == "bin/myapp"
str = path.section('/', 3, 3, flag); // str == "myapp"

If start or end is negative, we count fields from the right of the string, the right-most field being -1, the one from right-most field being -2, and so on.

str = csv.section(',', -3, -2);  // str == "middlename,surname"
str = path.section('/', -1); // str == "myapp"

See also split().

func (*QString) Section_1_

func (this *QString) Section_1_(in_sep string, start int) string

This function returns a section of the string.

This string is treated as a sequence of fields separated by the character, sep. The returned string consists of the fields from position start to position end inclusive. If end is not specified, all fields from position start to the end of the string are included. Fields are numbered 0, 1, 2, etc., counting from the left, and -1, -2, etc., counting from right to left.

The flags argument can be used to affect some aspects of the function's behavior, e.g. whether to be case sensitive, whether to skip empty fields and how to deal with leading and trailing separators; see SectionFlags.

QString str;
QString csv = "forename,middlename,surname,phone";
QString path = "/usr/local/bin/myapp"; // First field is empty
QString::SectionFlag flag = QString::SectionSkipEmpty;

str = csv.section(',', 2, 2);   // str == "surname"
str = path.section('/', 3, 4);  // str == "bin/myapp"
str = path.section('/', 3, 3, flag); // str == "myapp"

If start or end is negative, we count fields from the right of the string, the right-most field being -1, the one from right-most field being -2, and so on.

str = csv.section(',', -3, -2);  // str == "middlename,surname"
str = path.section('/', -1); // str == "myapp"

See also split().

func (*QString) Section_1_1

func (this *QString) Section_1_1(in_sep string, start int, end int) string

This function returns a section of the string.

This string is treated as a sequence of fields separated by the character, sep. The returned string consists of the fields from position start to position end inclusive. If end is not specified, all fields from position start to the end of the string are included. Fields are numbered 0, 1, 2, etc., counting from the left, and -1, -2, etc., counting from right to left.

The flags argument can be used to affect some aspects of the function's behavior, e.g. whether to be case sensitive, whether to skip empty fields and how to deal with leading and trailing separators; see SectionFlags.

QString str;
QString csv = "forename,middlename,surname,phone";
QString path = "/usr/local/bin/myapp"; // First field is empty
QString::SectionFlag flag = QString::SectionSkipEmpty;

str = csv.section(',', 2, 2);   // str == "surname"
str = path.section('/', 3, 4);  // str == "bin/myapp"
str = path.section('/', 3, 3, flag); // str == "myapp"

If start or end is negative, we count fields from the right of the string, the right-most field being -1, the one from right-most field being -2, and so on.

str = csv.section(',', -3, -2);  // str == "middlename,surname"
str = path.section('/', -1); // str == "myapp"

See also split().

func (*QString) Section_2

func (this *QString) Section_2(reg QRegExp_ITF, start int, end int, flags int) string

This function returns a section of the string.

This string is treated as a sequence of fields separated by the character, sep. The returned string consists of the fields from position start to position end inclusive. If end is not specified, all fields from position start to the end of the string are included. Fields are numbered 0, 1, 2, etc., counting from the left, and -1, -2, etc., counting from right to left.

The flags argument can be used to affect some aspects of the function's behavior, e.g. whether to be case sensitive, whether to skip empty fields and how to deal with leading and trailing separators; see SectionFlags.

QString str;
QString csv = "forename,middlename,surname,phone";
QString path = "/usr/local/bin/myapp"; // First field is empty
QString::SectionFlag flag = QString::SectionSkipEmpty;

str = csv.section(',', 2, 2);   // str == "surname"
str = path.section('/', 3, 4);  // str == "bin/myapp"
str = path.section('/', 3, 3, flag); // str == "myapp"

If start or end is negative, we count fields from the right of the string, the right-most field being -1, the one from right-most field being -2, and so on.

str = csv.section(',', -3, -2);  // str == "middlename,surname"
str = path.section('/', -1); // str == "myapp"

See also split().

func (*QString) Section_2_

func (this *QString) Section_2_(reg QRegExp_ITF, start int) string

This function returns a section of the string.

This string is treated as a sequence of fields separated by the character, sep. The returned string consists of the fields from position start to position end inclusive. If end is not specified, all fields from position start to the end of the string are included. Fields are numbered 0, 1, 2, etc., counting from the left, and -1, -2, etc., counting from right to left.

The flags argument can be used to affect some aspects of the function's behavior, e.g. whether to be case sensitive, whether to skip empty fields and how to deal with leading and trailing separators; see SectionFlags.

QString str;
QString csv = "forename,middlename,surname,phone";
QString path = "/usr/local/bin/myapp"; // First field is empty
QString::SectionFlag flag = QString::SectionSkipEmpty;

str = csv.section(',', 2, 2);   // str == "surname"
str = path.section('/', 3, 4);  // str == "bin/myapp"
str = path.section('/', 3, 3, flag); // str == "myapp"

If start or end is negative, we count fields from the right of the string, the right-most field being -1, the one from right-most field being -2, and so on.

str = csv.section(',', -3, -2);  // str == "middlename,surname"
str = path.section('/', -1); // str == "myapp"

See also split().

func (*QString) Section_2_1

func (this *QString) Section_2_1(reg QRegExp_ITF, start int, end int) string

This function returns a section of the string.

This string is treated as a sequence of fields separated by the character, sep. The returned string consists of the fields from position start to position end inclusive. If end is not specified, all fields from position start to the end of the string are included. Fields are numbered 0, 1, 2, etc., counting from the left, and -1, -2, etc., counting from right to left.

The flags argument can be used to affect some aspects of the function's behavior, e.g. whether to be case sensitive, whether to skip empty fields and how to deal with leading and trailing separators; see SectionFlags.

QString str;
QString csv = "forename,middlename,surname,phone";
QString path = "/usr/local/bin/myapp"; // First field is empty
QString::SectionFlag flag = QString::SectionSkipEmpty;

str = csv.section(',', 2, 2);   // str == "surname"
str = path.section('/', 3, 4);  // str == "bin/myapp"
str = path.section('/', 3, 3, flag); // str == "myapp"

If start or end is negative, we count fields from the right of the string, the right-most field being -1, the one from right-most field being -2, and so on.

str = csv.section(',', -3, -2);  // str == "middlename,surname"
str = path.section('/', -1); // str == "myapp"

See also split().

func (*QString) Section_3

func (this *QString) Section_3(re QRegularExpression_ITF, start int, end int, flags int) string

This function returns a section of the string.

This string is treated as a sequence of fields separated by the character, sep. The returned string consists of the fields from position start to position end inclusive. If end is not specified, all fields from position start to the end of the string are included. Fields are numbered 0, 1, 2, etc., counting from the left, and -1, -2, etc., counting from right to left.

The flags argument can be used to affect some aspects of the function's behavior, e.g. whether to be case sensitive, whether to skip empty fields and how to deal with leading and trailing separators; see SectionFlags.

QString str;
QString csv = "forename,middlename,surname,phone";
QString path = "/usr/local/bin/myapp"; // First field is empty
QString::SectionFlag flag = QString::SectionSkipEmpty;

str = csv.section(',', 2, 2);   // str == "surname"
str = path.section('/', 3, 4);  // str == "bin/myapp"
str = path.section('/', 3, 3, flag); // str == "myapp"

If start or end is negative, we count fields from the right of the string, the right-most field being -1, the one from right-most field being -2, and so on.

str = csv.section(',', -3, -2);  // str == "middlename,surname"
str = path.section('/', -1); // str == "myapp"

See also split().

func (*QString) Section_3_

func (this *QString) Section_3_(re QRegularExpression_ITF, start int) string

This function returns a section of the string.

This string is treated as a sequence of fields separated by the character, sep. The returned string consists of the fields from position start to position end inclusive. If end is not specified, all fields from position start to the end of the string are included. Fields are numbered 0, 1, 2, etc., counting from the left, and -1, -2, etc., counting from right to left.

The flags argument can be used to affect some aspects of the function's behavior, e.g. whether to be case sensitive, whether to skip empty fields and how to deal with leading and trailing separators; see SectionFlags.

QString str;
QString csv = "forename,middlename,surname,phone";
QString path = "/usr/local/bin/myapp"; // First field is empty
QString::SectionFlag flag = QString::SectionSkipEmpty;

str = csv.section(',', 2, 2);   // str == "surname"
str = path.section('/', 3, 4);  // str == "bin/myapp"
str = path.section('/', 3, 3, flag); // str == "myapp"

If start or end is negative, we count fields from the right of the string, the right-most field being -1, the one from right-most field being -2, and so on.

str = csv.section(',', -3, -2);  // str == "middlename,surname"
str = path.section('/', -1); // str == "myapp"

See also split().

func (*QString) Section_3_1

func (this *QString) Section_3_1(re QRegularExpression_ITF, start int, end int) string

This function returns a section of the string.

This string is treated as a sequence of fields separated by the character, sep. The returned string consists of the fields from position start to position end inclusive. If end is not specified, all fields from position start to the end of the string are included. Fields are numbered 0, 1, 2, etc., counting from the left, and -1, -2, etc., counting from right to left.

The flags argument can be used to affect some aspects of the function's behavior, e.g. whether to be case sensitive, whether to skip empty fields and how to deal with leading and trailing separators; see SectionFlags.

QString str;
QString csv = "forename,middlename,surname,phone";
QString path = "/usr/local/bin/myapp"; // First field is empty
QString::SectionFlag flag = QString::SectionSkipEmpty;

str = csv.section(',', 2, 2);   // str == "surname"
str = path.section('/', 3, 4);  // str == "bin/myapp"
str = path.section('/', 3, 3, flag); // str == "myapp"

If start or end is negative, we count fields from the right of the string, the right-most field being -1, the one from right-most field being -2, and so on.

str = csv.section(',', -3, -2);  // str == "middlename,surname"
str = path.section('/', -1); // str == "myapp"

See also split().

func (*QString) Section__

func (this *QString) Section__(sep QChar_ITF, start int) string

This function returns a section of the string.

This string is treated as a sequence of fields separated by the character, sep. The returned string consists of the fields from position start to position end inclusive. If end is not specified, all fields from position start to the end of the string are included. Fields are numbered 0, 1, 2, etc., counting from the left, and -1, -2, etc., counting from right to left.

The flags argument can be used to affect some aspects of the function's behavior, e.g. whether to be case sensitive, whether to skip empty fields and how to deal with leading and trailing separators; see SectionFlags.

QString str;
QString csv = "forename,middlename,surname,phone";
QString path = "/usr/local/bin/myapp"; // First field is empty
QString::SectionFlag flag = QString::SectionSkipEmpty;

str = csv.section(',', 2, 2);   // str == "surname"
str = path.section('/', 3, 4);  // str == "bin/myapp"
str = path.section('/', 3, 3, flag); // str == "myapp"

If start or end is negative, we count fields from the right of the string, the right-most field being -1, the one from right-most field being -2, and so on.

str = csv.section(',', -3, -2);  // str == "middlename,surname"
str = path.section('/', -1); // str == "myapp"

See also split().

func (*QString) Section__1

func (this *QString) Section__1(sep QChar_ITF, start int, end int) string

This function returns a section of the string.

This string is treated as a sequence of fields separated by the character, sep. The returned string consists of the fields from position start to position end inclusive. If end is not specified, all fields from position start to the end of the string are included. Fields are numbered 0, 1, 2, etc., counting from the left, and -1, -2, etc., counting from right to left.

The flags argument can be used to affect some aspects of the function's behavior, e.g. whether to be case sensitive, whether to skip empty fields and how to deal with leading and trailing separators; see SectionFlags.

QString str;
QString csv = "forename,middlename,surname,phone";
QString path = "/usr/local/bin/myapp"; // First field is empty
QString::SectionFlag flag = QString::SectionSkipEmpty;

str = csv.section(',', 2, 2);   // str == "surname"
str = path.section('/', 3, 4);  // str == "bin/myapp"
str = path.section('/', 3, 3, flag); // str == "myapp"

If start or end is negative, we count fields from the right of the string, the right-most field being -1, the one from right-most field being -2, and so on.

str = csv.section(',', -3, -2);  // str == "middlename,surname"
str = path.section('/', -1); // str == "myapp"

See also split().

func (*QString) SetCthis

func (this *QString) SetCthis(cthis unsafe.Pointer)

func (*QString) SetNum

func (this *QString) SetNum(arg0 int16, base int) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_1

func (this *QString) SetNum_1(arg0 uint16, base int) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_1_

func (this *QString) SetNum_1_(arg0 uint16) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_2

func (this *QString) SetNum_2(arg0 int, base int) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_2_

func (this *QString) SetNum_2_(arg0 int) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_3

func (this *QString) SetNum_3(arg0 uint, base int) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_3_

func (this *QString) SetNum_3_(arg0 uint) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_4

func (this *QString) SetNum_4(arg0 int, base int) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_4_

func (this *QString) SetNum_4_(arg0 int) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_5

func (this *QString) SetNum_5(arg0 uint, base int) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_5_

func (this *QString) SetNum_5_(arg0 uint) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_6

func (this *QString) SetNum_6(arg0 int64, base int) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_6_

func (this *QString) SetNum_6_(arg0 int64) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_7

func (this *QString) SetNum_7(arg0 uint64, base int) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_7_

func (this *QString) SetNum_7_(arg0 uint64) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_8

func (this *QString) SetNum_8(arg0 float32, f byte, prec int) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_8_

func (this *QString) SetNum_8_(arg0 float32) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_8_1

func (this *QString) SetNum_8_1(arg0 float32, f byte) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_9

func (this *QString) SetNum_9(arg0 float64, f byte, prec int) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_9_

func (this *QString) SetNum_9_(arg0 float64) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum_9_1

func (this *QString) SetNum_9_1(arg0 float64, f byte) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetNum__

func (this *QString) SetNum__(arg0 int16) string

Sets the string to the printed value of n in the specified base, and returns a reference to the string.

The base is 10 by default and must be between 2 and 36. For bases other than 10, n is treated as an unsigned integer.

QString str;
str.setNum(1234);       // str == "1234"

The formatting always uses QLocale::C, i.e., English/UnitedStates. To get a localized string representation of a number, use QLocale::toString() with the appropriate locale.

func (*QString) SetRawData

func (this *QString) SetRawData(unicode QChar_ITF, size int) string

Resets the QString to use the first size Unicode characters in the array unicode. The data in unicode is not copied. The caller must be able to guarantee that unicode will not be deleted or modified as long as the QString (or an unmodified copy of it) exists.

This function can be used instead of fromRawData() to re-use existings QString objects to save memory re-allocations.

This function was introduced in Qt 4.7.

See also fromRawData().

func (*QString) SetUnicode

func (this *QString) SetUnicode(unicode QChar_ITF, size int) string

Resizes the string to size characters and copies unicode into the string.

If unicode is 0, nothing is copied, but the string is still resized to size.

See also unicode() and setUtf16().

func (*QString) SetUtf16

func (this *QString) SetUtf16(utf16 unsafe.Pointer, size int) string

Resizes the string to size characters and copies unicode into the string.

If unicode is 0, nothing is copied, but the string is still resized to size.

Note that unlike fromUtf16(), this function does not consider BOMs and possibly differing byte ordering.

See also utf16() and setUnicode().

func (*QString) Shrink_to_fit

func (this *QString) Shrink_to_fit()

This function is provided for STL compatibility. It is equivalent to squeeze().

This function was introduced in Qt 5.10.

See also squeeze().

func (*QString) Simplified

func (this *QString) Simplified() string

Returns a string that has whitespace removed from the start and the end, and that has each sequence of internal whitespace replaced with a single space.

Whitespace means any character for which QChar::isSpace() returns true. This includes the ASCII characters '\t', '\n', '\v', '\f', '\r', and ' '.

Example:

QString str = "  lots\t of\nwhitespace\r\n ";
str = str.simplified();
// str == "lots of whitespace";

See also trimmed().

func (*QString) Simplified_1

func (this *QString) Simplified_1() string

Returns a string that has whitespace removed from the start and the end, and that has each sequence of internal whitespace replaced with a single space.

Whitespace means any character for which QChar::isSpace() returns true. This includes the ASCII characters '\t', '\n', '\v', '\f', '\r', and ' '.

Example:

QString str = "  lots\t of\nwhitespace\r\n ";
str = str.simplified();
// str == "lots of whitespace";

See also trimmed().

func (*QString) Size

func (this *QString) Size() int

Returns the number of characters in this string.

The last character in the string is at position size() - 1.

Example:

QString str = "World";
int n = str.size();         // n == 5
str.data()[0];              // returns 'W'
str.data()[4];              // returns 'd'

See also isEmpty() and resize().

func (*QString) Split

func (this *QString) Split(sep string, behavior int, cs int) *QStringList

Splits the string into substrings wherever sep occurs, and returns the list of those strings. If sep does not match anywhere in the string, split() returns a single-element list containing this string.

cs specifies whether sep should be matched case sensitively or case insensitively.

If behavior is QString::SkipEmptyParts, empty entries don't appear in the result. By default, empty entries are kept.

Example:

QString str = "a,,b,c";

QStringList list1 = str.split(',');
// list1: [ "a", "", "b", "c" ]

QStringList list2 = str.split(',', QString::SkipEmptyParts);
// list2: [ "a", "b", "c" ]

If sep is empty, split() returns an empty string, followed by each of the string's characters, followed by another empty string:

QString str = "abc";
auto parts = str.split("");
// parts: {"", "a", "b", "c", ""}

To understand this behavior, recall that the empty string matches everywhere, so the above is qualitatively the same as:

QString str = "/a/b/c/";
auto parts = str.split('/');
// parts: {"", "a", "b", "c", ""}

See also QStringList::join() and section().

func (*QString) Split_1

func (this *QString) Split_1(sep QChar_ITF, behavior int, cs int) *QStringList

Splits the string into substrings wherever sep occurs, and returns the list of those strings. If sep does not match anywhere in the string, split() returns a single-element list containing this string.

cs specifies whether sep should be matched case sensitively or case insensitively.

If behavior is QString::SkipEmptyParts, empty entries don't appear in the result. By default, empty entries are kept.

Example:

QString str = "a,,b,c";

QStringList list1 = str.split(',');
// list1: [ "a", "", "b", "c" ]

QStringList list2 = str.split(',', QString::SkipEmptyParts);
// list2: [ "a", "b", "c" ]

If sep is empty, split() returns an empty string, followed by each of the string's characters, followed by another empty string:

QString str = "abc";
auto parts = str.split("");
// parts: {"", "a", "b", "c", ""}

To understand this behavior, recall that the empty string matches everywhere, so the above is qualitatively the same as:

QString str = "/a/b/c/";
auto parts = str.split('/');
// parts: {"", "a", "b", "c", ""}

See also QStringList::join() and section().

func (*QString) Split_1_

func (this *QString) Split_1_(sep QChar_ITF) *QStringList

Splits the string into substrings wherever sep occurs, and returns the list of those strings. If sep does not match anywhere in the string, split() returns a single-element list containing this string.

cs specifies whether sep should be matched case sensitively or case insensitively.

If behavior is QString::SkipEmptyParts, empty entries don't appear in the result. By default, empty entries are kept.

Example:

QString str = "a,,b,c";

QStringList list1 = str.split(',');
// list1: [ "a", "", "b", "c" ]

QStringList list2 = str.split(',', QString::SkipEmptyParts);
// list2: [ "a", "b", "c" ]

If sep is empty, split() returns an empty string, followed by each of the string's characters, followed by another empty string:

QString str = "abc";
auto parts = str.split("");
// parts: {"", "a", "b", "c", ""}

To understand this behavior, recall that the empty string matches everywhere, so the above is qualitatively the same as:

QString str = "/a/b/c/";
auto parts = str.split('/');
// parts: {"", "a", "b", "c", ""}

See also QStringList::join() and section().

func (*QString) Split_1_1

func (this *QString) Split_1_1(sep QChar_ITF, behavior int) *QStringList

Splits the string into substrings wherever sep occurs, and returns the list of those strings. If sep does not match anywhere in the string, split() returns a single-element list containing this string.

cs specifies whether sep should be matched case sensitively or case insensitively.

If behavior is QString::SkipEmptyParts, empty entries don't appear in the result. By default, empty entries are kept.

Example:

QString str = "a,,b,c";

QStringList list1 = str.split(',');
// list1: [ "a", "", "b", "c" ]

QStringList list2 = str.split(',', QString::SkipEmptyParts);
// list2: [ "a", "b", "c" ]

If sep is empty, split() returns an empty string, followed by each of the string's characters, followed by another empty string:

QString str = "abc";
auto parts = str.split("");
// parts: {"", "a", "b", "c", ""}

To understand this behavior, recall that the empty string matches everywhere, so the above is qualitatively the same as:

QString str = "/a/b/c/";
auto parts = str.split('/');
// parts: {"", "a", "b", "c", ""}

See also QStringList::join() and section().

func (*QString) Split_2

func (this *QString) Split_2(sep QRegExp_ITF, behavior int) *QStringList

Splits the string into substrings wherever sep occurs, and returns the list of those strings. If sep does not match anywhere in the string, split() returns a single-element list containing this string.

cs specifies whether sep should be matched case sensitively or case insensitively.

If behavior is QString::SkipEmptyParts, empty entries don't appear in the result. By default, empty entries are kept.

Example:

QString str = "a,,b,c";

QStringList list1 = str.split(',');
// list1: [ "a", "", "b", "c" ]

QStringList list2 = str.split(',', QString::SkipEmptyParts);
// list2: [ "a", "b", "c" ]

If sep is empty, split() returns an empty string, followed by each of the string's characters, followed by another empty string:

QString str = "abc";
auto parts = str.split("");
// parts: {"", "a", "b", "c", ""}

To understand this behavior, recall that the empty string matches everywhere, so the above is qualitatively the same as:

QString str = "/a/b/c/";
auto parts = str.split('/');
// parts: {"", "a", "b", "c", ""}

See also QStringList::join() and section().

func (*QString) Split_2_

func (this *QString) Split_2_(sep QRegExp_ITF) *QStringList

Splits the string into substrings wherever sep occurs, and returns the list of those strings. If sep does not match anywhere in the string, split() returns a single-element list containing this string.

cs specifies whether sep should be matched case sensitively or case insensitively.

If behavior is QString::SkipEmptyParts, empty entries don't appear in the result. By default, empty entries are kept.

Example:

QString str = "a,,b,c";

QStringList list1 = str.split(',');
// list1: [ "a", "", "b", "c" ]

QStringList list2 = str.split(',', QString::SkipEmptyParts);
// list2: [ "a", "b", "c" ]

If sep is empty, split() returns an empty string, followed by each of the string's characters, followed by another empty string:

QString str = "abc";
auto parts = str.split("");
// parts: {"", "a", "b", "c", ""}

To understand this behavior, recall that the empty string matches everywhere, so the above is qualitatively the same as:

QString str = "/a/b/c/";
auto parts = str.split('/');
// parts: {"", "a", "b", "c", ""}

See also QStringList::join() and section().

func (*QString) Split_3

func (this *QString) Split_3(sep QRegularExpression_ITF, behavior int) *QStringList

Splits the string into substrings wherever sep occurs, and returns the list of those strings. If sep does not match anywhere in the string, split() returns a single-element list containing this string.

cs specifies whether sep should be matched case sensitively or case insensitively.

If behavior is QString::SkipEmptyParts, empty entries don't appear in the result. By default, empty entries are kept.

Example:

QString str = "a,,b,c";

QStringList list1 = str.split(',');
// list1: [ "a", "", "b", "c" ]

QStringList list2 = str.split(',', QString::SkipEmptyParts);
// list2: [ "a", "b", "c" ]

If sep is empty, split() returns an empty string, followed by each of the string's characters, followed by another empty string:

QString str = "abc";
auto parts = str.split("");
// parts: {"", "a", "b", "c", ""}

To understand this behavior, recall that the empty string matches everywhere, so the above is qualitatively the same as:

QString str = "/a/b/c/";
auto parts = str.split('/');
// parts: {"", "a", "b", "c", ""}

See also QStringList::join() and section().

func (*QString) Split_3_

func (this *QString) Split_3_(sep QRegularExpression_ITF) *QStringList

Splits the string into substrings wherever sep occurs, and returns the list of those strings. If sep does not match anywhere in the string, split() returns a single-element list containing this string.

cs specifies whether sep should be matched case sensitively or case insensitively.

If behavior is QString::SkipEmptyParts, empty entries don't appear in the result. By default, empty entries are kept.

Example:

QString str = "a,,b,c";

QStringList list1 = str.split(',');
// list1: [ "a", "", "b", "c" ]

QStringList list2 = str.split(',', QString::SkipEmptyParts);
// list2: [ "a", "b", "c" ]

If sep is empty, split() returns an empty string, followed by each of the string's characters, followed by another empty string:

QString str = "abc";
auto parts = str.split("");
// parts: {"", "a", "b", "c", ""}

To understand this behavior, recall that the empty string matches everywhere, so the above is qualitatively the same as:

QString str = "/a/b/c/";
auto parts = str.split('/');
// parts: {"", "a", "b", "c", ""}

See also QStringList::join() and section().

func (*QString) Split__

func (this *QString) Split__(sep string) *QStringList

Splits the string into substrings wherever sep occurs, and returns the list of those strings. If sep does not match anywhere in the string, split() returns a single-element list containing this string.

cs specifies whether sep should be matched case sensitively or case insensitively.

If behavior is QString::SkipEmptyParts, empty entries don't appear in the result. By default, empty entries are kept.

Example:

QString str = "a,,b,c";

QStringList list1 = str.split(',');
// list1: [ "a", "", "b", "c" ]

QStringList list2 = str.split(',', QString::SkipEmptyParts);
// list2: [ "a", "b", "c" ]

If sep is empty, split() returns an empty string, followed by each of the string's characters, followed by another empty string:

QString str = "abc";
auto parts = str.split("");
// parts: {"", "a", "b", "c", ""}

To understand this behavior, recall that the empty string matches everywhere, so the above is qualitatively the same as:

QString str = "/a/b/c/";
auto parts = str.split('/');
// parts: {"", "a", "b", "c", ""}

See also QStringList::join() and section().

func (*QString) Split__1

func (this *QString) Split__1(sep string, behavior int) *QStringList

Splits the string into substrings wherever sep occurs, and returns the list of those strings. If sep does not match anywhere in the string, split() returns a single-element list containing this string.

cs specifies whether sep should be matched case sensitively or case insensitively.

If behavior is QString::SkipEmptyParts, empty entries don't appear in the result. By default, empty entries are kept.

Example:

QString str = "a,,b,c";

QStringList list1 = str.split(',');
// list1: [ "a", "", "b", "c" ]

QStringList list2 = str.split(',', QString::SkipEmptyParts);
// list2: [ "a", "b", "c" ]

If sep is empty, split() returns an empty string, followed by each of the string's characters, followed by another empty string:

QString str = "abc";
auto parts = str.split("");
// parts: {"", "a", "b", "c", ""}

To understand this behavior, recall that the empty string matches everywhere, so the above is qualitatively the same as:

QString str = "/a/b/c/";
auto parts = str.split('/');
// parts: {"", "a", "b", "c", ""}

See also QStringList::join() and section().

func (*QString) Squeeze

func (this *QString) Squeeze()

Releases any memory not required to store the character data.

The sole purpose of this function is to provide a means of fine tuning QString's memory usage. In general, you will rarely ever need to call this function.

See also reserve() and capacity().

func (*QString) StartsWith

func (this *QString) StartsWith(s string, cs int) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QString) StartsWith_1

func (this *QString) StartsWith_1(s QStringRef_ITF, cs int) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QString) StartsWith_1_

func (this *QString) StartsWith_1_(s QStringRef_ITF) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QString) StartsWith_2

func (this *QString) StartsWith_2(s QStringView_ITF, cs int) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QString) StartsWith_2_

func (this *QString) StartsWith_2_(s QStringView_ITF) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QString) StartsWith_3

func (this *QString) StartsWith_3(s QLatin1String_ITF, cs int) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QString) StartsWith_3_

func (this *QString) StartsWith_3_(s QLatin1String_ITF) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QString) StartsWith_4

func (this *QString) StartsWith_4(c QChar_ITF, cs int) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QString) StartsWith_4_

func (this *QString) StartsWith_4_(c QChar_ITF) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QString) StartsWith__

func (this *QString) StartsWith__(s string) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QString) Swap

func (this *QString) Swap(other string)

Swaps string other with this string. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func (*QString) ToCaseFolded

func (this *QString) ToCaseFolded() string

Returns the case folded equivalent of the string. For most Unicode characters this is the same as toLower().

func (*QString) ToCaseFolded_1

func (this *QString) ToCaseFolded_1() string

Returns the case folded equivalent of the string. For most Unicode characters this is the same as toLower().

func (*QString) ToDouble

func (this *QString) ToDouble(ok *bool) float64

Returns the string converted to a double value.

Returns 0.0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

QString str = "1234.56";
double val = str.toDouble();   // val == 1234.56

Warning: The QString content may only contain valid numerical characters which includes the plus/minus sign, the characters g and e used in scientific notation, and the decimal point. Including the unit or additional characters leads to a conversion error.

bool ok;
double d;

d = QString( "1234.56e-02" ).toDouble(&ok); // ok == true, d == 12.3456

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toDouble()

d = QString( "1234,56" ).toDouble(&ok); // ok == false
d = QString( "1234.56" ).toDouble(&ok); // ok == true, d == 1234.56

For historical reasons, this function does not handle thousands group separators. If you need to convert such numbers, use QLocale::toDouble().

d = QString( "1,234,567.89" ).toDouble(&ok); // ok == false
d = QString( "1234567.89" ).toDouble(&ok); // ok == true

See also number(), QLocale::setDefault(), QLocale::toDouble(), and trimmed().

func (*QString) ToDouble__

func (this *QString) ToDouble__() float64

Returns the string converted to a double value.

Returns 0.0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

QString str = "1234.56";
double val = str.toDouble();   // val == 1234.56

Warning: The QString content may only contain valid numerical characters which includes the plus/minus sign, the characters g and e used in scientific notation, and the decimal point. Including the unit or additional characters leads to a conversion error.

bool ok;
double d;

d = QString( "1234.56e-02" ).toDouble(&ok); // ok == true, d == 12.3456

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toDouble()

d = QString( "1234,56" ).toDouble(&ok); // ok == false
d = QString( "1234.56" ).toDouble(&ok); // ok == true, d == 1234.56

For historical reasons, this function does not handle thousands group separators. If you need to convert such numbers, use QLocale::toDouble().

d = QString( "1,234,567.89" ).toDouble(&ok); // ok == false
d = QString( "1234567.89" ).toDouble(&ok); // ok == true

See also number(), QLocale::setDefault(), QLocale::toDouble(), and trimmed().

func (*QString) ToFloat

func (this *QString) ToFloat(ok *bool) float32

Returns the string converted to a float value.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true. Returns 0.0 if the conversion fails.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toFloat()

Example:

QString str1 = "1234.56";
str1.toFloat();             // returns 1234.56

bool ok;
QString str2 = "R2D2";
str2.toFloat(&ok);          // returns 0.0, sets ok to false

See also number(), toDouble(), toInt(), and QLocale::toFloat().

func (*QString) ToFloat__

func (this *QString) ToFloat__() float32

Returns the string converted to a float value.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true. Returns 0.0 if the conversion fails.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toFloat()

Example:

QString str1 = "1234.56";
str1.toFloat();             // returns 1234.56

bool ok;
QString str2 = "R2D2";
str2.toFloat(&ok);          // returns 0.0, sets ok to false

See also number(), toDouble(), toInt(), and QLocale::toFloat().

func (*QString) ToHtmlEscaped

func (this *QString) ToHtmlEscaped() string

Converts a plain text string to an HTML string with HTML metacharacters <, >, &, and " replaced by HTML entities.

Example:

QString plain = "#include <QtCore>"
QString html = plain.toHtmlEscaped();
// html == "#include &lt;QtCore&gt;"

This function was introduced in Qt 5.0.

func (*QString) ToInt

func (this *QString) ToInt(ok *bool, base int) int

Returns the string converted to an int using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toInt()

Example:

QString str = "FF";
bool ok;
int hex = str.toInt(&ok, 16);       // hex == 255, ok == true
int dec = str.toInt(&ok, 10);       // dec == 0, ok == false

See also number(), toUInt(), toDouble(), and QLocale::toInt().

func (*QString) ToInt__

func (this *QString) ToInt__() int

Returns the string converted to an int using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toInt()

Example:

QString str = "FF";
bool ok;
int hex = str.toInt(&ok, 16);       // hex == 255, ok == true
int dec = str.toInt(&ok, 10);       // dec == 0, ok == false

See also number(), toUInt(), toDouble(), and QLocale::toInt().

func (*QString) ToInt__1

func (this *QString) ToInt__1(ok *bool) int

Returns the string converted to an int using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toInt()

Example:

QString str = "FF";
bool ok;
int hex = str.toInt(&ok, 16);       // hex == 255, ok == true
int dec = str.toInt(&ok, 10);       // dec == 0, ok == false

See also number(), toUInt(), toDouble(), and QLocale::toInt().

func (*QString) ToLatin1

func (this *QString) ToLatin1() *QByteArray

Returns a Latin-1 representation of the string as a QByteArray.

The returned byte array is undefined if the string contains non-Latin1 characters. Those characters may be suppressed or replaced with a question mark.

See also fromLatin1(), toUtf8(), toLocal8Bit(), QTextCodec, and qConvertToLatin1().

func (*QString) ToLatin1_1

func (this *QString) ToLatin1_1() *QByteArray

Returns a Latin-1 representation of the string as a QByteArray.

The returned byte array is undefined if the string contains non-Latin1 characters. Those characters may be suppressed or replaced with a question mark.

See also fromLatin1(), toUtf8(), toLocal8Bit(), QTextCodec, and qConvertToLatin1().

func (*QString) ToLocal8Bit

func (this *QString) ToLocal8Bit() *QByteArray

Returns the local 8-bit representation of the string as a QByteArray. The returned byte array is undefined if the string contains characters not supported by the local 8-bit encoding.

QTextCodec::codecForLocale() is used to perform the conversion from Unicode. If the locale encoding could not be determined, this function does the same as toLatin1().

If this string contains any characters that cannot be encoded in the locale, the returned byte array is undefined. Those characters may be suppressed or replaced by another.

See also fromLocal8Bit(), toLatin1(), toUtf8(), and QTextCodec.

func (*QString) ToLocal8Bit_1

func (this *QString) ToLocal8Bit_1() *QByteArray

Returns the local 8-bit representation of the string as a QByteArray. The returned byte array is undefined if the string contains characters not supported by the local 8-bit encoding.

QTextCodec::codecForLocale() is used to perform the conversion from Unicode. If the locale encoding could not be determined, this function does the same as toLatin1().

If this string contains any characters that cannot be encoded in the locale, the returned byte array is undefined. Those characters may be suppressed or replaced by another.

See also fromLocal8Bit(), toLatin1(), toUtf8(), and QTextCodec.

func (*QString) ToLong

func (this *QString) ToLong(ok *bool, base int) int

Returns the string converted to a long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toLongLong()

Example:

QString str = "FF";
bool ok;

long hex = str.toLong(&ok, 16);     // hex == 255, ok == true
long dec = str.toLong(&ok, 10);     // dec == 0, ok == false

See also number(), toULong(), toInt(), and QLocale::toInt().

func (*QString) ToLongLong

func (this *QString) ToLongLong(ok *bool, base int) int64

Returns the string converted to a long long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toLongLong()

Example:

QString str = "FF";
bool ok;

qint64 hex = str.toLongLong(&ok, 16);      // hex == 255, ok == true
qint64 dec = str.toLongLong(&ok, 10);      // dec == 0, ok == false

See also number(), toULongLong(), toInt(), and QLocale::toLongLong().

func (*QString) ToLongLong__

func (this *QString) ToLongLong__() int64

Returns the string converted to a long long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toLongLong()

Example:

QString str = "FF";
bool ok;

qint64 hex = str.toLongLong(&ok, 16);      // hex == 255, ok == true
qint64 dec = str.toLongLong(&ok, 10);      // dec == 0, ok == false

See also number(), toULongLong(), toInt(), and QLocale::toLongLong().

func (*QString) ToLongLong__1

func (this *QString) ToLongLong__1(ok *bool) int64

Returns the string converted to a long long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toLongLong()

Example:

QString str = "FF";
bool ok;

qint64 hex = str.toLongLong(&ok, 16);      // hex == 255, ok == true
qint64 dec = str.toLongLong(&ok, 10);      // dec == 0, ok == false

See also number(), toULongLong(), toInt(), and QLocale::toLongLong().

func (*QString) ToLong__

func (this *QString) ToLong__() int

Returns the string converted to a long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toLongLong()

Example:

QString str = "FF";
bool ok;

long hex = str.toLong(&ok, 16);     // hex == 255, ok == true
long dec = str.toLong(&ok, 10);     // dec == 0, ok == false

See also number(), toULong(), toInt(), and QLocale::toInt().

func (*QString) ToLong__1

func (this *QString) ToLong__1(ok *bool) int

Returns the string converted to a long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toLongLong()

Example:

QString str = "FF";
bool ok;

long hex = str.toLong(&ok, 16);     // hex == 255, ok == true
long dec = str.toLong(&ok, 10);     // dec == 0, ok == false

See also number(), toULong(), toInt(), and QLocale::toInt().

func (*QString) ToLower

func (this *QString) ToLower() string

Returns a lowercase copy of the string.

QString str = "The Qt PROJECT";
str = str.toLower();        // str == "the qt project"

The case conversion will always happen in the 'C' locale. For locale dependent case folding use QLocale::toLower()

See also toUpper() and QLocale::toLower().

func (*QString) ToLower_1

func (this *QString) ToLower_1() string

Returns a lowercase copy of the string.

QString str = "The Qt PROJECT";
str = str.toLower();        // str == "the qt project"

The case conversion will always happen in the 'C' locale. For locale dependent case folding use QLocale::toLower()

See also toUpper() and QLocale::toLower().

func (*QString) ToShort

func (this *QString) ToShort(ok *bool, base int) int16

Returns the string converted to a short using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toShort()

Example:

QString str = "FF";
bool ok;

short hex = str.toShort(&ok, 16);   // hex == 255, ok == true
short dec = str.toShort(&ok, 10);   // dec == 0, ok == false

See also number(), toUShort(), toInt(), and QLocale::toShort().

func (*QString) ToShort__

func (this *QString) ToShort__() int16

Returns the string converted to a short using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toShort()

Example:

QString str = "FF";
bool ok;

short hex = str.toShort(&ok, 16);   // hex == 255, ok == true
short dec = str.toShort(&ok, 10);   // dec == 0, ok == false

See also number(), toUShort(), toInt(), and QLocale::toShort().

func (*QString) ToShort__1

func (this *QString) ToShort__1(ok *bool) int16

Returns the string converted to a short using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toShort()

Example:

QString str = "FF";
bool ok;

short hex = str.toShort(&ok, 16);   // hex == 255, ok == true
short dec = str.toShort(&ok, 10);   // dec == 0, ok == false

See also number(), toUShort(), toInt(), and QLocale::toShort().

func (*QString) ToStdString

func (this *QString) ToStdString() int

Returns a std::string object with the data contained in this QString. The Unicode data is converted into 8-bit characters using the toUtf8() function.

This method is mostly useful to pass a QString to a function that accepts a std::string object.

See also toLatin1(), toUtf8(), toLocal8Bit(), and QByteArray::toStdString().

func (*QString) ToStdU16String

func (this *QString) ToStdU16String() int

Returns a std::u16string object with the data contained in this QString. The Unicode data is the same as returned by the utf16() method.

This function was introduced in Qt 5.5.

See also utf16(), toStdWString(), and toStdU32String().

func (*QString) ToStdU32String

func (this *QString) ToStdU32String() int

Returns a std::u32string object with the data contained in this QString. The Unicode data is the same as returned by the toUcs4() method.

This function was introduced in Qt 5.5.

See also toUcs4(), toStdWString(), and toStdU16String().

func (*QString) ToStdWString

func (this *QString) ToStdWString() int

Returns a std::wstring object with the data contained in this QString. The std::wstring is encoded in utf16 on platforms where wchar_t is 2 bytes wide (e.g. windows) and in ucs4 on platforms where wchar_t is 4 bytes wide (most Unix systems).

This method is mostly useful to pass a QString to a function that accepts a std::wstring object.

See also utf16(), toLatin1(), toUtf8(), toLocal8Bit(), toStdU16String(), and toStdU32String().

func (*QString) ToUInt

func (this *QString) ToUInt(ok *bool, base int) uint

Returns the string converted to an unsigned int using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toUInt()

Example:

QString str = "FF";
bool ok;

uint hex = str.toUInt(&ok, 16);     // hex == 255, ok == true
uint dec = str.toUInt(&ok, 10);     // dec == 0, ok == false

See also number(), toInt(), and QLocale::toUInt().

func (*QString) ToUInt__

func (this *QString) ToUInt__() uint

Returns the string converted to an unsigned int using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toUInt()

Example:

QString str = "FF";
bool ok;

uint hex = str.toUInt(&ok, 16);     // hex == 255, ok == true
uint dec = str.toUInt(&ok, 10);     // dec == 0, ok == false

See also number(), toInt(), and QLocale::toUInt().

func (*QString) ToUInt__1

func (this *QString) ToUInt__1(ok *bool) uint

Returns the string converted to an unsigned int using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toUInt()

Example:

QString str = "FF";
bool ok;

uint hex = str.toUInt(&ok, 16);     // hex == 255, ok == true
uint dec = str.toUInt(&ok, 10);     // dec == 0, ok == false

See also number(), toInt(), and QLocale::toUInt().

func (*QString) ToULong

func (this *QString) ToULong(ok *bool, base int) uint

Returns the string converted to an unsigned long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toULongLong()

Example:

QString str = "FF";
bool ok;

ulong hex = str.toULong(&ok, 16);   // hex == 255, ok == true
ulong dec = str.toULong(&ok, 10);   // dec == 0, ok == false

See also number() and QLocale::toUInt().

func (*QString) ToULongLong

func (this *QString) ToULongLong(ok *bool, base int) uint64

Returns the string converted to an unsigned long long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toULongLong()

Example:

QString str = "FF";
bool ok;

quint64 hex = str.toULongLong(&ok, 16);    // hex == 255, ok == true
quint64 dec = str.toULongLong(&ok, 10);    // dec == 0, ok == false

See also number(), toLongLong(), and QLocale::toULongLong().

func (*QString) ToULongLong__

func (this *QString) ToULongLong__() uint64

Returns the string converted to an unsigned long long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toULongLong()

Example:

QString str = "FF";
bool ok;

quint64 hex = str.toULongLong(&ok, 16);    // hex == 255, ok == true
quint64 dec = str.toULongLong(&ok, 10);    // dec == 0, ok == false

See also number(), toLongLong(), and QLocale::toULongLong().

func (*QString) ToULongLong__1

func (this *QString) ToULongLong__1(ok *bool) uint64

Returns the string converted to an unsigned long long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toULongLong()

Example:

QString str = "FF";
bool ok;

quint64 hex = str.toULongLong(&ok, 16);    // hex == 255, ok == true
quint64 dec = str.toULongLong(&ok, 10);    // dec == 0, ok == false

See also number(), toLongLong(), and QLocale::toULongLong().

func (*QString) ToULong__

func (this *QString) ToULong__() uint

Returns the string converted to an unsigned long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toULongLong()

Example:

QString str = "FF";
bool ok;

ulong hex = str.toULong(&ok, 16);   // hex == 255, ok == true
ulong dec = str.toULong(&ok, 10);   // dec == 0, ok == false

See also number() and QLocale::toUInt().

func (*QString) ToULong__1

func (this *QString) ToULong__1(ok *bool) uint

Returns the string converted to an unsigned long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toULongLong()

Example:

QString str = "FF";
bool ok;

ulong hex = str.toULong(&ok, 16);   // hex == 255, ok == true
ulong dec = str.toULong(&ok, 10);   // dec == 0, ok == false

See also number() and QLocale::toUInt().

func (*QString) ToUShort

func (this *QString) ToUShort(ok *bool, base int) uint16

Returns the string converted to an unsigned short using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toUShort()

Example:

QString str = "FF";
bool ok;

ushort hex = str.toUShort(&ok, 16);     // hex == 255, ok == true
ushort dec = str.toUShort(&ok, 10);     // dec == 0, ok == false

See also number(), toShort(), and QLocale::toUShort().

func (*QString) ToUShort__

func (this *QString) ToUShort__() uint16

Returns the string converted to an unsigned short using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toUShort()

Example:

QString str = "FF";
bool ok;

ushort hex = str.toUShort(&ok, 16);     // hex == 255, ok == true
ushort dec = str.toUShort(&ok, 10);     // dec == 0, ok == false

See also number(), toShort(), and QLocale::toUShort().

func (*QString) ToUShort__1

func (this *QString) ToUShort__1(ok *bool) uint16

Returns the string converted to an unsigned short using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toUShort()

Example:

QString str = "FF";
bool ok;

ushort hex = str.toUShort(&ok, 16);     // hex == 255, ok == true
ushort dec = str.toUShort(&ok, 10);     // dec == 0, ok == false

See also number(), toShort(), and QLocale::toUShort().

func (*QString) ToUpper

func (this *QString) ToUpper() string

Returns an uppercase copy of the string.

QString str = "TeXt";
str = str.toUpper();        // str == "TEXT"

The case conversion will always happen in the 'C' locale. For locale dependent case folding use QLocale::toUpper()

See also toLower() and QLocale::toLower().

func (*QString) ToUpper_1

func (this *QString) ToUpper_1() string

Returns an uppercase copy of the string.

QString str = "TeXt";
str = str.toUpper();        // str == "TEXT"

The case conversion will always happen in the 'C' locale. For locale dependent case folding use QLocale::toUpper()

See also toLower() and QLocale::toLower().

func (*QString) ToUtf8

func (this *QString) ToUtf8() *QByteArray

Returns a UTF-8 representation of the string as a QByteArray.

UTF-8 is a Unicode codec and can represent all characters in a Unicode string like QString.

See also fromUtf8(), toLatin1(), toLocal8Bit(), QTextCodec, and qConvertToUtf8().

func (*QString) ToUtf8_1

func (this *QString) ToUtf8_1() *QByteArray

Returns a UTF-8 representation of the string as a QByteArray.

UTF-8 is a Unicode codec and can represent all characters in a Unicode string like QString.

See also fromUtf8(), toLatin1(), toLocal8Bit(), QTextCodec, and qConvertToUtf8().

func (*QString) ToWCharArray

func (this *QString) ToWCharArray(array unsafe.Pointer) int

Fills the array with the data contained in this QString object. The array is encoded in UTF-16 on platforms where wchar_t is 2 bytes wide (e.g. windows) and in UCS-4 on platforms where wchar_t is 4 bytes wide (most Unix systems).

array has to be allocated by the caller and contain enough space to hold the complete string (allocating the array with the same length as the string is always sufficient).

This function returns the actual length of the string in array.

Note: This function does not append a null character to the array.

This function was introduced in Qt 4.2.

See also utf16(), toUcs4(), toLatin1(), toUtf8(), toLocal8Bit(), and toStdWString().

func (*QString) Trimmed

func (this *QString) Trimmed() string

Returns a string that has whitespace removed from the start and the end.

Whitespace means any character for which QChar::isSpace() returns true. This includes the ASCII characters '\t', '\n', '\v', '\f', '\r', and ' '.

Example:

QString str = "  lots\t of\nwhitespace\r\n ";
str = str.trimmed();
// str == "lots\t of\nwhitespace"

Unlike simplified(), trimmed() leaves internal whitespace alone.

See also simplified().

func (*QString) Trimmed_1

func (this *QString) Trimmed_1() string

Returns a string that has whitespace removed from the start and the end.

Whitespace means any character for which QChar::isSpace() returns true. This includes the ASCII characters '\t', '\n', '\v', '\f', '\r', and ' '.

Example:

QString str = "  lots\t of\nwhitespace\r\n ";
str = str.trimmed();
// str == "lots\t of\nwhitespace"

Unlike simplified(), trimmed() leaves internal whitespace alone.

See also simplified().

func (*QString) Truncate

func (this *QString) Truncate(pos int)

Truncates the string at the given position index.

If the specified position index is beyond the end of the string, nothing happens.

Example:

QString str = "Vladivostok";
str.truncate(4);
// str == "Vlad"

If position is negative, it is equivalent to passing zero.

See also chop(), resize(), left(), and QStringRef::truncate().

func (*QString) Unicode

func (this *QString) Unicode() *QChar

Returns a Unicode representation of the string. The result remains valid until the string is modified.

Note: The returned string may not be '\0'-terminated. Use size() to determine the length of the array.

See also setUnicode(), utf16(), and fromRawData().

func (*QString) Utf16

func (this *QString) Utf16() unsafe.Pointer

Returns the QString as a '\0'-terminated array of unsigned shorts. The result remains valid until the string is modified.

The returned string is in host byte order.

See also setUtf16() and unicode().

type QStringDataPtr

type QStringDataPtr struct {
	*qtrt.CObject
}

func NewQStringDataPtrFromPointer

func NewQStringDataPtrFromPointer(cthis unsafe.Pointer) *QStringDataPtr

func (*QStringDataPtr) GetCthis

func (this *QStringDataPtr) GetCthis() unsafe.Pointer

func (*QStringDataPtr) NewFromPointer

func (*QStringDataPtr) NewFromPointer(cthis unsafe.Pointer) *QStringDataPtr

func (*QStringDataPtr) QStringDataPtr_PTR

func (ptr *QStringDataPtr) QStringDataPtr_PTR() *QStringDataPtr

func (*QStringDataPtr) SetCthis

func (this *QStringDataPtr) SetCthis(cthis unsafe.Pointer)

type QStringDataPtr_ITF

type QStringDataPtr_ITF interface {
	QStringDataPtr_PTR() *QStringDataPtr
}

type QStringList

type QStringList struct {
	*qtrt.CObject
}

func NewQStringList

func NewQStringList() *QStringList

Constructs an empty string list.

func NewQStringListFromPointer

func NewQStringListFromPointer(cthis unsafe.Pointer) *QStringList

func NewQStringList_1

func NewQStringList_1(i string) *QStringList

Constructs an empty string list.

func QCoreApplication_Arguments

func QCoreApplication_Arguments() *QStringList

func QCoreApplication_LibraryPaths

func QCoreApplication_LibraryPaths() *QStringList

func QDir_NameFiltersFromString

func QDir_NameFiltersFromString(nameFilter string) *QStringList

func QDir_SearchPaths

func QDir_SearchPaths(prefix string) *QStringList

func QProcess_SystemEnvironment

func QProcess_SystemEnvironment() *QStringList

func QResource_SearchPaths

func QResource_SearchPaths() *QStringList

func QStandardPaths_LocateAll

func QStandardPaths_LocateAll(type_ int, fileName string, options int) *QStringList

func QStandardPaths_StandardLocations

func QStandardPaths_StandardLocations(type_ int) *QStringList

func QUrl_IdnWhitelist

func QUrl_IdnWhitelist() *QStringList

func (*QStringList) Contains

func (this *QStringList) Contains(str string, cs int) bool

Returns true if the list contains the string str; otherwise returns false. The search is case insensitive if cs is Qt::CaseInsensitive; the search is case sensitive by default.

See also indexOf(), lastIndexOf(), and QString::contains().

func (*QStringList) Contains_1

func (this *QStringList) Contains_1(str QLatin1String_ITF, cs int) bool

Returns true if the list contains the string str; otherwise returns false. The search is case insensitive if cs is Qt::CaseInsensitive; the search is case sensitive by default.

See also indexOf(), lastIndexOf(), and QString::contains().

func (*QStringList) Contains_1_

func (this *QStringList) Contains_1_(str QLatin1String_ITF) bool

Returns true if the list contains the string str; otherwise returns false. The search is case insensitive if cs is Qt::CaseInsensitive; the search is case sensitive by default.

See also indexOf(), lastIndexOf(), and QString::contains().

func (*QStringList) Contains__

func (this *QStringList) Contains__(str string) bool

Returns true if the list contains the string str; otherwise returns false. The search is case insensitive if cs is Qt::CaseInsensitive; the search is case sensitive by default.

See also indexOf(), lastIndexOf(), and QString::contains().

func (*QStringList) GetCthis

func (this *QStringList) GetCthis() unsafe.Pointer

func (*QStringList) IndexOf

func (this *QStringList) IndexOf(rx QRegExp_ITF, from int) int

Returns the index position of the first exact match of rx in the list, searching forward from index position from. Returns -1 if no item matched.

By default, this function is case sensitive.

See also lastIndexOf(), contains(), and QRegExp::exactMatch().

func (*QStringList) IndexOf_1

func (this *QStringList) IndexOf_1(rx QRegExp_ITF, from int) int

Returns the index position of the first exact match of rx in the list, searching forward from index position from. Returns -1 if no item matched.

By default, this function is case sensitive.

See also lastIndexOf(), contains(), and QRegExp::exactMatch().

func (*QStringList) IndexOf_1_

func (this *QStringList) IndexOf_1_(rx QRegExp_ITF) int

Returns the index position of the first exact match of rx in the list, searching forward from index position from. Returns -1 if no item matched.

By default, this function is case sensitive.

See also lastIndexOf(), contains(), and QRegExp::exactMatch().

func (*QStringList) IndexOf_2

func (this *QStringList) IndexOf_2(re QRegularExpression_ITF, from int) int

Returns the index position of the first exact match of rx in the list, searching forward from index position from. Returns -1 if no item matched.

By default, this function is case sensitive.

See also lastIndexOf(), contains(), and QRegExp::exactMatch().

func (*QStringList) IndexOf_2_

func (this *QStringList) IndexOf_2_(re QRegularExpression_ITF) int

Returns the index position of the first exact match of rx in the list, searching forward from index position from. Returns -1 if no item matched.

By default, this function is case sensitive.

See also lastIndexOf(), contains(), and QRegExp::exactMatch().

func (*QStringList) IndexOf__

func (this *QStringList) IndexOf__(rx QRegExp_ITF) int

Returns the index position of the first exact match of rx in the list, searching forward from index position from. Returns -1 if no item matched.

By default, this function is case sensitive.

See also lastIndexOf(), contains(), and QRegExp::exactMatch().

func (*QStringList) LastIndexOf

func (this *QStringList) LastIndexOf(rx QRegExp_ITF, from int) int

Returns the index position of the last exact match of rx in the list, searching backward from index position from. If from is -1 (the default), the search starts at the last item. Returns -1 if no item matched.

By default, this function is case sensitive.

See also indexOf(), contains(), and QRegExp::exactMatch().

func (*QStringList) LastIndexOf_1

func (this *QStringList) LastIndexOf_1(rx QRegExp_ITF, from int) int

Returns the index position of the last exact match of rx in the list, searching backward from index position from. If from is -1 (the default), the search starts at the last item. Returns -1 if no item matched.

By default, this function is case sensitive.

See also indexOf(), contains(), and QRegExp::exactMatch().

func (*QStringList) LastIndexOf_1_

func (this *QStringList) LastIndexOf_1_(rx QRegExp_ITF) int

Returns the index position of the last exact match of rx in the list, searching backward from index position from. If from is -1 (the default), the search starts at the last item. Returns -1 if no item matched.

By default, this function is case sensitive.

See also indexOf(), contains(), and QRegExp::exactMatch().

func (*QStringList) LastIndexOf_2

func (this *QStringList) LastIndexOf_2(re QRegularExpression_ITF, from int) int

Returns the index position of the last exact match of rx in the list, searching backward from index position from. If from is -1 (the default), the search starts at the last item. Returns -1 if no item matched.

By default, this function is case sensitive.

See also indexOf(), contains(), and QRegExp::exactMatch().

func (*QStringList) LastIndexOf_2_

func (this *QStringList) LastIndexOf_2_(re QRegularExpression_ITF) int

Returns the index position of the last exact match of rx in the list, searching backward from index position from. If from is -1 (the default), the search starts at the last item. Returns -1 if no item matched.

By default, this function is case sensitive.

See also indexOf(), contains(), and QRegExp::exactMatch().

func (*QStringList) LastIndexOf__

func (this *QStringList) LastIndexOf__(rx QRegExp_ITF) int

Returns the index position of the last exact match of rx in the list, searching backward from index position from. If from is -1 (the default), the search starts at the last item. Returns -1 if no item matched.

By default, this function is case sensitive.

See also indexOf(), contains(), and QRegExp::exactMatch().

func (*QStringList) NewFromPointer

func (*QStringList) NewFromPointer(cthis unsafe.Pointer) *QStringList

func (*QStringList) Operator_add

func (this *QStringList) Operator_add(other QStringList_ITF) *QStringList

func (*QStringList) Operator_left_shift

func (this *QStringList) Operator_left_shift(str string) *QStringList

func (*QStringList) Operator_left_shift_1

func (this *QStringList) Operator_left_shift_1(l QStringList_ITF) *QStringList

func (*QStringList) QStringList_PTR

func (ptr *QStringList) QStringList_PTR() *QStringList

func (*QStringList) SetCthis

func (this *QStringList) SetCthis(cthis unsafe.Pointer)

type QStringListModel

type QStringListModel struct {
	*QAbstractListModel
}

func NewQStringListModel

func NewQStringListModel(parent QObject_ITF) *QStringListModel

Constructs a string list model with the given parent.

func NewQStringListModelFromPointer

func NewQStringListModelFromPointer(cthis unsafe.Pointer) *QStringListModel

func NewQStringListModel_1

func NewQStringListModel_1(strings QStringList_ITF, parent QObject_ITF) *QStringListModel

Constructs a string list model with the given parent.

func NewQStringListModel_1_

func NewQStringListModel_1_(strings QStringList_ITF) *QStringListModel

Constructs a string list model with the given parent.

func NewQStringListModel__

func NewQStringListModel__() *QStringListModel

Constructs a string list model with the given parent.

func (*QStringListModel) Data

func (this *QStringListModel) Data(index QModelIndex_ITF, role int) *QVariant

Reimplemented from QAbstractItemModel::data().

Returns data for the specified role, from the item with the given index.

If the view requests an invalid index, an invalid variant is returned.

See also setData().

func (*QStringListModel) Data__

func (this *QStringListModel) Data__(index QModelIndex_ITF) *QVariant

Reimplemented from QAbstractItemModel::data().

Returns data for the specified role, from the item with the given index.

If the view requests an invalid index, an invalid variant is returned.

See also setData().

func (*QStringListModel) Flags

func (this *QStringListModel) Flags(index QModelIndex_ITF) int

Reimplemented from QAbstractItemModel::flags().

Returns the flags for the item with the given index.

Valid items are enabled, selectable, editable, drag enabled and drop enabled.

See also QAbstractItemModel::flags().

func (*QStringListModel) GetCthis

func (this *QStringListModel) GetCthis() unsafe.Pointer

func (*QStringListModel) InsertRows

func (this *QStringListModel) InsertRows(row int, count int, parent QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::insertRows().

Inserts count rows into the model, beginning at the given row.

The parent index of the rows is optional and is only used for consistency with QAbstractItemModel. By default, a null index is specified, indicating that the rows are inserted in the top level of the model.

See also QAbstractItemModel::insertRows().

func (*QStringListModel) InsertRows__

func (this *QStringListModel) InsertRows__(row int, count int) bool

Reimplemented from QAbstractItemModel::insertRows().

Inserts count rows into the model, beginning at the given row.

The parent index of the rows is optional and is only used for consistency with QAbstractItemModel. By default, a null index is specified, indicating that the rows are inserted in the top level of the model.

See also QAbstractItemModel::insertRows().

func (*QStringListModel) MetaObject

func (this *QStringListModel) MetaObject() *QMetaObject

func (*QStringListModel) NewFromPointer

func (*QStringListModel) NewFromPointer(cthis unsafe.Pointer) *QStringListModel

func (*QStringListModel) QStringListModel_PTR

func (ptr *QStringListModel) QStringListModel_PTR() *QStringListModel

func (*QStringListModel) RemoveRows

func (this *QStringListModel) RemoveRows(row int, count int, parent QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::removeRows().

Removes count rows from the model, beginning at the given row.

The parent index of the rows is optional and is only used for consistency with QAbstractItemModel. By default, a null index is specified, indicating that the rows are removed in the top level of the model.

See also QAbstractItemModel::removeRows().

func (*QStringListModel) RemoveRows__

func (this *QStringListModel) RemoveRows__(row int, count int) bool

Reimplemented from QAbstractItemModel::removeRows().

Removes count rows from the model, beginning at the given row.

The parent index of the rows is optional and is only used for consistency with QAbstractItemModel. By default, a null index is specified, indicating that the rows are removed in the top level of the model.

See also QAbstractItemModel::removeRows().

func (*QStringListModel) RowCount

func (this *QStringListModel) RowCount(parent QModelIndex_ITF) int

Reimplemented from QAbstractItemModel::rowCount().

Returns the number of rows in the model. This value corresponds to the number of items in the model's internal string list.

The optional parent argument is in most models used to specify the parent of the rows to be counted. Because this is a list if a valid parent is specified, the result will always be 0.

See also insertRows(), removeRows(), and QAbstractItemModel::rowCount().

func (*QStringListModel) RowCount__

func (this *QStringListModel) RowCount__() int

Reimplemented from QAbstractItemModel::rowCount().

Returns the number of rows in the model. This value corresponds to the number of items in the model's internal string list.

The optional parent argument is in most models used to specify the parent of the rows to be counted. Because this is a list if a valid parent is specified, the result will always be 0.

See also insertRows(), removeRows(), and QAbstractItemModel::rowCount().

func (*QStringListModel) SetCthis

func (this *QStringListModel) SetCthis(cthis unsafe.Pointer)

func (*QStringListModel) SetData

func (this *QStringListModel) SetData(index QModelIndex_ITF, value QVariant_ITF, role int) bool

Reimplemented from QAbstractItemModel::setData().

Sets the data for the specified role in the item with the given index in the model, to the provided value.

The dataChanged() signal is emitted if the item is changed.

See also Qt::ItemDataRole and data().

func (*QStringListModel) SetData__

func (this *QStringListModel) SetData__(index QModelIndex_ITF, value QVariant_ITF) bool

Reimplemented from QAbstractItemModel::setData().

Sets the data for the specified role in the item with the given index in the model, to the provided value.

The dataChanged() signal is emitted if the item is changed.

See also Qt::ItemDataRole and data().

func (*QStringListModel) SetStringList

func (this *QStringListModel) SetStringList(strings QStringList_ITF)

Sets the model's internal string list to strings. The model will notify any attached views that its underlying data has changed.

See also stringList() and dataChanged().

func (*QStringListModel) Sibling

func (this *QStringListModel) Sibling(row int, column int, idx QModelIndex_ITF) *QModelIndex

Reimplemented from QAbstractItemModel::sibling().

func (*QStringListModel) Sort

func (this *QStringListModel) Sort(column int, order int)

Reimplemented from QAbstractItemModel::sort().

func (*QStringListModel) Sort__

func (this *QStringListModel) Sort__(column int)

Reimplemented from QAbstractItemModel::sort().

func (*QStringListModel) StringList

func (this *QStringListModel) StringList() *QStringList

Returns the string list used by the model to store data.

See also setStringList().

func (*QStringListModel) SupportedDropActions

func (this *QStringListModel) SupportedDropActions() int

Reimplemented from QAbstractItemModel::supportedDropActions().

type QStringListModel_ITF

type QStringListModel_ITF interface {
	QAbstractListModel_ITF
	QStringListModel_PTR() *QStringListModel
}

type QStringList_ITF

type QStringList_ITF interface {
	QStringList_PTR() *QStringList
}

type QStringMatcher

type QStringMatcher struct {
	*qtrt.CObject
}

func NewQStringMatcher

func NewQStringMatcher() *QStringMatcher

Constructs an empty string matcher that won't match anything. Call setPattern() to give it a pattern to match.

func NewQStringMatcherFromPointer

func NewQStringMatcherFromPointer(cthis unsafe.Pointer) *QStringMatcher

func NewQStringMatcher_1

func NewQStringMatcher_1(pattern string, cs int) *QStringMatcher

Constructs an empty string matcher that won't match anything. Call setPattern() to give it a pattern to match.

func NewQStringMatcher_1_

func NewQStringMatcher_1_(pattern string) *QStringMatcher

Constructs an empty string matcher that won't match anything. Call setPattern() to give it a pattern to match.

func NewQStringMatcher_2

func NewQStringMatcher_2(uc QChar_ITF, len_ int, cs int) *QStringMatcher

Constructs an empty string matcher that won't match anything. Call setPattern() to give it a pattern to match.

func NewQStringMatcher_2_

func NewQStringMatcher_2_(uc QChar_ITF, len_ int) *QStringMatcher

Constructs an empty string matcher that won't match anything. Call setPattern() to give it a pattern to match.

func (*QStringMatcher) CaseSensitivity

func (this *QStringMatcher) CaseSensitivity() int

Returns the case sensitivity setting for this string matcher.

See also setCaseSensitivity().

func (*QStringMatcher) GetCthis

func (this *QStringMatcher) GetCthis() unsafe.Pointer

func (*QStringMatcher) IndexIn

func (this *QStringMatcher) IndexIn(str string, from int) int

Searches the string str from character position from (default 0, i.e. from the first character), for the string pattern() that was set in the constructor or in the most recent call to setPattern(). Returns the position where the pattern() matched in str, or -1 if no match was found.

See also setPattern() and setCaseSensitivity().

func (*QStringMatcher) IndexIn_1

func (this *QStringMatcher) IndexIn_1(str QChar_ITF, length int, from int) int

Searches the string str from character position from (default 0, i.e. from the first character), for the string pattern() that was set in the constructor or in the most recent call to setPattern(). Returns the position where the pattern() matched in str, or -1 if no match was found.

See also setPattern() and setCaseSensitivity().

func (*QStringMatcher) IndexIn_1_

func (this *QStringMatcher) IndexIn_1_(str QChar_ITF, length int) int

Searches the string str from character position from (default 0, i.e. from the first character), for the string pattern() that was set in the constructor or in the most recent call to setPattern(). Returns the position where the pattern() matched in str, or -1 if no match was found.

See also setPattern() and setCaseSensitivity().

func (*QStringMatcher) IndexIn__

func (this *QStringMatcher) IndexIn__(str string) int

Searches the string str from character position from (default 0, i.e. from the first character), for the string pattern() that was set in the constructor or in the most recent call to setPattern(). Returns the position where the pattern() matched in str, or -1 if no match was found.

See also setPattern() and setCaseSensitivity().

func (*QStringMatcher) NewFromPointer

func (*QStringMatcher) NewFromPointer(cthis unsafe.Pointer) *QStringMatcher

func (*QStringMatcher) Operator_equal

func (this *QStringMatcher) Operator_equal(other QStringMatcher_ITF) *QStringMatcher

func (*QStringMatcher) Pattern

func (this *QStringMatcher) Pattern() string

Returns the string pattern that this string matcher will search for.

See also setPattern().

func (*QStringMatcher) QStringMatcher_PTR

func (ptr *QStringMatcher) QStringMatcher_PTR() *QStringMatcher

func (*QStringMatcher) SetCaseSensitivity

func (this *QStringMatcher) SetCaseSensitivity(cs int)

Sets the case sensitivity setting of this string matcher to cs.

See also caseSensitivity(), setPattern(), and indexIn().

func (*QStringMatcher) SetCthis

func (this *QStringMatcher) SetCthis(cthis unsafe.Pointer)

func (*QStringMatcher) SetPattern

func (this *QStringMatcher) SetPattern(pattern string)

Sets the string that this string matcher will search for to pattern.

See also pattern(), setCaseSensitivity(), and indexIn().

type QStringMatcher_ITF

type QStringMatcher_ITF interface {
	QStringMatcher_PTR() *QStringMatcher
}

type QStringRef

type QStringRef struct {
	*qtrt.CObject
}

func NewQStringRef

func NewQStringRef() *QStringRef

func NewQStringRefFromPointer

func NewQStringRefFromPointer(cthis unsafe.Pointer) *QStringRef

func NewQStringRef_1

func NewQStringRef_1(string string, position int, size int) *QStringRef

func NewQStringRef_2

func NewQStringRef_2(string string) *QStringRef

func (*QStringRef) AppendTo

func (this *QStringRef) AppendTo(string string) *QStringRef

func (*QStringRef) At

func (this *QStringRef) At(i int) *QChar

Returns the character at the given index position in the string.

The position must be a valid index position in the string (i.e., 0 <= position < size()).

See also operator[]().

func (*QStringRef) Back

func (this *QStringRef) Back() *QChar

Returns the last character in the string. Same as at(size() - 1).

This function is provided for STL compatibility.

Warning: Calling this function on an empty string constitutes undefined behavior.

This function was introduced in Qt 5.10.

See also front(), at(), and operator[]().

func (*QStringRef) Begin

func (this *QStringRef) Begin() *QChar

Returns an STL-style iterator pointing to the first character in the string.

See also constBegin() and end().

func (*QStringRef) Cbegin

func (this *QStringRef) Cbegin() *QChar

Returns a const STL-style iterator pointing to the first character in the string.

This function was introduced in Qt 5.0.

See also begin() and cend().

func (*QStringRef) Cend

func (this *QStringRef) Cend() *QChar

Returns a const STL-style iterator pointing to the imaginary character after the last character in the list.

This function was introduced in Qt 5.0.

See also cbegin() and end().

func (*QStringRef) Chop

func (this *QStringRef) Chop(n int)

Removes n characters from the end of the string.

If n is greater than or equal to size(), the result is an empty string; if n is negative, it is equivalent to passing zero.

Example:

QString str("LOGOUT\r\n");
str.chop(2);
// str == "LOGOUT"

If you want to remove characters from the beginning of the string, use remove() instead.

See also truncate(), resize(), remove(), and QStringRef::chop().

func (*QStringRef) Chopped

func (this *QStringRef) Chopped(n int) *QStringRef

Returns a substring that contains the size() - len leftmost characters of this string.

Note: The behavior is undefined if len is negative or greater than size().

This function was introduced in Qt 5.10.

See also endsWith(), left(), right(), mid(), chop(), and truncate().

func (*QStringRef) Clear

func (this *QStringRef) Clear()

Clears the contents of the string and makes it null.

See also resize() and isNull().

func (*QStringRef) Compare

func (this *QStringRef) Compare(s string, cs int) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QStringRef) Compare_1

func (this *QStringRef) Compare_1(s QStringRef_ITF, cs int) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QStringRef) Compare_1_

func (this *QStringRef) Compare_1_(s QStringRef_ITF) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QStringRef) Compare_2

func (this *QStringRef) Compare_2(s QLatin1String_ITF, cs int) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QStringRef) Compare_2_

func (this *QStringRef) Compare_2_(s QLatin1String_ITF) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QStringRef) Compare_3

func (this *QStringRef) Compare_3(s QByteArray_ITF, cs int) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QStringRef) Compare_3_

func (this *QStringRef) Compare_3_(s QByteArray_ITF) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QStringRef) Compare_4

func (this *QStringRef) Compare_4(s1 QStringRef_ITF, s2 string, arg2 int) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QStringRef) Compare_4_

func (this *QStringRef) Compare_4_(s1 QStringRef_ITF, s2 string) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QStringRef) Compare_5

func (this *QStringRef) Compare_5(s1 QStringRef_ITF, s2 QStringRef_ITF, arg2 int) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QStringRef) Compare_5_

func (this *QStringRef) Compare_5_(s1 QStringRef_ITF, s2 QStringRef_ITF) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QStringRef) Compare_6

func (this *QStringRef) Compare_6(s1 QStringRef_ITF, s2 QLatin1String_ITF, cs int) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QStringRef) Compare_6_

func (this *QStringRef) Compare_6_(s1 QStringRef_ITF, s2 QLatin1String_ITF) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QStringRef) Compare__

func (this *QStringRef) Compare__(s string) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

If cs is Qt::CaseSensitive, the comparison is case sensitive; otherwise the comparison is case insensitive.

Case sensitive comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-visible strings with localeAwareCompare().

int x = QString::compare("aUtO", "AuTo", Qt::CaseInsensitive);  // x == 0
int y = QString::compare("auto", "Car", Qt::CaseSensitive);     // y > 0
int z = QString::compare("auto", "Car", Qt::CaseInsensitive);   // z < 0

This function was introduced in Qt 4.2.

See also operator==(), operator<(), and operator>().

func (*QStringRef) ConstBegin

func (this *QStringRef) ConstBegin() *QChar

Returns a const STL-style iterator pointing to the first character in the string.

See also begin() and constEnd().

func (*QStringRef) ConstData

func (this *QStringRef) ConstData() *QChar

Returns a pointer to the data stored in the QString. The pointer can be used to access the characters that compose the string.

Note that the pointer remains valid only as long as the string is not modified.

Note: The returned string may not be '\0'-terminated. Use size() to determine the length of the array.

See also data(), operator[](), and fromRawData().

func (*QStringRef) ConstEnd

func (this *QStringRef) ConstEnd() *QChar

Returns a const STL-style iterator pointing to the imaginary character after the last character in the list.

See also constBegin() and end().

func (*QStringRef) Contains

func (this *QStringRef) Contains(str string, cs int) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QStringRef) Contains_1

func (this *QStringRef) Contains_1(ch QChar_ITF, cs int) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QStringRef) Contains_1_

func (this *QStringRef) Contains_1_(ch QChar_ITF) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QStringRef) Contains_2

func (this *QStringRef) Contains_2(str QLatin1String_ITF, cs int) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QStringRef) Contains_2_

func (this *QStringRef) Contains_2_(str QLatin1String_ITF) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QStringRef) Contains_3

func (this *QStringRef) Contains_3(str QStringRef_ITF, cs int) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QStringRef) Contains_3_

func (this *QStringRef) Contains_3_(str QStringRef_ITF) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QStringRef) Contains__

func (this *QStringRef) Contains__(str string) bool

Returns true if this string contains an occurrence of the string str; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString str = "Peter Pan";
str.contains("peter", Qt::CaseInsensitive);    // returns true

See also indexOf() and count().

func (*QStringRef) Count

func (this *QStringRef) Count() int

Returns the number of (potentially overlapping) occurrences of the string str in this string.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

See also contains() and indexOf().

func (*QStringRef) Count_1

func (this *QStringRef) Count_1(s string, cs int) int

Returns the number of (potentially overlapping) occurrences of the string str in this string.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

See also contains() and indexOf().

func (*QStringRef) Count_1_

func (this *QStringRef) Count_1_(s string) int

Returns the number of (potentially overlapping) occurrences of the string str in this string.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

See also contains() and indexOf().

func (*QStringRef) Count_2

func (this *QStringRef) Count_2(c QChar_ITF, cs int) int

Returns the number of (potentially overlapping) occurrences of the string str in this string.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

See also contains() and indexOf().

func (*QStringRef) Count_2_

func (this *QStringRef) Count_2_(c QChar_ITF) int

Returns the number of (potentially overlapping) occurrences of the string str in this string.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

See also contains() and indexOf().

func (*QStringRef) Count_3

func (this *QStringRef) Count_3(s QStringRef_ITF, cs int) int

Returns the number of (potentially overlapping) occurrences of the string str in this string.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

See also contains() and indexOf().

func (*QStringRef) Count_3_

func (this *QStringRef) Count_3_(s QStringRef_ITF) int

Returns the number of (potentially overlapping) occurrences of the string str in this string.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

See also contains() and indexOf().

func (*QStringRef) Data

func (this *QStringRef) Data() *QChar

Returns a pointer to the data stored in the QString. The pointer can be used to access and modify the characters that compose the string.

Unlike constData() and unicode(), the returned data is always '\0'-terminated.

Example:

QString str = "Hello world";
QChar *data = str.data();
while (!data->isNull()) {
    qDebug() << data->unicode();
    ++data;
}

Note that the pointer remains valid only as long as the string is not modified by other means. For read-only access, constData() is faster because it never causes a deep copy to occur.

See also constData() and operator[]().

func (*QStringRef) End

func (this *QStringRef) End() *QChar

Returns an STL-style iterator pointing to the imaginary character after the last character in the string.

See also begin() and constEnd().

func (*QStringRef) EndsWith

func (this *QStringRef) EndsWith(s QStringView_ITF, cs int) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QStringRef) EndsWith_1

func (this *QStringRef) EndsWith_1(s QLatin1String_ITF, cs int) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QStringRef) EndsWith_1_

func (this *QStringRef) EndsWith_1_(s QLatin1String_ITF) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QStringRef) EndsWith_2

func (this *QStringRef) EndsWith_2(c QChar_ITF, cs int) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QStringRef) EndsWith_2_

func (this *QStringRef) EndsWith_2_(c QChar_ITF) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QStringRef) EndsWith_3

func (this *QStringRef) EndsWith_3(s string, cs int) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QStringRef) EndsWith_3_

func (this *QStringRef) EndsWith_3_(s string) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QStringRef) EndsWith_4

func (this *QStringRef) EndsWith_4(c QStringRef_ITF, cs int) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QStringRef) EndsWith_4_

func (this *QStringRef) EndsWith_4_(c QStringRef_ITF) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QStringRef) EndsWith__

func (this *QStringRef) EndsWith__(s QStringView_ITF) bool

Returns true if the string ends with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.endsWith("anas");         // returns true
str.endsWith("pple");         // returns false

See also startsWith().

func (*QStringRef) Front

func (this *QStringRef) Front() *QChar

Returns the first character in the string. Same as at(0).

This function is provided for STL compatibility.

Warning: Calling this function on an empty string constitutes undefined behavior.

This function was introduced in Qt 5.10.

See also back(), at(), and operator[]().

func (*QStringRef) GetCthis

func (this *QStringRef) GetCthis() unsafe.Pointer

func (*QStringRef) IndexOf

func (this *QStringRef) IndexOf(str string, from int, cs int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QStringRef) IndexOf_1

func (this *QStringRef) IndexOf_1(ch QChar_ITF, from int, cs int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QStringRef) IndexOf_1_

func (this *QStringRef) IndexOf_1_(ch QChar_ITF) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QStringRef) IndexOf_1_1

func (this *QStringRef) IndexOf_1_1(ch QChar_ITF, from int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QStringRef) IndexOf_2

func (this *QStringRef) IndexOf_2(str QLatin1String_ITF, from int, cs int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QStringRef) IndexOf_2_

func (this *QStringRef) IndexOf_2_(str QLatin1String_ITF) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QStringRef) IndexOf_2_1

func (this *QStringRef) IndexOf_2_1(str QLatin1String_ITF, from int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QStringRef) IndexOf_3

func (this *QStringRef) IndexOf_3(str QStringRef_ITF, from int, cs int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QStringRef) IndexOf_3_

func (this *QStringRef) IndexOf_3_(str QStringRef_ITF) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QStringRef) IndexOf_3_1

func (this *QStringRef) IndexOf_3_1(str QStringRef_ITF, from int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QStringRef) IndexOf__

func (this *QStringRef) IndexOf__(str string) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QStringRef) IndexOf__1

func (this *QStringRef) IndexOf__1(str string, from int) int

Returns the index position of the first occurrence of the string str in this string, searching forward from index position from. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "sticky question";
QString y = "sti";
x.indexOf(y);               // returns 0
x.indexOf(y, 1);            // returns 10
x.indexOf(y, 10);           // returns 10
x.indexOf(y, 11);           // returns -1

If from is -1, the search starts at the last character; if it is -2, at the next to last character and so on.

See also lastIndexOf(), contains(), and count().

func (*QStringRef) IsEmpty

func (this *QStringRef) IsEmpty() bool

Returns true if the string has no characters; otherwise returns false.

Example:

QString().isEmpty();            // returns true
QString("").isEmpty();          // returns true
QString("x").isEmpty();         // returns false
QString("abc").isEmpty();       // returns false

See also size().

func (*QStringRef) IsNull

func (this *QStringRef) IsNull() bool

Returns true if this string is null; otherwise returns false.

Example:

QString().isNull();             // returns true
QString("").isNull();           // returns false
QString("abc").isNull();        // returns false

Qt makes a distinction between null strings and empty strings for historical reasons. For most applications, what matters is whether or not a string contains any data, and this can be determined using the isEmpty() function.

See also isEmpty().

func (*QStringRef) IsRightToLeft

func (this *QStringRef) IsRightToLeft() bool

Returns true if the string is read right to left.

See also QStringRef::isRightToLeft().

func (*QStringRef) LastIndexOf

func (this *QStringRef) LastIndexOf(str string, from int, cs int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QStringRef) LastIndexOf_1

func (this *QStringRef) LastIndexOf_1(ch QChar_ITF, from int, cs int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QStringRef) LastIndexOf_1_

func (this *QStringRef) LastIndexOf_1_(ch QChar_ITF) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QStringRef) LastIndexOf_1_1

func (this *QStringRef) LastIndexOf_1_1(ch QChar_ITF, from int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QStringRef) LastIndexOf_2

func (this *QStringRef) LastIndexOf_2(str QLatin1String_ITF, from int, cs int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QStringRef) LastIndexOf_2_

func (this *QStringRef) LastIndexOf_2_(str QLatin1String_ITF) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QStringRef) LastIndexOf_2_1

func (this *QStringRef) LastIndexOf_2_1(str QLatin1String_ITF, from int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QStringRef) LastIndexOf_3

func (this *QStringRef) LastIndexOf_3(str QStringRef_ITF, from int, cs int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QStringRef) LastIndexOf_3_

func (this *QStringRef) LastIndexOf_3_(str QStringRef_ITF) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QStringRef) LastIndexOf_3_1

func (this *QStringRef) LastIndexOf_3_1(str QStringRef_ITF, from int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QStringRef) LastIndexOf__

func (this *QStringRef) LastIndexOf__(str string) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QStringRef) LastIndexOf__1

func (this *QStringRef) LastIndexOf__1(str string, from int) int

Returns the index position of the last occurrence of the string str in this string, searching backward from index position from. If from is -1 (default), the search starts at the last character; if from is -2, at the next to last character and so on. Returns -1 if str is not found.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

Example:

QString x = "crazy azimuths";
QString y = "az";
x.lastIndexOf(y);           // returns 6
x.lastIndexOf(y, 6);        // returns 6
x.lastIndexOf(y, 5);        // returns 2
x.lastIndexOf(y, 1);        // returns -1

See also indexOf(), contains(), and count().

func (*QStringRef) Left

func (this *QStringRef) Left(n int) *QStringRef

Returns a substring that contains the n leftmost characters of the string.

The entire string is returned if n is greater than or equal to size(), or less than zero.

QString x = "Pineapple";
QString y = x.left(4);      // y == "Pine"

See also right(), mid(), startsWith(), chopped(), chop(), and truncate().

func (*QStringRef) Length

func (this *QStringRef) Length() int

Returns the number of characters in this string. Equivalent to size().

See also resize().

func (*QStringRef) LocaleAwareCompare

func (this *QStringRef) LocaleAwareCompare(s string) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

The comparison is performed in a locale- and also platform-dependent manner. Use this function to present sorted lists of strings to the user.

On macOS and iOS this function compares according the "Order for sorted lists" setting in the International preferences panel.

See also compare() and QLocale.

func (*QStringRef) LocaleAwareCompare_1

func (this *QStringRef) LocaleAwareCompare_1(s QStringRef_ITF) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

The comparison is performed in a locale- and also platform-dependent manner. Use this function to present sorted lists of strings to the user.

On macOS and iOS this function compares according the "Order for sorted lists" setting in the International preferences panel.

See also compare() and QLocale.

func (*QStringRef) LocaleAwareCompare_2

func (this *QStringRef) LocaleAwareCompare_2(s1 QStringRef_ITF, s2 string) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

The comparison is performed in a locale- and also platform-dependent manner. Use this function to present sorted lists of strings to the user.

On macOS and iOS this function compares according the "Order for sorted lists" setting in the International preferences panel.

See also compare() and QLocale.

func (*QStringRef) LocaleAwareCompare_3

func (this *QStringRef) LocaleAwareCompare_3(s1 QStringRef_ITF, s2 QStringRef_ITF) int

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

The comparison is performed in a locale- and also platform-dependent manner. Use this function to present sorted lists of strings to the user.

On macOS and iOS this function compares according the "Order for sorted lists" setting in the International preferences panel.

See also compare() and QLocale.

func (*QStringRef) Mid

func (this *QStringRef) Mid(pos int, n int) *QStringRef

Returns a string that contains n characters of this string, starting at the specified position index.

Returns a null string if the position index exceeds the length of the string. If there are less than n characters available in the string starting at the given position, or if n is -1 (default), the function returns all characters that are available from the specified position.

Example:

QString x = "Nine pineapples";
QString y = x.mid(5, 4);            // y == "pine"
QString z = x.mid(5);               // z == "pineapples"

See also left(), right(), chopped(), chop(), and truncate().

func (*QStringRef) Mid__

func (this *QStringRef) Mid__(pos int) *QStringRef

Returns a string that contains n characters of this string, starting at the specified position index.

Returns a null string if the position index exceeds the length of the string. If there are less than n characters available in the string starting at the given position, or if n is -1 (default), the function returns all characters that are available from the specified position.

Example:

QString x = "Nine pineapples";
QString y = x.mid(5, 4);            // y == "pine"
QString z = x.mid(5);               // z == "pineapples"

See also left(), right(), chopped(), chop(), and truncate().

func (*QStringRef) NewFromPointer

func (*QStringRef) NewFromPointer(cthis unsafe.Pointer) *QStringRef

func (*QStringRef) Operator_equal

func (this *QStringRef) Operator_equal(other unsafe.Pointer) *QStringRef

func (*QStringRef) Operator_equal_1

func (this *QStringRef) Operator_equal_1(other QStringRef_ITF) *QStringRef

func (*QStringRef) Operator_equal_2

func (this *QStringRef) Operator_equal_2(string string) *QStringRef

func (*QStringRef) Operator_equal_equal

func (this *QStringRef) Operator_equal_equal(s string) bool

func (*QStringRef) Operator_get_index

func (this *QStringRef) Operator_get_index(i int) *QChar

func (*QStringRef) Operator_greater_than

func (this *QStringRef) Operator_greater_than(s string) bool

func (*QStringRef) Operator_greater_than_equal

func (this *QStringRef) Operator_greater_than_equal(s string) bool

func (*QStringRef) Operator_less_than

func (this *QStringRef) Operator_less_than(s string) bool

func (*QStringRef) Operator_less_than_equal

func (this *QStringRef) Operator_less_than_equal(s string) bool

func (*QStringRef) Operator_not_equal

func (this *QStringRef) Operator_not_equal(s string) bool

func (*QStringRef) Position

func (this *QStringRef) Position() int

func (*QStringRef) QStringRef_PTR

func (ptr *QStringRef) QStringRef_PTR() *QStringRef

func (*QStringRef) Right

func (this *QStringRef) Right(n int) *QStringRef

Returns a substring that contains the n rightmost characters of the string.

The entire string is returned if n is greater than or equal to size(), or less than zero.

QString x = "Pineapple";
QString y = x.right(5);      // y == "apple"

See also left(), mid(), endsWith(), chopped(), chop(), and truncate().

func (*QStringRef) SetCthis

func (this *QStringRef) SetCthis(cthis unsafe.Pointer)

func (*QStringRef) Size

func (this *QStringRef) Size() int

Returns the number of characters in this string.

The last character in the string is at position size() - 1.

Example:

QString str = "World";
int n = str.size();         // n == 5
str.data()[0];              // returns 'W'
str.data()[4];              // returns 'd'

See also isEmpty() and resize().

func (*QStringRef) StartsWith

func (this *QStringRef) StartsWith(s QStringView_ITF, cs int) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QStringRef) StartsWith_1

func (this *QStringRef) StartsWith_1(s QLatin1String_ITF, cs int) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QStringRef) StartsWith_1_

func (this *QStringRef) StartsWith_1_(s QLatin1String_ITF) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QStringRef) StartsWith_2

func (this *QStringRef) StartsWith_2(c QChar_ITF, cs int) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QStringRef) StartsWith_2_

func (this *QStringRef) StartsWith_2_(c QChar_ITF) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QStringRef) StartsWith_3

func (this *QStringRef) StartsWith_3(s string, cs int) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QStringRef) StartsWith_3_

func (this *QStringRef) StartsWith_3_(s string) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QStringRef) StartsWith_4

func (this *QStringRef) StartsWith_4(c QStringRef_ITF, cs int) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QStringRef) StartsWith_4_

func (this *QStringRef) StartsWith_4_(c QStringRef_ITF) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QStringRef) StartsWith__

func (this *QStringRef) StartsWith__(s QStringView_ITF) bool

Returns true if the string starts with s; otherwise returns false.

If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive.

QString str = "Bananas";
str.startsWith("Ban");     // returns true
str.startsWith("Car");     // returns false

See also endsWith().

func (*QStringRef) String

func (this *QStringRef) String() string

func (*QStringRef) ToDouble

func (this *QStringRef) ToDouble(ok *bool) float64

Returns the string converted to a double value.

Returns 0.0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

QString str = "1234.56";
double val = str.toDouble();   // val == 1234.56

Warning: The QString content may only contain valid numerical characters which includes the plus/minus sign, the characters g and e used in scientific notation, and the decimal point. Including the unit or additional characters leads to a conversion error.

bool ok;
double d;

d = QString( "1234.56e-02" ).toDouble(&ok); // ok == true, d == 12.3456

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toDouble()

d = QString( "1234,56" ).toDouble(&ok); // ok == false
d = QString( "1234.56" ).toDouble(&ok); // ok == true, d == 1234.56

For historical reasons, this function does not handle thousands group separators. If you need to convert such numbers, use QLocale::toDouble().

d = QString( "1,234,567.89" ).toDouble(&ok); // ok == false
d = QString( "1234567.89" ).toDouble(&ok); // ok == true

See also number(), QLocale::setDefault(), QLocale::toDouble(), and trimmed().

func (*QStringRef) ToDouble__

func (this *QStringRef) ToDouble__() float64

Returns the string converted to a double value.

Returns 0.0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

QString str = "1234.56";
double val = str.toDouble();   // val == 1234.56

Warning: The QString content may only contain valid numerical characters which includes the plus/minus sign, the characters g and e used in scientific notation, and the decimal point. Including the unit or additional characters leads to a conversion error.

bool ok;
double d;

d = QString( "1234.56e-02" ).toDouble(&ok); // ok == true, d == 12.3456

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toDouble()

d = QString( "1234,56" ).toDouble(&ok); // ok == false
d = QString( "1234.56" ).toDouble(&ok); // ok == true, d == 1234.56

For historical reasons, this function does not handle thousands group separators. If you need to convert such numbers, use QLocale::toDouble().

d = QString( "1,234,567.89" ).toDouble(&ok); // ok == false
d = QString( "1234567.89" ).toDouble(&ok); // ok == true

See also number(), QLocale::setDefault(), QLocale::toDouble(), and trimmed().

func (*QStringRef) ToFloat

func (this *QStringRef) ToFloat(ok *bool) float32

Returns the string converted to a float value.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true. Returns 0.0 if the conversion fails.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toFloat()

Example:

QString str1 = "1234.56";
str1.toFloat();             // returns 1234.56

bool ok;
QString str2 = "R2D2";
str2.toFloat(&ok);          // returns 0.0, sets ok to false

See also number(), toDouble(), toInt(), and QLocale::toFloat().

func (*QStringRef) ToFloat__

func (this *QStringRef) ToFloat__() float32

Returns the string converted to a float value.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true. Returns 0.0 if the conversion fails.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toFloat()

Example:

QString str1 = "1234.56";
str1.toFloat();             // returns 1234.56

bool ok;
QString str2 = "R2D2";
str2.toFloat(&ok);          // returns 0.0, sets ok to false

See also number(), toDouble(), toInt(), and QLocale::toFloat().

func (*QStringRef) ToInt

func (this *QStringRef) ToInt(ok *bool, base int) int

Returns the string converted to an int using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toInt()

Example:

QString str = "FF";
bool ok;
int hex = str.toInt(&ok, 16);       // hex == 255, ok == true
int dec = str.toInt(&ok, 10);       // dec == 0, ok == false

See also number(), toUInt(), toDouble(), and QLocale::toInt().

func (*QStringRef) ToInt__

func (this *QStringRef) ToInt__() int

Returns the string converted to an int using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toInt()

Example:

QString str = "FF";
bool ok;
int hex = str.toInt(&ok, 16);       // hex == 255, ok == true
int dec = str.toInt(&ok, 10);       // dec == 0, ok == false

See also number(), toUInt(), toDouble(), and QLocale::toInt().

func (*QStringRef) ToInt__1

func (this *QStringRef) ToInt__1(ok *bool) int

Returns the string converted to an int using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toInt()

Example:

QString str = "FF";
bool ok;
int hex = str.toInt(&ok, 16);       // hex == 255, ok == true
int dec = str.toInt(&ok, 10);       // dec == 0, ok == false

See also number(), toUInt(), toDouble(), and QLocale::toInt().

func (*QStringRef) ToLatin1

func (this *QStringRef) ToLatin1() *QByteArray

Returns a Latin-1 representation of the string as a QByteArray.

The returned byte array is undefined if the string contains non-Latin1 characters. Those characters may be suppressed or replaced with a question mark.

See also fromLatin1(), toUtf8(), toLocal8Bit(), QTextCodec, and qConvertToLatin1().

func (*QStringRef) ToLocal8Bit

func (this *QStringRef) ToLocal8Bit() *QByteArray

Returns the local 8-bit representation of the string as a QByteArray. The returned byte array is undefined if the string contains characters not supported by the local 8-bit encoding.

QTextCodec::codecForLocale() is used to perform the conversion from Unicode. If the locale encoding could not be determined, this function does the same as toLatin1().

If this string contains any characters that cannot be encoded in the locale, the returned byte array is undefined. Those characters may be suppressed or replaced by another.

See also fromLocal8Bit(), toLatin1(), toUtf8(), and QTextCodec.

func (*QStringRef) ToLong

func (this *QStringRef) ToLong(ok *bool, base int) int

Returns the string converted to a long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toLongLong()

Example:

QString str = "FF";
bool ok;

long hex = str.toLong(&ok, 16);     // hex == 255, ok == true
long dec = str.toLong(&ok, 10);     // dec == 0, ok == false

See also number(), toULong(), toInt(), and QLocale::toInt().

func (*QStringRef) ToLongLong

func (this *QStringRef) ToLongLong(ok *bool, base int) int64

Returns the string converted to a long long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toLongLong()

Example:

QString str = "FF";
bool ok;

qint64 hex = str.toLongLong(&ok, 16);      // hex == 255, ok == true
qint64 dec = str.toLongLong(&ok, 10);      // dec == 0, ok == false

See also number(), toULongLong(), toInt(), and QLocale::toLongLong().

func (*QStringRef) ToLongLong__

func (this *QStringRef) ToLongLong__() int64

Returns the string converted to a long long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toLongLong()

Example:

QString str = "FF";
bool ok;

qint64 hex = str.toLongLong(&ok, 16);      // hex == 255, ok == true
qint64 dec = str.toLongLong(&ok, 10);      // dec == 0, ok == false

See also number(), toULongLong(), toInt(), and QLocale::toLongLong().

func (*QStringRef) ToLongLong__1

func (this *QStringRef) ToLongLong__1(ok *bool) int64

Returns the string converted to a long long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toLongLong()

Example:

QString str = "FF";
bool ok;

qint64 hex = str.toLongLong(&ok, 16);      // hex == 255, ok == true
qint64 dec = str.toLongLong(&ok, 10);      // dec == 0, ok == false

See also number(), toULongLong(), toInt(), and QLocale::toLongLong().

func (*QStringRef) ToLong__

func (this *QStringRef) ToLong__() int

Returns the string converted to a long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toLongLong()

Example:

QString str = "FF";
bool ok;

long hex = str.toLong(&ok, 16);     // hex == 255, ok == true
long dec = str.toLong(&ok, 10);     // dec == 0, ok == false

See also number(), toULong(), toInt(), and QLocale::toInt().

func (*QStringRef) ToLong__1

func (this *QStringRef) ToLong__1(ok *bool) int

Returns the string converted to a long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toLongLong()

Example:

QString str = "FF";
bool ok;

long hex = str.toLong(&ok, 16);     // hex == 255, ok == true
long dec = str.toLong(&ok, 10);     // dec == 0, ok == false

See also number(), toULong(), toInt(), and QLocale::toInt().

func (*QStringRef) ToShort

func (this *QStringRef) ToShort(ok *bool, base int) int16

Returns the string converted to a short using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toShort()

Example:

QString str = "FF";
bool ok;

short hex = str.toShort(&ok, 16);   // hex == 255, ok == true
short dec = str.toShort(&ok, 10);   // dec == 0, ok == false

See also number(), toUShort(), toInt(), and QLocale::toShort().

func (*QStringRef) ToShort__

func (this *QStringRef) ToShort__() int16

Returns the string converted to a short using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toShort()

Example:

QString str = "FF";
bool ok;

short hex = str.toShort(&ok, 16);   // hex == 255, ok == true
short dec = str.toShort(&ok, 10);   // dec == 0, ok == false

See also number(), toUShort(), toInt(), and QLocale::toShort().

func (*QStringRef) ToShort__1

func (this *QStringRef) ToShort__1(ok *bool) int16

Returns the string converted to a short using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toShort()

Example:

QString str = "FF";
bool ok;

short hex = str.toShort(&ok, 16);   // hex == 255, ok == true
short dec = str.toShort(&ok, 10);   // dec == 0, ok == false

See also number(), toUShort(), toInt(), and QLocale::toShort().

func (*QStringRef) ToString

func (this *QStringRef) ToString() string

func (*QStringRef) ToUInt

func (this *QStringRef) ToUInt(ok *bool, base int) uint

Returns the string converted to an unsigned int using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toUInt()

Example:

QString str = "FF";
bool ok;

uint hex = str.toUInt(&ok, 16);     // hex == 255, ok == true
uint dec = str.toUInt(&ok, 10);     // dec == 0, ok == false

See also number(), toInt(), and QLocale::toUInt().

func (*QStringRef) ToUInt__

func (this *QStringRef) ToUInt__() uint

Returns the string converted to an unsigned int using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toUInt()

Example:

QString str = "FF";
bool ok;

uint hex = str.toUInt(&ok, 16);     // hex == 255, ok == true
uint dec = str.toUInt(&ok, 10);     // dec == 0, ok == false

See also number(), toInt(), and QLocale::toUInt().

func (*QStringRef) ToUInt__1

func (this *QStringRef) ToUInt__1(ok *bool) uint

Returns the string converted to an unsigned int using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toUInt()

Example:

QString str = "FF";
bool ok;

uint hex = str.toUInt(&ok, 16);     // hex == 255, ok == true
uint dec = str.toUInt(&ok, 10);     // dec == 0, ok == false

See also number(), toInt(), and QLocale::toUInt().

func (*QStringRef) ToULong

func (this *QStringRef) ToULong(ok *bool, base int) uint

Returns the string converted to an unsigned long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toULongLong()

Example:

QString str = "FF";
bool ok;

ulong hex = str.toULong(&ok, 16);   // hex == 255, ok == true
ulong dec = str.toULong(&ok, 10);   // dec == 0, ok == false

See also number() and QLocale::toUInt().

func (*QStringRef) ToULongLong

func (this *QStringRef) ToULongLong(ok *bool, base int) uint64

Returns the string converted to an unsigned long long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toULongLong()

Example:

QString str = "FF";
bool ok;

quint64 hex = str.toULongLong(&ok, 16);    // hex == 255, ok == true
quint64 dec = str.toULongLong(&ok, 10);    // dec == 0, ok == false

See also number(), toLongLong(), and QLocale::toULongLong().

func (*QStringRef) ToULongLong__

func (this *QStringRef) ToULongLong__() uint64

Returns the string converted to an unsigned long long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toULongLong()

Example:

QString str = "FF";
bool ok;

quint64 hex = str.toULongLong(&ok, 16);    // hex == 255, ok == true
quint64 dec = str.toULongLong(&ok, 10);    // dec == 0, ok == false

See also number(), toLongLong(), and QLocale::toULongLong().

func (*QStringRef) ToULongLong__1

func (this *QStringRef) ToULongLong__1(ok *bool) uint64

Returns the string converted to an unsigned long long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toULongLong()

Example:

QString str = "FF";
bool ok;

quint64 hex = str.toULongLong(&ok, 16);    // hex == 255, ok == true
quint64 dec = str.toULongLong(&ok, 10);    // dec == 0, ok == false

See also number(), toLongLong(), and QLocale::toULongLong().

func (*QStringRef) ToULong__

func (this *QStringRef) ToULong__() uint

Returns the string converted to an unsigned long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toULongLong()

Example:

QString str = "FF";
bool ok;

ulong hex = str.toULong(&ok, 16);   // hex == 255, ok == true
ulong dec = str.toULong(&ok, 10);   // dec == 0, ok == false

See also number() and QLocale::toUInt().

func (*QStringRef) ToULong__1

func (this *QStringRef) ToULong__1(ok *bool) uint

Returns the string converted to an unsigned long using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toULongLong()

Example:

QString str = "FF";
bool ok;

ulong hex = str.toULong(&ok, 16);   // hex == 255, ok == true
ulong dec = str.toULong(&ok, 10);   // dec == 0, ok == false

See also number() and QLocale::toUInt().

func (*QStringRef) ToUShort

func (this *QStringRef) ToUShort(ok *bool, base int) uint16

Returns the string converted to an unsigned short using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toUShort()

Example:

QString str = "FF";
bool ok;

ushort hex = str.toUShort(&ok, 16);     // hex == 255, ok == true
ushort dec = str.toUShort(&ok, 10);     // dec == 0, ok == false

See also number(), toShort(), and QLocale::toUShort().

func (*QStringRef) ToUShort__

func (this *QStringRef) ToUShort__() uint16

Returns the string converted to an unsigned short using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toUShort()

Example:

QString str = "FF";
bool ok;

ushort hex = str.toUShort(&ok, 16);     // hex == 255, ok == true
ushort dec = str.toUShort(&ok, 10);     // dec == 0, ok == false

See also number(), toShort(), and QLocale::toUShort().

func (*QStringRef) ToUShort__1

func (this *QStringRef) ToUShort__1(ok *bool) uint16

Returns the string converted to an unsigned short using base base, which is 10 by default and must be between 2 and 36, or 0. Returns 0 if the conversion fails.

If a conversion error occurs, *ok is set to false; otherwise *ok is set to true.

If base is 0, the C language convention is used: If the string begins with "0x", base 16 is used; if the string begins with "0", base 8 is used; otherwise, base 10 is used.

The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toUShort()

Example:

QString str = "FF";
bool ok;

ushort hex = str.toUShort(&ok, 16);     // hex == 255, ok == true
ushort dec = str.toUShort(&ok, 10);     // dec == 0, ok == false

See also number(), toShort(), and QLocale::toUShort().

func (*QStringRef) ToUtf8

func (this *QStringRef) ToUtf8() *QByteArray

Returns a UTF-8 representation of the string as a QByteArray.

UTF-8 is a Unicode codec and can represent all characters in a Unicode string like QString.

See also fromUtf8(), toLatin1(), toLocal8Bit(), QTextCodec, and qConvertToUtf8().

func (*QStringRef) Trimmed

func (this *QStringRef) Trimmed() *QStringRef

Returns a string that has whitespace removed from the start and the end.

Whitespace means any character for which QChar::isSpace() returns true. This includes the ASCII characters '\t', '\n', '\v', '\f', '\r', and ' '.

Example:

QString str = "  lots\t of\nwhitespace\r\n ";
str = str.trimmed();
// str == "lots\t of\nwhitespace"

Unlike simplified(), trimmed() leaves internal whitespace alone.

See also simplified().

func (*QStringRef) Truncate

func (this *QStringRef) Truncate(pos int)

Truncates the string at the given position index.

If the specified position index is beyond the end of the string, nothing happens.

Example:

QString str = "Vladivostok";
str.truncate(4);
// str == "Vlad"

If position is negative, it is equivalent to passing zero.

See also chop(), resize(), left(), and QStringRef::truncate().

func (*QStringRef) Unicode

func (this *QStringRef) Unicode() *QChar

Returns a Unicode representation of the string. The result remains valid until the string is modified.

Note: The returned string may not be '\0'-terminated. Use size() to determine the length of the array.

See also setUnicode(), utf16(), and fromRawData().

type QStringRef_ITF

type QStringRef_ITF interface {
	QStringRef_PTR() *QStringRef
}

type QStringView

type QStringView struct {
	*qtrt.CObject
}

func NewQStringView

func NewQStringView() *QStringView

Constructs a null string view.

See also isNull().

func NewQStringViewFromPointer

func NewQStringViewFromPointer(cthis unsafe.Pointer) *QStringView

func (*QStringView) At

func (this *QStringView) At(n int64) *QChar

Returns the character at position n in this string view.

The behavior is undefined if n is negative or not less than size().

See also operator[](), front(), and back().

func (*QStringView) Back

func (this *QStringView) Back() *QChar

Returns the last character in the string. Same as last().

This function is provided for STL compatibility.

Warning: Calling this function on an empty string view constitutes undefined behavior.

See also front(), first(), and last().

func (*QStringView) Begin

func (this *QStringView) Begin() *QChar

Returns a const STL-style iterator pointing to the first character in the string.

This function is provided for STL compatibility.

See also end(), cbegin(), rbegin(), and data().

func (*QStringView) Cbegin

func (this *QStringView) Cbegin() *QChar

Same as begin().

This function is provided for STL compatibility.

See also cend(), begin(), crbegin(), and data().

func (*QStringView) Cend

func (this *QStringView) Cend() *QChar

Same as end().

This function is provided for STL compatibility.

See also cbegin(), end(), and crend().

func (*QStringView) Chop

func (this *QStringView) Chop(n int64)

Truncates this string view by length characters.

Same as *this = left(size() - length).

Note: The behavior is undefined when length < 0 or length > size().

See also mid(), left(), right(), chopped(), and truncate().

func (*QStringView) Chopped

func (this *QStringView) Chopped(n int64) *QStringView

Returns the substring of length size() - length starting at the beginning of this object.

Same as left(size() - length).

Note: The behavior is undefined when length < 0 or length > size().

See also mid(), left(), right(), chop(), and truncate().

func (*QStringView) Data

func (this *QStringView) Data() *QChar

Returns a const pointer to the first character in the string.

Note: The character array represented by the return value is not null-terminated.

See also begin(), end(), and utf16().

func (*QStringView) Empty

func (this *QStringView) Empty() bool

Returns whether this string view is empty - that is, whether size() == 0.

This function is provided for STL compatibility.

See also isEmpty(), isNull(), size(), and length().

func (*QStringView) End

func (this *QStringView) End() *QChar

Returns a const STL-style iterator pointing to the imaginary character after the last character in the list.

This function is provided for STL compatibility.

See also begin(), cend(), and rend().

func (*QStringView) EndsWith

func (this *QStringView) EndsWith(s QStringView_ITF, cs int) bool

Returns true if this string-view ends with string-view str, Latin-1 string l1, or character ch, respectively; otherwise returns false.

If cs is Qt::CaseSensitive (the default), the search is case-sensitive; otherwise the search is case-insensitive.

See also startsWith().

func (*QStringView) EndsWith_1

func (this *QStringView) EndsWith_1(s QLatin1String_ITF, cs int) bool

Returns true if this string-view ends with string-view str, Latin-1 string l1, or character ch, respectively; otherwise returns false.

If cs is Qt::CaseSensitive (the default), the search is case-sensitive; otherwise the search is case-insensitive.

See also startsWith().

func (*QStringView) EndsWith_1_

func (this *QStringView) EndsWith_1_(s QLatin1String_ITF) bool

Returns true if this string-view ends with string-view str, Latin-1 string l1, or character ch, respectively; otherwise returns false.

If cs is Qt::CaseSensitive (the default), the search is case-sensitive; otherwise the search is case-insensitive.

See also startsWith().

func (*QStringView) EndsWith_2

func (this *QStringView) EndsWith_2(c QChar_ITF) bool

Returns true if this string-view ends with string-view str, Latin-1 string l1, or character ch, respectively; otherwise returns false.

If cs is Qt::CaseSensitive (the default), the search is case-sensitive; otherwise the search is case-insensitive.

See also startsWith().

func (*QStringView) EndsWith_3

func (this *QStringView) EndsWith_3(c QChar_ITF, cs int) bool

Returns true if this string-view ends with string-view str, Latin-1 string l1, or character ch, respectively; otherwise returns false.

If cs is Qt::CaseSensitive (the default), the search is case-sensitive; otherwise the search is case-insensitive.

See also startsWith().

func (*QStringView) EndsWith__

func (this *QStringView) EndsWith__(s QStringView_ITF) bool

Returns true if this string-view ends with string-view str, Latin-1 string l1, or character ch, respectively; otherwise returns false.

If cs is Qt::CaseSensitive (the default), the search is case-sensitive; otherwise the search is case-insensitive.

See also startsWith().

func (*QStringView) First

func (this *QStringView) First() *QChar

Returns the first character in the string. Same as front().

This function is provided for compatibility with other Qt containers.

Warning: Calling this function on an empty string view constitutes undefined behavior.

See also front(), back(), and last().

func (*QStringView) Front

func (this *QStringView) Front() *QChar

Returns the first character in the string. Same as first().

This function is provided for STL compatibility.

Warning: Calling this function on an empty string view constitutes undefined behavior.

See also back(), first(), and last().

func (*QStringView) GetCthis

func (this *QStringView) GetCthis() unsafe.Pointer

func (*QStringView) IsEmpty

func (this *QStringView) IsEmpty() bool

Returns whether this string view is empty - that is, whether size() == 0.

This function is provided for compatibility with other Qt containers.

See also empty(), isNull(), size(), and length().

func (*QStringView) IsNull

func (this *QStringView) IsNull() bool

Returns whether this string view is null - that is, whether data() == nullptr.

This functions is provided for compatibility with other Qt containers.

See also empty(), isEmpty(), size(), and length().

func (*QStringView) Last

func (this *QStringView) Last() *QChar

Returns the last character in the string. Same as back().

This function is provided for compatibility with other Qt containers.

Warning: Calling this function on an empty string view constitutes undefined behavior.

See also back(), front(), and first().

func (*QStringView) Left

func (this *QStringView) Left(n int64) *QStringView

Returns the substring of length length starting at position 0 in this object.

Note: The behavior is undefined when length < 0 or length > size().

See also mid(), right(), chopped(), chop(), and truncate().

func (*QStringView) Length

func (this *QStringView) Length() int

Same as size(), except returns the result as an int.

This function is provided for compatibility with other Qt containers.

Warning: QStringView can represent strings with more than 231 characters. Calling this function on a string view for which size() returns a value greater than INT_MAX constitutes undefined behavior.

See also empty(), isEmpty(), isNull(), and size().

func (*QStringView) Mid

func (this *QStringView) Mid(pos int64) *QStringView

Returns the substring starting at position start in this object, and extending to the end of the string.

Note: The behavior is undefined when start < 0 or start > size().

See also left(), right(), chopped(), chop(), and truncate().

func (*QStringView) Mid_1

func (this *QStringView) Mid_1(pos int64, n int64) *QStringView

Returns the substring starting at position start in this object, and extending to the end of the string.

Note: The behavior is undefined when start < 0 or start > size().

See also left(), right(), chopped(), chop(), and truncate().

func (*QStringView) NewFromPointer

func (*QStringView) NewFromPointer(cthis unsafe.Pointer) *QStringView

func (*QStringView) Operator_get_index

func (this *QStringView) Operator_get_index(n int64) *QChar

func (*QStringView) QStringView_PTR

func (ptr *QStringView) QStringView_PTR() *QStringView

func (*QStringView) Right

func (this *QStringView) Right(n int64) *QStringView

Returns the substring of length length starting at position size() - length in this object.

Note: The behavior is undefined when length < 0 or length > size().

See also mid(), left(), chopped(), chop(), and truncate().

func (*QStringView) SetCthis

func (this *QStringView) SetCthis(cthis unsafe.Pointer)

func (*QStringView) Size

func (this *QStringView) Size() int64

Returns the size of this string view, in UTF-16 code points (that is, surrogate pairs count as two for the purposes of this function, the same as in QString and QStringRef).

See also empty(), isEmpty(), isNull(), and length().

func (*QStringView) StartsWith

func (this *QStringView) StartsWith(s QStringView_ITF, cs int) bool

Returns true if this string-view starts with string-view str, Latin-1 string l1, or character ch, respectively; otherwise returns false.

If cs is Qt::CaseSensitive (the default), the search is case-sensitive; otherwise the search is case-insensitive.

See also endsWith().

func (*QStringView) StartsWith_1

func (this *QStringView) StartsWith_1(s QLatin1String_ITF, cs int) bool

Returns true if this string-view starts with string-view str, Latin-1 string l1, or character ch, respectively; otherwise returns false.

If cs is Qt::CaseSensitive (the default), the search is case-sensitive; otherwise the search is case-insensitive.

See also endsWith().

func (*QStringView) StartsWith_1_

func (this *QStringView) StartsWith_1_(s QLatin1String_ITF) bool

Returns true if this string-view starts with string-view str, Latin-1 string l1, or character ch, respectively; otherwise returns false.

If cs is Qt::CaseSensitive (the default), the search is case-sensitive; otherwise the search is case-insensitive.

See also endsWith().

func (*QStringView) StartsWith_2

func (this *QStringView) StartsWith_2(c QChar_ITF) bool

Returns true if this string-view starts with string-view str, Latin-1 string l1, or character ch, respectively; otherwise returns false.

If cs is Qt::CaseSensitive (the default), the search is case-sensitive; otherwise the search is case-insensitive.

See also endsWith().

func (*QStringView) StartsWith_3

func (this *QStringView) StartsWith_3(c QChar_ITF, cs int) bool

Returns true if this string-view starts with string-view str, Latin-1 string l1, or character ch, respectively; otherwise returns false.

If cs is Qt::CaseSensitive (the default), the search is case-sensitive; otherwise the search is case-insensitive.

See also endsWith().

func (*QStringView) StartsWith__

func (this *QStringView) StartsWith__(s QStringView_ITF) bool

Returns true if this string-view starts with string-view str, Latin-1 string l1, or character ch, respectively; otherwise returns false.

If cs is Qt::CaseSensitive (the default), the search is case-sensitive; otherwise the search is case-insensitive.

See also endsWith().

func (*QStringView) ToLatin1

func (this *QStringView) ToLatin1() *QByteArray

Returns a Latin-1 representation of the string as a QByteArray.

The behavior is undefined if the string contains non-Latin1 characters.

See also toUtf8(), toLocal8Bit(), QTextCodec, and qConvertToLatin1().

func (*QStringView) ToLocal8Bit

func (this *QStringView) ToLocal8Bit() *QByteArray

Returns a local 8-bit representation of the string as a QByteArray.

QTextCodec::codecForLocale() is used to perform the conversion from Unicode. If the locale's encoding could not be determined, this function does the same as toLatin1().

The behavior is undefined if the string contains characters not supported by the locale's 8-bit encoding.

See also toLatin1(), toUtf8(), and QTextCodec.

func (*QStringView) ToString

func (this *QStringView) ToString() string

Returns a deep copy of this string view's data as a QString.

The return value will be the null QString if and only if this string view is null.

Warning: QStringView can store strings with more than 230 characters while QString cannot. Calling this function on a string view for which size() returns a value greater than INT_MAX / 2 constitutes undefined behavior.

func (*QStringView) ToUtf8

func (this *QStringView) ToUtf8() *QByteArray

Returns a UTF-8 representation of the string as a QByteArray.

UTF-8 is a Unicode codec and can represent all characters in a Unicode string like QString.

See also toLatin1(), toLocal8Bit(), QTextCodec, and qConvertToUtf8().

func (*QStringView) Trimmed

func (this *QStringView) Trimmed() *QStringView

Strips leading and trailing whitespace and returns the result.

Whitespace means any character for which QChar::isSpace() returns true. This includes the ASCII characters '\t', '\n', '\v', '\f', '\r', and ' '.

func (*QStringView) Truncate

func (this *QStringView) Truncate(n int64)

Truncates this string view to length length.

Same as *this = left(length).

Note: The behavior is undefined when length < 0 or length > size().

See also mid(), left(), right(), chopped(), and chop().

func (*QStringView) Utf16

func (this *QStringView) Utf16() unsafe.Pointer

Returns a const pointer to the first character in the string.

storage_type is char16_t, except on MSVC 2013 (which lacks char16_t support), where it is wchar_t instead.

Note: The character array represented by the return value is not null-terminated.

See also begin(), end(), and data().

type QStringView_ITF

type QStringView_ITF interface {
	QStringView_PTR() *QStringView
}

type QString_ITF

type QString_ITF interface {
	QString_PTR() *QString
}

type QString__NormalizationForm

type QString__NormalizationForm = int

This enum describes the various normalized forms of Unicode text.

See also normalized() and Unicode Standard Annex #15.

const QString__NormalizationForm_C QString__NormalizationForm = 1

Canonical Decomposition followed by Canonical Composition

const QString__NormalizationForm_D QString__NormalizationForm = 0

Canonical Decomposition

const QString__NormalizationForm_KC QString__NormalizationForm = 3

Compatibility Decomposition followed by Canonical Composition

const QString__NormalizationForm_KD QString__NormalizationForm = 2

Compatibility Decomposition

type QString__SectionFlag

type QString__SectionFlag = int
const QString__SectionCaseInsensitiveSeps QString__SectionFlag = 8
const QString__SectionDefault QString__SectionFlag = 0
const QString__SectionIncludeLeadingSep QString__SectionFlag = 2
const QString__SectionIncludeTrailingSep QString__SectionFlag = 4
const QString__SectionSkipEmpty QString__SectionFlag = 1

type QString__SplitBehavior

type QString__SplitBehavior = int

This enum specifies how the split() function should behave with respect to empty strings.

See also split().

const QString__KeepEmptyParts QString__SplitBehavior = 0

If a field is empty, keep it in the result.

const QString__SkipEmptyParts QString__SplitBehavior = 1

If a field is empty, don't include it in the result.

type QSysInfo

type QSysInfo struct {
	*qtrt.CObject
}

func NewQSysInfoFromPointer

func NewQSysInfoFromPointer(cthis unsafe.Pointer) *QSysInfo

func (*QSysInfo) BuildAbi

func (this *QSysInfo) BuildAbi() string

Returns the full architecture string that Qt was compiled for. This string is useful for identifying different, incompatible builds. For example, it can be used as an identifier to request an upgrade package from a server.

The values returned from this function are kept stable as follows: the mandatory components of the result will not change in future versions of Qt, but optional suffixes may be added.

The returned value is composed of three or more parts, separated by dashes ("-"). They are:

ComponentValue

CPU ArchitectureThe same as QSysInfo::buildCpuArchitecture(), such as "arm", "i386", "mips" or "x86_64" Endianness"little_endian" or "big_endian" Word sizeWhether it's a 32- or 64-bit application. Possible values are: "llp64" (Windows 64-bit), "lp64" (Unix 64-bit), "ilp32" (32-bit) (Optional) ABIZero or more components identifying different ABIs possible in this architecture. Currently, Qt has optional ABI components for ARM and MIPS processors: one component is the main ABI (such as "eabi", "o32", "n32", "o64"); another is whether the calling convention is using hardware floating point registers ("hardfloat" is present).Additionally, if Qt was configured with -qreal float, the ABI option tag "qreal_float" will be present. If Qt was configured with another type as qreal, that type is present after "qreal_", with all characters other than letters and digits escaped by an underscore, followed by two hex digits. For example, -qreal long double becomes "qreal_long_20double".

This function was introduced in Qt 5.4.

See also QSysInfo::buildCpuArchitecture().

func (*QSysInfo) BuildCpuArchitecture

func (this *QSysInfo) BuildCpuArchitecture() string

Returns the architecture of the CPU that Qt was compiled for, in text format. Note that this may not match the actual CPU that the application is running on if there's an emulation layer or if the CPU supports multiple architectures (like x86-64 processors supporting i386 applications). To detect that, use currentCpuArchitecture().

Values returned by this function are stable and will not change over time, so applications can rely on the returned value as an identifier, except that new CPU types may be added over time.

Typical returned values are (note: list not exhaustive):

"arm" "arm64" "i386" "ia64" "mips" "mips64" "power" "power64" "sparc" "sparcv9" "x86_64"

This function was introduced in Qt 5.4.

See also QSysInfo::buildAbi() and QSysInfo::currentCpuArchitecture().

func (*QSysInfo) CurrentCpuArchitecture

func (this *QSysInfo) CurrentCpuArchitecture() string

Returns the architecture of the CPU that the application is running on, in text format. Note that this function depends on what the OS will report and may not detect the actual CPU architecture if the OS hides that information or is unable to provide it. For example, a 32-bit OS running on a 64-bit CPU is usually unable to determine the CPU is actually capable of running 64-bit programs.

Values returned by this function are mostly stable: an attempt will be made to ensure that they stay constant over time and match the values returned by QSysInfo::builldCpuArchitecture(). However, due to the nature of the operating system functions being used, there may be discrepancies.

Typical returned values are (note: list not exhaustive):

"arm" "arm64" "i386" "ia64" "mips" "mips64" "power" "power64" "sparc" "sparcv9" "x86_64"

This function was introduced in Qt 5.4.

See also QSysInfo::buildAbi() and QSysInfo::buildCpuArchitecture().

func (*QSysInfo) GetCthis

func (this *QSysInfo) GetCthis() unsafe.Pointer

func (*QSysInfo) KernelType

func (this *QSysInfo) KernelType() string

Returns the type of the operating system kernel Qt was compiled for. It's also the kernel the application is running on, unless the host operating system is running a form of compatibility or virtualization layer.

Values returned by this function are stable and will not change over time, so applications can rely on the returned value as an identifier, except that new OS kernel types may be added over time.

On Windows, this function returns the type of Windows kernel, like "winnt". On Unix systems, it returns the same as the output of uname -s (lowercased).

Note: This function may return surprising values: it returns "linux" for all operating systems running Linux (including Android), "qnx" for all operating systems running QNX, "freebsd" for Debian/kFreeBSD, and "darwin" for macOS and iOS. For information on the type of product the application is running on, see productType().

This function was introduced in Qt 5.4.

See also QFileSelector, kernelVersion(), productType(), productVersion(), and prettyProductName().

func (*QSysInfo) KernelVersion

func (this *QSysInfo) KernelVersion() string

Returns the release version of the operating system kernel. On Windows, it returns the version of the NT kernel. On Unix systems, including Android and macOS, it returns the same as the uname -r command would return.

If the version could not be determined, this function may return an empty string.

This function was introduced in Qt 5.4.

See also kernelType(), productType(), productVersion(), and prettyProductName().

func (*QSysInfo) MacVersion

func (this *QSysInfo) MacVersion() int

func (*QSysInfo) MachineHostName

func (this *QSysInfo) MachineHostName() string

Returns this machine's host name, if one is configured. Note that hostnames are not guaranteed to be globally unique, especially if they were configured automatically.

This function does not guarantee the returned host name is a Fully Qualified Domain Name (FQDN). For that, use QHostInfo to resolve the returned name to an FQDN.

This function returns the same as QHostInfo::localHostName().

This function was introduced in Qt 5.6.

See also QHostInfo::localDomainName.

func (*QSysInfo) NewFromPointer

func (*QSysInfo) NewFromPointer(cthis unsafe.Pointer) *QSysInfo

func (*QSysInfo) PrettyProductName

func (this *QSysInfo) PrettyProductName() string

Returns a prettier form of productType() and productVersion(), containing other tokens like the operating system type, codenames and other information. The result of this function is suitable for displaying to the user, but not for long-term storage, as the string may change with updates to Qt.

If productType() is "unknown", this function will instead use the kernelType() and kernelVersion() functions.

This function was introduced in Qt 5.4.

See also kernelType(), kernelVersion(), productType(), and productVersion().

func (*QSysInfo) ProductType

func (this *QSysInfo) ProductType() string

Returns the product name of the operating system this application is running in. If the application is running on some sort of emulation or virtualization layer (such as WINE on a Unix system), this function will inspect the emulation / virtualization layer.

Values returned by this function are stable and will not change over time, so applications can rely on the returned value as an identifier, except that new OS types may be added over time.

Linux and Android note: this function returns "android" for Linux systems running Android userspace, notably when using the Bionic library. For all other Linux systems, regardless of C library being used, it tries to determine the distribution name and returns that. If determining the distribution name failed, it returns "unknown".

macOS note: this function returns "osx" for all macOS systems, regardless of Apple naming convention. The returned string will be updated for Qt 6. Note that this function erroneously returned "macos" for macOS 10.12 in Qt versions 5.6.2, 5.7.1, and 5.8.0.

Darwin, iOS, tvOS, and watchOS note: this function returns "ios" for iOS systems, "tvos" for tvOS systems, "watchos" for watchOS systems, and "darwin" in case the system could not be determined.

FreeBSD note: this function returns "debian" for Debian/kFreeBSD and "unknown" otherwise.

Windows note: this function "winrt" for WinRT builds, and "windows" for normal desktop builds.

For other Unix-type systems, this function usually returns "unknown".

This function was introduced in Qt 5.4.

See also QFileSelector, kernelType(), kernelVersion(), productVersion(), and prettyProductName().

func (*QSysInfo) ProductVersion

func (this *QSysInfo) ProductVersion() string

Returns the product version of the operating system in string form. If the version could not be determined, this function returns "unknown".

It will return the Android, iOS, macOS, Windows full-product versions on those systems.

Typical returned values are (note: list not exhaustive):

"2016.09" (Amazon Linux AMI 2016.09) "7.1" (Android Nougat) "25" (Fedora 25) "10.1" (iOS 10.1) "10.12" (macOS Sierra) "10.0" (tvOS 10) "16.10" (Ubuntu 16.10) "3.1" (watchOS 3.1) "7 SP 1" (Windows 7 Service Pack 1) "8.1" (Windows 8.1) "10" (Windows 10) "Server 2016" (Windows Server 2016)

On Linux systems, it will try to determine the distribution version and will return that. This is also done on Debian/kFreeBSD, so this function will return Debian version in that case.

In all other Unix-type systems, this function always returns "unknown".

Note: The version string returned from this function is not guaranteed to be orderable. On Linux, the version of the distribution may jump unexpectedly, please refer to the distribution's documentation for versioning practices.

This function was introduced in Qt 5.4.

See also kernelType(), kernelVersion(), productType(), and prettyProductName().

func (*QSysInfo) QSysInfo_PTR

func (ptr *QSysInfo) QSysInfo_PTR() *QSysInfo

func (*QSysInfo) SetCthis

func (this *QSysInfo) SetCthis(cthis unsafe.Pointer)

func (*QSysInfo) WindowsVersion

func (this *QSysInfo) WindowsVersion() int

type QSysInfo_ITF

type QSysInfo_ITF interface {
	QSysInfo_PTR() *QSysInfo
}

type QSysInfo__Endian

type QSysInfo__Endian = int

QSysInfo::ByteOrderBigEndian or LittleEndianEquals BigEndian or LittleEndian, depending on the platform's byte order.

const QSysInfo__BigEndian QSysInfo__Endian = 0

Big-endian byte order (also called Network byte order)

const QSysInfo__ByteOrder QSysInfo__Endian = 1
const QSysInfo__LittleEndian QSysInfo__Endian = 1

Little-endian byte order

type QSysInfo__MacVersion

type QSysInfo__MacVersion = int
const QSysInfo__MV_10_0 QSysInfo__MacVersion = 2
const QSysInfo__MV_10_1 QSysInfo__MacVersion = 3
const QSysInfo__MV_10_10 QSysInfo__MacVersion = 12
const QSysInfo__MV_10_11 QSysInfo__MacVersion = 13
const QSysInfo__MV_10_12 QSysInfo__MacVersion = 14
const QSysInfo__MV_10_2 QSysInfo__MacVersion = 4
const QSysInfo__MV_10_3 QSysInfo__MacVersion = 5
const QSysInfo__MV_10_4 QSysInfo__MacVersion = 6
const QSysInfo__MV_10_5 QSysInfo__MacVersion = 7
const QSysInfo__MV_10_6 QSysInfo__MacVersion = 8
const QSysInfo__MV_10_7 QSysInfo__MacVersion = 9
const QSysInfo__MV_10_8 QSysInfo__MacVersion = 10
const QSysInfo__MV_10_9 QSysInfo__MacVersion = 11
const QSysInfo__MV_9 QSysInfo__MacVersion = 1
const QSysInfo__MV_CHEETAH QSysInfo__MacVersion = 2
const QSysInfo__MV_ELCAPITAN QSysInfo__MacVersion = 13
const QSysInfo__MV_IOS QSysInfo__MacVersion = 256
const QSysInfo__MV_IOS_10_0 QSysInfo__MacVersion = 416
const QSysInfo__MV_IOS_4_3 QSysInfo__MacVersion = 323
const QSysInfo__MV_IOS_5_0 QSysInfo__MacVersion = 336
const QSysInfo__MV_IOS_5_1 QSysInfo__MacVersion = 337
const QSysInfo__MV_IOS_6_0 QSysInfo__MacVersion = 352
const QSysInfo__MV_IOS_6_1 QSysInfo__MacVersion = 353
const QSysInfo__MV_IOS_7_0 QSysInfo__MacVersion = 368
const QSysInfo__MV_IOS_7_1 QSysInfo__MacVersion = 369
const QSysInfo__MV_IOS_8_0 QSysInfo__MacVersion = 384
const QSysInfo__MV_IOS_8_1 QSysInfo__MacVersion = 385
const QSysInfo__MV_IOS_8_2 QSysInfo__MacVersion = 386
const QSysInfo__MV_IOS_8_3 QSysInfo__MacVersion = 387
const QSysInfo__MV_IOS_8_4 QSysInfo__MacVersion = 388
const QSysInfo__MV_IOS_9_0 QSysInfo__MacVersion = 400
const QSysInfo__MV_IOS_9_1 QSysInfo__MacVersion = 401
const QSysInfo__MV_IOS_9_2 QSysInfo__MacVersion = 402
const QSysInfo__MV_IOS_9_3 QSysInfo__MacVersion = 403
const QSysInfo__MV_JAGUAR QSysInfo__MacVersion = 4
const QSysInfo__MV_LEOPARD QSysInfo__MacVersion = 7
const QSysInfo__MV_LION QSysInfo__MacVersion = 9
const QSysInfo__MV_MAVERICKS QSysInfo__MacVersion = 11
const QSysInfo__MV_MOUNTAINLION QSysInfo__MacVersion = 10
const QSysInfo__MV_None QSysInfo__MacVersion = 65535
const QSysInfo__MV_PANTHER QSysInfo__MacVersion = 5
const QSysInfo__MV_PUMA QSysInfo__MacVersion = 3
const QSysInfo__MV_SIERRA QSysInfo__MacVersion = 14
const QSysInfo__MV_SNOWLEOPARD QSysInfo__MacVersion = 8
const QSysInfo__MV_TIGER QSysInfo__MacVersion = 6
const QSysInfo__MV_TVOS QSysInfo__MacVersion = 512
const QSysInfo__MV_TVOS_10_0 QSysInfo__MacVersion = 672
const QSysInfo__MV_TVOS_9_0 QSysInfo__MacVersion = 656
const QSysInfo__MV_TVOS_9_1 QSysInfo__MacVersion = 657
const QSysInfo__MV_TVOS_9_2 QSysInfo__MacVersion = 658
const QSysInfo__MV_Unknown QSysInfo__MacVersion = 0
const QSysInfo__MV_WATCHOS QSysInfo__MacVersion = 1024
const QSysInfo__MV_WATCHOS_2_0 QSysInfo__MacVersion = 1056
const QSysInfo__MV_WATCHOS_2_1 QSysInfo__MacVersion = 1057
const QSysInfo__MV_WATCHOS_2_2 QSysInfo__MacVersion = 1058
const QSysInfo__MV_WATCHOS_3_0 QSysInfo__MacVersion = 1072
const QSysInfo__MV_YOSEMITE QSysInfo__MacVersion = 12

type QSysInfo__Sizes

type QSysInfo__Sizes = int

This enum provides platform-specific information about the sizes of data structures used by the underlying architecture.

const QSysInfo__WordSize QSysInfo__Sizes = 64

type QSysInfo__WinVersion

type QSysInfo__WinVersion = int
const QSysInfo__WV_10_0 QSysInfo__WinVersion = 192
const QSysInfo__WV_2000 QSysInfo__WinVersion = 32
const QSysInfo__WV_2003 QSysInfo__WinVersion = 64
const QSysInfo__WV_32s QSysInfo__WinVersion = 1
const QSysInfo__WV_4_0 QSysInfo__WinVersion = 16
const QSysInfo__WV_5_0 QSysInfo__WinVersion = 32
const QSysInfo__WV_5_1 QSysInfo__WinVersion = 48
const QSysInfo__WV_5_2 QSysInfo__WinVersion = 64
const QSysInfo__WV_6_0 QSysInfo__WinVersion = 128
const QSysInfo__WV_6_1 QSysInfo__WinVersion = 144
const QSysInfo__WV_6_2 QSysInfo__WinVersion = 160
const QSysInfo__WV_6_3 QSysInfo__WinVersion = 176
const QSysInfo__WV_95 QSysInfo__WinVersion = 2
const QSysInfo__WV_98 QSysInfo__WinVersion = 3
const QSysInfo__WV_CE QSysInfo__WinVersion = 256
const QSysInfo__WV_CENET QSysInfo__WinVersion = 512
const QSysInfo__WV_CE_5 QSysInfo__WinVersion = 768
const QSysInfo__WV_CE_6 QSysInfo__WinVersion = 1024
const QSysInfo__WV_CE_based QSysInfo__WinVersion = 3840
const QSysInfo__WV_DOS_based QSysInfo__WinVersion = 15
const QSysInfo__WV_Me QSysInfo__WinVersion = 4
const QSysInfo__WV_NT QSysInfo__WinVersion = 16
const QSysInfo__WV_NT_based QSysInfo__WinVersion = 240
const QSysInfo__WV_None QSysInfo__WinVersion = 0
const QSysInfo__WV_VISTA QSysInfo__WinVersion = 128
const QSysInfo__WV_WINDOWS10 QSysInfo__WinVersion = 192
const QSysInfo__WV_WINDOWS7 QSysInfo__WinVersion = 144
const QSysInfo__WV_WINDOWS8 QSysInfo__WinVersion = 160
const QSysInfo__WV_WINDOWS8_1 QSysInfo__WinVersion = 176
const QSysInfo__WV_XP QSysInfo__WinVersion = 48

type QSystemSemaphore

type QSystemSemaphore struct {
	*qtrt.CObject
}

func NewQSystemSemaphore

func NewQSystemSemaphore(key string, initialValue int, mode int) *QSystemSemaphore

Requests a system semaphore for the specified key. The parameters initialValue and mode are used according to the following rules, which are system dependent.

In Unix, if the mode is Open and the system already has a semaphore identified by key, that semaphore is used, and the semaphore's resource count is not changed, i.e., initialValue is ignored. But if the system does not already have a semaphore identified by key, it creates a new semaphore for that key and sets its resource count to initialValue.

In Unix, if the mode is Create and the system already has a semaphore identified by key, that semaphore is used, and its resource count is set to initialValue. If the system does not already have a semaphore identified by key, it creates a new semaphore for that key and sets its resource count to initialValue.

In Windows, mode is ignored, and the system always tries to create a semaphore for the specified key. If the system does not already have a semaphore identified as key, it creates the semaphore and sets its resource count to initialValue. But if the system already has a semaphore identified as key it uses that semaphore and ignores initialValue.

The mode parameter is only used in Unix systems to handle the case where a semaphore survives a process crash. In that case, the next process to allocate a semaphore with the same key will get the semaphore that survived the crash, and unless mode is Create, the resource count will not be reset to initialValue but will retain the initial value it had been given by the crashed process.

See also acquire() and key().

func NewQSystemSemaphoreFromPointer

func NewQSystemSemaphoreFromPointer(cthis unsafe.Pointer) *QSystemSemaphore

func NewQSystemSemaphore__

func NewQSystemSemaphore__(key string) *QSystemSemaphore

Requests a system semaphore for the specified key. The parameters initialValue and mode are used according to the following rules, which are system dependent.

In Unix, if the mode is Open and the system already has a semaphore identified by key, that semaphore is used, and the semaphore's resource count is not changed, i.e., initialValue is ignored. But if the system does not already have a semaphore identified by key, it creates a new semaphore for that key and sets its resource count to initialValue.

In Unix, if the mode is Create and the system already has a semaphore identified by key, that semaphore is used, and its resource count is set to initialValue. If the system does not already have a semaphore identified by key, it creates a new semaphore for that key and sets its resource count to initialValue.

In Windows, mode is ignored, and the system always tries to create a semaphore for the specified key. If the system does not already have a semaphore identified as key, it creates the semaphore and sets its resource count to initialValue. But if the system already has a semaphore identified as key it uses that semaphore and ignores initialValue.

The mode parameter is only used in Unix systems to handle the case where a semaphore survives a process crash. In that case, the next process to allocate a semaphore with the same key will get the semaphore that survived the crash, and unless mode is Create, the resource count will not be reset to initialValue but will retain the initial value it had been given by the crashed process.

See also acquire() and key().

func NewQSystemSemaphore__1

func NewQSystemSemaphore__1(key string, initialValue int) *QSystemSemaphore

Requests a system semaphore for the specified key. The parameters initialValue and mode are used according to the following rules, which are system dependent.

In Unix, if the mode is Open and the system already has a semaphore identified by key, that semaphore is used, and the semaphore's resource count is not changed, i.e., initialValue is ignored. But if the system does not already have a semaphore identified by key, it creates a new semaphore for that key and sets its resource count to initialValue.

In Unix, if the mode is Create and the system already has a semaphore identified by key, that semaphore is used, and its resource count is set to initialValue. If the system does not already have a semaphore identified by key, it creates a new semaphore for that key and sets its resource count to initialValue.

In Windows, mode is ignored, and the system always tries to create a semaphore for the specified key. If the system does not already have a semaphore identified as key, it creates the semaphore and sets its resource count to initialValue. But if the system already has a semaphore identified as key it uses that semaphore and ignores initialValue.

The mode parameter is only used in Unix systems to handle the case where a semaphore survives a process crash. In that case, the next process to allocate a semaphore with the same key will get the semaphore that survived the crash, and unless mode is Create, the resource count will not be reset to initialValue but will retain the initial value it had been given by the crashed process.

See also acquire() and key().

func (*QSystemSemaphore) Acquire

func (this *QSystemSemaphore) Acquire() bool

Acquires one of the resources guarded by this semaphore, if there is one available, and returns true. If all the resources guarded by this semaphore have already been acquired, the call blocks until one of them is released by another process or thread having a semaphore with the same key.

If false is returned, a system error has occurred. Call error() to get a value of QSystemSemaphore::SystemSemaphoreError that indicates which error occurred.

See also release().

func (*QSystemSemaphore) Error

func (this *QSystemSemaphore) Error() int

Returns a value indicating whether an error occurred, and, if so, which error it was.

See also errorString().

func (*QSystemSemaphore) ErrorString

func (this *QSystemSemaphore) ErrorString() string

Returns a text description of the last error that occurred. If error() returns an error value, call this function to get a text string that describes the error.

See also error().

func (*QSystemSemaphore) GetCthis

func (this *QSystemSemaphore) GetCthis() unsafe.Pointer

func (*QSystemSemaphore) Key

func (this *QSystemSemaphore) Key() string

Returns the key assigned to this system semaphore. The key is the name by which the semaphore can be accessed from other processes.

See also setKey().

func (*QSystemSemaphore) NewFromPointer

func (*QSystemSemaphore) NewFromPointer(cthis unsafe.Pointer) *QSystemSemaphore

func (*QSystemSemaphore) QSystemSemaphore_PTR

func (ptr *QSystemSemaphore) QSystemSemaphore_PTR() *QSystemSemaphore

func (*QSystemSemaphore) Release

func (this *QSystemSemaphore) Release(n int) bool

Releases n resources guarded by the semaphore. Returns true unless there is a system error.

Example: Create a system semaphore having five resources; acquire them all and then release them all.

QSystemSemaphore sem("market", 5, QSystemSemaphore::Create);
for (int i = 0; i < 5; ++i)  // acquire all 5 resources
    sem.acquire();
sem.release(5);              // release the 5 resources

This function can also "create" resources. For example, immediately following the sequence of statements above, suppose we add the statement:

sem.release(10);          // "create" 10 new resources

Ten new resources are now guarded by the semaphore, in addition to the five that already existed. You would not normally use this function to create more resources.

See also acquire().

func (*QSystemSemaphore) Release__

func (this *QSystemSemaphore) Release__() bool

Releases n resources guarded by the semaphore. Returns true unless there is a system error.

Example: Create a system semaphore having five resources; acquire them all and then release them all.

QSystemSemaphore sem("market", 5, QSystemSemaphore::Create);
for (int i = 0; i < 5; ++i)  // acquire all 5 resources
    sem.acquire();
sem.release(5);              // release the 5 resources

This function can also "create" resources. For example, immediately following the sequence of statements above, suppose we add the statement:

sem.release(10);          // "create" 10 new resources

Ten new resources are now guarded by the semaphore, in addition to the five that already existed. You would not normally use this function to create more resources.

See also acquire().

func (*QSystemSemaphore) SetCthis

func (this *QSystemSemaphore) SetCthis(cthis unsafe.Pointer)

func (*QSystemSemaphore) SetKey

func (this *QSystemSemaphore) SetKey(key string, initialValue int, mode int)

This function works the same as the constructor. It reconstructs this QSystemSemaphore object. If the new key is different from the old key, calling this function is like calling the destructor of the semaphore with the old key, then calling the constructor to create a new semaphore with the new key. The initialValue and mode parameters are as defined for the constructor.

See also QSystemSemaphore() and key().

func (*QSystemSemaphore) SetKey__

func (this *QSystemSemaphore) SetKey__(key string)

This function works the same as the constructor. It reconstructs this QSystemSemaphore object. If the new key is different from the old key, calling this function is like calling the destructor of the semaphore with the old key, then calling the constructor to create a new semaphore with the new key. The initialValue and mode parameters are as defined for the constructor.

See also QSystemSemaphore() and key().

func (*QSystemSemaphore) SetKey__1

func (this *QSystemSemaphore) SetKey__1(key string, initialValue int)

This function works the same as the constructor. It reconstructs this QSystemSemaphore object. If the new key is different from the old key, calling this function is like calling the destructor of the semaphore with the old key, then calling the constructor to create a new semaphore with the new key. The initialValue and mode parameters are as defined for the constructor.

See also QSystemSemaphore() and key().

type QSystemSemaphore_ITF

type QSystemSemaphore_ITF interface {
	QSystemSemaphore_PTR() *QSystemSemaphore
}

type QSystemSemaphore__AccessMode

type QSystemSemaphore__AccessMode = int

This enum is used by the constructor and setKey(). Its purpose is to enable handling the problem in Unix implementations of semaphores that survive a crash. In Unix, when a semaphore survives a crash, we need a way to force it to reset its resource count, when the system reuses the semaphore. In Windows, where semaphores can't survive a crash, this enum has no effect.

const QSystemSemaphore__Create QSystemSemaphore__AccessMode = 1

QSystemSemaphore takes ownership of the semaphore and sets its resource count to the requested value, regardless of whether the semaphore already exists by having survived a crash. This value should be passed to the constructor, when the first semaphore for a particular key is constructed and you know that if the semaphore already exists it could only be because of a crash. In Windows, where a semaphore can't survive a crash, Create and Open have the same behavior.

const QSystemSemaphore__Open QSystemSemaphore__AccessMode = 0

If the semaphore already exists, its initial resource count is not reset. If the semaphore does not already exist, it is created and its initial resource count set.

type QSystemSemaphore__SystemSemaphoreError

type QSystemSemaphore__SystemSemaphoreError = int
const QSystemSemaphore__AlreadyExists QSystemSemaphore__SystemSemaphoreError = 3

The operation failed because a system semaphore with the specified key already existed.

const QSystemSemaphore__KeyError QSystemSemaphore__SystemSemaphoreError = 2

The operation failed because of an invalid key.

const QSystemSemaphore__NoError QSystemSemaphore__SystemSemaphoreError = 0

No error occurred.

const QSystemSemaphore__NotFound QSystemSemaphore__SystemSemaphoreError = 4

The operation failed because a system semaphore with the specified key could not be found.

const QSystemSemaphore__OutOfResources QSystemSemaphore__SystemSemaphoreError = 5

The operation failed because there was not enough memory available to fill the request.

const QSystemSemaphore__PermissionDenied QSystemSemaphore__SystemSemaphoreError = 1

The operation failed because the caller didn't have the required permissions.

const QSystemSemaphore__UnknownError QSystemSemaphore__SystemSemaphoreError = 6

Something else happened and it was bad.

type QTemporaryDir

type QTemporaryDir struct {
	*qtrt.CObject
}

func NewQTemporaryDir

func NewQTemporaryDir() *QTemporaryDir

Constructs a QTemporaryDir using as template the application name returned by QCoreApplication::applicationName() (otherwise qt_temp). The directory is stored in the system's temporary directory, QDir::tempPath().

See also QDir::tempPath().

func NewQTemporaryDirFromPointer

func NewQTemporaryDirFromPointer(cthis unsafe.Pointer) *QTemporaryDir

func NewQTemporaryDir_1

func NewQTemporaryDir_1(templateName string) *QTemporaryDir

Constructs a QTemporaryDir using as template the application name returned by QCoreApplication::applicationName() (otherwise qt_temp). The directory is stored in the system's temporary directory, QDir::tempPath().

See also QDir::tempPath().

func (*QTemporaryDir) AutoRemove

func (this *QTemporaryDir) AutoRemove() bool

Returns true if the QTemporaryDir is in auto remove mode. Auto-remove mode will automatically delete the directory from disk upon destruction. This makes it very easy to create your QTemporaryDir object on the stack, fill it with files, do something with the files, and finally on function return it will automatically clean up after itself.

Auto-remove is on by default.

See also setAutoRemove() and remove().

func (*QTemporaryDir) ErrorString

func (this *QTemporaryDir) ErrorString() string

If isValid() returns false, this function returns the error string that explains why the creation of the temporary directory failed. Otherwise, this function return an empty string.

This function was introduced in Qt 5.6.

func (*QTemporaryDir) FilePath

func (this *QTemporaryDir) FilePath(fileName string) string

Returns the path name of a file in the temporary directory. Does not check if the file actually exists in the directory. Redundant multiple separators or "." and ".." directories in fileName are not removed (see QDir::cleanPath()). Absolute paths are not allowed.

This function was introduced in Qt 5.9.

func (*QTemporaryDir) GetCthis

func (this *QTemporaryDir) GetCthis() unsafe.Pointer

func (*QTemporaryDir) IsValid

func (this *QTemporaryDir) IsValid() bool

Returns true if the QTemporaryDir was created successfully.

func (*QTemporaryDir) NewFromPointer

func (*QTemporaryDir) NewFromPointer(cthis unsafe.Pointer) *QTemporaryDir

func (*QTemporaryDir) Path

func (this *QTemporaryDir) Path() string

Returns the path to the temporary directory. Empty if the QTemporaryDir could not be created.

func (*QTemporaryDir) QTemporaryDir_PTR

func (ptr *QTemporaryDir) QTemporaryDir_PTR() *QTemporaryDir

func (*QTemporaryDir) Remove

func (this *QTemporaryDir) Remove() bool

Removes the temporary directory, including all its contents.

Returns true if removing was successful.

func (*QTemporaryDir) SetAutoRemove

func (this *QTemporaryDir) SetAutoRemove(b bool)

Sets the QTemporaryDir into auto-remove mode if b is true.

Auto-remove is on by default.

See also autoRemove() and remove().

func (*QTemporaryDir) SetCthis

func (this *QTemporaryDir) SetCthis(cthis unsafe.Pointer)

type QTemporaryDir_ITF

type QTemporaryDir_ITF interface {
	QTemporaryDir_PTR() *QTemporaryDir
}

type QTemporaryFile

type QTemporaryFile struct {
	*QFile
}

func NewQTemporaryFile

func NewQTemporaryFile() *QTemporaryFile

Constructs a QTemporaryFile using as file template the application name returned by QCoreApplication::applicationName() (otherwise qt_temp) followed by ".XXXXXX". The file is stored in the system's temporary directory, QDir::tempPath().

See also setFileTemplate() and QDir::tempPath().

func NewQTemporaryFileFromPointer

func NewQTemporaryFileFromPointer(cthis unsafe.Pointer) *QTemporaryFile

func NewQTemporaryFile_1

func NewQTemporaryFile_1(templateName string) *QTemporaryFile

Constructs a QTemporaryFile using as file template the application name returned by QCoreApplication::applicationName() (otherwise qt_temp) followed by ".XXXXXX". The file is stored in the system's temporary directory, QDir::tempPath().

See also setFileTemplate() and QDir::tempPath().

func NewQTemporaryFile_2

func NewQTemporaryFile_2(parent QObject_ITF) *QTemporaryFile

Constructs a QTemporaryFile using as file template the application name returned by QCoreApplication::applicationName() (otherwise qt_temp) followed by ".XXXXXX". The file is stored in the system's temporary directory, QDir::tempPath().

See also setFileTemplate() and QDir::tempPath().

func NewQTemporaryFile_3

func NewQTemporaryFile_3(templateName string, parent QObject_ITF) *QTemporaryFile

Constructs a QTemporaryFile using as file template the application name returned by QCoreApplication::applicationName() (otherwise qt_temp) followed by ".XXXXXX". The file is stored in the system's temporary directory, QDir::tempPath().

See also setFileTemplate() and QDir::tempPath().

func QTemporaryFile_CreateLocalFile

func QTemporaryFile_CreateLocalFile(fileName string) *QTemporaryFile

func QTemporaryFile_CreateLocalFile_1

func QTemporaryFile_CreateLocalFile_1(file QFile_ITF) *QTemporaryFile

func QTemporaryFile_CreateNativeFile

func QTemporaryFile_CreateNativeFile(fileName string) *QTemporaryFile

func QTemporaryFile_CreateNativeFile_1

func QTemporaryFile_CreateNativeFile_1(file QFile_ITF) *QTemporaryFile

func (*QTemporaryFile) AutoRemove

func (this *QTemporaryFile) AutoRemove() bool

Returns true if the QTemporaryFile is in auto remove mode. Auto-remove mode will automatically delete the filename from disk upon destruction. This makes it very easy to create your QTemporaryFile object on the stack, fill it with data, read from it, and finally on function return it will automatically clean up after itself.

Auto-remove is on by default.

See also setAutoRemove() and remove().

func (*QTemporaryFile) CreateLocalFile

func (this *QTemporaryFile) CreateLocalFile(fileName string) *QTemporaryFile

func (*QTemporaryFile) CreateLocalFile_1

func (this *QTemporaryFile) CreateLocalFile_1(file QFile_ITF) *QTemporaryFile

func (*QTemporaryFile) CreateNativeFile

func (this *QTemporaryFile) CreateNativeFile(fileName string) *QTemporaryFile

If file is not already a native file, then a QTemporaryFile is created in QDir::tempPath(), the contents of file is copied into it, and a pointer to the temporary file is returned. Does nothing and returns 0 if file is already a native file.

For example:

QFile f(":/resources/file.txt");
QTemporaryFile::createNativeFile(f); // Returns a pointer to a temporary file

QFile f("/users/qt/file.txt");
QTemporaryFile::createNativeFile(f); // Returns 0

See also QFileInfo::isNativePath().

func (*QTemporaryFile) CreateNativeFile_1

func (this *QTemporaryFile) CreateNativeFile_1(file QFile_ITF) *QTemporaryFile

If file is not already a native file, then a QTemporaryFile is created in QDir::tempPath(), the contents of file is copied into it, and a pointer to the temporary file is returned. Does nothing and returns 0 if file is already a native file.

For example:

QFile f(":/resources/file.txt");
QTemporaryFile::createNativeFile(f); // Returns a pointer to a temporary file

QFile f("/users/qt/file.txt");
QTemporaryFile::createNativeFile(f); // Returns 0

See also QFileInfo::isNativePath().

func (*QTemporaryFile) FileName

func (this *QTemporaryFile) FileName() string

Reimplemented from QFileDevice::fileName().

Returns the complete unique filename backing the QTemporaryFile object. This string is null before the QTemporaryFile is opened, afterwards it will contain the fileTemplate() plus additional characters to make it unique.

See also fileTemplate().

func (*QTemporaryFile) FileTemplate

func (this *QTemporaryFile) FileTemplate() string

Returns the set file template. The default file template will be called qcoreappname.XXXXXX and be placed in QDir::tempPath().

See also setFileTemplate().

func (*QTemporaryFile) GetCthis

func (this *QTemporaryFile) GetCthis() unsafe.Pointer

func (*QTemporaryFile) InheritOpen

func (this *QTemporaryFile) InheritOpen(f func(flags int) bool)

bool open(QIODevice::OpenMode)

func (*QTemporaryFile) MetaObject

func (this *QTemporaryFile) MetaObject() *QMetaObject

func (*QTemporaryFile) NewFromPointer

func (*QTemporaryFile) NewFromPointer(cthis unsafe.Pointer) *QTemporaryFile

func (*QTemporaryFile) Open

func (this *QTemporaryFile) Open() bool

A QTemporaryFile will always be opened in QIODevice::ReadWrite mode, this allows easy access to the data in the file. This function will return true upon success and will set the fileName() to the unique filename used.

See also fileName().

func (*QTemporaryFile) Open_1

func (this *QTemporaryFile) Open_1(flags int) bool

A QTemporaryFile will always be opened in QIODevice::ReadWrite mode, this allows easy access to the data in the file. This function will return true upon success and will set the fileName() to the unique filename used.

See also fileName().

func (*QTemporaryFile) QTemporaryFile_PTR

func (ptr *QTemporaryFile) QTemporaryFile_PTR() *QTemporaryFile

func (*QTemporaryFile) Rename

func (this *QTemporaryFile) Rename(newName string) bool

func (*QTemporaryFile) SetAutoRemove

func (this *QTemporaryFile) SetAutoRemove(b bool)

Sets the QTemporaryFile into auto-remove mode if b is true.

Auto-remove is on by default.

If you set this property to false, ensure the application provides a way to remove the file once it is no longer needed, including passing the responsibility on to another process. Always use the fileName() function to obtain the name and never try to guess the name that QTemporaryFile has generated.

On some systems, if fileName() is not called before closing the file, the temporary file may be removed regardless of the state of this property. This behavior should not be relied upon, so application code should either call fileName() or leave the auto removal functionality enabled.

See also autoRemove() and remove().

func (*QTemporaryFile) SetCthis

func (this *QTemporaryFile) SetCthis(cthis unsafe.Pointer)

func (*QTemporaryFile) SetFileTemplate

func (this *QTemporaryFile) SetFileTemplate(name string)

Sets the static portion of the file name to name. If the file template contains XXXXXX that will automatically be replaced with the unique part of the filename, otherwise a filename will be determined automatically based on the static portion specified.

If name contains a relative file path, the path will be relative to the current working directory. You can use QDir::tempPath() to construct name if you want use the system's temporary directory.

See also fileTemplate().

type QTemporaryFile_ITF

type QTemporaryFile_ITF interface {
	QFile_ITF
	QTemporaryFile_PTR() *QTemporaryFile
}

type QTextBoundaryFinder

type QTextBoundaryFinder struct {
	*qtrt.CObject
}

func NewQTextBoundaryFinder

func NewQTextBoundaryFinder() *QTextBoundaryFinder

Constructs an invalid QTextBoundaryFinder object.

func NewQTextBoundaryFinderFromPointer

func NewQTextBoundaryFinderFromPointer(cthis unsafe.Pointer) *QTextBoundaryFinder

func NewQTextBoundaryFinder_1

func NewQTextBoundaryFinder_1(type_ int, string string) *QTextBoundaryFinder

Constructs an invalid QTextBoundaryFinder object.

func NewQTextBoundaryFinder_2

func NewQTextBoundaryFinder_2(type_ int, chars QChar_ITF, length int, buffer unsafe.Pointer, bufferSize int) *QTextBoundaryFinder

Constructs an invalid QTextBoundaryFinder object.

func NewQTextBoundaryFinder_2_

func NewQTextBoundaryFinder_2_(type_ int, chars QChar_ITF, length int) *QTextBoundaryFinder

Constructs an invalid QTextBoundaryFinder object.

func NewQTextBoundaryFinder_2_1

func NewQTextBoundaryFinder_2_1(type_ int, chars QChar_ITF, length int, buffer unsafe.Pointer) *QTextBoundaryFinder

Constructs an invalid QTextBoundaryFinder object.

func (*QTextBoundaryFinder) BoundaryReasons

func (this *QTextBoundaryFinder) BoundaryReasons() int

Returns the reasons for the boundary finder to have chosen the current position as a boundary.

func (*QTextBoundaryFinder) GetCthis

func (this *QTextBoundaryFinder) GetCthis() unsafe.Pointer

func (*QTextBoundaryFinder) IsAtBoundary

func (this *QTextBoundaryFinder) IsAtBoundary() bool

Returns true if the object's position() is currently at a valid text boundary.

func (*QTextBoundaryFinder) IsValid

func (this *QTextBoundaryFinder) IsValid() bool

Returns true if the text boundary finder is valid; otherwise returns false. A default QTextBoundaryFinder is invalid.

func (*QTextBoundaryFinder) NewFromPointer

func (*QTextBoundaryFinder) NewFromPointer(cthis unsafe.Pointer) *QTextBoundaryFinder

func (*QTextBoundaryFinder) Operator_equal

func (*QTextBoundaryFinder) Position

func (this *QTextBoundaryFinder) Position() int

Returns the current position of the QTextBoundaryFinder.

The range is from 0 (the beginning of the string) to the length of the string inclusive.

See also setPosition().

func (*QTextBoundaryFinder) QTextBoundaryFinder_PTR

func (ptr *QTextBoundaryFinder) QTextBoundaryFinder_PTR() *QTextBoundaryFinder

func (*QTextBoundaryFinder) SetCthis

func (this *QTextBoundaryFinder) SetCthis(cthis unsafe.Pointer)

func (*QTextBoundaryFinder) SetPosition

func (this *QTextBoundaryFinder) SetPosition(position int)

Sets the current position of the QTextBoundaryFinder to position.

If position is out of bounds, it will be bound to only valid positions. In this case, valid positions are from 0 to the length of the string inclusive.

See also position().

func (*QTextBoundaryFinder) String

func (this *QTextBoundaryFinder) String() string

Returns the string the QTextBoundaryFinder object operates on.

func (*QTextBoundaryFinder) ToEnd

func (this *QTextBoundaryFinder) ToEnd()

Moves the finder to the end of the string. This is equivalent to setPosition(string.length()).

See also setPosition() and position().

func (*QTextBoundaryFinder) ToNextBoundary

func (this *QTextBoundaryFinder) ToNextBoundary() int

Moves the QTextBoundaryFinder to the next boundary position and returns that position.

Returns -1 if there is no next boundary.

func (*QTextBoundaryFinder) ToPreviousBoundary

func (this *QTextBoundaryFinder) ToPreviousBoundary() int

Moves the QTextBoundaryFinder to the previous boundary position and returns that position.

Returns -1 if there is no previous boundary.

func (*QTextBoundaryFinder) ToStart

func (this *QTextBoundaryFinder) ToStart()

Moves the finder to the start of the string. This is equivalent to setPosition(0).

See also setPosition() and position().

func (*QTextBoundaryFinder) Type

func (this *QTextBoundaryFinder) Type() int

Returns the type of the QTextBoundaryFinder.

type QTextBoundaryFinder_ITF

type QTextBoundaryFinder_ITF interface {
	QTextBoundaryFinder_PTR() *QTextBoundaryFinder
}

type QTextBoundaryFinder__BoundaryReason

type QTextBoundaryFinder__BoundaryReason = int
const QTextBoundaryFinder__BreakOpportunity QTextBoundaryFinder__BoundaryReason = 31
const QTextBoundaryFinder__EndOfItem QTextBoundaryFinder__BoundaryReason = 64
const QTextBoundaryFinder__MandatoryBreak QTextBoundaryFinder__BoundaryReason = 128
const QTextBoundaryFinder__NotAtBoundary QTextBoundaryFinder__BoundaryReason = 0
const QTextBoundaryFinder__SoftHyphen QTextBoundaryFinder__BoundaryReason = 256
const QTextBoundaryFinder__StartOfItem QTextBoundaryFinder__BoundaryReason = 32

type QTextBoundaryFinder__BoundaryType

type QTextBoundaryFinder__BoundaryType = int
const QTextBoundaryFinder__Grapheme QTextBoundaryFinder__BoundaryType = 0

Finds a grapheme which is the smallest boundary. It including letters, punctuation marks, numerals and more.

const QTextBoundaryFinder__Line QTextBoundaryFinder__BoundaryType = 3

Finds possible positions for breaking the text into multiple lines.

const QTextBoundaryFinder__Sentence QTextBoundaryFinder__BoundaryType = 2

Finds sentence boundaries. These include periods, question marks etc.

const QTextBoundaryFinder__Word QTextBoundaryFinder__BoundaryType = 1

Finds a word.

type QTextCodec

type QTextCodec struct {
	*qtrt.CObject
}

func NewQTextCodec

func NewQTextCodec() *QTextCodec

Constructs a QTextCodec, and gives it the highest precedence. The QTextCodec should always be constructed on the heap (i.e. with new). Qt takes ownership and will delete it when the application terminates.

func NewQTextCodecFromPointer

func NewQTextCodecFromPointer(cthis unsafe.Pointer) *QTextCodec

func QTextCodec_CodecForHtml

func QTextCodec_CodecForHtml(ba QByteArray_ITF) *QTextCodec

func QTextCodec_CodecForHtml_1

func QTextCodec_CodecForHtml_1(ba QByteArray_ITF, defaultCodec QTextCodec_ITF) *QTextCodec

func QTextCodec_CodecForLocale

func QTextCodec_CodecForLocale() *QTextCodec

func QTextCodec_CodecForMib

func QTextCodec_CodecForMib(mib int) *QTextCodec

func QTextCodec_CodecForName

func QTextCodec_CodecForName(name QByteArray_ITF) *QTextCodec

func QTextCodec_CodecForName_1

func QTextCodec_CodecForName_1(name string) *QTextCodec

func QTextCodec_CodecForUtfText

func QTextCodec_CodecForUtfText(ba QByteArray_ITF) *QTextCodec

func QTextCodec_CodecForUtfText_1

func QTextCodec_CodecForUtfText_1(ba QByteArray_ITF, defaultCodec QTextCodec_ITF) *QTextCodec

func (*QTextCodec) CanEncode

func (this *QTextCodec) CanEncode(arg0 QChar_ITF) bool

Returns true if the Unicode character ch can be fully encoded with this codec; otherwise returns false.

func (*QTextCodec) CanEncode_1

func (this *QTextCodec) CanEncode_1(arg0 string) bool

Returns true if the Unicode character ch can be fully encoded with this codec; otherwise returns false.

func (*QTextCodec) CanEncode_2

func (this *QTextCodec) CanEncode_2(arg0 QStringView_ITF) bool

Returns true if the Unicode character ch can be fully encoded with this codec; otherwise returns false.

func (*QTextCodec) CodecForHtml

func (this *QTextCodec) CodecForHtml(ba QByteArray_ITF) *QTextCodec

Tries to detect the encoding of the provided snippet of HTML in the given byte array, ba, by checking the BOM (Byte Order Mark) and the content-type meta header and returns a QTextCodec instance that is capable of decoding the html to unicode. If the codec cannot be detected from the content provided, defaultCodec is returned.

This function was introduced in Qt 4.4.

See also codecForUtfText().

func (*QTextCodec) CodecForHtml_1

func (this *QTextCodec) CodecForHtml_1(ba QByteArray_ITF, defaultCodec QTextCodec_ITF) *QTextCodec

Tries to detect the encoding of the provided snippet of HTML in the given byte array, ba, by checking the BOM (Byte Order Mark) and the content-type meta header and returns a QTextCodec instance that is capable of decoding the html to unicode. If the codec cannot be detected from the content provided, defaultCodec is returned.

This function was introduced in Qt 4.4.

See also codecForUtfText().

func (*QTextCodec) CodecForLocale

func (this *QTextCodec) CodecForLocale() *QTextCodec

Returns a pointer to the codec most suitable for this locale.

On Windows, the codec will be based on a system locale. On Unix systems, the codec will might fall back to using the iconv library if no builtin codec for the locale can be found.

Note that in these cases the codec's name will be "System".

Note: This function is thread-safe.

See also setCodecForLocale().

func (*QTextCodec) CodecForMib

func (this *QTextCodec) CodecForMib(mib int) *QTextCodec

Returns the QTextCodec which matches the MIBenum mib.

Note: This function is thread-safe.

func (*QTextCodec) CodecForName

func (this *QTextCodec) CodecForName(name QByteArray_ITF) *QTextCodec

Searches all installed QTextCodec objects and returns the one which best matches name; the match is case-insensitive. Returns 0 if no codec matching the name name could be found.

Note: This function is thread-safe.

func (*QTextCodec) CodecForName_1

func (this *QTextCodec) CodecForName_1(name string) *QTextCodec

Searches all installed QTextCodec objects and returns the one which best matches name; the match is case-insensitive. Returns 0 if no codec matching the name name could be found.

Note: This function is thread-safe.

func (*QTextCodec) CodecForUtfText

func (this *QTextCodec) CodecForUtfText(ba QByteArray_ITF) *QTextCodec

Tries to detect the encoding of the provided snippet ba by using the BOM (Byte Order Mark) and returns a QTextCodec instance that is capable of decoding the text to unicode. If the codec cannot be detected from the content provided, defaultCodec is returned.

This function was introduced in Qt 4.6.

See also codecForHtml().

func (*QTextCodec) CodecForUtfText_1

func (this *QTextCodec) CodecForUtfText_1(ba QByteArray_ITF, defaultCodec QTextCodec_ITF) *QTextCodec

Tries to detect the encoding of the provided snippet ba by using the BOM (Byte Order Mark) and returns a QTextCodec instance that is capable of decoding the text to unicode. If the codec cannot be detected from the content provided, defaultCodec is returned.

This function was introduced in Qt 4.6.

See also codecForHtml().

func (*QTextCodec) FromUnicode

func (this *QTextCodec) FromUnicode(uc string) *QByteArray

Converts str from Unicode to the encoding of this codec, and returns the result in a QByteArray.

func (*QTextCodec) FromUnicode_1

func (this *QTextCodec) FromUnicode_1(uc QStringView_ITF) *QByteArray

Converts str from Unicode to the encoding of this codec, and returns the result in a QByteArray.

func (*QTextCodec) GetCthis

func (this *QTextCodec) GetCthis() unsafe.Pointer

func (*QTextCodec) MakeDecoder

func (this *QTextCodec) MakeDecoder(flags int) *QTextDecoder

Creates a QTextDecoder with a specified flags to decode chunks of char * data to create chunks of Unicode data.

The caller is responsible for deleting the returned object.

This function was introduced in Qt 4.7.

func (*QTextCodec) MakeDecoder__

func (this *QTextCodec) MakeDecoder__() *QTextDecoder

Creates a QTextDecoder with a specified flags to decode chunks of char * data to create chunks of Unicode data.

The caller is responsible for deleting the returned object.

This function was introduced in Qt 4.7.

func (*QTextCodec) MakeEncoder

func (this *QTextCodec) MakeEncoder(flags int) *QTextEncoder

Creates a QTextEncoder with a specified flags to encode chunks of Unicode data as char * data.

The caller is responsible for deleting the returned object.

This function was introduced in Qt 4.7.

func (*QTextCodec) MakeEncoder__

func (this *QTextCodec) MakeEncoder__() *QTextEncoder

Creates a QTextEncoder with a specified flags to encode chunks of Unicode data as char * data.

The caller is responsible for deleting the returned object.

This function was introduced in Qt 4.7.

func (*QTextCodec) MibEnum

func (this *QTextCodec) MibEnum() int

Subclasses of QTextCodec must reimplement this function. It returns the MIBenum (see IANA character-sets encoding file for more information). It is important that each QTextCodec subclass returns the correct unique value for this function.

func (*QTextCodec) Name

func (this *QTextCodec) Name() *QByteArray

QTextCodec subclasses must reimplement this function. It returns the name of the encoding supported by the subclass.

If the codec is registered as a character set in the IANA character-sets encoding file this method should return the preferred mime name for the codec if defined, otherwise its name.

func (*QTextCodec) NewFromPointer

func (*QTextCodec) NewFromPointer(cthis unsafe.Pointer) *QTextCodec

func (*QTextCodec) QTextCodec_PTR

func (ptr *QTextCodec) QTextCodec_PTR() *QTextCodec

func (*QTextCodec) SetCodecForLocale

func (this *QTextCodec) SetCodecForLocale(c QTextCodec_ITF)

Set the codec to c; this will be returned by codecForLocale(). If c is a null pointer, the codec is reset to the default.

This might be needed for some applications that want to use their own mechanism for setting the locale.

Warning: This function is not reentrant.

See also codecForLocale().

func (*QTextCodec) SetCthis

func (this *QTextCodec) SetCthis(cthis unsafe.Pointer)

func (*QTextCodec) ToUnicode

func (this *QTextCodec) ToUnicode(arg0 QByteArray_ITF) string

Converts a from the encoding of this codec to Unicode, and returns the result in a QString.

func (*QTextCodec) ToUnicode_1

func (this *QTextCodec) ToUnicode_1(chars string) string

Converts a from the encoding of this codec to Unicode, and returns the result in a QString.

type QTextCodec_ITF

type QTextCodec_ITF interface {
	QTextCodec_PTR() *QTextCodec
}

type QTextCodec__ConversionFlag

type QTextCodec__ConversionFlag = int
const QTextCodec__ConvertInvalidToNull QTextCodec__ConversionFlag = -2147483648
const QTextCodec__DefaultConversion QTextCodec__ConversionFlag = 0
const QTextCodec__FreeFunction QTextCodec__ConversionFlag = 2
const QTextCodec__IgnoreHeader QTextCodec__ConversionFlag = 1

type QTextDecoder

type QTextDecoder struct {
	*qtrt.CObject
}

func NewQTextDecoder

func NewQTextDecoder(codec QTextCodec_ITF) *QTextDecoder

func NewQTextDecoderFromPointer

func NewQTextDecoderFromPointer(cthis unsafe.Pointer) *QTextDecoder

func NewQTextDecoder_1

func NewQTextDecoder_1(codec QTextCodec_ITF, flags int) *QTextDecoder

func (*QTextDecoder) GetCthis

func (this *QTextDecoder) GetCthis() unsafe.Pointer

func (*QTextDecoder) HasFailure

func (this *QTextDecoder) HasFailure() bool

func (*QTextDecoder) NewFromPointer

func (*QTextDecoder) NewFromPointer(cthis unsafe.Pointer) *QTextDecoder

func (*QTextDecoder) QTextDecoder_PTR

func (ptr *QTextDecoder) QTextDecoder_PTR() *QTextDecoder

func (*QTextDecoder) SetCthis

func (this *QTextDecoder) SetCthis(cthis unsafe.Pointer)

func (*QTextDecoder) ToUnicode

func (this *QTextDecoder) ToUnicode(chars string, len_ int) string

Converts a from the encoding of this codec to Unicode, and returns the result in a QString.

func (*QTextDecoder) ToUnicode_1

func (this *QTextDecoder) ToUnicode_1(ba QByteArray_ITF) string

Converts a from the encoding of this codec to Unicode, and returns the result in a QString.

func (*QTextDecoder) ToUnicode_2

func (this *QTextDecoder) ToUnicode_2(target string, chars string, len_ int)

Converts a from the encoding of this codec to Unicode, and returns the result in a QString.

type QTextDecoder_ITF

type QTextDecoder_ITF interface {
	QTextDecoder_PTR() *QTextDecoder
}

type QTextEncoder

type QTextEncoder struct {
	*qtrt.CObject
}

func NewQTextEncoder

func NewQTextEncoder(codec QTextCodec_ITF) *QTextEncoder

func NewQTextEncoderFromPointer

func NewQTextEncoderFromPointer(cthis unsafe.Pointer) *QTextEncoder

func NewQTextEncoder_1

func NewQTextEncoder_1(codec QTextCodec_ITF, flags int) *QTextEncoder

func (*QTextEncoder) FromUnicode

func (this *QTextEncoder) FromUnicode(str string) *QByteArray

Converts str from Unicode to the encoding of this codec, and returns the result in a QByteArray.

func (*QTextEncoder) FromUnicode_1

func (this *QTextEncoder) FromUnicode_1(str QStringView_ITF) *QByteArray

Converts str from Unicode to the encoding of this codec, and returns the result in a QByteArray.

func (*QTextEncoder) FromUnicode_2

func (this *QTextEncoder) FromUnicode_2(uc QChar_ITF, len_ int) *QByteArray

Converts str from Unicode to the encoding of this codec, and returns the result in a QByteArray.

func (*QTextEncoder) GetCthis

func (this *QTextEncoder) GetCthis() unsafe.Pointer

func (*QTextEncoder) HasFailure

func (this *QTextEncoder) HasFailure() bool

func (*QTextEncoder) NewFromPointer

func (*QTextEncoder) NewFromPointer(cthis unsafe.Pointer) *QTextEncoder

func (*QTextEncoder) QTextEncoder_PTR

func (ptr *QTextEncoder) QTextEncoder_PTR() *QTextEncoder

func (*QTextEncoder) SetCthis

func (this *QTextEncoder) SetCthis(cthis unsafe.Pointer)

type QTextEncoder_ITF

type QTextEncoder_ITF interface {
	QTextEncoder_PTR() *QTextEncoder
}

type QTextStream

type QTextStream struct {
	*qtrt.CObject
}

func NewQTextStream

func NewQTextStream() *QTextStream

Constructs a QTextStream. Before you can use it for reading or writing, you must assign a device or a string.

See also setDevice() and setString().

func NewQTextStreamFromPointer

func NewQTextStreamFromPointer(cthis unsafe.Pointer) *QTextStream

func NewQTextStream_1

func NewQTextStream_1(device QIODevice_ITF) *QTextStream

Constructs a QTextStream. Before you can use it for reading or writing, you must assign a device or a string.

See also setDevice() and setString().

func NewQTextStream_2

func NewQTextStream_2(string string, openMode int) *QTextStream

Constructs a QTextStream. Before you can use it for reading or writing, you must assign a device or a string.

See also setDevice() and setString().

func NewQTextStream_2_

func NewQTextStream_2_(string string) *QTextStream

Constructs a QTextStream. Before you can use it for reading or writing, you must assign a device or a string.

See also setDevice() and setString().

func NewQTextStream_3

func NewQTextStream_3(array QByteArray_ITF, openMode int) *QTextStream

Constructs a QTextStream. Before you can use it for reading or writing, you must assign a device or a string.

See also setDevice() and setString().

func NewQTextStream_3_

func NewQTextStream_3_(array QByteArray_ITF) *QTextStream

Constructs a QTextStream. Before you can use it for reading or writing, you must assign a device or a string.

See also setDevice() and setString().

func NewQTextStream_4

func NewQTextStream_4(array QByteArray_ITF, openMode int) *QTextStream

Constructs a QTextStream. Before you can use it for reading or writing, you must assign a device or a string.

See also setDevice() and setString().

func NewQTextStream_4_

func NewQTextStream_4_(array QByteArray_ITF) *QTextStream

Constructs a QTextStream. Before you can use it for reading or writing, you must assign a device or a string.

See also setDevice() and setString().

func (*QTextStream) AtEnd

func (this *QTextStream) AtEnd() bool

Returns true if there is no more data to be read from the QTextStream; otherwise returns false. This is similar to, but not the same as calling QIODevice::atEnd(), as QTextStream also takes into account its internal Unicode buffer.

func (*QTextStream) AutoDetectUnicode

func (this *QTextStream) AutoDetectUnicode() bool

Returns true if automatic Unicode detection is enabled, otherwise returns false. Automatic Unicode detection is enabled by default.

See also setAutoDetectUnicode() and setCodec().

func (*QTextStream) Codec

func (this *QTextStream) Codec() *QTextCodec

Returns the codec that is current assigned to the stream.

See also setCodec(), setAutoDetectUnicode(), and locale().

func (*QTextStream) Device

func (this *QTextStream) Device() *QIODevice

Returns the current device associated with the QTextStream, or 0 if no device has been assigned.

See also setDevice() and string().

func (*QTextStream) FieldAlignment

func (this *QTextStream) FieldAlignment() int

Returns the current field alignment.

See also setFieldAlignment() and fieldWidth().

func (*QTextStream) FieldWidth

func (this *QTextStream) FieldWidth() int

Returns the current field width.

See also setFieldWidth().

func (*QTextStream) Flush

func (this *QTextStream) Flush()

Flushes any buffered data waiting to be written to the device.

If QTextStream operates on a string, this function does nothing.

func (*QTextStream) GenerateByteOrderMark

func (this *QTextStream) GenerateByteOrderMark() bool

Returns true if QTextStream is set to generate the UTF BOM (Byte Order Mark) when using a UTF codec; otherwise returns false. UTF BOM generation is set to false by default.

See also setGenerateByteOrderMark().

func (*QTextStream) GetCthis

func (this *QTextStream) GetCthis() unsafe.Pointer

func (*QTextStream) IntegerBase

func (this *QTextStream) IntegerBase() int

Returns the current base of integers. 0 means that the base is detected when reading, or 10 (decimal) when generating numbers.

See also setIntegerBase(), QString::number(), and numberFlags().

func (*QTextStream) Locale

func (this *QTextStream) Locale() *QLocale

Returns the locale for this stream. The default locale is C.

This function was introduced in Qt 4.5.

See also setLocale().

func (*QTextStream) NewFromPointer

func (*QTextStream) NewFromPointer(cthis unsafe.Pointer) *QTextStream

func (*QTextStream) NumberFlags

func (this *QTextStream) NumberFlags() int

Returns the current number flags.

See also setNumberFlags(), integerBase(), and realNumberNotation().

func (*QTextStream) Operator_left_shift

func (this *QTextStream) Operator_left_shift(ch QChar_ITF) *QTextStream

func (*QTextStream) Operator_left_shift_1

func (this *QTextStream) Operator_left_shift_1(ch byte) *QTextStream

func (*QTextStream) Operator_left_shift_10

func (this *QTextStream) Operator_left_shift_10(f float32) *QTextStream

func (*QTextStream) Operator_left_shift_11

func (this *QTextStream) Operator_left_shift_11(f float64) *QTextStream

func (*QTextStream) Operator_left_shift_12

func (this *QTextStream) Operator_left_shift_12(s string) *QTextStream

func (*QTextStream) Operator_left_shift_13

func (this *QTextStream) Operator_left_shift_13(s QLatin1String_ITF) *QTextStream

func (*QTextStream) Operator_left_shift_14

func (this *QTextStream) Operator_left_shift_14(s QStringRef_ITF) *QTextStream

func (*QTextStream) Operator_left_shift_15

func (this *QTextStream) Operator_left_shift_15(array QByteArray_ITF) *QTextStream

func (*QTextStream) Operator_left_shift_16

func (this *QTextStream) Operator_left_shift_16(c string) *QTextStream

func (*QTextStream) Operator_left_shift_17

func (this *QTextStream) Operator_left_shift_17(ptr unsafe.Pointer) *QTextStream

func (*QTextStream) Operator_left_shift_2

func (this *QTextStream) Operator_left_shift_2(i int16) *QTextStream

func (*QTextStream) Operator_left_shift_3

func (this *QTextStream) Operator_left_shift_3(i uint16) *QTextStream

func (*QTextStream) Operator_left_shift_4

func (this *QTextStream) Operator_left_shift_4(i int) *QTextStream

func (*QTextStream) Operator_left_shift_5

func (this *QTextStream) Operator_left_shift_5(i uint) *QTextStream

func (*QTextStream) Operator_left_shift_6

func (this *QTextStream) Operator_left_shift_6(i int) *QTextStream

func (*QTextStream) Operator_left_shift_7

func (this *QTextStream) Operator_left_shift_7(i uint) *QTextStream

func (*QTextStream) Operator_left_shift_8

func (this *QTextStream) Operator_left_shift_8(i int64) *QTextStream

func (*QTextStream) Operator_left_shift_9

func (this *QTextStream) Operator_left_shift_9(i uint64) *QTextStream

func (*QTextStream) Operator_right_shift

func (this *QTextStream) Operator_right_shift(ch QChar_ITF) *QTextStream

func (*QTextStream) Operator_right_shift_1

func (this *QTextStream) Operator_right_shift_1(ch byte) *QTextStream

func (*QTextStream) Operator_right_shift_10

func (this *QTextStream) Operator_right_shift_10(f float32) *QTextStream

func (*QTextStream) Operator_right_shift_11

func (this *QTextStream) Operator_right_shift_11(f float64) *QTextStream

func (*QTextStream) Operator_right_shift_12

func (this *QTextStream) Operator_right_shift_12(s string) *QTextStream

func (*QTextStream) Operator_right_shift_13

func (this *QTextStream) Operator_right_shift_13(array QByteArray_ITF) *QTextStream

func (*QTextStream) Operator_right_shift_14

func (this *QTextStream) Operator_right_shift_14(c string) *QTextStream

func (*QTextStream) Operator_right_shift_2

func (this *QTextStream) Operator_right_shift_2(i int16) *QTextStream

func (*QTextStream) Operator_right_shift_3

func (this *QTextStream) Operator_right_shift_3(i uint16) *QTextStream

func (*QTextStream) Operator_right_shift_4

func (this *QTextStream) Operator_right_shift_4(i int) *QTextStream

func (*QTextStream) Operator_right_shift_5

func (this *QTextStream) Operator_right_shift_5(i uint) *QTextStream

func (*QTextStream) Operator_right_shift_6

func (this *QTextStream) Operator_right_shift_6(i int) *QTextStream

func (*QTextStream) Operator_right_shift_7

func (this *QTextStream) Operator_right_shift_7(i uint) *QTextStream

func (*QTextStream) Operator_right_shift_8

func (this *QTextStream) Operator_right_shift_8(i int64) *QTextStream

func (*QTextStream) Operator_right_shift_9

func (this *QTextStream) Operator_right_shift_9(i uint64) *QTextStream

func (*QTextStream) PadChar

func (this *QTextStream) PadChar() *QChar

Returns the current pad character.

See also setPadChar() and setFieldWidth().

func (*QTextStream) Pos

func (this *QTextStream) Pos() int64

Returns the device position corresponding to the current position of the stream, or -1 if an error occurs (e.g., if there is no device or string, or if there's a device error).

Because QTextStream is buffered, this function may have to seek the device to reconstruct a valid device position. This operation can be expensive, so you may want to avoid calling this function in a tight loop.

This function was introduced in Qt 4.2.

See also seek().

func (*QTextStream) QTextStream_PTR

func (ptr *QTextStream) QTextStream_PTR() *QTextStream

func (*QTextStream) Read

func (this *QTextStream) Read(maxlen int64) string

Reads at most maxlen characters from the stream, and returns the data read as a QString.

This function was introduced in Qt 4.1.

See also readAll(), readLine(), and QIODevice::read().

func (*QTextStream) ReadAll

func (this *QTextStream) ReadAll() string

Reads the entire content of the stream, and returns it as a QString. Avoid this function when working on large files, as it will consume a significant amount of memory.

Calling readLine() is better if you do not know how much data is available.

See also readLine().

func (*QTextStream) ReadLine

func (this *QTextStream) ReadLine(maxlen int64) string

Reads one line of text from the stream, and returns it as a QString. The maximum allowed line length is set to maxlen. If the stream contains lines longer than this, then the lines will be split after maxlen characters and returned in parts.

If maxlen is 0, the lines can be of any length.

The returned line has no trailing end-of-line characters ("\n" or "\r\n"), so calling QString::trimmed() can be unnecessary.

If the stream has read to the end of the file, readLine() will return a null QString. For strings, or for devices that support it, you can explicitly test for the end of the stream using atEnd().

See also readAll() and QIODevice::readLine().

func (*QTextStream) ReadLineInto

func (this *QTextStream) ReadLineInto(line string, maxlen int64) bool

Reads one line of text from the stream into line. If line is 0, the read line is not stored.

The maximum allowed line length is set to maxlen. If the stream contains lines longer than this, then the lines will be split after maxlen characters and returned in parts.

If maxlen is 0, the lines can be of any length.

The resulting line has no trailing end-of-line characters ("\n" or "\r\n"), so calling QString::trimmed() can be unnecessary.

If line has sufficient capacity for the data that is about to be read, this function may not need to allocate new memory. Because of this, it can be faster than readLine().

Returns false if the stream has read to the end of the file or an error has occurred; otherwise returns true. The contents in line before the call are discarded in any case.

This function was introduced in Qt 5.5.

See also readAll() and QIODevice::readLine().

func (*QTextStream) ReadLineInto__

func (this *QTextStream) ReadLineInto__(line string) bool

Reads one line of text from the stream into line. If line is 0, the read line is not stored.

The maximum allowed line length is set to maxlen. If the stream contains lines longer than this, then the lines will be split after maxlen characters and returned in parts.

If maxlen is 0, the lines can be of any length.

The resulting line has no trailing end-of-line characters ("\n" or "\r\n"), so calling QString::trimmed() can be unnecessary.

If line has sufficient capacity for the data that is about to be read, this function may not need to allocate new memory. Because of this, it can be faster than readLine().

Returns false if the stream has read to the end of the file or an error has occurred; otherwise returns true. The contents in line before the call are discarded in any case.

This function was introduced in Qt 5.5.

See also readAll() and QIODevice::readLine().

func (*QTextStream) ReadLine__

func (this *QTextStream) ReadLine__() string

Reads one line of text from the stream, and returns it as a QString. The maximum allowed line length is set to maxlen. If the stream contains lines longer than this, then the lines will be split after maxlen characters and returned in parts.

If maxlen is 0, the lines can be of any length.

The returned line has no trailing end-of-line characters ("\n" or "\r\n"), so calling QString::trimmed() can be unnecessary.

If the stream has read to the end of the file, readLine() will return a null QString. For strings, or for devices that support it, you can explicitly test for the end of the stream using atEnd().

See also readAll() and QIODevice::readLine().

func (*QTextStream) RealNumberNotation

func (this *QTextStream) RealNumberNotation() int

Returns the current real number notation.

See also setRealNumberNotation(), realNumberPrecision(), numberFlags(), and integerBase().

func (*QTextStream) RealNumberPrecision

func (this *QTextStream) RealNumberPrecision() int

Returns the current real number precision, or the number of fraction digits QTextStream will write when generating real numbers.

See also setRealNumberPrecision(), setRealNumberNotation(), realNumberNotation(), numberFlags(), and integerBase().

func (*QTextStream) Reset

func (this *QTextStream) Reset()

Resets QTextStream's formatting options, bringing it back to its original constructed state. The device, string and any buffered data is left untouched.

func (*QTextStream) ResetStatus

func (this *QTextStream) ResetStatus()

Resets the status of the text stream.

This function was introduced in Qt 4.1.

See also QTextStream::Status, status(), and setStatus().

func (*QTextStream) Seek

func (this *QTextStream) Seek(pos int64) bool

Seeks to the position pos in the device. Returns true on success; otherwise returns false.

func (*QTextStream) SetAutoDetectUnicode

func (this *QTextStream) SetAutoDetectUnicode(enabled bool)

If enabled is true, QTextStream will attempt to detect Unicode encoding by peeking into the stream data to see if it can find the UTF-16 or UTF-32 BOM (Byte Order Mark). If this mark is found, QTextStream will replace the current codec with the UTF codec.

This function can be used together with setCodec(). It is common to set the codec to UTF-8, and then enable UTF-16 detection.

See also autoDetectUnicode() and setCodec().

func (*QTextStream) SetCodec

func (this *QTextStream) SetCodec(codec QTextCodec_ITF)

Sets the codec for this stream to codec. The codec is used for decoding any data that is read from the assigned device, and for encoding any data that is written. By default, QTextCodec::codecForLocale() is used, and automatic unicode detection is enabled.

If QTextStream operates on a string, this function does nothing.

Warning: If you call this function while the text stream is reading from an open sequential socket, the internal buffer may still contain text decoded using the old codec.

See also codec(), setAutoDetectUnicode(), and setLocale().

func (*QTextStream) SetCodec_1

func (this *QTextStream) SetCodec_1(codecName string)

Sets the codec for this stream to codec. The codec is used for decoding any data that is read from the assigned device, and for encoding any data that is written. By default, QTextCodec::codecForLocale() is used, and automatic unicode detection is enabled.

If QTextStream operates on a string, this function does nothing.

Warning: If you call this function while the text stream is reading from an open sequential socket, the internal buffer may still contain text decoded using the old codec.

See also codec(), setAutoDetectUnicode(), and setLocale().

func (*QTextStream) SetCthis

func (this *QTextStream) SetCthis(cthis unsafe.Pointer)

func (*QTextStream) SetDevice

func (this *QTextStream) SetDevice(device QIODevice_ITF)

Sets the current device to device. If a device has already been assigned, QTextStream will call flush() before the old device is replaced.

Note: This function resets locale to the default locale ('C') and codec to the default codec, QTextCodec::codecForLocale().

See also device() and setString().

func (*QTextStream) SetFieldAlignment

func (this *QTextStream) SetFieldAlignment(alignment int)

Sets the field alignment to mode. When used together with setFieldWidth(), this function allows you to generate formatted output with text aligned to the left, to the right or center aligned.

See also fieldAlignment() and setFieldWidth().

func (*QTextStream) SetFieldWidth

func (this *QTextStream) SetFieldWidth(width int)

Sets the current field width to width. If width is 0 (the default), the field width is equal to the length of the generated text.

Note: The field width applies to every element appended to this stream after this function has been called (e.g., it also pads endl). This behavior is different from similar classes in the STL, where the field width only applies to the next element.

See also fieldWidth() and setPadChar().

func (*QTextStream) SetGenerateByteOrderMark

func (this *QTextStream) SetGenerateByteOrderMark(generate bool)

If generate is true and a UTF codec is used, QTextStream will insert the BOM (Byte Order Mark) before any data has been written to the device. If generate is false, no BOM will be inserted. This function must be called before any data is written. Otherwise, it does nothing.

See also generateByteOrderMark() and bom().

func (*QTextStream) SetIntegerBase

func (this *QTextStream) SetIntegerBase(base int)

Sets the base of integers to base, both for reading and for generating numbers. base can be either 2 (binary), 8 (octal), 10 (decimal) or 16 (hexadecimal). If base is 0, QTextStream will attempt to detect the base by inspecting the data on the stream. When generating numbers, QTextStream assumes base is 10 unless the base has been set explicitly.

See also integerBase(), QString::number(), and setNumberFlags().

func (*QTextStream) SetLocale

func (this *QTextStream) SetLocale(locale QLocale_ITF)

Sets the locale for this stream to locale. The specified locale is used for conversions between numbers and their string representations.

The default locale is C and it is a special case - the thousands group separator is not used for backward compatibility reasons.

This function was introduced in Qt 4.5.

See also locale().

func (*QTextStream) SetNumberFlags

func (this *QTextStream) SetNumberFlags(flags int)

Sets the current number flags to flags. flags is a set of flags from the NumberFlag enum, and describes options for formatting generated code (e.g., whether or not to always write the base or sign of a number).

See also numberFlags(), setIntegerBase(), and setRealNumberNotation().

func (*QTextStream) SetPadChar

func (this *QTextStream) SetPadChar(ch QChar_ITF)

Sets the pad character to ch. The default value is the ASCII space character (' '), or QChar(0x20). This character is used to fill in the space in fields when generating text.

Example:

QString s;
QTextStream out(&s);
out.setFieldWidth(10);
out.setFieldAlignment(QTextStream::AlignCenter);
out.setPadChar('-');
out << "Qt" << "rocks!";

The string s contains:

----Qt------rocks!--

See also padChar() and setFieldWidth().

func (*QTextStream) SetRealNumberNotation

func (this *QTextStream) SetRealNumberNotation(notation int)

Sets the real number notation to notation (SmartNotation, FixedNotation, ScientificNotation). When reading and generating numbers, QTextStream uses this value to detect the formatting of real numbers.

See also realNumberNotation(), setRealNumberPrecision(), setNumberFlags(), and setIntegerBase().

func (*QTextStream) SetRealNumberPrecision

func (this *QTextStream) SetRealNumberPrecision(precision int)

Sets the precision of real numbers to precision. This value describes the number of fraction digits QTextStream should write when generating real numbers.

The precision cannot be a negative value. The default value is 6.

See also realNumberPrecision() and setRealNumberNotation().

func (*QTextStream) SetStatus

func (this *QTextStream) SetStatus(status int)

Sets the status of the text stream to the status given.

Subsequent calls to setStatus() are ignored until resetStatus() is called.

This function was introduced in Qt 4.1.

See also Status, status(), and resetStatus().

func (*QTextStream) SetString

func (this *QTextStream) SetString(string string, openMode int)

Sets the current string to string, using the given openMode. If a device has already been assigned, QTextStream will call flush() before replacing it.

See also string() and setDevice().

func (*QTextStream) SetString__

func (this *QTextStream) SetString__(string string)

Sets the current string to string, using the given openMode. If a device has already been assigned, QTextStream will call flush() before replacing it.

See also string() and setDevice().

func (*QTextStream) SkipWhiteSpace

func (this *QTextStream) SkipWhiteSpace()

Reads and discards whitespace from the stream until either a non-space character is detected, or until atEnd() returns true. This function is useful when reading a stream character by character.

Whitespace characters are all characters for which QChar::isSpace() returns true.

See also operator>>().

func (*QTextStream) Status

func (this *QTextStream) Status() int

Returns the status of the text stream.

See also QTextStream::Status, setStatus(), and resetStatus().

func (*QTextStream) String

func (this *QTextStream) String() string

Returns the current string assigned to the QTextStream, or 0 if no string has been assigned.

See also setString() and device().

type QTextStreamManipulator

type QTextStreamManipulator struct {
	*qtrt.CObject
}

func NewQTextStreamManipulatorFromPointer

func NewQTextStreamManipulatorFromPointer(cthis unsafe.Pointer) *QTextStreamManipulator

func QSetFieldWidth

func QSetFieldWidth(width int) *QTextStreamManipulator

Equivalent to QTextStream::setFieldWidth(width).

func QSetPadChar

func QSetPadChar(ch QChar_ITF) *QTextStreamManipulator

Equivalent to QTextStream::setPadChar(ch).

func QSetRealNumberPrecision

func QSetRealNumberPrecision(precision int) *QTextStreamManipulator

Equivalent to QTextStream::setRealNumberPrecision(precision).

func (*QTextStreamManipulator) Exec

func (*QTextStreamManipulator) GetCthis

func (this *QTextStreamManipulator) GetCthis() unsafe.Pointer

func (*QTextStreamManipulator) NewFromPointer

func (*QTextStreamManipulator) QTextStreamManipulator_PTR

func (ptr *QTextStreamManipulator) QTextStreamManipulator_PTR() *QTextStreamManipulator

func (*QTextStreamManipulator) SetCthis

func (this *QTextStreamManipulator) SetCthis(cthis unsafe.Pointer)

type QTextStreamManipulator_ITF

type QTextStreamManipulator_ITF interface {
	QTextStreamManipulator_PTR() *QTextStreamManipulator
}

type QTextStream_ITF

type QTextStream_ITF interface {
	QTextStream_PTR() *QTextStream
}

type QTextStream__FieldAlignment

type QTextStream__FieldAlignment = int

This enum specifies how to align text in fields when the field is wider than the text that occupies it.

See also setFieldAlignment().

const QTextStream__AlignAccountingStyle QTextStream__FieldAlignment = 3

Same as AlignRight, except that the sign of a number is flush left.

const QTextStream__AlignCenter QTextStream__FieldAlignment = 2

Pad on both sides of field.

const QTextStream__AlignLeft QTextStream__FieldAlignment = 0

Pad on the right side of fields.

const QTextStream__AlignRight QTextStream__FieldAlignment = 1

Pad on the left side of fields.

type QTextStream__NumberFlag

type QTextStream__NumberFlag = int
const QTextStream__ForcePoint QTextStream__NumberFlag = 2
const QTextStream__ForceSign QTextStream__NumberFlag = 4
const QTextStream__ShowBase QTextStream__NumberFlag = 1
const QTextStream__UppercaseBase QTextStream__NumberFlag = 8
const QTextStream__UppercaseDigits QTextStream__NumberFlag = 16

type QTextStream__RealNumberNotation

type QTextStream__RealNumberNotation = int

This enum specifies which notations to use for expressing float and double as strings.

See also setRealNumberNotation().

const QTextStream__FixedNotation QTextStream__RealNumberNotation = 1

Fixed-point notation (printf()'s %f flag).

const QTextStream__ScientificNotation QTextStream__RealNumberNotation = 2

Scientific notation (printf()'s %e flag).

const QTextStream__SmartNotation QTextStream__RealNumberNotation = 0

Scientific or fixed-point notation, depending on which makes most sense (printf()'s %g flag).

type QTextStream__Status

type QTextStream__Status = int

This enum describes the current status of the text stream.

See also status().

const QTextStream__Ok QTextStream__Status = 0

The text stream is operating normally.

const QTextStream__ReadCorruptData QTextStream__Status = 2

The text stream has read corrupt data.

const QTextStream__ReadPastEnd QTextStream__Status = 1

The text stream has read past the end of the data in the underlying device.

const QTextStream__WriteFailed QTextStream__Status = 3

The text stream cannot write to the underlying device.

type QThread

type QThread struct {
	*QObject
}

func NewQThread

func NewQThread(parent QObject_ITF) *QThread

Constructs a new QThread to manage a new thread. The parent takes ownership of the QThread. The thread does not begin executing until start() is called.

See also start().

func NewQThreadFromPointer

func NewQThreadFromPointer(cthis unsafe.Pointer) *QThread

func NewQThread__

func NewQThread__() *QThread

Constructs a new QThread to manage a new thread. The parent takes ownership of the QThread. The thread does not begin executing until start() is called.

See also start().

func QThread_CurrentThread

func QThread_CurrentThread() *QThread

func (*QThread) CurrentThread

func (this *QThread) CurrentThread() *QThread

Returns a pointer to a QThread which manages the currently executing thread.

func (*QThread) CurrentThreadId

func (this *QThread) CurrentThreadId() int

Returns the thread handle of the currently executing thread.

Warning: The handle returned by this function is used for internal purposes and should not be used in any application code.

Warning: On Windows, the returned value is a pseudo-handle for the current thread. It can't be used for numerical comparison. i.e., this function returns the DWORD (Windows-Thread ID) returned by the Win32 function getCurrentThreadId(), not the HANDLE (Windows-Thread HANDLE) returned by the Win32 function getCurrentThread().

func (*QThread) Event

func (this *QThread) Event(event QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QThread) EventDispatcher

func (this *QThread) EventDispatcher() *QAbstractEventDispatcher

Returns a pointer to the event dispatcher object for the thread. If no event dispatcher exists for the thread, this function returns 0.

This function was introduced in Qt 5.0.

See also setEventDispatcher().

func (*QThread) Exec

func (this *QThread) Exec() int

Enters the event loop and waits until exit() is called, returning the value that was passed to exit(). The value returned is 0 if exit() is called via quit().

This function is meant to be called from within run(). It is necessary to call this function to start event handling.

See also quit() and exit().

func (*QThread) Exit

func (this *QThread) Exit(retcode int)

Tells the thread's event loop to exit with a return code.

After calling this function, the thread leaves the event loop and returns from the call to QEventLoop::exec(). The QEventLoop::exec() function returns returnCode.

By convention, a returnCode of 0 means success, any non-zero value indicates an error.

Note that unlike the C library function of the same name, this function does return to the caller -- it is event processing that stops.

No QEventLoops will be started anymore in this thread until QThread::exec() has been called again. If the eventloop in QThread::exec() is not running then the next call to QThread::exec() will also return immediately.

See also quit() and QEventLoop.

func (*QThread) Exit__

func (this *QThread) Exit__()

Tells the thread's event loop to exit with a return code.

After calling this function, the thread leaves the event loop and returns from the call to QEventLoop::exec(). The QEventLoop::exec() function returns returnCode.

By convention, a returnCode of 0 means success, any non-zero value indicates an error.

Note that unlike the C library function of the same name, this function does return to the caller -- it is event processing that stops.

No QEventLoops will be started anymore in this thread until QThread::exec() has been called again. If the eventloop in QThread::exec() is not running then the next call to QThread::exec() will also return immediately.

See also quit() and QEventLoop.

func (*QThread) GetCthis

func (this *QThread) GetCthis() unsafe.Pointer

func (*QThread) IdealThreadCount

func (this *QThread) IdealThreadCount() int

Returns the ideal number of threads that can be run on the system. This is done querying the number of processor cores, both real and logical, in the system. This function returns 1 if the number of processor cores could not be detected.

func (*QThread) InheritExec

func (this *QThread) InheritExec(f func() int)

int exec()

func (*QThread) InheritRun

func (this *QThread) InheritRun(f func())

void run()

func (*QThread) InheritSetTerminationEnabled

func (this *QThread) InheritSetTerminationEnabled(f func(enabled bool))

void setTerminationEnabled(_Bool)

func (*QThread) IsFinished

func (this *QThread) IsFinished() bool

Returns true if the thread is finished; otherwise returns false.

See also isRunning().

func (*QThread) IsInterruptionRequested

func (this *QThread) IsInterruptionRequested() bool

Return true if the task running on this thread should be stopped. An interruption can be requested by requestInterruption().

This function can be used to make long running tasks cleanly interruptible. Never checking or acting on the value returned by this function is safe, however it is advisable do so regularly in long running functions. Take care not to call it too often, to keep the overhead low.

void long_task() {
     forever {
        if ( QThread::currentThread()->isInterruptionRequested() ) {
            return;
        }
    }
}

This function was introduced in Qt 5.2.

See also currentThread() and requestInterruption().

func (*QThread) IsRunning

func (this *QThread) IsRunning() bool

Returns true if the thread is running; otherwise returns false.

See also isFinished().

func (*QThread) LoopLevel

func (this *QThread) LoopLevel() int

Returns the current event loop level for the thread.

Note: This can only be called within the thread itself, i.e. when it is the current thread.

This function was introduced in Qt 5.5.

func (*QThread) MetaObject

func (this *QThread) MetaObject() *QMetaObject

func (*QThread) Msleep

func (this *QThread) Msleep(arg0 uint)

Forces the current thread to sleep for msecs milliseconds.

See also sleep() and usleep().

func (*QThread) NewFromPointer

func (*QThread) NewFromPointer(cthis unsafe.Pointer) *QThread

func (*QThread) Priority

func (this *QThread) Priority() int

Returns the priority for a running thread. If the thread is not running, this function returns InheritPriority.

This function was introduced in Qt 4.1.

See also Priority, setPriority(), and start().

func (*QThread) QThread_PTR

func (ptr *QThread) QThread_PTR() *QThread

func (*QThread) Quit

func (this *QThread) Quit()

Tells the thread's event loop to exit with return code 0 (success). Equivalent to calling QThread::exit(0).

This function does nothing if the thread does not have an event loop.

See also exit() and QEventLoop.

func (*QThread) RequestInterruption

func (this *QThread) RequestInterruption()

Request the interruption of the thread. That request is advisory and it is up to code running on the thread to decide if and how it should act upon such request. This function does not stop any event loop running on the thread and does not terminate it in any way.

This function was introduced in Qt 5.2.

See also isInterruptionRequested().

func (*QThread) Run

func (this *QThread) Run()

The starting point for the thread. After calling start(), the newly created thread calls this function. The default implementation simply calls exec().

You can reimplement this function to facilitate advanced thread management. Returning from this method will end the execution of the thread.

See also start() and wait().

func (*QThread) SetCthis

func (this *QThread) SetCthis(cthis unsafe.Pointer)

func (*QThread) SetEventDispatcher

func (this *QThread) SetEventDispatcher(eventDispatcher QAbstractEventDispatcher_ITF)

Sets the event dispatcher for the thread to eventDispatcher. This is only possible as long as there is no event dispatcher installed for the thread yet. That is, before the thread has been started with start() or, in case of the main thread, before QCoreApplication has been instantiated. This method takes ownership of the object.

This function was introduced in Qt 5.0.

See also eventDispatcher().

func (*QThread) SetPriority

func (this *QThread) SetPriority(priority int)

This function sets the priority for a running thread. If the thread is not running, this function does nothing and returns immediately. Use start() to start a thread with a specific priority.

The priority argument can be any value in the QThread::Priority enum except for InheritPriorty.

The effect of the priority parameter is dependent on the operating system's scheduling policy. In particular, the priority will be ignored on systems that do not support thread priorities (such as on Linux, see http://linux.die.net/man/2/sched_setscheduler for more details).

This function was introduced in Qt 4.1.

See also Priority, priority(), and start().

func (*QThread) SetStackSize

func (this *QThread) SetStackSize(stackSize uint)

Sets the maximum stack size for the thread to stackSize. If stackSize is greater than zero, the maximum stack size is set to stackSize bytes, otherwise the maximum stack size is automatically determined by the operating system.

Warning: Most operating systems place minimum and maximum limits on thread stack sizes. The thread will fail to start if the stack size is outside these limits.

See also stackSize().

func (*QThread) SetTerminationEnabled

func (this *QThread) SetTerminationEnabled(enabled bool)

Enables or disables termination of the current thread based on the enabled parameter. The thread must have been started by QThread.

When enabled is false, termination is disabled. Future calls to QThread::terminate() will return immediately without effect. Instead, the termination is deferred until termination is enabled.

When enabled is true, termination is enabled. Future calls to QThread::terminate() will terminate the thread normally. If termination has been deferred (i.e. QThread::terminate() was called with termination disabled), this function will terminate the calling thread immediately. Note that this function will not return in this case.

See also terminate().

func (*QThread) SetTerminationEnabled__

func (this *QThread) SetTerminationEnabled__()

Enables or disables termination of the current thread based on the enabled parameter. The thread must have been started by QThread.

When enabled is false, termination is disabled. Future calls to QThread::terminate() will return immediately without effect. Instead, the termination is deferred until termination is enabled.

When enabled is true, termination is enabled. Future calls to QThread::terminate() will terminate the thread normally. If termination has been deferred (i.e. QThread::terminate() was called with termination disabled), this function will terminate the calling thread immediately. Note that this function will not return in this case.

See also terminate().

func (*QThread) Sleep

func (this *QThread) Sleep(arg0 uint)

Forces the current thread to sleep for secs seconds.

See also msleep() and usleep().

func (*QThread) StackSize

func (this *QThread) StackSize() uint

Returns the maximum stack size for the thread (if set with setStackSize()); otherwise returns zero.

See also setStackSize().

func (*QThread) Start

func (this *QThread) Start(arg0 int)

Begins execution of the thread by calling run(). The operating system will schedule the thread according to the priority parameter. If the thread is already running, this function does nothing.

The effect of the priority parameter is dependent on the operating system's scheduling policy. In particular, the priority will be ignored on systems that do not support thread priorities (such as on Linux, see the sched_setscheduler documentation for more details).

See also run() and terminate().

func (*QThread) Start__

func (this *QThread) Start__()

Begins execution of the thread by calling run(). The operating system will schedule the thread according to the priority parameter. If the thread is already running, this function does nothing.

The effect of the priority parameter is dependent on the operating system's scheduling policy. In particular, the priority will be ignored on systems that do not support thread priorities (such as on Linux, see the sched_setscheduler documentation for more details).

See also run() and terminate().

func (*QThread) Terminate

func (this *QThread) Terminate()

Terminates the execution of the thread. The thread may or may not be terminated immediately, depending on the operating system's scheduling policies. Use QThread::wait() after terminate(), to be sure.

When the thread is terminated, all threads waiting for the thread to finish will be woken up.

Warning: This function is dangerous and its use is discouraged. The thread can be terminated at any point in its code path. Threads can be terminated while modifying data. There is no chance for the thread to clean up after itself, unlock any held mutexes, etc. In short, use this function only if absolutely necessary.

Termination can be explicitly enabled or disabled by calling QThread::setTerminationEnabled(). Calling this function while termination is disabled results in the termination being deferred, until termination is re-enabled. See the documentation of QThread::setTerminationEnabled() for more information.

See also setTerminationEnabled().

func (*QThread) Usleep

func (this *QThread) Usleep(arg0 uint)

Forces the current thread to sleep for usecs microseconds.

See also sleep() and msleep().

func (*QThread) Wait

func (this *QThread) Wait(time uint) bool

Blocks the thread until either of these conditions is met:

The thread associated with this QThread object has finished execution (i.e. when it returns from run()). This function will return true if the thread has finished. It also returns true if the thread has not been started yet. time milliseconds has elapsed. If time is ULONG_MAX (the default), then the wait will never timeout (the thread must return from run()). This function will return false if the wait timed out.

This provides similar functionality to the POSIX pthread_join() function.

See also sleep() and terminate().

func (*QThread) Wait__

func (this *QThread) Wait__() bool

Blocks the thread until either of these conditions is met:

The thread associated with this QThread object has finished execution (i.e. when it returns from run()). This function will return true if the thread has finished. It also returns true if the thread has not been started yet. time milliseconds has elapsed. If time is ULONG_MAX (the default), then the wait will never timeout (the thread must return from run()). This function will return false if the wait timed out.

This provides similar functionality to the POSIX pthread_join() function.

See also sleep() and terminate().

func (*QThread) YieldCurrentThread

func (this *QThread) YieldCurrentThread()

Yields execution of the current thread to another runnable thread, if any. Note that the operating system decides to which thread to switch.

type QThreadPool

type QThreadPool struct {
	*QObject
}

func NewQThreadPool

func NewQThreadPool(parent QObject_ITF) *QThreadPool

Constructs a thread pool with the given parent.

func NewQThreadPoolFromPointer

func NewQThreadPoolFromPointer(cthis unsafe.Pointer) *QThreadPool

func NewQThreadPool__

func NewQThreadPool__() *QThreadPool

Constructs a thread pool with the given parent.

func QThreadPool_GlobalInstance

func QThreadPool_GlobalInstance() *QThreadPool

func (*QThreadPool) ActiveThreadCount

func (this *QThreadPool) ActiveThreadCount() int

func (*QThreadPool) Cancel

func (this *QThreadPool) Cancel(runnable QRunnable_ITF)

func (*QThreadPool) Clear

func (this *QThreadPool) Clear()

Removes the runnables that are not yet started from the queue. The runnables for which runnable->autoDelete() returns true are deleted.

This function was introduced in Qt 5.2.

See also start().

func (*QThreadPool) ExpiryTimeout

func (this *QThreadPool) ExpiryTimeout() int

func (*QThreadPool) GetCthis

func (this *QThreadPool) GetCthis() unsafe.Pointer

func (*QThreadPool) GlobalInstance

func (this *QThreadPool) GlobalInstance() *QThreadPool

Returns the global QThreadPool instance.

func (*QThreadPool) MaxThreadCount

func (this *QThreadPool) MaxThreadCount() int

func (*QThreadPool) MetaObject

func (this *QThreadPool) MetaObject() *QMetaObject

func (*QThreadPool) NewFromPointer

func (*QThreadPool) NewFromPointer(cthis unsafe.Pointer) *QThreadPool

func (*QThreadPool) QThreadPool_PTR

func (ptr *QThreadPool) QThreadPool_PTR() *QThreadPool

func (*QThreadPool) ReleaseThread

func (this *QThreadPool) ReleaseThread()

Releases a thread previously reserved by a call to reserveThread().

Note: Calling this function without previously reserving a thread temporarily increases maxThreadCount(). This is useful when a thread goes to sleep waiting for more work, allowing other threads to continue. Be sure to call reserveThread() when done waiting, so that the thread pool can correctly maintain the activeThreadCount().

See also reserveThread().

func (*QThreadPool) ReserveThread

func (this *QThreadPool) ReserveThread()

Reserves one thread, disregarding activeThreadCount() and maxThreadCount().

Once you are done with the thread, call releaseThread() to allow it to be reused.

Note: This function will always increase the number of active threads. This means that by using this function, it is possible for activeThreadCount() to return a value greater than maxThreadCount() .

See also releaseThread().

func (*QThreadPool) SetCthis

func (this *QThreadPool) SetCthis(cthis unsafe.Pointer)

func (*QThreadPool) SetExpiryTimeout

func (this *QThreadPool) SetExpiryTimeout(expiryTimeout int)

func (*QThreadPool) SetMaxThreadCount

func (this *QThreadPool) SetMaxThreadCount(maxThreadCount int)

func (*QThreadPool) SetStackSize

func (this *QThreadPool) SetStackSize(stackSize uint)

func (*QThreadPool) StackSize

func (this *QThreadPool) StackSize() uint

func (*QThreadPool) Start

func (this *QThreadPool) Start(runnable QRunnable_ITF, priority int)

Reserves a thread and uses it to run runnable, unless this thread will make the current thread count exceed maxThreadCount(). In that case, runnable is added to a run queue instead. The priority argument can be used to control the run queue's order of execution.

Note that the thread pool takes ownership of the runnable if runnable->autoDelete() returns true, and the runnable will be deleted automatically by the thread pool after the runnable->run() returns. If runnable->autoDelete() returns false, ownership of runnable remains with the caller. Note that changing the auto-deletion on runnable after calling this functions results in undefined behavior.

func (*QThreadPool) Start__

func (this *QThreadPool) Start__(runnable QRunnable_ITF)

Reserves a thread and uses it to run runnable, unless this thread will make the current thread count exceed maxThreadCount(). In that case, runnable is added to a run queue instead. The priority argument can be used to control the run queue's order of execution.

Note that the thread pool takes ownership of the runnable if runnable->autoDelete() returns true, and the runnable will be deleted automatically by the thread pool after the runnable->run() returns. If runnable->autoDelete() returns false, ownership of runnable remains with the caller. Note that changing the auto-deletion on runnable after calling this functions results in undefined behavior.

func (*QThreadPool) TryStart

func (this *QThreadPool) TryStart(runnable QRunnable_ITF) bool

Attempts to reserve a thread to run runnable.

If no threads are available at the time of calling, then this function does nothing and returns false. Otherwise, runnable is run immediately using one available thread and this function returns true.

Note that the thread pool takes ownership of the runnable if runnable->autoDelete() returns true, and the runnable will be deleted automatically by the thread pool after the runnable->run() returns. If runnable->autoDelete() returns false, ownership of runnable remains with the caller. Note that changing the auto-deletion on runnable after calling this function results in undefined behavior.

func (*QThreadPool) TryTake

func (this *QThreadPool) TryTake(runnable QRunnable_ITF) bool

Attempts to remove the specified runnable from the queue if it is not yet started. If the runnable had not been started, returns true, and ownership of runnable is transferred to the caller (even when runnable->autoDelete() == true). Otherwise returns false.

Note: If runnable->autoDelete() == true, this function may remove the wrong runnable. This is known as the ABA problem: the original runnable may already have executed and has since been deleted. The memory is re-used for another runnable, which then gets removed instead of the intended one. For this reason, we recommend calling this function only for runnables that are not auto-deleting.

This function was introduced in Qt 5.9.

See also start() and QRunnable::autoDelete().

func (*QThreadPool) WaitForDone

func (this *QThreadPool) WaitForDone(msecs int) bool

Waits up to msecs milliseconds for all threads to exit and removes all threads from the thread pool. Returns true if all threads were removed; otherwise it returns false. If msecs is -1 (the default), the timeout is ignored (waits for the last thread to exit).

func (*QThreadPool) WaitForDone__

func (this *QThreadPool) WaitForDone__() bool

Waits up to msecs milliseconds for all threads to exit and removes all threads from the thread pool. Returns true if all threads were removed; otherwise it returns false. If msecs is -1 (the default), the timeout is ignored (waits for the last thread to exit).

type QThreadPool_ITF

type QThreadPool_ITF interface {
	QObject_ITF
	QThreadPool_PTR() *QThreadPool
}

type QThreadStorageData

type QThreadStorageData struct {
	*qtrt.CObject
}

func NewQThreadStorageDataFromPointer

func NewQThreadStorageDataFromPointer(cthis unsafe.Pointer) *QThreadStorageData

func (*QThreadStorageData) Finish

func (this *QThreadStorageData) Finish(arg0 unsafe.Pointer)

func (*QThreadStorageData) Get

func (this *QThreadStorageData) Get() unsafe.Pointer

func (*QThreadStorageData) GetCthis

func (this *QThreadStorageData) GetCthis() unsafe.Pointer

func (*QThreadStorageData) NewFromPointer

func (*QThreadStorageData) NewFromPointer(cthis unsafe.Pointer) *QThreadStorageData

func (*QThreadStorageData) QThreadStorageData_PTR

func (ptr *QThreadStorageData) QThreadStorageData_PTR() *QThreadStorageData

func (*QThreadStorageData) Set

func (*QThreadStorageData) SetCthis

func (this *QThreadStorageData) SetCthis(cthis unsafe.Pointer)

type QThreadStorageData_ITF

type QThreadStorageData_ITF interface {
	QThreadStorageData_PTR() *QThreadStorageData
}

type QThread_ITF

type QThread_ITF interface {
	QObject_ITF
	QThread_PTR() *QThread
}

type QThread__Priority

type QThread__Priority = int

This enum type indicates how the operating system should schedule newly created threads.

const QThread__HighPriority QThread__Priority = 4

scheduled more often than NormalPriority.

const QThread__HighestPriority QThread__Priority = 5

scheduled more often than HighPriority.

const QThread__IdlePriority QThread__Priority = 0

scheduled only when no other threads are running.

const QThread__InheritPriority QThread__Priority = 7

use the same priority as the creating thread. This is the default.

const QThread__LowPriority QThread__Priority = 2

scheduled less often than NormalPriority.

const QThread__LowestPriority QThread__Priority = 1

scheduled less often than LowPriority.

const QThread__NormalPriority QThread__Priority = 3

the default priority of the operating system.

const QThread__TimeCriticalPriority QThread__Priority = 6

scheduled as often as possible.

type QTime

type QTime struct {
	*qtrt.CObject
}

func NewQTime

func NewQTime() *QTime

func NewQTimeFromPointer

func NewQTimeFromPointer(cthis unsafe.Pointer) *QTime

func NewQTime_1

func NewQTime_1(h int, m int, s int, ms int) *QTime

func NewQTime_1_

func NewQTime_1_(h int, m int) *QTime

func NewQTime_1_1

func NewQTime_1_1(h int, m int, s int) *QTime

func QTime_CurrentTime

func QTime_CurrentTime() *QTime

func QTime_FromMSecsSinceStartOfDay

func QTime_FromMSecsSinceStartOfDay(msecs int) *QTime

func QTime_FromString

func QTime_FromString(s string, f int) *QTime

func QTime_FromString_1

func QTime_FromString_1(s string, format string) *QTime

func (*QTime) AddMSecs

func (this *QTime) AddMSecs(ms int) *QTime

Returns a QDateTime object containing a datetime msecs miliseconds later than the datetime of this object (or earlier if msecs is negative).

If this datetime is invalid, an invalid datetime will be returned.

See also addSecs(), msecsTo(), addDays(), addMonths(), and addYears().

func (*QTime) AddSecs

func (this *QTime) AddSecs(secs int) *QTime

Returns a QDateTime object containing a datetime s seconds later than the datetime of this object (or earlier if s is negative).

If this datetime is invalid, an invalid datetime will be returned.

See also addMSecs(), secsTo(), addDays(), addMonths(), and addYears().

func (*QTime) CurrentTime

func (this *QTime) CurrentTime() *QTime

func (*QTime) Elapsed

func (this *QTime) Elapsed() int

func (*QTime) FromMSecsSinceStartOfDay

func (this *QTime) FromMSecsSinceStartOfDay(msecs int) *QTime

func (*QTime) FromString

func (this *QTime) FromString(s string, f int) *QTime

Returns the QDateTime represented by the string, using the format given, or an invalid datetime if this is not possible.

Note for Qt::TextDate: It is recommended that you use the English short month names (e.g. "Jan"). Although localized month names can also be used, they depend on the user's locale settings.

See also toString() and QLocale::toDateTime().

func (*QTime) FromString_1

func (this *QTime) FromString_1(s string, format string) *QTime

Returns the QDateTime represented by the string, using the format given, or an invalid datetime if this is not possible.

Note for Qt::TextDate: It is recommended that you use the English short month names (e.g. "Jan"). Although localized month names can also be used, they depend on the user's locale settings.

See also toString() and QLocale::toDateTime().

func (*QTime) FromString__

func (this *QTime) FromString__(s string) *QTime

Returns the QDateTime represented by the string, using the format given, or an invalid datetime if this is not possible.

Note for Qt::TextDate: It is recommended that you use the English short month names (e.g. "Jan"). Although localized month names can also be used, they depend on the user's locale settings.

See also toString() and QLocale::toDateTime().

func (*QTime) GetCthis

func (this *QTime) GetCthis() unsafe.Pointer

func (*QTime) Hour

func (this *QTime) Hour() int

func (*QTime) IsNull

func (this *QTime) IsNull() bool

Returns true if both the date and the time are null; otherwise returns false. A null datetime is invalid.

See also QDate::isNull(), QTime::isNull(), and isValid().

func (*QTime) IsValid

func (this *QTime) IsValid() bool

Returns true if both the date and the time are valid and they are valid in the current Qt::TimeSpec, otherwise returns false.

If the timeSpec() is Qt::LocalTime or Qt::TimeZone then the date and time are checked to see if they fall in the Standard Time to Daylight-Saving Time transition hour, i.e. if the transition is at 2am and the clock goes forward to 3am then the time from 02:00:00 to 02:59:59.999 is considered to be invalid.

See also QDate::isValid() and QTime::isValid().

func (*QTime) IsValid_1

func (this *QTime) IsValid_1(h int, m int, s int, ms int) bool

Returns true if both the date and the time are valid and they are valid in the current Qt::TimeSpec, otherwise returns false.

If the timeSpec() is Qt::LocalTime or Qt::TimeZone then the date and time are checked to see if they fall in the Standard Time to Daylight-Saving Time transition hour, i.e. if the transition is at 2am and the clock goes forward to 3am then the time from 02:00:00 to 02:59:59.999 is considered to be invalid.

See also QDate::isValid() and QTime::isValid().

func (*QTime) IsValid_1_

func (this *QTime) IsValid_1_(h int, m int, s int) bool

Returns true if both the date and the time are valid and they are valid in the current Qt::TimeSpec, otherwise returns false.

If the timeSpec() is Qt::LocalTime or Qt::TimeZone then the date and time are checked to see if they fall in the Standard Time to Daylight-Saving Time transition hour, i.e. if the transition is at 2am and the clock goes forward to 3am then the time from 02:00:00 to 02:59:59.999 is considered to be invalid.

See also QDate::isValid() and QTime::isValid().

func (*QTime) Minute

func (this *QTime) Minute() int

func (*QTime) Msec

func (this *QTime) Msec() int

func (*QTime) MsecsSinceStartOfDay

func (this *QTime) MsecsSinceStartOfDay() int

func (*QTime) MsecsTo

func (this *QTime) MsecsTo(arg0 QTime_ITF) int

Returns the number of milliseconds from this datetime to the other datetime. If the other datetime is earlier than this datetime, the value returned is negative.

Before performing the comparison, the two datetimes are converted to Qt::UTC to ensure that the result is correct if daylight-saving (DST) applies to one of the two datetimes and but not the other.

Returns 0 if either datetime is invalid.

See also addMSecs(), daysTo(), and QTime::msecsTo().

func (*QTime) NewFromPointer

func (*QTime) NewFromPointer(cthis unsafe.Pointer) *QTime

func (*QTime) Operator_equal_equal

func (this *QTime) Operator_equal_equal(other QTime_ITF) bool

func (*QTime) Operator_greater_than

func (this *QTime) Operator_greater_than(other QTime_ITF) bool

func (*QTime) Operator_greater_than_equal

func (this *QTime) Operator_greater_than_equal(other QTime_ITF) bool

func (*QTime) Operator_less_than

func (this *QTime) Operator_less_than(other QTime_ITF) bool

func (*QTime) Operator_less_than_equal

func (this *QTime) Operator_less_than_equal(other QTime_ITF) bool

func (*QTime) Operator_not_equal

func (this *QTime) Operator_not_equal(other QTime_ITF) bool

func (*QTime) QTime_PTR

func (ptr *QTime) QTime_PTR() *QTime

func (*QTime) Restart

func (this *QTime) Restart() int

func (*QTime) Second

func (this *QTime) Second() int

func (*QTime) SecsTo

func (this *QTime) SecsTo(arg0 QTime_ITF) int

Returns the number of seconds from this datetime to the other datetime. If the other datetime is earlier than this datetime, the value returned is negative.

Before performing the comparison, the two datetimes are converted to Qt::UTC to ensure that the result is correct if daylight-saving (DST) applies to one of the two datetimes but not the other.

Returns 0 if either datetime is invalid.

Example:

QDateTime now = QDateTime::currentDateTime();
QDateTime xmas(QDate(now.date().year(), 12, 25), QTime(0, 0));
qDebug("There are %d seconds to Christmas", now.secsTo(xmas));

See also addSecs(), daysTo(), and QTime::secsTo().

func (*QTime) SetCthis

func (this *QTime) SetCthis(cthis unsafe.Pointer)

func (*QTime) SetHMS

func (this *QTime) SetHMS(h int, m int, s int, ms int) bool

func (*QTime) SetHMS__

func (this *QTime) SetHMS__(h int, m int, s int) bool

func (*QTime) Start

func (this *QTime) Start()

func (*QTime) ToString

func (this *QTime) ToString(f int) string

Returns the datetime as a string. The format parameter determines the format of the result string.

These expressions may be used for the date:

ExpressionOutput

dthe day as number without a leading zero (1 to 31) ddthe day as number with a leading zero (01 to 31) dddthe abbreviated localized day name (e.g. 'Mon' to 'Sun'). Uses the system locale to localize the name, i.e. QLocale::system(). ddddthe long localized day name (e.g. 'Monday' to 'Sunday'). Uses the system locale to localize the name, i.e. QLocale::system(). Mthe month as number without a leading zero (1-12) MMthe month as number with a leading zero (01-12) MMMthe abbreviated localized month name (e.g. 'Jan' to 'Dec'). Uses the system locale to localize the name, i.e. QLocale::system(). MMMMthe long localized month name (e.g. 'January' to 'December'). Uses the system locale to localize the name, i.e. QLocale::system(). yythe year as two digit number (00-99) yyyythe year as four digit number

These expressions may be used for the time:

ExpressionOutput

hthe hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display) hhthe hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display) Hthe hour without a leading zero (0 to 23, even with AM/PM display) HHthe hour with a leading zero (00 to 23, even with AM/PM display) mthe minute without a leading zero (0 to 59) mmthe minute with a leading zero (00 to 59) sthe whole second without a leading zero (0 to 59) ssthe whole second with a leading zero where applicable (00 to 59) zthe fractional part of the second, to go after a decimal point, without trailing zeroes (0 to 999). Thus "s.z" reports the seconds to full available (millisecond) precision without trailing zeroes. zzzthe fractional part of the second, to millisecond precision, including trailing zeroes where applicable (000 to 999). AP or Ause AM/PM display. A/AP will be replaced by either "AM" or "PM". ap or ause am/pm display. a/ap will be replaced by either "am" or "pm". tthe timezone (for example "CEST")

All other input characters will be ignored. Any sequence of characters that are enclosed in single quotes will be treated as text and not be used as an expression. Two consecutive single quotes ("”") are replaced by a singlequote in the output. Formats without separators (e.g. "HHmm") are currently not supported.

Example format strings (assumed that the QDateTime is 21 May 2001 14:13:09.120):

FormatResult

dd.MM.yyyy21.05.2001 ddd MMMM d yyTue May 21 01 hh:mm:ss.zzz14:13:09.120 hh:mm:ss.z14:13:09.12 h:m:s ap2:13:9 pm

If the datetime is invalid, an empty string will be returned.

See also fromString(), QDate::toString(), QTime::toString(), and QLocale::toString().

func (*QTime) ToString_1

func (this *QTime) ToString_1(format string) string

Returns the datetime as a string. The format parameter determines the format of the result string.

These expressions may be used for the date:

ExpressionOutput

dthe day as number without a leading zero (1 to 31) ddthe day as number with a leading zero (01 to 31) dddthe abbreviated localized day name (e.g. 'Mon' to 'Sun'). Uses the system locale to localize the name, i.e. QLocale::system(). ddddthe long localized day name (e.g. 'Monday' to 'Sunday'). Uses the system locale to localize the name, i.e. QLocale::system(). Mthe month as number without a leading zero (1-12) MMthe month as number with a leading zero (01-12) MMMthe abbreviated localized month name (e.g. 'Jan' to 'Dec'). Uses the system locale to localize the name, i.e. QLocale::system(). MMMMthe long localized month name (e.g. 'January' to 'December'). Uses the system locale to localize the name, i.e. QLocale::system(). yythe year as two digit number (00-99) yyyythe year as four digit number

These expressions may be used for the time:

ExpressionOutput

hthe hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display) hhthe hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display) Hthe hour without a leading zero (0 to 23, even with AM/PM display) HHthe hour with a leading zero (00 to 23, even with AM/PM display) mthe minute without a leading zero (0 to 59) mmthe minute with a leading zero (00 to 59) sthe whole second without a leading zero (0 to 59) ssthe whole second with a leading zero where applicable (00 to 59) zthe fractional part of the second, to go after a decimal point, without trailing zeroes (0 to 999). Thus "s.z" reports the seconds to full available (millisecond) precision without trailing zeroes. zzzthe fractional part of the second, to millisecond precision, including trailing zeroes where applicable (000 to 999). AP or Ause AM/PM display. A/AP will be replaced by either "AM" or "PM". ap or ause am/pm display. a/ap will be replaced by either "am" or "pm". tthe timezone (for example "CEST")

All other input characters will be ignored. Any sequence of characters that are enclosed in single quotes will be treated as text and not be used as an expression. Two consecutive single quotes ("”") are replaced by a singlequote in the output. Formats without separators (e.g. "HHmm") are currently not supported.

Example format strings (assumed that the QDateTime is 21 May 2001 14:13:09.120):

FormatResult

dd.MM.yyyy21.05.2001 ddd MMMM d yyTue May 21 01 hh:mm:ss.zzz14:13:09.120 hh:mm:ss.z14:13:09.12 h:m:s ap2:13:9 pm

If the datetime is invalid, an empty string will be returned.

See also fromString(), QDate::toString(), QTime::toString(), and QLocale::toString().

func (*QTime) ToString_2

func (this *QTime) ToString_2(format QStringView_ITF) string

Returns the datetime as a string. The format parameter determines the format of the result string.

These expressions may be used for the date:

ExpressionOutput

dthe day as number without a leading zero (1 to 31) ddthe day as number with a leading zero (01 to 31) dddthe abbreviated localized day name (e.g. 'Mon' to 'Sun'). Uses the system locale to localize the name, i.e. QLocale::system(). ddddthe long localized day name (e.g. 'Monday' to 'Sunday'). Uses the system locale to localize the name, i.e. QLocale::system(). Mthe month as number without a leading zero (1-12) MMthe month as number with a leading zero (01-12) MMMthe abbreviated localized month name (e.g. 'Jan' to 'Dec'). Uses the system locale to localize the name, i.e. QLocale::system(). MMMMthe long localized month name (e.g. 'January' to 'December'). Uses the system locale to localize the name, i.e. QLocale::system(). yythe year as two digit number (00-99) yyyythe year as four digit number

These expressions may be used for the time:

ExpressionOutput

hthe hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display) hhthe hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display) Hthe hour without a leading zero (0 to 23, even with AM/PM display) HHthe hour with a leading zero (00 to 23, even with AM/PM display) mthe minute without a leading zero (0 to 59) mmthe minute with a leading zero (00 to 59) sthe whole second without a leading zero (0 to 59) ssthe whole second with a leading zero where applicable (00 to 59) zthe fractional part of the second, to go after a decimal point, without trailing zeroes (0 to 999). Thus "s.z" reports the seconds to full available (millisecond) precision without trailing zeroes. zzzthe fractional part of the second, to millisecond precision, including trailing zeroes where applicable (000 to 999). AP or Ause AM/PM display. A/AP will be replaced by either "AM" or "PM". ap or ause am/pm display. a/ap will be replaced by either "am" or "pm". tthe timezone (for example "CEST")

All other input characters will be ignored. Any sequence of characters that are enclosed in single quotes will be treated as text and not be used as an expression. Two consecutive single quotes ("”") are replaced by a singlequote in the output. Formats without separators (e.g. "HHmm") are currently not supported.

Example format strings (assumed that the QDateTime is 21 May 2001 14:13:09.120):

FormatResult

dd.MM.yyyy21.05.2001 ddd MMMM d yyTue May 21 01 hh:mm:ss.zzz14:13:09.120 hh:mm:ss.z14:13:09.12 h:m:s ap2:13:9 pm

If the datetime is invalid, an empty string will be returned.

See also fromString(), QDate::toString(), QTime::toString(), and QLocale::toString().

func (*QTime) ToString__

func (this *QTime) ToString__() string

Returns the datetime as a string. The format parameter determines the format of the result string.

These expressions may be used for the date:

ExpressionOutput

dthe day as number without a leading zero (1 to 31) ddthe day as number with a leading zero (01 to 31) dddthe abbreviated localized day name (e.g. 'Mon' to 'Sun'). Uses the system locale to localize the name, i.e. QLocale::system(). ddddthe long localized day name (e.g. 'Monday' to 'Sunday'). Uses the system locale to localize the name, i.e. QLocale::system(). Mthe month as number without a leading zero (1-12) MMthe month as number with a leading zero (01-12) MMMthe abbreviated localized month name (e.g. 'Jan' to 'Dec'). Uses the system locale to localize the name, i.e. QLocale::system(). MMMMthe long localized month name (e.g. 'January' to 'December'). Uses the system locale to localize the name, i.e. QLocale::system(). yythe year as two digit number (00-99) yyyythe year as four digit number

These expressions may be used for the time:

ExpressionOutput

hthe hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display) hhthe hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display) Hthe hour without a leading zero (0 to 23, even with AM/PM display) HHthe hour with a leading zero (00 to 23, even with AM/PM display) mthe minute without a leading zero (0 to 59) mmthe minute with a leading zero (00 to 59) sthe whole second without a leading zero (0 to 59) ssthe whole second with a leading zero where applicable (00 to 59) zthe fractional part of the second, to go after a decimal point, without trailing zeroes (0 to 999). Thus "s.z" reports the seconds to full available (millisecond) precision without trailing zeroes. zzzthe fractional part of the second, to millisecond precision, including trailing zeroes where applicable (000 to 999). AP or Ause AM/PM display. A/AP will be replaced by either "AM" or "PM". ap or ause am/pm display. a/ap will be replaced by either "am" or "pm". tthe timezone (for example "CEST")

All other input characters will be ignored. Any sequence of characters that are enclosed in single quotes will be treated as text and not be used as an expression. Two consecutive single quotes ("”") are replaced by a singlequote in the output. Formats without separators (e.g. "HHmm") are currently not supported.

Example format strings (assumed that the QDateTime is 21 May 2001 14:13:09.120):

FormatResult

dd.MM.yyyy21.05.2001 ddd MMMM d yyTue May 21 01 hh:mm:ss.zzz14:13:09.120 hh:mm:ss.z14:13:09.12 h:m:s ap2:13:9 pm

If the datetime is invalid, an empty string will be returned.

See also fromString(), QDate::toString(), QTime::toString(), and QLocale::toString().

type QTimeLine

type QTimeLine struct {
	*QObject
}

func NewQTimeLine

func NewQTimeLine(duration int, parent QObject_ITF) *QTimeLine

Constructs a timeline with a duration of duration milliseconds. parent is passed to QObject's constructor. The default duration is 1000 milliseconds.

func NewQTimeLineFromPointer

func NewQTimeLineFromPointer(cthis unsafe.Pointer) *QTimeLine

func NewQTimeLine__

func NewQTimeLine__() *QTimeLine

Constructs a timeline with a duration of duration milliseconds. parent is passed to QObject's constructor. The default duration is 1000 milliseconds.

func NewQTimeLine__1

func NewQTimeLine__1(duration int) *QTimeLine

Constructs a timeline with a duration of duration milliseconds. parent is passed to QObject's constructor. The default duration is 1000 milliseconds.

func (*QTimeLine) CurrentFrame

func (this *QTimeLine) CurrentFrame() int

Returns the frame corresponding to the current time.

See also currentTime(), frameForTime(), and setFrameRange().

func (*QTimeLine) CurrentTime

func (this *QTimeLine) CurrentTime() int

func (*QTimeLine) CurrentValue

func (this *QTimeLine) CurrentValue() float64

Returns the value corresponding to the current time.

See also valueForTime() and currentFrame().

func (*QTimeLine) CurveShape

func (this *QTimeLine) CurveShape() int

func (*QTimeLine) Direction

func (this *QTimeLine) Direction() int

func (*QTimeLine) Duration

func (this *QTimeLine) Duration() int

func (*QTimeLine) EasingCurve

func (this *QTimeLine) EasingCurve() *QEasingCurve

func (*QTimeLine) EndFrame

func (this *QTimeLine) EndFrame() int

Returns the end frame, which is the frame corresponding to the end of the timeline (i.e., the frame for which the current value is 1).

See also setEndFrame() and setFrameRange().

func (*QTimeLine) FrameForTime

func (this *QTimeLine) FrameForTime(msec int) int

Returns the frame corresponding to the time msec. This value is calculated using a linear interpolation of the start and end frame, based on the value returned by valueForTime().

See also valueForTime() and setFrameRange().

func (*QTimeLine) GetCthis

func (this *QTimeLine) GetCthis() unsafe.Pointer

func (*QTimeLine) InheritTimerEvent

func (this *QTimeLine) InheritTimerEvent(f func(event *QTimerEvent))

void timerEvent(class QTimerEvent *)

func (*QTimeLine) LoopCount

func (this *QTimeLine) LoopCount() int

func (*QTimeLine) MetaObject

func (this *QTimeLine) MetaObject() *QMetaObject

func (*QTimeLine) NewFromPointer

func (*QTimeLine) NewFromPointer(cthis unsafe.Pointer) *QTimeLine

func (*QTimeLine) QTimeLine_PTR

func (ptr *QTimeLine) QTimeLine_PTR() *QTimeLine

func (*QTimeLine) Resume

func (this *QTimeLine) Resume()

Resumes the timeline from the current time. QTimeLine will reenter Running state, and once it enters the event loop, it will update its current time, frame and value at regular intervals.

In contrast to start(), this function does not restart the timeline before it resumes.

See also start(), updateInterval(), frameChanged(), and valueChanged().

func (*QTimeLine) SetCthis

func (this *QTimeLine) SetCthis(cthis unsafe.Pointer)

func (*QTimeLine) SetCurrentTime

func (this *QTimeLine) SetCurrentTime(msec int)

func (*QTimeLine) SetCurveShape

func (this *QTimeLine) SetCurveShape(shape int)

func (*QTimeLine) SetDirection

func (this *QTimeLine) SetDirection(direction int)

func (*QTimeLine) SetDuration

func (this *QTimeLine) SetDuration(duration int)

func (*QTimeLine) SetEasingCurve

func (this *QTimeLine) SetEasingCurve(curve QEasingCurve_ITF)

func (*QTimeLine) SetEndFrame

func (this *QTimeLine) SetEndFrame(frame int)

Sets the end frame, which is the frame corresponding to the end of the timeline (i.e., the frame for which the current value is 1), to frame.

See also endFrame(), startFrame(), and setFrameRange().

func (*QTimeLine) SetFrameRange

func (this *QTimeLine) SetFrameRange(startFrame int, endFrame int)

Sets the timeline's frame counter to start at startFrame, and end and endFrame. For each time value, QTimeLine will find the corresponding frame when you call currentFrame() or frameForTime() by interpolating, using the return value of valueForTime().

When in Running state, QTimeLine also emits the frameChanged() signal when the frame changes.

See also startFrame(), endFrame(), start(), and currentFrame().

func (*QTimeLine) SetLoopCount

func (this *QTimeLine) SetLoopCount(count int)

func (*QTimeLine) SetPaused

func (this *QTimeLine) SetPaused(paused bool)

If paused is true, the timeline is paused, causing QTimeLine to enter Paused state. No updates will be signaled until either start() or setPaused(false) is called. If paused is false, the timeline is resumed and continues where it left.

See also state() and start().

func (*QTimeLine) SetStartFrame

func (this *QTimeLine) SetStartFrame(frame int)

Sets the start frame, which is the frame corresponding to the start of the timeline (i.e., the frame for which the current value is 0), to frame.

See also startFrame(), endFrame(), and setFrameRange().

func (*QTimeLine) SetUpdateInterval

func (this *QTimeLine) SetUpdateInterval(interval int)

func (*QTimeLine) Start

func (this *QTimeLine) Start()

Starts the timeline. QTimeLine will enter Running state, and once it enters the event loop, it will update its current time, frame and value at regular intervals. The default interval is 40 ms (i.e., 25 times per second). You can change the update interval by calling setUpdateInterval().

The timeline will start from position 0, or the end if going backward. If you want to resume a stopped timeline without restarting, you can call resume() instead.

See also resume(), updateInterval(), frameChanged(), and valueChanged().

func (*QTimeLine) StartFrame

func (this *QTimeLine) StartFrame() int

Returns the start frame, which is the frame corresponding to the start of the timeline (i.e., the frame for which the current value is 0).

See also setStartFrame() and setFrameRange().

func (*QTimeLine) State

func (this *QTimeLine) State() int

Returns the state of the timeline.

See also start(), setPaused(), and stop().

func (*QTimeLine) Stop

func (this *QTimeLine) Stop()

Stops the timeline, causing QTimeLine to enter NotRunning state.

See also start().

func (*QTimeLine) TimerEvent

func (this *QTimeLine) TimerEvent(event QTimerEvent_ITF)

Reimplemented from QObject::timerEvent().

func (*QTimeLine) ToggleDirection

func (this *QTimeLine) ToggleDirection()

Toggles the direction of the timeline. If the direction was Forward, it becomes Backward, and vice verca.

See also setDirection().

func (*QTimeLine) UpdateInterval

func (this *QTimeLine) UpdateInterval() int

func (*QTimeLine) ValueForTime

func (this *QTimeLine) ValueForTime(msec int) float64

Returns the timeline value for the time msec. The returned value, which varies depending on the curve shape, is always between 0 and 1. If msec is 0, the default implementation always returns 0.

Reimplement this function to provide a custom curve shape for your timeline.

See also CurveShape and frameForTime().

type QTimeLine_ITF

type QTimeLine_ITF interface {
	QObject_ITF
	QTimeLine_PTR() *QTimeLine
}

type QTimeLine__CurveShape

type QTimeLine__CurveShape = int

This enum describes the default shape of QTimeLine's value curve. The default, shape is EaseInOutCurve. The curve defines the relation between the value and the timeline.

See also setCurveShape().

const QTimeLine__CosineCurve QTimeLine__CurveShape = 5

The value grows cosinusoidally.

const QTimeLine__EaseInCurve QTimeLine__CurveShape = 0

The value starts growing slowly, then increases in speed.

const QTimeLine__EaseInOutCurve QTimeLine__CurveShape = 2

The value starts growing slowly, then runs steadily, then grows slowly again.

const QTimeLine__EaseOutCurve QTimeLine__CurveShape = 1

The value starts growing steadily, then ends slowly.

const QTimeLine__LinearCurve QTimeLine__CurveShape = 3
const QTimeLine__SineCurve QTimeLine__CurveShape = 4

The value grows sinusoidally.

type QTimeLine__Direction

type QTimeLine__Direction = int

This enum describes the direction of the timeline when in Running state.

See also setDirection().

const QTimeLine__Backward QTimeLine__Direction = 1
const QTimeLine__Forward QTimeLine__Direction = 0

type QTimeLine__State

type QTimeLine__State = int

This enum describes the state of the timeline.

See also state() and stateChanged().

const QTimeLine__NotRunning QTimeLine__State = 0

The timeline is not running. This is the initial state of QTimeLine, and the state QTimeLine reenters when finished. The current time, frame and value remain unchanged until either setCurrentTime() is called, or the timeline is started by calling start().

const QTimeLine__Paused QTimeLine__State = 1

The timeline is paused (i.e., temporarily suspended). Calling setPaused(false) will resume timeline activity.

const QTimeLine__Running QTimeLine__State = 2

The timeline is running. While control is in the event loop, QTimeLine will update its current time at regular intervals, emitting valueChanged() and frameChanged() when appropriate.

type QTimeZone

type QTimeZone struct {
	*qtrt.CObject
}

func NewQTimeZone

func NewQTimeZone() *QTimeZone

Create a null/invalid time zone instance.

func NewQTimeZoneFromPointer

func NewQTimeZoneFromPointer(cthis unsafe.Pointer) *QTimeZone

func NewQTimeZone_1

func NewQTimeZone_1(ianaId QByteArray_ITF) *QTimeZone

Create a null/invalid time zone instance.

func NewQTimeZone_2

func NewQTimeZone_2(offsetSeconds int) *QTimeZone

Create a null/invalid time zone instance.

func NewQTimeZone_3

func NewQTimeZone_3(zoneId QByteArray_ITF, offsetSeconds int, name string, abbreviation string, country int, comment string) *QTimeZone

Create a null/invalid time zone instance.

func NewQTimeZone_3_

func NewQTimeZone_3_(zoneId QByteArray_ITF, offsetSeconds int, name string, abbreviation string) *QTimeZone

Create a null/invalid time zone instance.

func NewQTimeZone_3_1

func NewQTimeZone_3_1(zoneId QByteArray_ITF, offsetSeconds int, name string, abbreviation string, country int) *QTimeZone

Create a null/invalid time zone instance.

func QTimeZone_SystemTimeZone

func QTimeZone_SystemTimeZone() *QTimeZone

func QTimeZone_Utc

func QTimeZone_Utc() *QTimeZone

func (*QTimeZone) Abbreviation

func (this *QTimeZone) Abbreviation(atDateTime QDateTime_ITF) string

Returns the time zone abbreviation at the given atDateTime. The abbreviation may change depending on DST or even historical events.

Note that the abbreviation is not guaranteed to be unique to this time zone and should not be used in place of the ID or display name.

See also displayName().

func (*QTimeZone) Comment

func (this *QTimeZone) Comment() string

Returns any comment for the time zone.

A comment may be provided by the host platform to assist users in choosing the correct time zone. Depending on the platform this may not be localized.

func (*QTimeZone) Country

func (this *QTimeZone) Country() int

Returns the country for the time zone.

func (*QTimeZone) DaylightTimeOffset

func (this *QTimeZone) DaylightTimeOffset(atDateTime QDateTime_ITF) int

Returns the daylight-saving time offset at the given atDateTime, i.e. the number of seconds to add to the standard time offset to obtain the local daylight-saving time.

For example, for the time zone "Europe/Berlin" the DST offset is +3600 seconds. During standard time daylightTimeOffset() will return 0, and when daylight-saving is in effect it will return +3600.

See also offsetFromUtc() and standardTimeOffset().

func (*QTimeZone) DisplayName

func (this *QTimeZone) DisplayName(atDateTime QDateTime_ITF, nameType int, locale QLocale_ITF) string

Returns the localized time zone display name at the given atDateTime for the given nameType in the given locale. The nameType and locale requested may not be supported on all platforms, in which case the best available option will be returned.

If the locale is not provided then the application default locale will be used.

The display name may change depending on DST or historical events.

See also abbreviation().

func (*QTimeZone) DisplayName_1

func (this *QTimeZone) DisplayName_1(timeType int, nameType int, locale QLocale_ITF) string

Returns the localized time zone display name at the given atDateTime for the given nameType in the given locale. The nameType and locale requested may not be supported on all platforms, in which case the best available option will be returned.

If the locale is not provided then the application default locale will be used.

The display name may change depending on DST or historical events.

See also abbreviation().

func (*QTimeZone) DisplayName_1_

func (this *QTimeZone) DisplayName_1_(timeType int) string

Returns the localized time zone display name at the given atDateTime for the given nameType in the given locale. The nameType and locale requested may not be supported on all platforms, in which case the best available option will be returned.

If the locale is not provided then the application default locale will be used.

The display name may change depending on DST or historical events.

See also abbreviation().

func (*QTimeZone) DisplayName_1_1

func (this *QTimeZone) DisplayName_1_1(timeType int, nameType int) string

Returns the localized time zone display name at the given atDateTime for the given nameType in the given locale. The nameType and locale requested may not be supported on all platforms, in which case the best available option will be returned.

If the locale is not provided then the application default locale will be used.

The display name may change depending on DST or historical events.

See also abbreviation().

func (*QTimeZone) DisplayName__

func (this *QTimeZone) DisplayName__(atDateTime QDateTime_ITF) string

Returns the localized time zone display name at the given atDateTime for the given nameType in the given locale. The nameType and locale requested may not be supported on all platforms, in which case the best available option will be returned.

If the locale is not provided then the application default locale will be used.

The display name may change depending on DST or historical events.

See also abbreviation().

func (*QTimeZone) DisplayName__1

func (this *QTimeZone) DisplayName__1(atDateTime QDateTime_ITF, nameType int) string

Returns the localized time zone display name at the given atDateTime for the given nameType in the given locale. The nameType and locale requested may not be supported on all platforms, in which case the best available option will be returned.

If the locale is not provided then the application default locale will be used.

The display name may change depending on DST or historical events.

See also abbreviation().

func (*QTimeZone) GetCthis

func (this *QTimeZone) GetCthis() unsafe.Pointer

func (*QTimeZone) HasDaylightTime

func (this *QTimeZone) HasDaylightTime() bool

Returns true if the time zone has practiced daylight-saving at any time.

See also isDaylightTime() and daylightTimeOffset().

func (*QTimeZone) HasTransitions

func (this *QTimeZone) HasTransitions() bool

Returns true if the system backend supports obtaining transitions.

Transitions are changes in the time-zone: these happen when DST turns on or off and when authorities alter the offsets for the time-zone.

See also nextTransition(), previousTransition(), and transitions().

func (*QTimeZone) IanaIdToWindowsId

func (this *QTimeZone) IanaIdToWindowsId(ianaId QByteArray_ITF) *QByteArray

Returns the Windows ID equivalent to the given ianaId.

See also windowsIdToDefaultIanaId() and windowsIdToIanaIds().

func (*QTimeZone) Id

func (this *QTimeZone) Id() *QByteArray

Returns the IANA ID for the time zone.

IANA IDs are used on all platforms. On Windows these are translated from the Windows ID into the closest IANA ID for the time zone and country.

func (*QTimeZone) IsDaylightTime

func (this *QTimeZone) IsDaylightTime(atDateTime QDateTime_ITF) bool

Returns true if daylight-saving was in effect at the given atDateTime.

See also hasDaylightTime() and daylightTimeOffset().

func (*QTimeZone) IsTimeZoneIdAvailable

func (this *QTimeZone) IsTimeZoneIdAvailable(ianaId QByteArray_ITF) bool

Returns true if a given time zone ianaId is available on this system.

See also availableTimeZoneIds().

func (*QTimeZone) IsValid

func (this *QTimeZone) IsValid() bool

Returns true if this time zone is valid.

func (*QTimeZone) NewFromPointer

func (*QTimeZone) NewFromPointer(cthis unsafe.Pointer) *QTimeZone

func (*QTimeZone) NextTransition

func (this *QTimeZone) NextTransition(afterDateTime QDateTime_ITF) unsafe.Pointer

Returns the first time zone Transition after the given afterDateTime. This is most useful when you have a Transition time and wish to find the Transition after it.

If there is no transition after the given afterDateTime then an invalid OffsetData will be returned with an invalid QDateTime.

The given afterDateTime is exclusive.

See also hasTransitions(), previousTransition(), and transitions().

func (*QTimeZone) OffsetData

func (this *QTimeZone) OffsetData(forDateTime QDateTime_ITF) unsafe.Pointer

Returns the effective offset details at the given forDateTime. This is the equivalent of calling offsetFromUtc(), abbreviation(), etc individually but is more efficient.

See also offsetFromUtc(), standardTimeOffset(), daylightTimeOffset(), and abbreviation().

func (*QTimeZone) OffsetFromUtc

func (this *QTimeZone) OffsetFromUtc(atDateTime QDateTime_ITF) int

Returns the total effective offset at the given atDateTime, i.e. the number of seconds to add to UTC to obtain the local time. This includes any DST offset that may be in effect, i.e. it is the sum of standardTimeOffset() and daylightTimeOffset() for the given datetime.

For example, for the time zone "Europe/Berlin" the standard time offset is +3600 seconds and the DST offset is +3600 seconds. During standard time offsetFromUtc() will return +3600 (UTC+01:00), and during DST it will return +7200 (UTC+02:00).

See also standardTimeOffset() and daylightTimeOffset().

func (*QTimeZone) Operator_equal

func (this *QTimeZone) Operator_equal(other QTimeZone_ITF) *QTimeZone

func (*QTimeZone) Operator_equal_1

func (this *QTimeZone) Operator_equal_1(other unsafe.Pointer) *QTimeZone

func (*QTimeZone) Operator_equal_equal

func (this *QTimeZone) Operator_equal_equal(other QTimeZone_ITF) bool

func (*QTimeZone) Operator_not_equal

func (this *QTimeZone) Operator_not_equal(other QTimeZone_ITF) bool

func (*QTimeZone) PreviousTransition

func (this *QTimeZone) PreviousTransition(beforeDateTime QDateTime_ITF) unsafe.Pointer

Returns the first time zone Transition before the given beforeDateTime. This is most useful when you have a Transition time and wish to find the Transition before it.

If there is no transition before the given beforeDateTime then an invalid OffsetData will be returned with an invalid QDateTime.

The given beforeDateTime is exclusive.

See also hasTransitions(), nextTransition(), and transitions().

func (*QTimeZone) QTimeZone_PTR

func (ptr *QTimeZone) QTimeZone_PTR() *QTimeZone

func (*QTimeZone) SetCthis

func (this *QTimeZone) SetCthis(cthis unsafe.Pointer)

func (*QTimeZone) StandardTimeOffset

func (this *QTimeZone) StandardTimeOffset(atDateTime QDateTime_ITF) int

Returns the standard time offset at the given atDateTime, i.e. the number of seconds to add to UTC to obtain the local Standard Time. This excludes any DST offset that may be in effect.

For example, for the time zone "Europe/Berlin" the standard time offset is +3600 seconds. During both standard and DST offsetFromUtc() will return +3600 (UTC+01:00).

See also offsetFromUtc() and daylightTimeOffset().

func (*QTimeZone) Swap

func (this *QTimeZone) Swap(other QTimeZone_ITF)

Swaps this time zone instance with other. This function is very fast and never fails.

func (*QTimeZone) SystemTimeZone

func (this *QTimeZone) SystemTimeZone() *QTimeZone

Returns a QTimeZone object that refers to the local system time, as specified by systemTimeZoneId().

This function was introduced in Qt 5.5.

See also utc().

func (*QTimeZone) SystemTimeZoneId

func (this *QTimeZone) SystemTimeZoneId() *QByteArray

Returns the current system time zone IANA ID.

On Windows this ID is translated from the Windows ID using an internal translation table and the user's selected country. As a consequence there is a small chance any Windows install may have IDs not known by Qt, in which case "UTC" will be returned.

func (*QTimeZone) Utc

func (this *QTimeZone) Utc() *QTimeZone

Returns a QTimeZone object that refers to UTC (Universal Time Coordinated).

This function was introduced in Qt 5.5.

See also systemTimeZone().

func (*QTimeZone) WindowsIdToDefaultIanaId

func (this *QTimeZone) WindowsIdToDefaultIanaId(windowsId QByteArray_ITF) *QByteArray

Returns the default IANA ID for a given windowsId.

Because a Windows ID can cover several IANA IDs in several different countries, this function returns the most frequently used IANA ID with no regard for the country and should thus be used with care. It is usually best to request the default for a specific country.

See also ianaIdToWindowsId() and windowsIdToIanaIds().

func (*QTimeZone) WindowsIdToDefaultIanaId_1

func (this *QTimeZone) WindowsIdToDefaultIanaId_1(windowsId QByteArray_ITF, country int) *QByteArray

Returns the default IANA ID for a given windowsId.

Because a Windows ID can cover several IANA IDs in several different countries, this function returns the most frequently used IANA ID with no regard for the country and should thus be used with care. It is usually best to request the default for a specific country.

See also ianaIdToWindowsId() and windowsIdToIanaIds().

type QTimeZone_ITF

type QTimeZone_ITF interface {
	QTimeZone_PTR() *QTimeZone
}

type QTimeZone__

type QTimeZone__ = int
const QTimeZone__MaxUtcOffsetSecs QTimeZone__ = 50400
const QTimeZone__MinUtcOffsetSecs QTimeZone__ = -50400

type QTimeZone__NameType

type QTimeZone__NameType = int

The type of time zone name.

const QTimeZone__DefaultName QTimeZone__NameType = 0

The default form of the time zone name, e.g. LongName, ShortName or OffsetName

const QTimeZone__LongName QTimeZone__NameType = 1

The long form of the time zone name, e.g. "Central European Time"

const QTimeZone__OffsetName QTimeZone__NameType = 3
const QTimeZone__ShortName QTimeZone__NameType = 2

The short form of the time zone name, usually an abbreviation, e.g. "CET"

type QTimeZone__TimeType

type QTimeZone__TimeType = int

The type of time zone time, for example when requesting the name. In time zones that do not apply DST, all three values may return the same result.

const QTimeZone__DaylightTime QTimeZone__TimeType = 1

A time when Daylight-Saving is in effect. For example when formatting a display name this will show something like "Pacific daylight-saving time".

const QTimeZone__GenericTime QTimeZone__TimeType = 2

A time which is not specifically Standard or Daylight-Saving time, either an unknown time or a neutral form. For example when formatting a display name this will show something like "Pacific Time".

const QTimeZone__StandardTime QTimeZone__TimeType = 0

The standard time in a time zone, i.e. when Daylight-Saving is not in effect. For example when formatting a display name this will show something like "Pacific Standard Time".

type QTime_ITF

type QTime_ITF interface {
	QTime_PTR() *QTime
}

type QTime__TimeFlag

type QTime__TimeFlag = int
const QTime__NullTime QTime__TimeFlag = -1

type QTimer

type QTimer struct {
	*QObject
}

func NewQTimer

func NewQTimer(parent QObject_ITF) *QTimer

Constructs a timer with the given parent.

func NewQTimerFromPointer

func NewQTimerFromPointer(cthis unsafe.Pointer) *QTimer

func NewQTimer__

func NewQTimer__() *QTimer

Constructs a timer with the given parent.

func (*QTimer) GetCthis

func (this *QTimer) GetCthis() unsafe.Pointer

func (*QTimer) InheritTimerEvent

func (this *QTimer) InheritTimerEvent(f func(arg0 *QTimerEvent))

void timerEvent(class QTimerEvent *)

func (*QTimer) Interval

func (this *QTimer) Interval() int

func (*QTimer) IntervalAsDuration

func (this *QTimer) IntervalAsDuration() int

Returns the interval of this timer as a std::chrono::milliseconds object.

This function was introduced in Qt 5.8.

See also interval.

func (*QTimer) IsActive

func (this *QTimer) IsActive() bool

Returns true if the timer is running (pending); otherwise returns false.

Note: Getter function for property active.

func (*QTimer) IsSingleShot

func (this *QTimer) IsSingleShot() bool

func (*QTimer) MetaObject

func (this *QTimer) MetaObject() *QMetaObject

func (*QTimer) NewFromPointer

func (*QTimer) NewFromPointer(cthis unsafe.Pointer) *QTimer

func (*QTimer) QTimer_PTR

func (ptr *QTimer) QTimer_PTR() *QTimer

func (*QTimer) RemainingTime

func (this *QTimer) RemainingTime() int

func (*QTimer) RemainingTimeAsDuration

func (this *QTimer) RemainingTimeAsDuration() int

Returns the time remaining in this timer object as a std::chrono::milliseconds object. If this timer is due or overdue, the returned value is std::chrono::milliseconds::zero(). If the remaining time could not be found or the timer is not active, this function returns a negative duration.

This function was introduced in Qt 5.8.

See also remainingTime().

func (*QTimer) SetCthis

func (this *QTimer) SetCthis(cthis unsafe.Pointer)

func (*QTimer) SetInterval

func (this *QTimer) SetInterval(msec int)

func (*QTimer) SetSingleShot

func (this *QTimer) SetSingleShot(singleShot bool)

func (*QTimer) SetTimerType

func (this *QTimer) SetTimerType(atype int)

func (*QTimer) SingleShot

func (this *QTimer) SingleShot(msec int, receiver QObject_ITF, member string)

This static function calls a slot after a given time interval.

It is very convenient to use this function because you do not need to bother with a timerEvent or create a local QTimer object.

Example:

#include <QApplication>
#include <QTimer>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    QTimer::singleShot(600000, &app, SLOT(quit()));
    ...
    return app.exec();
}

This sample program automatically terminates after 10 minutes (600,000 milliseconds).

The receiver is the receiving object and the member is the slot. The time interval is msec milliseconds.

Note: This function is reentrant.

See also setSingleShot() and start().

func (*QTimer) SingleShot_1

func (this *QTimer) SingleShot_1(msec int, timerType int, receiver QObject_ITF, member string)

This static function calls a slot after a given time interval.

It is very convenient to use this function because you do not need to bother with a timerEvent or create a local QTimer object.

Example:

#include <QApplication>
#include <QTimer>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    QTimer::singleShot(600000, &app, SLOT(quit()));
    ...
    return app.exec();
}

This sample program automatically terminates after 10 minutes (600,000 milliseconds).

The receiver is the receiving object and the member is the slot. The time interval is msec milliseconds.

Note: This function is reentrant.

See also setSingleShot() and start().

func (*QTimer) Start

func (this *QTimer) Start(msec int)

Starts or restarts the timer with a timeout interval of msec milliseconds.

If the timer is already running, it will be stopped and restarted.

If singleShot is true, the timer will be activated only once.

func (*QTimer) Start_1

func (this *QTimer) Start_1()

Starts or restarts the timer with a timeout interval of msec milliseconds.

If the timer is already running, it will be stopped and restarted.

If singleShot is true, the timer will be activated only once.

func (*QTimer) Stop

func (this *QTimer) Stop()

Stops the timer.

See also start().

func (*QTimer) TimerEvent

func (this *QTimer) TimerEvent(arg0 QTimerEvent_ITF)

Reimplemented from QObject::timerEvent().

func (*QTimer) TimerId

func (this *QTimer) TimerId() int

Returns the ID of the timer if the timer is running; otherwise returns -1.

func (*QTimer) TimerType

func (this *QTimer) TimerType() int

type QTimerEvent

type QTimerEvent struct {
	*QEvent
}

func NewQTimerEvent

func NewQTimerEvent(timerId int) *QTimerEvent

func NewQTimerEventFromPointer

func NewQTimerEventFromPointer(cthis unsafe.Pointer) *QTimerEvent

func (*QTimerEvent) GetCthis

func (this *QTimerEvent) GetCthis() unsafe.Pointer

func (*QTimerEvent) NewFromPointer

func (*QTimerEvent) NewFromPointer(cthis unsafe.Pointer) *QTimerEvent

func (*QTimerEvent) QTimerEvent_PTR

func (ptr *QTimerEvent) QTimerEvent_PTR() *QTimerEvent

func (*QTimerEvent) SetCthis

func (this *QTimerEvent) SetCthis(cthis unsafe.Pointer)

func (*QTimerEvent) TimerId

func (this *QTimerEvent) TimerId() int

type QTimerEvent_ITF

type QTimerEvent_ITF interface {
	QEvent_ITF
	QTimerEvent_PTR() *QTimerEvent
}

type QTimer_ITF

type QTimer_ITF interface {
	QObject_ITF
	QTimer_PTR() *QTimer
}

type QTranslator

type QTranslator struct {
	*QObject
}

func NewQTranslator

func NewQTranslator(parent QObject_ITF) *QTranslator

Constructs an empty message file object with parent parent that is not connected to any file.

func NewQTranslatorFromPointer

func NewQTranslatorFromPointer(cthis unsafe.Pointer) *QTranslator

func NewQTranslator__

func NewQTranslator__() *QTranslator

Constructs an empty message file object with parent parent that is not connected to any file.

func (*QTranslator) GetCthis

func (this *QTranslator) GetCthis() unsafe.Pointer

func (*QTranslator) IsEmpty

func (this *QTranslator) IsEmpty() bool

Returns true if this translator is empty, otherwise returns false. This function works with stripped and unstripped translation files.

func (*QTranslator) Load

func (this *QTranslator) Load(filename string, directory string, search_delimiters string, suffix string) bool

Loads filename + suffix (".qm" if the suffix is not specified), which may be an absolute file name or relative to directory. Returns true if the translation is successfully loaded; otherwise returns false.

If directory is not specified, the current directory is used (i.e., as currentPath()).

The previous contents of this translator object are discarded.

If the file name does not exist, other file names are tried in the following order:

func (*QTranslator) Load_1

func (this *QTranslator) Load_1(locale QLocale_ITF, filename string, prefix string, directory string, suffix string) bool

Loads filename + suffix (".qm" if the suffix is not specified), which may be an absolute file name or relative to directory. Returns true if the translation is successfully loaded; otherwise returns false.

If directory is not specified, the current directory is used (i.e., as currentPath()).

The previous contents of this translator object are discarded.

If the file name does not exist, other file names are tried in the following order:

func (*QTranslator) Load_1_

func (this *QTranslator) Load_1_(locale QLocale_ITF, filename string) bool

Loads filename + suffix (".qm" if the suffix is not specified), which may be an absolute file name or relative to directory. Returns true if the translation is successfully loaded; otherwise returns false.

If directory is not specified, the current directory is used (i.e., as currentPath()).

The previous contents of this translator object are discarded.

If the file name does not exist, other file names are tried in the following order:

func (*QTranslator) Load_1_1

func (this *QTranslator) Load_1_1(locale QLocale_ITF, filename string, prefix string) bool

Loads filename + suffix (".qm" if the suffix is not specified), which may be an absolute file name or relative to directory. Returns true if the translation is successfully loaded; otherwise returns false.

If directory is not specified, the current directory is used (i.e., as currentPath()).

The previous contents of this translator object are discarded.

If the file name does not exist, other file names are tried in the following order:

func (*QTranslator) Load_1_2

func (this *QTranslator) Load_1_2(locale QLocale_ITF, filename string, prefix string, directory string) bool

Loads filename + suffix (".qm" if the suffix is not specified), which may be an absolute file name or relative to directory. Returns true if the translation is successfully loaded; otherwise returns false.

If directory is not specified, the current directory is used (i.e., as currentPath()).

The previous contents of this translator object are discarded.

If the file name does not exist, other file names are tried in the following order:

func (*QTranslator) Load_2

func (this *QTranslator) Load_2(data unsafe.Pointer, len_ int, directory string) bool

Loads filename + suffix (".qm" if the suffix is not specified), which may be an absolute file name or relative to directory. Returns true if the translation is successfully loaded; otherwise returns false.

If directory is not specified, the current directory is used (i.e., as currentPath()).

The previous contents of this translator object are discarded.

If the file name does not exist, other file names are tried in the following order:

func (*QTranslator) Load_2_

func (this *QTranslator) Load_2_(data unsafe.Pointer, len_ int) bool

Loads filename + suffix (".qm" if the suffix is not specified), which may be an absolute file name or relative to directory. Returns true if the translation is successfully loaded; otherwise returns false.

If directory is not specified, the current directory is used (i.e., as currentPath()).

The previous contents of this translator object are discarded.

If the file name does not exist, other file names are tried in the following order:

func (*QTranslator) Load__

func (this *QTranslator) Load__(filename string) bool

Loads filename + suffix (".qm" if the suffix is not specified), which may be an absolute file name or relative to directory. Returns true if the translation is successfully loaded; otherwise returns false.

If directory is not specified, the current directory is used (i.e., as currentPath()).

The previous contents of this translator object are discarded.

If the file name does not exist, other file names are tried in the following order:

func (*QTranslator) Load__1

func (this *QTranslator) Load__1(filename string, directory string) bool

Loads filename + suffix (".qm" if the suffix is not specified), which may be an absolute file name or relative to directory. Returns true if the translation is successfully loaded; otherwise returns false.

If directory is not specified, the current directory is used (i.e., as currentPath()).

The previous contents of this translator object are discarded.

If the file name does not exist, other file names are tried in the following order:

func (*QTranslator) Load__2

func (this *QTranslator) Load__2(filename string, directory string, search_delimiters string) bool

Loads filename + suffix (".qm" if the suffix is not specified), which may be an absolute file name or relative to directory. Returns true if the translation is successfully loaded; otherwise returns false.

If directory is not specified, the current directory is used (i.e., as currentPath()).

The previous contents of this translator object are discarded.

If the file name does not exist, other file names are tried in the following order:

func (*QTranslator) MetaObject

func (this *QTranslator) MetaObject() *QMetaObject

func (*QTranslator) NewFromPointer

func (*QTranslator) NewFromPointer(cthis unsafe.Pointer) *QTranslator

func (*QTranslator) QTranslator_PTR

func (ptr *QTranslator) QTranslator_PTR() *QTranslator

func (*QTranslator) SetCthis

func (this *QTranslator) SetCthis(cthis unsafe.Pointer)

func (*QTranslator) Translate

func (this *QTranslator) Translate(context string, sourceText string, disambiguation string, n int) string

Returns the translation for the key (context, sourceText, disambiguation). If none is found, also tries (context, sourceText, ""). If that still fails, returns a null string.

Note: Incomplete translations may result in unexpected behavior: If no translation for (context, sourceText, "") is provided, the method might in this case actually return a translation for a different disambiguation.

If n is not -1, it is used to choose an appropriate form for the translation (e.g. "%n file found" vs. "%n files found").

If you need to programatically insert translations into a QTranslator, this function can be reimplemented.

See also load().

func (*QTranslator) Translate__

func (this *QTranslator) Translate__(context string, sourceText string) string

Returns the translation for the key (context, sourceText, disambiguation). If none is found, also tries (context, sourceText, ""). If that still fails, returns a null string.

Note: Incomplete translations may result in unexpected behavior: If no translation for (context, sourceText, "") is provided, the method might in this case actually return a translation for a different disambiguation.

If n is not -1, it is used to choose an appropriate form for the translation (e.g. "%n file found" vs. "%n files found").

If you need to programatically insert translations into a QTranslator, this function can be reimplemented.

See also load().

func (*QTranslator) Translate__1

func (this *QTranslator) Translate__1(context string, sourceText string, disambiguation string) string

Returns the translation for the key (context, sourceText, disambiguation). If none is found, also tries (context, sourceText, ""). If that still fails, returns a null string.

Note: Incomplete translations may result in unexpected behavior: If no translation for (context, sourceText, "") is provided, the method might in this case actually return a translation for a different disambiguation.

If n is not -1, it is used to choose an appropriate form for the translation (e.g. "%n file found" vs. "%n files found").

If you need to programatically insert translations into a QTranslator, this function can be reimplemented.

See also load().

type QTranslator_ITF

type QTranslator_ITF interface {
	QObject_ITF
	QTranslator_PTR() *QTranslator
}

type QUrl

type QUrl struct {
	*qtrt.CObject
}

func NewQUrl

func NewQUrl() *QUrl

Constructs an empty QUrl object.

func NewQUrlFromPointer

func NewQUrlFromPointer(cthis unsafe.Pointer) *QUrl

func NewQUrl_1

func NewQUrl_1(url string, mode int) *QUrl

Constructs an empty QUrl object.

func NewQUrl_1_

func NewQUrl_1_(url string) *QUrl

Constructs an empty QUrl object.

func QUrl_FromEncoded

func QUrl_FromEncoded(url QByteArray_ITF, mode int) *QUrl

func QUrl_FromLocalFile

func QUrl_FromLocalFile(localfile string) *QUrl

func QUrl_FromUserInput

func QUrl_FromUserInput(userInput string) *QUrl

func QUrl_FromUserInput_1

func QUrl_FromUserInput_1(userInput string, workingDirectory string, options int) *QUrl

func (*QUrl) Clear

func (this *QUrl) Clear()

Resets the content of the QUrl. After calling this function, the QUrl is equal to one that has been constructed with the default empty constructor.

See also isEmpty().

func (*QUrl) Detach

func (this *QUrl) Detach()

func (*QUrl) ErrorString

func (this *QUrl) ErrorString() string

Returns an error message if the last operation that modified this QUrl object ran into a parsing error. If no error was detected, this function returns an empty string and isValid() returns true.

The error message returned by this function is technical in nature and may not be understood by end users. It is mostly useful to developers trying to understand why QUrl will not accept some input.

This function was introduced in Qt 4.2.

See also QUrl::ParsingMode.

func (*QUrl) FromAce

func (this *QUrl) FromAce(arg0 QByteArray_ITF) string

Returns the Unicode form of the given domain name domain, which is encoded in the ASCII Compatible Encoding (ACE). The result of this function is considered equivalent to domain.

If the value in domain cannot be encoded, it will be converted to QString and returned.

The ASCII Compatible Encoding (ACE) is defined by RFC 3490, RFC 3491 and RFC 3492. It is part of the Internationalizing Domain Names in Applications (IDNA) specification, which allows for domain names (like "example.com") to be written using international characters.

This function was introduced in Qt 4.2.

func (*QUrl) FromEncoded

func (this *QUrl) FromEncoded(url QByteArray_ITF, mode int) *QUrl

Parses input and returns the corresponding QUrl. input is assumed to be in encoded form, containing only ASCII characters.

Parses the URL using parsingMode. See setUrl() for more information on this parameter. QUrl::DecodedMode is not permitted in this context.

See also toEncoded() and setUrl().

func (*QUrl) FromEncoded__

func (this *QUrl) FromEncoded__(url QByteArray_ITF) *QUrl

Parses input and returns the corresponding QUrl. input is assumed to be in encoded form, containing only ASCII characters.

Parses the URL using parsingMode. See setUrl() for more information on this parameter. QUrl::DecodedMode is not permitted in this context.

See also toEncoded() and setUrl().

func (*QUrl) FromLocalFile

func (this *QUrl) FromLocalFile(localfile string) *QUrl

Returns a QUrl representation of localFile, interpreted as a local file. This function accepts paths separated by slashes as well as the native separator for this platform.

This function also accepts paths with a doubled leading slash (or backslash) to indicate a remote file, as in "//servername/path/to/file.txt". Note that only certain platforms can actually open this file using QFile::open().

An empty localFile leads to an empty URL (since Qt 5.4).

qDebug() << QUrl::fromLocalFile("file.txt");            // QUrl("file:file.txt")
qDebug() << QUrl::fromLocalFile("/home/user/file.txt"); // QUrl("file:///home/user/file.txt")
qDebug() << QUrl::fromLocalFile("file:file.txt");       // doesn't make sense; expects path, not url with scheme

In the first line in snippet above, a file URL is constructed from a local, relative path. A file URL with a relative path only makes sense if there is a base URL to resolve it against. For example:

QUrl url = QUrl::fromLocalFile("file.txt");
QUrl baseUrl = QUrl("file:/home/user/");
// wrong: prints QUrl("file:file.txt"), as url already has a scheme
qDebug() << baseUrl.resolved(url);

To resolve such a URL, it's necessary to remove the scheme beforehand:

// correct: prints QUrl("file:///home/user/file.txt")
url.setScheme(QString());
qDebug() << baseUrl.resolved(url);

For this reason, it is better to use a relative URL (that is, no scheme) for relative file paths:

QUrl url = QUrl("file.txt");
QUrl baseUrl = QUrl("file:/home/user/");
// prints QUrl("file:///home/user/file.txt")
qDebug() << baseUrl.resolved(url);

See also toLocalFile(), isLocalFile(), and QDir::toNativeSeparators().

func (*QUrl) FromPercentEncoding

func (this *QUrl) FromPercentEncoding(arg0 QByteArray_ITF) string

Returns a decoded copy of input. input is first decoded from percent encoding, then converted from UTF-8 to unicode.

Note: Given invalid input (such as a string containing the sequence "%G5", which is not a valid hexadecimal number) the output will be invalid as well. As an example: the sequence "%G5" could be decoded to 'W'.

func (*QUrl) FromUserInput

func (this *QUrl) FromUserInput(userInput string) *QUrl

Returns a valid URL from a user supplied userInput string if one can be deducted. In the case that is not possible, an invalid QUrl() is returned.

Most applications that can browse the web, allow the user to input a URL in the form of a plain string. This string can be manually typed into a location bar, obtained from the clipboard, or passed in via command line arguments.

When the string is not already a valid URL, a best guess is performed, making various web related assumptions.

In the case the string corresponds to a valid file path on the system, a file:// URL is constructed, using QUrl::fromLocalFile().

If that is not the case, an attempt is made to turn the string into a http:// or ftp:// URL. The latter in the case the string starts with 'ftp'. The result is then passed through QUrl's tolerant parser, and in the case or success, a valid QUrl is returned, or else a QUrl().

func (*QUrl) FromUserInput_1

func (this *QUrl) FromUserInput_1(userInput string, workingDirectory string, options int) *QUrl

Returns a valid URL from a user supplied userInput string if one can be deducted. In the case that is not possible, an invalid QUrl() is returned.

Most applications that can browse the web, allow the user to input a URL in the form of a plain string. This string can be manually typed into a location bar, obtained from the clipboard, or passed in via command line arguments.

When the string is not already a valid URL, a best guess is performed, making various web related assumptions.

In the case the string corresponds to a valid file path on the system, a file:// URL is constructed, using QUrl::fromLocalFile().

If that is not the case, an attempt is made to turn the string into a http:// or ftp:// URL. The latter in the case the string starts with 'ftp'. The result is then passed through QUrl's tolerant parser, and in the case or success, a valid QUrl is returned, or else a QUrl().

func (*QUrl) FromUserInput_1_

func (this *QUrl) FromUserInput_1_(userInput string, workingDirectory string) *QUrl

Returns a valid URL from a user supplied userInput string if one can be deducted. In the case that is not possible, an invalid QUrl() is returned.

Most applications that can browse the web, allow the user to input a URL in the form of a plain string. This string can be manually typed into a location bar, obtained from the clipboard, or passed in via command line arguments.

When the string is not already a valid URL, a best guess is performed, making various web related assumptions.

In the case the string corresponds to a valid file path on the system, a file:// URL is constructed, using QUrl::fromLocalFile().

If that is not the case, an attempt is made to turn the string into a http:// or ftp:// URL. The latter in the case the string starts with 'ftp'. The result is then passed through QUrl's tolerant parser, and in the case or success, a valid QUrl is returned, or else a QUrl().

func (*QUrl) GetCthis

func (this *QUrl) GetCthis() unsafe.Pointer

func (*QUrl) HasFragment

func (this *QUrl) HasFragment() bool

Returns true if this URL contains a fragment (i.e., if # was seen on it).

This function was introduced in Qt 4.2.

See also fragment() and setFragment().

func (*QUrl) HasQuery

func (this *QUrl) HasQuery() bool

Returns true if this URL contains a Query (i.e., if ? was seen on it).

This function was introduced in Qt 4.2.

See also setQuery(), query(), and hasFragment().

func (*QUrl) IdnWhitelist

func (this *QUrl) IdnWhitelist() *QStringList

Returns the current whitelist of top-level domains that are allowed to have non-ASCII characters in their compositions.

See setIdnWhitelist() for the rationale of this list.

This function was introduced in Qt 4.2.

See also setIdnWhitelist().

func (*QUrl) IsDetached

func (this *QUrl) IsDetached() bool

func (*QUrl) IsEmpty

func (this *QUrl) IsEmpty() bool

Returns true if the URL has no data; otherwise returns false.

See also clear().

func (*QUrl) IsLocalFile

func (this *QUrl) IsLocalFile() bool

Returns true if this URL is pointing to a local file path. A URL is a local file path if the scheme is "file".

Note that this function considers URLs with hostnames to be local file paths, even if the eventual file path cannot be opened with QFile::open().

This function was introduced in Qt 4.8.

See also fromLocalFile() and toLocalFile().

func (*QUrl) IsParentOf

func (this *QUrl) IsParentOf(url QUrl_ITF) bool

Returns true if this URL is a parent of childUrl. childUrl is a child of this URL if the two URLs share the same scheme and authority, and this URL's path is a parent of the path of childUrl.

func (*QUrl) IsRelative

func (this *QUrl) IsRelative() bool

Returns true if the URL is relative; otherwise returns false. A URL is relative reference if its scheme is undefined; this function is therefore equivalent to calling scheme().isEmpty().

Relative references are defined in RFC 3986 section 4.2.

See also Relative URLs vs Relative Paths.

func (*QUrl) IsValid

func (this *QUrl) IsValid() bool

Returns true if the URL is non-empty and valid; otherwise returns false.

The URL is run through a conformance test. Every part of the URL must conform to the standard encoding rules of the URI standard for the URL to be reported as valid.

bool checkUrl(const QUrl &url) {
    if (!url.isValid()) {
        qDebug("Invalid URL: %s", qUtf8Printable(url.toString()));
        return false;
    }

    return true;
}

func (*QUrl) NewFromPointer

func (*QUrl) NewFromPointer(cthis unsafe.Pointer) *QUrl

func (*QUrl) Operator_equal

func (this *QUrl) Operator_equal(copy QUrl_ITF) *QUrl

func (*QUrl) Operator_equal_1

func (this *QUrl) Operator_equal_1(url string) *QUrl

func (*QUrl) Operator_equal_2

func (this *QUrl) Operator_equal_2(other unsafe.Pointer) *QUrl

func (*QUrl) Operator_equal_equal

func (this *QUrl) Operator_equal_equal(url QUrl_ITF) bool

func (*QUrl) Operator_less_than

func (this *QUrl) Operator_less_than(url QUrl_ITF) bool

func (*QUrl) Operator_not_equal

func (this *QUrl) Operator_not_equal(url QUrl_ITF) bool

func (*QUrl) Port

func (this *QUrl) Port(defaultPort int) int

Returns the port of the URL, or defaultPort if the port is unspecified.

Example:

QTcpSocket sock;
sock.connectToHost(url.host(), url.port(80));

This function was introduced in Qt 4.1.

See also setPort().

func (*QUrl) Port__

func (this *QUrl) Port__() int

Returns the port of the URL, or defaultPort if the port is unspecified.

Example:

QTcpSocket sock;
sock.connectToHost(url.host(), url.port(80));

This function was introduced in Qt 4.1.

See also setPort().

func (*QUrl) QUrl_PTR

func (ptr *QUrl) QUrl_PTR() *QUrl

func (*QUrl) Resolved

func (this *QUrl) Resolved(relative QUrl_ITF) *QUrl

Returns the result of the merge of this URL with relative. This URL is used as a base to convert relative to an absolute URL.

If relative is not a relative URL, this function will return relative directly. Otherwise, the paths of the two URLs are merged, and the new URL returned has the scheme and authority of the base URL, but with the merged path, as in the following example:

QUrl baseUrl("http://qt.digia.com/Support/");
QUrl relativeUrl("../Product/Library/");
qDebug(baseUrl.resolved(relativeUrl).toString());
// prints "http://qt.digia.com/Product/Library/"

Calling resolved() with ".." returns a QUrl whose directory is one level higher than the original. Similarly, calling resolved() with "../.." removes two levels from the path. If relative is "/", the path becomes "/".

See also isRelative().

func (*QUrl) Scheme

func (this *QUrl) Scheme() string

Returns the scheme of the URL. If an empty string is returned, this means the scheme is undefined and the URL is then relative.

The scheme can only contain US-ASCII letters or digits, which means it cannot contain any character that would otherwise require encoding. Additionally, schemes are always returned in lowercase form.

See also setScheme() and isRelative().

func (*QUrl) SetAuthority

func (this *QUrl) SetAuthority(authority string, mode int)

Sets the authority of the URL to authority.

The authority of a URL is the combination of user info, a host name and a port. All of these elements are optional; an empty authority is therefore valid.

The user info and host are separated by a '@', and the host and port are separated by a ':'. If the user info is empty, the '@' must be omitted; although a stray ':' is permitted if the port is empty.

The following example shows a valid authority string:

The authority data is interpreted according to mode: in StrictMode, any '%' characters must be followed by exactly two hexadecimal characters and some characters (including space) are not allowed in undecoded form. In TolerantMode (the default), all characters are accepted in undecoded form and the tolerant parser will correct stray '%' not followed by two hex characters.

This function does not allow mode to be QUrl::DecodedMode. To set fully decoded data, call setUserName(), setPassword(), setHost() and setPort() individually.

See also authority(), setUserInfo(), setHost(), and setPort().

func (*QUrl) SetAuthority__

func (this *QUrl) SetAuthority__(authority string)

Sets the authority of the URL to authority.

The authority of a URL is the combination of user info, a host name and a port. All of these elements are optional; an empty authority is therefore valid.

The user info and host are separated by a '@', and the host and port are separated by a ':'. If the user info is empty, the '@' must be omitted; although a stray ':' is permitted if the port is empty.

The following example shows a valid authority string:

The authority data is interpreted according to mode: in StrictMode, any '%' characters must be followed by exactly two hexadecimal characters and some characters (including space) are not allowed in undecoded form. In TolerantMode (the default), all characters are accepted in undecoded form and the tolerant parser will correct stray '%' not followed by two hex characters.

This function does not allow mode to be QUrl::DecodedMode. To set fully decoded data, call setUserName(), setPassword(), setHost() and setPort() individually.

See also authority(), setUserInfo(), setHost(), and setPort().

func (*QUrl) SetCthis

func (this *QUrl) SetCthis(cthis unsafe.Pointer)

func (*QUrl) SetFragment

func (this *QUrl) SetFragment(fragment string, mode int)

Sets the fragment of the URL to fragment. The fragment is the last part of the URL, represented by a '#' followed by a string of characters. It is typically used in HTTP for referring to a certain link or point on a page:

The fragment is sometimes also referred to as the URL "reference".

Passing an argument of QString() (a null QString) will unset the fragment. Passing an argument of QString("") (an empty but not null QString) will set the fragment to an empty string (as if the original URL had a lone "#").

The fragment data is interpreted according to mode: in StrictMode, any '%' characters must be followed by exactly two hexadecimal characters and some characters (including space) are not allowed in undecoded form. In TolerantMode, all characters are accepted in undecoded form and the tolerant parser will correct stray '%' not followed by two hex characters. In DecodedMode, '%' stand for themselves and encoded characters are not possible.

QUrl::DecodedMode should be used when setting the fragment from a data source which is not a URL or with a fragment obtained by calling fragment() with the QUrl::FullyDecoded formatting option.

See also fragment() and hasFragment().

func (*QUrl) SetFragment__

func (this *QUrl) SetFragment__(fragment string)

Sets the fragment of the URL to fragment. The fragment is the last part of the URL, represented by a '#' followed by a string of characters. It is typically used in HTTP for referring to a certain link or point on a page:

The fragment is sometimes also referred to as the URL "reference".

Passing an argument of QString() (a null QString) will unset the fragment. Passing an argument of QString("") (an empty but not null QString) will set the fragment to an empty string (as if the original URL had a lone "#").

The fragment data is interpreted according to mode: in StrictMode, any '%' characters must be followed by exactly two hexadecimal characters and some characters (including space) are not allowed in undecoded form. In TolerantMode, all characters are accepted in undecoded form and the tolerant parser will correct stray '%' not followed by two hex characters. In DecodedMode, '%' stand for themselves and encoded characters are not possible.

QUrl::DecodedMode should be used when setting the fragment from a data source which is not a URL or with a fragment obtained by calling fragment() with the QUrl::FullyDecoded formatting option.

See also fragment() and hasFragment().

func (*QUrl) SetHost

func (this *QUrl) SetHost(host string, mode int)

Sets the host of the URL to host. The host is part of the authority.

The host data is interpreted according to mode: in StrictMode, any '%' characters must be followed by exactly two hexadecimal characters and some characters (including space) are not allowed in undecoded form. In TolerantMode, all characters are accepted in undecoded form and the tolerant parser will correct stray '%' not followed by two hex characters. In DecodedMode, '%' stand for themselves and encoded characters are not possible.

Note that, in all cases, the result of the parsing must be a valid hostname according to STD 3 rules, as modified by the Internationalized Resource Identifiers specification (RFC 3987). Invalid hostnames are not permitted and will cause isValid() to become false.

See also host() and setAuthority().

func (*QUrl) SetHost__

func (this *QUrl) SetHost__(host string)

Sets the host of the URL to host. The host is part of the authority.

The host data is interpreted according to mode: in StrictMode, any '%' characters must be followed by exactly two hexadecimal characters and some characters (including space) are not allowed in undecoded form. In TolerantMode, all characters are accepted in undecoded form and the tolerant parser will correct stray '%' not followed by two hex characters. In DecodedMode, '%' stand for themselves and encoded characters are not possible.

Note that, in all cases, the result of the parsing must be a valid hostname according to STD 3 rules, as modified by the Internationalized Resource Identifiers specification (RFC 3987). Invalid hostnames are not permitted and will cause isValid() to become false.

See also host() and setAuthority().

func (*QUrl) SetIdnWhitelist

func (this *QUrl) SetIdnWhitelist(arg0 QStringList_ITF)

Sets the whitelist of Top-Level Domains (TLDs) that are allowed to have non-ASCII characters in domains to the value of list.

Note that if you call this function, you need to do so before you start any threads that might access idnWhitelist().

Qt comes with a default list that contains the Internet top-level domains that have published support for Internationalized Domain Names (IDNs) and rules to guarantee that no deception can happen between similarly-looking characters (such as the Latin lowercase letter 'a' and the Cyrillic equivalent, which in most fonts are visually identical).

This list is periodically maintained, as registrars publish new rules.

This function is provided for those who need to manipulate the list, in order to add or remove a TLD. It is not recommended to change its value for purposes other than testing, as it may expose users to security risks.

This function was introduced in Qt 4.2.

See also idnWhitelist().

func (*QUrl) SetPassword

func (this *QUrl) SetPassword(password string, mode int)

Sets the URL's password to password. The password is part of the user info element in the authority of the URL, as described in setUserInfo().

The password data is interpreted according to mode: in StrictMode, any '%' characters must be followed by exactly two hexadecimal characters and some characters (including space) are not allowed in undecoded form. In TolerantMode, all characters are accepted in undecoded form and the tolerant parser will correct stray '%' not followed by two hex characters. In DecodedMode, '%' stand for themselves and encoded characters are not possible.

QUrl::DecodedMode should be used when setting the password from a data source which is not a URL, such as a password dialog shown to the user or with a password obtained by calling password() with the QUrl::FullyDecoded formatting option.

See also password() and setUserInfo().

func (*QUrl) SetPassword__

func (this *QUrl) SetPassword__(password string)

Sets the URL's password to password. The password is part of the user info element in the authority of the URL, as described in setUserInfo().

The password data is interpreted according to mode: in StrictMode, any '%' characters must be followed by exactly two hexadecimal characters and some characters (including space) are not allowed in undecoded form. In TolerantMode, all characters are accepted in undecoded form and the tolerant parser will correct stray '%' not followed by two hex characters. In DecodedMode, '%' stand for themselves and encoded characters are not possible.

QUrl::DecodedMode should be used when setting the password from a data source which is not a URL, such as a password dialog shown to the user or with a password obtained by calling password() with the QUrl::FullyDecoded formatting option.

See also password() and setUserInfo().

func (*QUrl) SetPath

func (this *QUrl) SetPath(path string, mode int)

Sets the path of the URL to path. The path is the part of the URL that comes after the authority but before the query string.

For non-hierarchical schemes, the path will be everything following the scheme declaration, as in the following example:

The path data is interpreted according to mode: in StrictMode, any '%' characters must be followed by exactly two hexadecimal characters and some characters (including space) are not allowed in undecoded form. In TolerantMode (the default), all characters are accepted in undecoded form and the tolerant parser will correct stray '%' not followed by two hex characters. In DecodedMode, '%' stand for themselves and encoded characters are not possible.

QUrl::DecodedMode should be used when setting the path from a data source which is not a URL, such as a dialog shown to the user or with a path obtained by calling path() with the QUrl::FullyDecoded formatting option.

See also path().

func (*QUrl) SetPath__

func (this *QUrl) SetPath__(path string)

Sets the path of the URL to path. The path is the part of the URL that comes after the authority but before the query string.

For non-hierarchical schemes, the path will be everything following the scheme declaration, as in the following example:

The path data is interpreted according to mode: in StrictMode, any '%' characters must be followed by exactly two hexadecimal characters and some characters (including space) are not allowed in undecoded form. In TolerantMode (the default), all characters are accepted in undecoded form and the tolerant parser will correct stray '%' not followed by two hex characters. In DecodedMode, '%' stand for themselves and encoded characters are not possible.

QUrl::DecodedMode should be used when setting the path from a data source which is not a URL, such as a dialog shown to the user or with a path obtained by calling path() with the QUrl::FullyDecoded formatting option.

See also path().

func (*QUrl) SetPort

func (this *QUrl) SetPort(port int)

Sets the port of the URL to port. The port is part of the authority of the URL, as described in setAuthority().

port must be between 0 and 65535 inclusive. Setting the port to -1 indicates that the port is unspecified.

See also port().

func (*QUrl) SetQuery

func (this *QUrl) SetQuery(query string, mode int)

Sets the query string of the URL to query.

This function is useful if you need to pass a query string that does not fit into the key-value pattern, or that uses a different scheme for encoding special characters than what is suggested by QUrl.

Passing a value of QString() to query (a null QString) unsets the query completely. However, passing a value of QString("") will set the query to an empty value, as if the original URL had a lone "?".

The query data is interpreted according to mode: in StrictMode, any '%' characters must be followed by exactly two hexadecimal characters and some characters (including space) are not allowed in undecoded form. In TolerantMode, all characters are accepted in undecoded form and the tolerant parser will correct stray '%' not followed by two hex characters. In DecodedMode, '%' stand for themselves and encoded characters are not possible.

Query strings often contain percent-encoded sequences, so use of DecodedMode is discouraged. One special sequence to be aware of is that of the plus character ('+'). QUrl does not convert spaces to plus characters, even though HTML forms posted by web browsers do. In order to represent an actual plus character in a query, the sequence "%2B" is usually used. This function will leave "%2B" sequences untouched in TolerantMode or StrictMode.

See also query() and hasQuery().

func (*QUrl) SetQuery_1

func (this *QUrl) SetQuery_1(query QUrlQuery_ITF)

Sets the query string of the URL to query.

This function is useful if you need to pass a query string that does not fit into the key-value pattern, or that uses a different scheme for encoding special characters than what is suggested by QUrl.

Passing a value of QString() to query (a null QString) unsets the query completely. However, passing a value of QString("") will set the query to an empty value, as if the original URL had a lone "?".

The query data is interpreted according to mode: in StrictMode, any '%' characters must be followed by exactly two hexadecimal characters and some characters (including space) are not allowed in undecoded form. In TolerantMode, all characters are accepted in undecoded form and the tolerant parser will correct stray '%' not followed by two hex characters. In DecodedMode, '%' stand for themselves and encoded characters are not possible.

Query strings often contain percent-encoded sequences, so use of DecodedMode is discouraged. One special sequence to be aware of is that of the plus character ('+'). QUrl does not convert spaces to plus characters, even though HTML forms posted by web browsers do. In order to represent an actual plus character in a query, the sequence "%2B" is usually used. This function will leave "%2B" sequences untouched in TolerantMode or StrictMode.

See also query() and hasQuery().

func (*QUrl) SetQuery__

func (this *QUrl) SetQuery__(query string)

Sets the query string of the URL to query.

This function is useful if you need to pass a query string that does not fit into the key-value pattern, or that uses a different scheme for encoding special characters than what is suggested by QUrl.

Passing a value of QString() to query (a null QString) unsets the query completely. However, passing a value of QString("") will set the query to an empty value, as if the original URL had a lone "?".

The query data is interpreted according to mode: in StrictMode, any '%' characters must be followed by exactly two hexadecimal characters and some characters (including space) are not allowed in undecoded form. In TolerantMode, all characters are accepted in undecoded form and the tolerant parser will correct stray '%' not followed by two hex characters. In DecodedMode, '%' stand for themselves and encoded characters are not possible.

Query strings often contain percent-encoded sequences, so use of DecodedMode is discouraged. One special sequence to be aware of is that of the plus character ('+'). QUrl does not convert spaces to plus characters, even though HTML forms posted by web browsers do. In order to represent an actual plus character in a query, the sequence "%2B" is usually used. This function will leave "%2B" sequences untouched in TolerantMode or StrictMode.

See also query() and hasQuery().

func (*QUrl) SetScheme

func (this *QUrl) SetScheme(scheme string)

Sets the scheme of the URL to scheme. As a scheme can only contain ASCII characters, no conversion or decoding is done on the input. It must also start with an ASCII letter.

The scheme describes the type (or protocol) of the URL. It's represented by one or more ASCII characters at the start the URL.

A scheme is strictly RFC 3986-compliant: scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )

The following example shows a URL where the scheme is "ftp":

To set the scheme, the following call is used:

QUrl url;
url.setScheme("ftp");

The scheme can also be empty, in which case the URL is interpreted as relative.

See also scheme() and isRelative().

func (*QUrl) SetUrl

func (this *QUrl) SetUrl(url string, mode int)

Parses url and sets this object to that value. QUrl will automatically percent encode all characters that are not allowed in a URL and decode the percent-encoded sequences that represent an unreserved character (letters, digits, hyphens, undercores, dots and tildes). All other characters are left in their original forms.

Parses the url using the parser mode parsingMode. In TolerantMode (the default), QUrl will correct certain mistakes, notably the presence of a percent character ('%') not followed by two hexadecimal digits, and it will accept any character in any position. In StrictMode, encoding mistakes will not be tolerated and QUrl will also check that certain forbidden characters are not present in unencoded form. If an error is detected in StrictMode, isValid() will return false. The parsing mode DecodedMode is not permitted in this context and will produce a run-time warning.

See also url() and toString().

func (*QUrl) SetUrl__

func (this *QUrl) SetUrl__(url string)

Parses url and sets this object to that value. QUrl will automatically percent encode all characters that are not allowed in a URL and decode the percent-encoded sequences that represent an unreserved character (letters, digits, hyphens, undercores, dots and tildes). All other characters are left in their original forms.

Parses the url using the parser mode parsingMode. In TolerantMode (the default), QUrl will correct certain mistakes, notably the presence of a percent character ('%') not followed by two hexadecimal digits, and it will accept any character in any position. In StrictMode, encoding mistakes will not be tolerated and QUrl will also check that certain forbidden characters are not present in unencoded form. If an error is detected in StrictMode, isValid() will return false. The parsing mode DecodedMode is not permitted in this context and will produce a run-time warning.

See also url() and toString().

func (*QUrl) SetUserInfo

func (this *QUrl) SetUserInfo(userInfo string, mode int)

Sets the user info of the URL to userInfo. The user info is an optional part of the authority of the URL, as described in setAuthority().

The user info consists of a user name and optionally a password, separated by a ':'. If the password is empty, the colon must be omitted. The following example shows a valid user info string:

The userInfo data is interpreted according to mode: in StrictMode, any '%' characters must be followed by exactly two hexadecimal characters and some characters (including space) are not allowed in undecoded form. In TolerantMode (the default), all characters are accepted in undecoded form and the tolerant parser will correct stray '%' not followed by two hex characters.

This function does not allow mode to be QUrl::DecodedMode. To set fully decoded data, call setUserName() and setPassword() individually.

See also userInfo(), setUserName(), setPassword(), and setAuthority().

func (*QUrl) SetUserInfo__

func (this *QUrl) SetUserInfo__(userInfo string)

Sets the user info of the URL to userInfo. The user info is an optional part of the authority of the URL, as described in setAuthority().

The user info consists of a user name and optionally a password, separated by a ':'. If the password is empty, the colon must be omitted. The following example shows a valid user info string:

The userInfo data is interpreted according to mode: in StrictMode, any '%' characters must be followed by exactly two hexadecimal characters and some characters (including space) are not allowed in undecoded form. In TolerantMode (the default), all characters are accepted in undecoded form and the tolerant parser will correct stray '%' not followed by two hex characters.

This function does not allow mode to be QUrl::DecodedMode. To set fully decoded data, call setUserName() and setPassword() individually.

See also userInfo(), setUserName(), setPassword(), and setAuthority().

func (*QUrl) SetUserName

func (this *QUrl) SetUserName(userName string, mode int)

Sets the URL's user name to userName. The userName is part of the user info element in the authority of the URL, as described in setUserInfo().

The userName data is interpreted according to mode: in StrictMode, any '%' characters must be followed by exactly two hexadecimal characters and some characters (including space) are not allowed in undecoded form. In TolerantMode (the default), all characters are accepted in undecoded form and the tolerant parser will correct stray '%' not followed by two hex characters. In DecodedMode, '%' stand for themselves and encoded characters are not possible.

QUrl::DecodedMode should be used when setting the user name from a data source which is not a URL, such as a password dialog shown to the user or with a user name obtained by calling userName() with the QUrl::FullyDecoded formatting option.

See also userName() and setUserInfo().

func (*QUrl) SetUserName__

func (this *QUrl) SetUserName__(userName string)

Sets the URL's user name to userName. The userName is part of the user info element in the authority of the URL, as described in setUserInfo().

The userName data is interpreted according to mode: in StrictMode, any '%' characters must be followed by exactly two hexadecimal characters and some characters (including space) are not allowed in undecoded form. In TolerantMode (the default), all characters are accepted in undecoded form and the tolerant parser will correct stray '%' not followed by two hex characters. In DecodedMode, '%' stand for themselves and encoded characters are not possible.

QUrl::DecodedMode should be used when setting the user name from a data source which is not a URL, such as a password dialog shown to the user or with a user name obtained by calling userName() with the QUrl::FullyDecoded formatting option.

See also userName() and setUserInfo().

func (*QUrl) Swap

func (this *QUrl) Swap(other QUrl_ITF)

Swaps URL other with this URL. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func (*QUrl) ToAce

func (this *QUrl) ToAce(arg0 string) *QByteArray

Returns the ASCII Compatible Encoding of the given domain name domain. The result of this function is considered equivalent to domain.

The ASCII-Compatible Encoding (ACE) is defined by RFC 3490, RFC 3491 and RFC 3492. It is part of the Internationalizing Domain Names in Applications (IDNA) specification, which allows for domain names (like "example.com") to be written using international characters.

This function returns an empty QByteArray if domain is not a valid hostname. Note, in particular, that IPv6 literals are not valid domain names.

This function was introduced in Qt 4.2.

func (*QUrl) ToLocalFile

func (this *QUrl) ToLocalFile() string

Returns the path of this URL formatted as a local file path. The path returned will use forward slashes, even if it was originally created from one with backslashes.

If this URL contains a non-empty hostname, it will be encoded in the returned value in the form found on SMB networks (for example, "//servername/path/to/file.txt").

qDebug() << QUrl("file:file.txt").toLocalFile();            // "file:file.txt"
qDebug() << QUrl("file:/home/user/file.txt").toLocalFile(); // "file:///home/user/file.txt"
qDebug() << QUrl("file.txt").toLocalFile();                 // ""; wasn't a local file as it had no scheme

Note: if the path component of this URL contains a non-UTF-8 binary sequence (such as %80), the behaviour of this function is undefined.

See also fromLocalFile() and isLocalFile().

func (*QUrl) ToPercentEncoding

func (this *QUrl) ToPercentEncoding(arg0 string, exclude QByteArray_ITF, include QByteArray_ITF) *QByteArray

Returns an encoded copy of input. input is first converted to UTF-8, and all ASCII-characters that are not in the unreserved group are percent encoded. To prevent characters from being percent encoded pass them to exclude. To force characters to be percent encoded pass them to include.

Unreserved is defined as: ALPHA / DIGIT / "-" / "." / "_" / "~"

QByteArray ba = QUrl::toPercentEncoding("{a fishy string?}", "{}", "s");
qDebug(ba.constData());
// prints "{a fi%73hy %73tring%3F}"

func (*QUrl) ToPercentEncoding__

func (this *QUrl) ToPercentEncoding__(arg0 string) *QByteArray

Returns an encoded copy of input. input is first converted to UTF-8, and all ASCII-characters that are not in the unreserved group are percent encoded. To prevent characters from being percent encoded pass them to exclude. To force characters to be percent encoded pass them to include.

Unreserved is defined as: ALPHA / DIGIT / "-" / "." / "_" / "~"

QByteArray ba = QUrl::toPercentEncoding("{a fishy string?}", "{}", "s");
qDebug(ba.constData());
// prints "{a fi%73hy %73tring%3F}"

func (*QUrl) ToPercentEncoding__1

func (this *QUrl) ToPercentEncoding__1(arg0 string, exclude QByteArray_ITF) *QByteArray

Returns an encoded copy of input. input is first converted to UTF-8, and all ASCII-characters that are not in the unreserved group are percent encoded. To prevent characters from being percent encoded pass them to exclude. To force characters to be percent encoded pass them to include.

Unreserved is defined as: ALPHA / DIGIT / "-" / "." / "_" / "~"

QByteArray ba = QUrl::toPercentEncoding("{a fishy string?}", "{}", "s");
qDebug(ba.constData());
// prints "{a fi%73hy %73tring%3F}"

type QUrlQuery

type QUrlQuery struct {
	*qtrt.CObject
}

func NewQUrlQuery

func NewQUrlQuery() *QUrlQuery

Constructs an empty QUrlQuery object. A query can be set afterwards by calling setQuery() or items can be added by using addQueryItem().

See also setQuery() and addQueryItem().

func NewQUrlQueryFromPointer

func NewQUrlQueryFromPointer(cthis unsafe.Pointer) *QUrlQuery

func NewQUrlQuery_1

func NewQUrlQuery_1(url QUrl_ITF) *QUrlQuery

Constructs an empty QUrlQuery object. A query can be set afterwards by calling setQuery() or items can be added by using addQueryItem().

See also setQuery() and addQueryItem().

func NewQUrlQuery_2

func NewQUrlQuery_2(queryString string) *QUrlQuery

Constructs an empty QUrlQuery object. A query can be set afterwards by calling setQuery() or items can be added by using addQueryItem().

See also setQuery() and addQueryItem().

func (*QUrlQuery) AddQueryItem

func (this *QUrlQuery) AddQueryItem(key string, value string)

Appends the pair key = value to the end of the query string of the URL. This method does not overwrite existing items that might exist with the same key.

Note: This method does not treat spaces (ASCII 0x20) and plus ("+") signs as the same, like HTML forms do. If you need spaces to be represented as plus signs, use actual plus signs.

See also hasQueryItem() and queryItemValue().

func (*QUrlQuery) Clear

func (this *QUrlQuery) Clear()

Clears this QUrlQuery object by removing all of the key-value pairs currently stored. If the query delimiters have been changed, this function will leave them with their changed values.

See also isEmpty() and setQueryDelimiters().

func (*QUrlQuery) DefaultQueryPairDelimiter

func (this *QUrlQuery) DefaultQueryPairDelimiter() *QChar

Returns the default character for separating keys-value pairs from each other, an ampersand ("&").

See also setQueryDelimiters(), queryPairDelimiter(), and defaultQueryValueDelimiter().

func (*QUrlQuery) DefaultQueryValueDelimiter

func (this *QUrlQuery) DefaultQueryValueDelimiter() *QChar

Returns the default character for separating keys from values in the query, an equal sign ("=").

See also setQueryDelimiters(), queryValueDelimiter(), and defaultQueryPairDelimiter().

func (*QUrlQuery) GetCthis

func (this *QUrlQuery) GetCthis() unsafe.Pointer

func (*QUrlQuery) HasQueryItem

func (this *QUrlQuery) HasQueryItem(key string) bool

Returns true if there is a query string pair whose key is equal to key from the URL.

See also addQueryItem() and queryItemValue().

func (*QUrlQuery) IsDetached

func (this *QUrlQuery) IsDetached() bool

func (*QUrlQuery) IsEmpty

func (this *QUrlQuery) IsEmpty() bool

Returns true if this QUrlQuery object contains no key-value pairs, such as after being default-constructed or after parsing an empty query string.

See also setQuery() and clear().

func (*QUrlQuery) NewFromPointer

func (*QUrlQuery) NewFromPointer(cthis unsafe.Pointer) *QUrlQuery

func (*QUrlQuery) Operator_equal

func (this *QUrlQuery) Operator_equal(other QUrlQuery_ITF) *QUrlQuery

func (*QUrlQuery) Operator_equal_1

func (this *QUrlQuery) Operator_equal_1(other unsafe.Pointer) *QUrlQuery

func (*QUrlQuery) Operator_equal_equal

func (this *QUrlQuery) Operator_equal_equal(other QUrlQuery_ITF) bool

func (*QUrlQuery) Operator_not_equal

func (this *QUrlQuery) Operator_not_equal(other QUrlQuery_ITF) bool

func (*QUrlQuery) QUrlQuery_PTR

func (ptr *QUrlQuery) QUrlQuery_PTR() *QUrlQuery

func (*QUrlQuery) QueryPairDelimiter

func (this *QUrlQuery) QueryPairDelimiter() *QChar

Returns the character used to delimit between keys-value pairs when reconstructing the query string in query() or when parsing in setQuery().

See also setQueryDelimiters() and queryValueDelimiter().

func (*QUrlQuery) QueryValueDelimiter

func (this *QUrlQuery) QueryValueDelimiter() *QChar

Returns the character used to delimit between keys and values when reconstructing the query string in query() or when parsing in setQuery().

See also setQueryDelimiters() and queryPairDelimiter().

func (*QUrlQuery) RemoveAllQueryItems

func (this *QUrlQuery) RemoveAllQueryItems(key string)

Removes all the query string pairs whose key is equal to key from the URL.

See also removeQueryItem().

func (*QUrlQuery) RemoveQueryItem

func (this *QUrlQuery) RemoveQueryItem(key string)

Removes the query string pair whose key is equal to key from the URL. If there are multiple items with a key equal to key, it removes the first item in the order they were present in the query string or added with addQueryItem().

See also removeAllQueryItems().

func (*QUrlQuery) SetCthis

func (this *QUrlQuery) SetCthis(cthis unsafe.Pointer)

func (*QUrlQuery) SetQuery

func (this *QUrlQuery) SetQuery(queryString string)

Parses the query string in queryString and sets the internal items to the values found there. If any delimiters have been specified with setQueryDelimiters(), this function will use them instead of the default delimiters to parse the string.

See also query().

func (*QUrlQuery) SetQueryDelimiters

func (this *QUrlQuery) SetQueryDelimiters(valueDelimiter QChar_ITF, pairDelimiter QChar_ITF)

Sets the characters used for delimiting between keys and values, and between key-value pairs in the URL's query string. The default value delimiter is '=' and the default pair delimiter is '&'.

valueDelimiter will be used for separating keys from values, and pairDelimiter will be used to separate key-value pairs. Any occurrences of these delimiting characters in the encoded representation of the keys and values of the query string are percent encoded when returned in query().

If valueDelimiter is set to '(' and pairDelimiter is ')', the above query string would instead be represented like this:

http://www.example.com/cgi-bin/drawgraph.cgi?type(pie)color(green)

Note: Non-standard delimiters should be chosen from among what RFC 3986 calls "sub-delimiters". They are:

sub-delims    = "!" / "$" / "&" / "'" / "(" / ")"
              / "*" / "+" / "," / ";" / "="

Use of other characters is not supported and may result in unexpected behaviour. This method does not verify that you passed a valid delimiter.

See also queryValueDelimiter() and queryPairDelimiter().

func (*QUrlQuery) Swap

func (this *QUrlQuery) Swap(other QUrlQuery_ITF)

Swaps this URL query instance with other. This function is very fast and never fails.

type QUrlQuery_ITF

type QUrlQuery_ITF interface {
	QUrlQuery_PTR() *QUrlQuery
}

type QUrl_ITF

type QUrl_ITF interface {
	QUrl_PTR() *QUrl
}

type QUrl__ComponentFormattingOption

type QUrl__ComponentFormattingOption = int
const QUrl__DecodeReserved QUrl__ComponentFormattingOption = 33554432
const QUrl__EncodeDelimiters QUrl__ComponentFormattingOption = 12582912
const QUrl__EncodeReserved QUrl__ComponentFormattingOption = 16777216
const QUrl__EncodeSpaces QUrl__ComponentFormattingOption = 1048576
const QUrl__EncodeUnicode QUrl__ComponentFormattingOption = 2097152
const QUrl__FullyDecoded QUrl__ComponentFormattingOption = 133169152
const QUrl__FullyEncoded QUrl__ComponentFormattingOption = 32505856
const QUrl__PrettyDecoded QUrl__ComponentFormattingOption = 0

type QUrl__ParsingMode

type QUrl__ParsingMode = int

The parsing mode controls the way QUrl parses strings.

In TolerantMode, the parser has the following behaviour:

Spaces and "%20": unencoded space characters will be accepted and will be treated as equivalent to "%20". Single "%" characters: Any occurrences of a percent character "%" not followed by exactly two hexadecimal characters (e.g., "13% coverage.html") will be replaced by "%25". Note that one lone "%" character will trigger the correction mode for all percent characters. Reserved and unreserved characters: An encoded URL should only contain a few characters as literals; all other characters should be percent-encoded. In TolerantMode, these characters will be accepted if they are found in the URL: space / double-quote / "<" / ">" / "" / "^" / "`" / "{" / "|" / "}" Those same characters can be decoded again by passing QUrl::DecodeReserved to toString() or toEncoded(). In the getters of individual components, those characters are often returned in decoded form.

When in StrictMode, if a parsing error is found, isValid() will return false and errorString() will return a message describing the error. If more than one error is detected, it is undefined which error gets reported.

Note that TolerantMode is not usually enough for parsing user input, which often contains more errors and expectations than the parser can deal with. When dealing with data coming directly from the user -- as opposed to data coming from data-transfer sources, such as other programs -- it is recommended to use fromUserInput().

See also fromUserInput(), setUrl(), toString(), toEncoded(), and QUrl::FormattingOptions.

const QUrl__DecodedMode QUrl__ParsingMode = 2

QUrl will interpret the URL component in the fully-decoded form, where percent characters stand for themselves, not as the beginning of a percent-encoded sequence. This mode is only valid for the setters setting components of a URL; it is not permitted in the QUrl constructor, in fromEncoded() or in setUrl(). For more information on this mode, see the documentation for QUrl::FullyDecoded.

const QUrl__StrictMode QUrl__ParsingMode = 1

Only valid URLs are accepted. This mode is useful for general URL validation.

const QUrl__TolerantMode QUrl__ParsingMode = 0

QUrl will try to correct some common errors in URLs. This mode is useful for parsing URLs coming from sources not known to be strictly standards-conforming.

type QUrl__UrlFormattingOption

type QUrl__UrlFormattingOption = int
const QUrl__None QUrl__UrlFormattingOption = 0
const QUrl__NormalizePathSegments QUrl__UrlFormattingOption = 4096
const QUrl__PreferLocalFile QUrl__UrlFormattingOption = 512
const QUrl__RemoveAuthority QUrl__UrlFormattingOption = 30
const QUrl__RemoveFilename QUrl__UrlFormattingOption = 2048
const QUrl__RemoveFragment QUrl__UrlFormattingOption = 128
const QUrl__RemovePassword QUrl__UrlFormattingOption = 2
const QUrl__RemovePath QUrl__UrlFormattingOption = 32
const QUrl__RemovePort QUrl__UrlFormattingOption = 8
const QUrl__RemoveQuery QUrl__UrlFormattingOption = 64
const QUrl__RemoveScheme QUrl__UrlFormattingOption = 1
const QUrl__RemoveUserInfo QUrl__UrlFormattingOption = 6
const QUrl__StripTrailingSlash QUrl__UrlFormattingOption = 1024

type QUrl__UserInputResolutionOption

type QUrl__UserInputResolutionOption = int
const QUrl__AssumeLocalFile QUrl__UserInputResolutionOption = 1
const QUrl__DefaultResolution QUrl__UserInputResolutionOption = 0

type QUuid

type QUuid struct {
	*qtrt.CObject
}

func NewQUuid

func NewQUuid() *QUuid

Creates the null UUID. toString() will output the null UUID as "{00000000-0000-0000-0000-000000000000}".

func NewQUuidFromPointer

func NewQUuidFromPointer(cthis unsafe.Pointer) *QUuid

func NewQUuid_1

func NewQUuid_1(l uint, w1 uint16, w2 uint16, b1 byte, b2 byte, b3 byte, b4 byte, b5 byte, b6 byte, b7 byte, b8 byte) *QUuid

Creates the null UUID. toString() will output the null UUID as "{00000000-0000-0000-0000-000000000000}".

func NewQUuid_2

func NewQUuid_2(arg0 string) *QUuid

Creates the null UUID. toString() will output the null UUID as "{00000000-0000-0000-0000-000000000000}".

func NewQUuid_3

func NewQUuid_3(arg0 string) *QUuid

Creates the null UUID. toString() will output the null UUID as "{00000000-0000-0000-0000-000000000000}".

func NewQUuid_4

func NewQUuid_4(arg0 QByteArray_ITF) *QUuid

Creates the null UUID. toString() will output the null UUID as "{00000000-0000-0000-0000-000000000000}".

func QUuid_CreateUuid

func QUuid_CreateUuid() *QUuid

func QUuid_CreateUuidV3

func QUuid_CreateUuidV3(ns QUuid_ITF, baseData QByteArray_ITF) *QUuid

func QUuid_CreateUuidV3_1

func QUuid_CreateUuidV3_1(ns QUuid_ITF, baseData string) *QUuid

func QUuid_CreateUuidV5

func QUuid_CreateUuidV5(ns QUuid_ITF, baseData QByteArray_ITF) *QUuid

func QUuid_CreateUuidV5_1

func QUuid_CreateUuidV5_1(ns QUuid_ITF, baseData string) *QUuid

func QUuid_FromRfc4122

func QUuid_FromRfc4122(arg0 QByteArray_ITF) *QUuid

func QUuid_FromString

func QUuid_FromString(string QStringView_ITF) *QUuid

func QUuid_FromString_1

func QUuid_FromString_1(string QLatin1String_ITF) *QUuid

func (*QUuid) CreateUuid

func (this *QUuid) CreateUuid() *QUuid

On any platform other than Windows, this function returns a new UUID with variant QUuid::DCE and version QUuid::Random. On Windows, a GUID is generated using the Windows API and will be of the type that the API decides to create.

See also variant() and version().

func (*QUuid) CreateUuidV3

func (this *QUuid) CreateUuidV3(ns QUuid_ITF, baseData QByteArray_ITF) *QUuid

This function returns a new UUID with variant QUuid::DCE and version QUuid::Md5. ns is the namespace and baseData is the basic data as described by RFC 4122.

This function was introduced in Qt 5.0.

See also variant(), version(), and createUuidV5().

func (*QUuid) CreateUuidV3_1

func (this *QUuid) CreateUuidV3_1(ns QUuid_ITF, baseData string) *QUuid

This function returns a new UUID with variant QUuid::DCE and version QUuid::Md5. ns is the namespace and baseData is the basic data as described by RFC 4122.

This function was introduced in Qt 5.0.

See also variant(), version(), and createUuidV5().

func (*QUuid) CreateUuidV5

func (this *QUuid) CreateUuidV5(ns QUuid_ITF, baseData QByteArray_ITF) *QUuid

This function returns a new UUID with variant QUuid::DCE and version QUuid::Sha1. ns is the namespace and baseData is the basic data as described by RFC 4122.

This function was introduced in Qt 5.0.

See also variant(), version(), and createUuidV3().

func (*QUuid) CreateUuidV5_1

func (this *QUuid) CreateUuidV5_1(ns QUuid_ITF, baseData string) *QUuid

This function returns a new UUID with variant QUuid::DCE and version QUuid::Sha1. ns is the namespace and baseData is the basic data as described by RFC 4122.

This function was introduced in Qt 5.0.

See also variant(), version(), and createUuidV3().

func (*QUuid) FromRfc4122

func (this *QUuid) FromRfc4122(arg0 QByteArray_ITF) *QUuid

Creates a QUuid object from the binary representation of the UUID, as specified by RFC 4122 section 4.1.2. See toRfc4122() for a further explanation of the order of bytes required.

The byte array accepted is NOT a human readable format.

If the conversion fails, a null UUID is created.

This function was introduced in Qt 4.8.

See also toRfc4122() and QUuid().

func (*QUuid) FromString

func (this *QUuid) FromString(string QStringView_ITF) *QUuid

Creates a QUuid object from the string text, which must be formatted as five hex fields separated by '-', e.g., "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}" where each 'x' is a hex digit. The curly braces shown here are optional, but it is normal to include them. If the conversion fails, a null UUID is returned. See toString() for an explanation of how the five hex fields map to the public data members in QUuid.

This function was introduced in Qt 5.10.

See also toString() and QUuid().

func (*QUuid) FromString_1

func (this *QUuid) FromString_1(string QLatin1String_ITF) *QUuid

Creates a QUuid object from the string text, which must be formatted as five hex fields separated by '-', e.g., "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}" where each 'x' is a hex digit. The curly braces shown here are optional, but it is normal to include them. If the conversion fails, a null UUID is returned. See toString() for an explanation of how the five hex fields map to the public data members in QUuid.

This function was introduced in Qt 5.10.

See also toString() and QUuid().

func (*QUuid) GetCthis

func (this *QUuid) GetCthis() unsafe.Pointer

func (*QUuid) IsNull

func (this *QUuid) IsNull() bool

Returns true if this is the null UUID {00000000-0000-0000-0000-000000000000}; otherwise returns false.

func (*QUuid) NewFromPointer

func (*QUuid) NewFromPointer(cthis unsafe.Pointer) *QUuid

func (*QUuid) Operator_equal_equal

func (this *QUuid) Operator_equal_equal(orig QUuid_ITF) bool

func (*QUuid) Operator_greater_than

func (this *QUuid) Operator_greater_than(other QUuid_ITF) bool

func (*QUuid) Operator_less_than

func (this *QUuid) Operator_less_than(other QUuid_ITF) bool

func (*QUuid) Operator_not_equal

func (this *QUuid) Operator_not_equal(orig QUuid_ITF) bool

func (*QUuid) QUuid_PTR

func (ptr *QUuid) QUuid_PTR() *QUuid

func (*QUuid) SetCthis

func (this *QUuid) SetCthis(cthis unsafe.Pointer)

func (*QUuid) ToByteArray

func (this *QUuid) ToByteArray() *QByteArray

Returns the binary representation of this QUuid. The byte array is formatted as five hex fields separated by '-' and enclosed in curly braces, i.e., "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}" where 'x' is a hex digit. From left to right, the five hex fields are obtained from the four public data members in QUuid as follows:

Field #Source

1data1 2data2 3data3 4data4[0] .. data4[1] 5data4[2] .. data4[7]

This function was introduced in Qt 4.8.

func (*QUuid) ToRfc4122

func (this *QUuid) ToRfc4122() *QByteArray

Returns the binary representation of this QUuid. The byte array is in big endian format, and formatted according to RFC 4122, section 4.1.2 - "Layout and byte order".

The order is as follows:

Field #Source

1data1 2data2 3data3 4data4[0] .. data4[7]

This function was introduced in Qt 4.8.

func (*QUuid) ToString

func (this *QUuid) ToString() string

Returns the string representation of this QUuid. The string is formatted as five hex fields separated by '-' and enclosed in curly braces, i.e., "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}" where 'x' is a hex digit. From left to right, the five hex fields are obtained from the four public data members in QUuid as follows:

Field #Source

1data1 2data2 3data3 4data4[0] .. data4[1] 5data4[2] .. data4[7]

func (*QUuid) Variant

func (this *QUuid) Variant() int

Returns the value in the variant field of the UUID. If the return value is QUuid::DCE, call version() to see which layout it uses. The null UUID is considered to be of an unknown variant.

See also version().

func (*QUuid) Version

func (this *QUuid) Version() int

Returns the version field of the UUID, if the UUID's variant field is QUuid::DCE. Otherwise it returns QUuid::VerUnknown.

See also variant().

type QUuid_ITF

type QUuid_ITF interface {
	QUuid_PTR() *QUuid
}

type QUuid__Variant

type QUuid__Variant = int

This enum defines the values used in the variant field of the UUID. The value in the variant field determines the layout of the 128-bit value.

const QUuid__DCE QUuid__Variant = 2

Distributed Computing Environment, the scheme used by QUuid

const QUuid__Microsoft QUuid__Variant = 6

Reserved for Microsoft backward compatibility (GUID)

const QUuid__NCS QUuid__Variant = 0

Reserved for NCS (Network Computing System) backward compatibility

const QUuid__Reserved QUuid__Variant = 7

Reserved for future definition

const QUuid__VarUnknown QUuid__Variant = -1

type QUuid__Version

type QUuid__Version = int

This enum defines the values used in the version field of the UUID. The version field is meaningful only if the value in the variant field is QUuid::DCE.

const QUuid__EmbeddedPOSIX QUuid__Version = 2

DCE Security version, with embedded POSIX UUIDs

const QUuid__Md5 QUuid__Version = 3

Alias for Name

const QUuid__Name QUuid__Version = 3
const QUuid__Random QUuid__Version = 4

Random-based, by using random numbers for all sections

const QUuid__Sha1 QUuid__Version = 5
const QUuid__Time QUuid__Version = 1

Time-based, by using timestamp, clock sequence, and MAC network card address (if available) for the node sections

const QUuid__VerUnknown QUuid__Version = -1

type QVariant

type QVariant struct {
	*qtrt.CObject
}

func NewQVariant

func NewQVariant() *QVariant

Constructs an invalid variant.

func NewQVariantFromPointer

func NewQVariantFromPointer(cthis unsafe.Pointer) *QVariant

func NewQVariant_1

func NewQVariant_1(type_ int) *QVariant

Constructs an invalid variant.

func NewQVariant_10

func NewQVariant_10(d float64) *QVariant

Constructs an invalid variant.

func NewQVariant_11

func NewQVariant_11(f float32) *QVariant

Constructs an invalid variant.

func NewQVariant_12

func NewQVariant_12(str string) *QVariant

Constructs an invalid variant.

func NewQVariant_13

func NewQVariant_13(bytearray QByteArray_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_14

func NewQVariant_14(bitarray QBitArray_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_15

func NewQVariant_15(string string) *QVariant

Constructs an invalid variant.

func NewQVariant_16

func NewQVariant_16(string QLatin1String_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_17

func NewQVariant_17(stringlist QStringList_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_18

func NewQVariant_18(qchar QChar_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_19

func NewQVariant_19(date QDate_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_2

func NewQVariant_2(typeId int, copy unsafe.Pointer) *QVariant

Constructs an invalid variant.

func NewQVariant_20

func NewQVariant_20(time QTime_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_21

func NewQVariant_21(datetime QDateTime_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_22

func NewQVariant_22(size QSize_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_23

func NewQVariant_23(size QSizeF_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_24

func NewQVariant_24(pt QPoint_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_25

func NewQVariant_25(pt QPointF_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_26

func NewQVariant_26(line QLine_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_27

func NewQVariant_27(line QLineF_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_28

func NewQVariant_28(rect QRect_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_29

func NewQVariant_29(rect QRectF_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_3

func NewQVariant_3(typeId int, copy unsafe.Pointer, flags uint) *QVariant

Constructs an invalid variant.

func NewQVariant_30

func NewQVariant_30(locale QLocale_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_31

func NewQVariant_31(regExp QRegExp_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_32

func NewQVariant_32(re QRegularExpression_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_33

func NewQVariant_33(url QUrl_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_34

func NewQVariant_34(easing QEasingCurve_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_35

func NewQVariant_35(uuid QUuid_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_36

func NewQVariant_36(modelIndex QModelIndex_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_37

func NewQVariant_37(modelIndex QPersistentModelIndex_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_38

func NewQVariant_38(jsonValue QJsonValue_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_39

func NewQVariant_39(jsonObject QJsonObject_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_4

func NewQVariant_4(s QDataStream_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_40

func NewQVariant_40(jsonArray QJsonArray_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_41

func NewQVariant_41(jsonDocument QJsonDocument_ITF) *QVariant

Constructs an invalid variant.

func NewQVariant_5

func NewQVariant_5(i int) *QVariant

Constructs an invalid variant.

func NewQVariant_6

func NewQVariant_6(ui uint) *QVariant

Constructs an invalid variant.

func NewQVariant_7

func NewQVariant_7(ll int64) *QVariant

Constructs an invalid variant.

func NewQVariant_8

func NewQVariant_8(ull uint64) *QVariant

Constructs an invalid variant.

func NewQVariant_9

func NewQVariant_9(b bool) *QVariant

Constructs an invalid variant.

func (*QVariant) CanConvert

func (this *QVariant) CanConvert(targetTypeId int) bool

Returns true if the variant's type can be cast to the requested type, targetTypeId. Such casting is done automatically when calling the toInt(), toBool(), ... methods.

The following casts are done automatically:

TypeAutomatically Cast To

QMetaType::BoolQMetaType::QChar, QMetaType::Double, QMetaType::Int, QMetaType::LongLong, QMetaType::QString, QMetaType::UInt, QMetaType::ULongLong QMetaType::QByteArrayQMetaType::Double, QMetaType::Int, QMetaType::LongLong, QMetaType::QString, QMetaType::UInt, QMetaType::ULongLong, QMetaType::QUuid QMetaType::QCharQMetaType::Bool, QMetaType::Int, QMetaType::UInt, QMetaType::LongLong, QMetaType::ULongLong QMetaType::QColorQMetaType::QString QMetaType::QDateQMetaType::QDateTime, QMetaType::QString QMetaType::QDateTimeQMetaType::QDate, QMetaType::QString, QMetaType::QTime QMetaType::DoubleQMetaType::Bool, QMetaType::Int, QMetaType::LongLong, QMetaType::QString, QMetaType::UInt, QMetaType::ULongLong QMetaType::QFontQMetaType::QString QMetaType::IntQMetaType::Bool, QMetaType::QChar, QMetaType::Double, QMetaType::LongLong, QMetaType::QString, QMetaType::UInt, QMetaType::ULongLong QMetaType::QKeySequenceQMetaType::Int, QMetaType::QString QMetaType::QVariantListQMetaType::QStringList (if the list's items can be converted to QStrings) QMetaType::LongLongQMetaType::Bool, QMetaType::QByteArray, QMetaType::QChar, QMetaType::Double, QMetaType::Int, QMetaType::QString, QMetaType::UInt, QMetaType::ULongLong QMetaType::QPointQMetaType::QPointF QMetaType::QRectQMetaType::QRectF QMetaType::QStringQMetaType::Bool, QMetaType::QByteArray, QMetaType::QChar, QMetaType::QColor, QMetaType::QDate, QMetaType::QDateTime, QMetaType::Double, QMetaType::QFont, QMetaType::Int, QMetaType::QKeySequence, QMetaType::LongLong, QMetaType::QStringList, QMetaType::QTime, QMetaType::UInt, QMetaType::ULongLong, QMetaType::QUuid QMetaType::QStringListQMetaType::QVariantList, QMetaType::QString (if the list contains exactly one item) QMetaType::QTimeQMetaType::QString QMetaType::UIntQMetaType::Bool, QMetaType::QChar, QMetaType::Double, QMetaType::Int, QMetaType::LongLong, QMetaType::QString, QMetaType::ULongLong QMetaType::ULongLongQMetaType::Bool, QMetaType::QChar, QMetaType::Double, QMetaType::Int, QMetaType::LongLong, QMetaType::QString, QMetaType::UInt QMetaType::QUuidQMetaType::QByteArray, QMetaType::QString

A QVariant containing a pointer to a type derived from QObject will also return true for this function if a qobject_cast to the type described by targetTypeId would succeed. Note that this only works for QObject subclasses which use the Q_OBJECT macro.

A QVariant containing a sequential container will also return true for this function if the targetTypeId is QVariantList. It is possible to iterate over the contents of the container without extracting it as a (copied) QVariantList:

QList<int> intList = {7, 11, 42};

QVariant variant = QVariant::fromValue(intList);
if (variant.canConvert<QVariantList>()) {
    QSequentialIterable iterable = variant.value<QSequentialIterable>();
    // Can use foreach:
    foreach (const QVariant &v, iterable) {
        qDebug() << v;
    }
    // Can use C++11 range-for:
    for (const QVariant &v : iterable) {
        qDebug() << v;
    }
    // Can use iterators:
    QSequentialIterable::const_iterator it = iterable.begin();
    const QSequentialIterable::const_iterator end = iterable.end();
    for ( ; it != end; ++it) {
        qDebug() << *it;
    }
}

This requires that the value_type of the container is itself a metatype.

Similarly, a QVariant containing a sequential container will also return true for this function the targetTypeId is QVariantHash or QVariantMap. It is possible to iterate over the contents of the container without extracting it as a (copied) QVariantHash or QVariantMap:

QHash<int, QString> mapping;
mapping.insert(7, "Seven");
mapping.insert(11, "Eleven");
mapping.insert(42, "Forty-two");

QVariant variant = QVariant::fromValue(mapping);
if (variant.canConvert<QVariantHash>()) {
    QAssociativeIterable iterable = variant.value<QAssociativeIterable>();
    // Can use foreach over the values:
    foreach (const QVariant &v, iterable) {
        qDebug() << v;
    }
    // Can use C++11 range-for over the values:
    for (const QVariant &v : iterable) {
        qDebug() << v;
    }
    // Can use iterators:
    QAssociativeIterable::const_iterator it = iterable.begin();
    const QAssociativeIterable::const_iterator end = iterable.end();
    for ( ; it != end; ++it) {
        qDebug() << *it; // The current value
        qDebug() << it.key();
        qDebug() << it.value();
    }
}

See also convert(), QSequentialIterable, Q_DECLARE_SEQUENTIAL_CONTAINER_METATYPE(), QAssociativeIterable, and Q_DECLARE_ASSOCIATIVE_CONTAINER_METATYPE().

func (*QVariant) Clear

func (this *QVariant) Clear()

Convert this variant to type QMetaType::UnknownType and free up any resources used.

func (*QVariant) Cmp

func (this *QVariant) Cmp(other QVariant_ITF) bool

func (*QVariant) Compare

func (this *QVariant) Compare(other QVariant_ITF) int

func (*QVariant) ConstData

func (this *QVariant) ConstData() unsafe.Pointer

func (*QVariant) Convert

func (this *QVariant) Convert(targetTypeId int) bool

Casts the variant to the requested type, targetTypeId. If the cast cannot be done, the variant is still changed to the requested type, but is left in a cleared null state similar to that constructed by QVariant(Type).

Returns true if the current type of the variant was successfully cast; otherwise returns false.

A QVariant containing a pointer to a type derived from QObject will also convert and return true for this function if a qobject_cast to the type described by targetTypeId would succeed. Note that this only works for QObject subclasses which use the Q_OBJECT macro.

Note: converting QVariants that are null due to not being initialized or having failed a previous conversion will always fail, changing the type, remaining null, and returning false.

See also canConvert() and clear().

func (*QVariant) Convert_1

func (this *QVariant) Convert_1(t int, ptr unsafe.Pointer) bool

Casts the variant to the requested type, targetTypeId. If the cast cannot be done, the variant is still changed to the requested type, but is left in a cleared null state similar to that constructed by QVariant(Type).

Returns true if the current type of the variant was successfully cast; otherwise returns false.

A QVariant containing a pointer to a type derived from QObject will also convert and return true for this function if a qobject_cast to the type described by targetTypeId would succeed. Note that this only works for QObject subclasses which use the Q_OBJECT macro.

Note: converting QVariants that are null due to not being initialized or having failed a previous conversion will always fail, changing the type, remaining null, and returning false.

See also canConvert() and clear().

func (*QVariant) Create

func (this *QVariant) Create(type_ int, copy unsafe.Pointer)

func (*QVariant) Data

func (this *QVariant) Data() unsafe.Pointer

func (*QVariant) Data_1

func (this *QVariant) Data_1() unsafe.Pointer

func (*QVariant) Detach

func (this *QVariant) Detach()

func (*QVariant) GetCthis

func (this *QVariant) GetCthis() unsafe.Pointer

func (*QVariant) InheritCmp

func (this *QVariant) InheritCmp(f func(other *QVariant) bool)

bool cmp(const class QVariant &)

func (*QVariant) InheritCompare

func (this *QVariant) InheritCompare(f func(other *QVariant) int)

int compare(const class QVariant &)

func (*QVariant) InheritConvert

func (this *QVariant) InheritConvert(f func(t int, ptr unsafe.Pointer) bool)

bool convert(const int, void *)

func (*QVariant) InheritCreate

func (this *QVariant) InheritCreate(f func(type_ int, copy unsafe.Pointer))

void create(int, const void *)

func (*QVariant) IsDetached

func (this *QVariant) IsDetached() bool

func (*QVariant) IsNull

func (this *QVariant) IsNull() bool

Returns true if this is a null variant, false otherwise. A variant is considered null if it contains no initialized value, or the contained value is a null pointer or is an instance of a built-in type that has an isNull method, in which case the result would be the same as calling isNull on the wrapped object.

Warning: Null variants is not a single state and two null variants may easily return false on the == operator if they do not contain similar null values.

See also QVariant(Type) and convert(int).

func (*QVariant) IsValid

func (this *QVariant) IsValid() bool

Returns true if the storage type of this variant is not QMetaType::UnknownType; otherwise returns false.

func (*QVariant) Load

func (this *QVariant) Load(ds QDataStream_ITF)

func (*QVariant) NameToType

func (this *QVariant) NameToType(name string) int

Converts the string representation of the storage type given in name, to its enum representation.

If the string representation cannot be converted to any enum representation, the variant is set to Invalid.

func (*QVariant) NewFromPointer

func (*QVariant) NewFromPointer(cthis unsafe.Pointer) *QVariant

func (*QVariant) Operator_equal

func (this *QVariant) Operator_equal(other QVariant_ITF) *QVariant

func (*QVariant) Operator_equal_1

func (this *QVariant) Operator_equal_1(other unsafe.Pointer) *QVariant

func (*QVariant) Operator_equal_equal

func (this *QVariant) Operator_equal_equal(v QVariant_ITF) bool

func (*QVariant) Operator_greater_than

func (this *QVariant) Operator_greater_than(v QVariant_ITF) bool

func (*QVariant) Operator_greater_than_equal

func (this *QVariant) Operator_greater_than_equal(v QVariant_ITF) bool

func (*QVariant) Operator_less_than

func (this *QVariant) Operator_less_than(v QVariant_ITF) bool

func (*QVariant) Operator_less_than_equal

func (this *QVariant) Operator_less_than_equal(v QVariant_ITF) bool

func (*QVariant) Operator_not_equal

func (this *QVariant) Operator_not_equal(v QVariant_ITF) bool

func (*QVariant) QVariant_PTR

func (ptr *QVariant) QVariant_PTR() *QVariant

func (*QVariant) Save

func (this *QVariant) Save(ds QDataStream_ITF)

func (*QVariant) SetCthis

func (this *QVariant) SetCthis(cthis unsafe.Pointer)

func (*QVariant) Swap

func (this *QVariant) Swap(other QVariant_ITF)

Swaps variant other with this variant. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func (*QVariant) ToBitArray

func (this *QVariant) ToBitArray() *QBitArray

Returns the variant as a QBitArray if the variant has userType() QMetaType::QBitArray; otherwise returns an empty bit array.

See also canConvert() and convert().

func (*QVariant) ToBool

func (this *QVariant) ToBool() bool

Returns the variant as a bool if the variant has userType() Bool.

Returns true if the variant has userType() QMetaType::Bool, QMetaType::QChar, QMetaType::Double, QMetaType::Int, QMetaType::LongLong, QMetaType::UInt, or QMetaType::ULongLong and the value is non-zero, or if the variant has type QMetaType::QString or QMetaType::QByteArray and its lower-case content is not one of the following: empty, "0" or "false"; otherwise returns false.

See also canConvert() and convert().

func (*QVariant) ToByteArray

func (this *QVariant) ToByteArray() *QByteArray

Returns the variant as a QByteArray if the variant has userType() QMetaType::QByteArray or QMetaType::QString (converted using QString::fromUtf8()); otherwise returns an empty byte array.

See also canConvert() and convert().

func (*QVariant) ToChar

func (this *QVariant) ToChar() *QChar

Returns the variant as a QChar if the variant has userType() QMetaType::QChar, QMetaType::Int, or QMetaType::UInt; otherwise returns an invalid QChar.

See also canConvert() and convert().

func (*QVariant) ToDate

func (this *QVariant) ToDate() *QDate

Returns the variant as a QDate if the variant has userType() QMetaType::QDate, QMetaType::QDateTime, or QMetaType::QString; otherwise returns an invalid date.

If the type() is QMetaType::QString, an invalid date will be returned if the string cannot be parsed as a Qt::ISODate format date.

See also canConvert() and convert().

func (*QVariant) ToDateTime

func (this *QVariant) ToDateTime() *QDateTime

Returns the variant as a QDateTime if the variant has userType() QMetaType::QDateTime, QMetaType::QDate, or QMetaType::QString; otherwise returns an invalid date/time.

If the type() is QMetaType::QString, an invalid date/time will be returned if the string cannot be parsed as a Qt::ISODate format date/time.

See also canConvert() and convert().

func (*QVariant) ToDouble

func (this *QVariant) ToDouble(ok *bool) float64

Returns the variant as a double if the variant has userType() QMetaType::Double, QMetaType::Float, QMetaType::Bool, QMetaType::QByteArray, QMetaType::Int, QMetaType::LongLong, QMetaType::QString, QMetaType::UInt, or QMetaType::ULongLong; otherwise returns 0.0.

If ok is non-null: *ok is set to true if the value could be converted to a double; otherwise *ok is set to false.

See also canConvert() and convert().

func (*QVariant) ToDouble__

func (this *QVariant) ToDouble__() float64

Returns the variant as a double if the variant has userType() QMetaType::Double, QMetaType::Float, QMetaType::Bool, QMetaType::QByteArray, QMetaType::Int, QMetaType::LongLong, QMetaType::QString, QMetaType::UInt, or QMetaType::ULongLong; otherwise returns 0.0.

If ok is non-null: *ok is set to true if the value could be converted to a double; otherwise *ok is set to false.

See also canConvert() and convert().

func (*QVariant) ToEasingCurve

func (this *QVariant) ToEasingCurve() *QEasingCurve

Returns the variant as a QEasingCurve if the variant has userType() QMetaType::QEasingCurve; otherwise returns a default easing curve.

This function was introduced in Qt 4.7.

See also canConvert() and convert().

func (*QVariant) ToFloat

func (this *QVariant) ToFloat(ok *bool) float32

Returns the variant as a float if the variant has userType() QMetaType::Double, QMetaType::Float, QMetaType::Bool, QMetaType::QByteArray, QMetaType::Int, QMetaType::LongLong, QMetaType::QString, QMetaType::UInt, or QMetaType::ULongLong; otherwise returns 0.0.

If ok is non-null: *ok is set to true if the value could be converted to a double; otherwise *ok is set to false.

This function was introduced in Qt 4.6.

See also canConvert() and convert().

func (*QVariant) ToFloat__

func (this *QVariant) ToFloat__() float32

Returns the variant as a float if the variant has userType() QMetaType::Double, QMetaType::Float, QMetaType::Bool, QMetaType::QByteArray, QMetaType::Int, QMetaType::LongLong, QMetaType::QString, QMetaType::UInt, or QMetaType::ULongLong; otherwise returns 0.0.

If ok is non-null: *ok is set to true if the value could be converted to a double; otherwise *ok is set to false.

This function was introduced in Qt 4.6.

See also canConvert() and convert().

func (*QVariant) ToInt

func (this *QVariant) ToInt(ok *bool) int

Returns the variant as an int if the variant has userType() QMetaType::Int, QMetaType::Bool, QMetaType::QByteArray, QMetaType::QChar, QMetaType::Double, QMetaType::LongLong, QMetaType::QString, QMetaType::UInt, or QMetaType::ULongLong; otherwise returns 0.

If ok is non-null: *ok is set to true if the value could be converted to an int; otherwise *ok is set to false.

Warning: If the value is convertible to a QMetaType::LongLong but is too large to be represented in an int, the resulting arithmetic overflow will not be reflected in ok. A simple workaround is to use QString::toInt().

See also canConvert() and convert().

func (*QVariant) ToInt__

func (this *QVariant) ToInt__() int

Returns the variant as an int if the variant has userType() QMetaType::Int, QMetaType::Bool, QMetaType::QByteArray, QMetaType::QChar, QMetaType::Double, QMetaType::LongLong, QMetaType::QString, QMetaType::UInt, or QMetaType::ULongLong; otherwise returns 0.

If ok is non-null: *ok is set to true if the value could be converted to an int; otherwise *ok is set to false.

Warning: If the value is convertible to a QMetaType::LongLong but is too large to be represented in an int, the resulting arithmetic overflow will not be reflected in ok. A simple workaround is to use QString::toInt().

See also canConvert() and convert().

func (*QVariant) ToJsonArray

func (this *QVariant) ToJsonArray() *QJsonArray

Returns the variant as a QJsonArray if the variant has userType() QJsonArray; otherwise returns a default constructed QJsonArray.

This function was introduced in Qt 5.0.

See also canConvert() and convert().

func (*QVariant) ToJsonDocument

func (this *QVariant) ToJsonDocument() *QJsonDocument

Returns the variant as a QJsonDocument if the variant has userType() QJsonDocument; otherwise returns a default constructed QJsonDocument.

This function was introduced in Qt 5.0.

See also canConvert() and convert().

func (*QVariant) ToJsonObject

func (this *QVariant) ToJsonObject() *QJsonObject

Returns the variant as a QJsonObject if the variant has userType() QJsonObject; otherwise returns a default constructed QJsonObject.

This function was introduced in Qt 5.0.

See also canConvert() and convert().

func (*QVariant) ToJsonValue

func (this *QVariant) ToJsonValue() *QJsonValue

Returns the variant as a QJsonValue if the variant has userType() QJsonValue; otherwise returns a default constructed QJsonValue.

This function was introduced in Qt 5.0.

See also canConvert() and convert().

func (*QVariant) ToLine

func (this *QVariant) ToLine() *QLine

Returns the variant as a QLine if the variant has userType() QMetaType::QLine; otherwise returns an invalid QLine.

See also canConvert() and convert().

func (*QVariant) ToLineF

func (this *QVariant) ToLineF() *QLineF

Returns the variant as a QLineF if the variant has userType() QMetaType::QLineF; otherwise returns an invalid QLineF.

See also canConvert() and convert().

func (*QVariant) ToLocale

func (this *QVariant) ToLocale() *QLocale

Returns the variant as a QLocale if the variant has userType() QMetaType::QLocale; otherwise returns an invalid QLocale.

See also canConvert() and convert().

func (*QVariant) ToLongLong

func (this *QVariant) ToLongLong(ok *bool) int64

Returns the variant as a long long int if the variant has userType() QMetaType::LongLong, QMetaType::Bool, QMetaType::QByteArray, QMetaType::QChar, QMetaType::Double, QMetaType::Int, QMetaType::QString, QMetaType::UInt, or QMetaType::ULongLong; otherwise returns 0.

If ok is non-null: *ok is set to true if the value could be converted to an int; otherwise *ok is set to false.

See also canConvert() and convert().

func (*QVariant) ToLongLong__

func (this *QVariant) ToLongLong__() int64

Returns the variant as a long long int if the variant has userType() QMetaType::LongLong, QMetaType::Bool, QMetaType::QByteArray, QMetaType::QChar, QMetaType::Double, QMetaType::Int, QMetaType::QString, QMetaType::UInt, or QMetaType::ULongLong; otherwise returns 0.

If ok is non-null: *ok is set to true if the value could be converted to an int; otherwise *ok is set to false.

See also canConvert() and convert().

func (*QVariant) ToModelIndex

func (this *QVariant) ToModelIndex() *QModelIndex

Returns the variant as a QModelIndex if the variant has userType() QModelIndex; otherwise returns a default constructed QModelIndex.

This function was introduced in Qt 5.0.

See also canConvert(), convert(), and toPersistentModelIndex().

func (*QVariant) ToPersistentModelIndex

func (this *QVariant) ToPersistentModelIndex() *QPersistentModelIndex

Returns the variant as a QPersistentModelIndex if the variant has userType() QPersistentModelIndex; otherwise returns a default constructed QPersistentModelIndex.

This function was introduced in Qt 5.5.

See also canConvert(), convert(), and toModelIndex().

func (*QVariant) ToPoint

func (this *QVariant) ToPoint() *QPoint

Returns the variant as a QPoint if the variant has userType() QMetaType::QPoint or QMetaType::QPointF; otherwise returns a null QPoint.

See also canConvert() and convert().

func (*QVariant) ToPointF

func (this *QVariant) ToPointF() *QPointF

Returns the variant as a QPointF if the variant has userType() QMetaType::QPoint or QMetaType::QPointF; otherwise returns a null QPointF.

See also canConvert() and convert().

func (*QVariant) ToReal

func (this *QVariant) ToReal(ok *bool) float64

Returns the variant as a qreal if the variant has userType() QMetaType::Double, QMetaType::Float, QMetaType::Bool, QMetaType::QByteArray, QMetaType::Int, QMetaType::LongLong, QMetaType::QString, QMetaType::UInt, or QMetaType::ULongLong; otherwise returns 0.0.

If ok is non-null: *ok is set to true if the value could be converted to a double; otherwise *ok is set to false.

This function was introduced in Qt 4.6.

See also canConvert() and convert().

func (*QVariant) ToReal__

func (this *QVariant) ToReal__() float64

Returns the variant as a qreal if the variant has userType() QMetaType::Double, QMetaType::Float, QMetaType::Bool, QMetaType::QByteArray, QMetaType::Int, QMetaType::LongLong, QMetaType::QString, QMetaType::UInt, or QMetaType::ULongLong; otherwise returns 0.0.

If ok is non-null: *ok is set to true if the value could be converted to a double; otherwise *ok is set to false.

This function was introduced in Qt 4.6.

See also canConvert() and convert().

func (*QVariant) ToRect

func (this *QVariant) ToRect() *QRect

Returns the variant as a QRect if the variant has userType() QMetaType::QRect; otherwise returns an invalid QRect.

See also canConvert() and convert().

func (*QVariant) ToRectF

func (this *QVariant) ToRectF() *QRectF

Returns the variant as a QRectF if the variant has userType() QMetaType::QRect or QMetaType::QRectF; otherwise returns an invalid QRectF.

See also canConvert() and convert().

func (*QVariant) ToRegExp

func (this *QVariant) ToRegExp() *QRegExp

Returns the variant as a QRegExp if the variant has userType() QMetaType::QRegExp; otherwise returns an empty QRegExp.

This function was introduced in Qt 4.1.

See also canConvert() and convert().

func (*QVariant) ToRegularExpression

func (this *QVariant) ToRegularExpression() *QRegularExpression

Returns the variant as a QRegularExpression if the variant has userType() QRegularExpression; otherwise returns an empty QRegularExpression.

This function was introduced in Qt 5.0.

See also canConvert() and convert().

func (*QVariant) ToSize

func (this *QVariant) ToSize() *QSize

Returns the variant as a QSize if the variant has userType() QMetaType::QSize; otherwise returns an invalid QSize.

See also canConvert() and convert().

func (*QVariant) ToSizeF

func (this *QVariant) ToSizeF() *QSizeF

Returns the variant as a QSizeF if the variant has userType() QMetaType::QSizeF; otherwise returns an invalid QSizeF.

See also canConvert() and convert().

func (*QVariant) ToString

func (this *QVariant) ToString() string

Returns the variant as a QString if the variant has userType() QMetaType::QString, QMetaType::Bool, QMetaType::QByteArray, QMetaType::QChar, QMetaType::QDate, QMetaType::QDateTime, QMetaType::Double, QMetaType::Int, QMetaType::LongLong, QMetaType::QStringList, QMetaType::QTime, QMetaType::UInt, or QMetaType::ULongLong; otherwise returns an empty string.

See also canConvert() and convert().

func (*QVariant) ToStringList

func (this *QVariant) ToStringList() *QStringList

Returns the variant as a QStringList if the variant has userType() QMetaType::QStringList, QMetaType::QString, or QMetaType::QVariantList of a type that can be converted to QString; otherwise returns an empty list.

See also canConvert() and convert().

func (*QVariant) ToTime

func (this *QVariant) ToTime() *QTime

Returns the variant as a QTime if the variant has userType() QMetaType::QTime, QMetaType::QDateTime, or QMetaType::QString; otherwise returns an invalid time.

If the type() is QMetaType::QString, an invalid time will be returned if the string cannot be parsed as a Qt::ISODate format time.

See also canConvert() and convert().

func (*QVariant) ToUInt

func (this *QVariant) ToUInt(ok *bool) uint

Returns the variant as an unsigned int if the variant has userType() QMetaType::UInt, QMetaType::Bool, QMetaType::QByteArray, QMetaType::QChar, QMetaType::Double, QMetaType::Int, QMetaType::LongLong, QMetaType::QString, or QMetaType::ULongLong; otherwise returns 0.

If ok is non-null: *ok is set to true if the value could be converted to an unsigned int; otherwise *ok is set to false.

Warning: If the value is convertible to a QMetaType::ULongLong but is too large to be represented in an unsigned int, the resulting arithmetic overflow will not be reflected in ok. A simple workaround is to use QString::toUInt().

See also canConvert() and convert().

func (*QVariant) ToUInt__

func (this *QVariant) ToUInt__() uint

Returns the variant as an unsigned int if the variant has userType() QMetaType::UInt, QMetaType::Bool, QMetaType::QByteArray, QMetaType::QChar, QMetaType::Double, QMetaType::Int, QMetaType::LongLong, QMetaType::QString, or QMetaType::ULongLong; otherwise returns 0.

If ok is non-null: *ok is set to true if the value could be converted to an unsigned int; otherwise *ok is set to false.

Warning: If the value is convertible to a QMetaType::ULongLong but is too large to be represented in an unsigned int, the resulting arithmetic overflow will not be reflected in ok. A simple workaround is to use QString::toUInt().

See also canConvert() and convert().

func (*QVariant) ToULongLong

func (this *QVariant) ToULongLong(ok *bool) uint64

Returns the variant as an unsigned long long int if the variant has type() QMetaType::ULongLong, QMetaType::Bool, QMetaType::QByteArray, QMetaType::QChar, QMetaType::Double, QMetaType::Int, QMetaType::LongLong, QMetaType::QString, or QMetaType::UInt; otherwise returns 0.

If ok is non-null: *ok is set to true if the value could be converted to an int; otherwise *ok is set to false.

See also canConvert() and convert().

func (*QVariant) ToULongLong__

func (this *QVariant) ToULongLong__() uint64

Returns the variant as an unsigned long long int if the variant has type() QMetaType::ULongLong, QMetaType::Bool, QMetaType::QByteArray, QMetaType::QChar, QMetaType::Double, QMetaType::Int, QMetaType::LongLong, QMetaType::QString, or QMetaType::UInt; otherwise returns 0.

If ok is non-null: *ok is set to true if the value could be converted to an int; otherwise *ok is set to false.

See also canConvert() and convert().

func (*QVariant) ToUrl

func (this *QVariant) ToUrl() *QUrl

Returns the variant as a QUrl if the variant has userType() QMetaType::QUrl; otherwise returns an invalid QUrl.

See also canConvert() and convert().

func (*QVariant) ToUuid

func (this *QVariant) ToUuid() *QUuid

Returns the variant as a QUuid if the variant has type() QMetaType::QUuid, QMetaType::QByteArray or QMetaType::QString; otherwise returns a default-constructed QUuid.

This function was introduced in Qt 5.0.

See also canConvert() and convert().

func (*QVariant) Type

func (this *QVariant) Type() int

Returns the storage type of the value stored in the variant. Although this function is declared as returning QVariant::Type, the return value should be interpreted as QMetaType::Type. In particular, QVariant::UserType is returned here only if the value is equal or greater than QMetaType::User.

Note that return values in the ranges QVariant::Char through QVariant::RegExp and QVariant::Font through QVariant::Transform correspond to the values in the ranges QMetaType::QChar through QMetaType::QRegExp and QMetaType::QFont through QMetaType::QQuaternion.

Pay particular attention when working with char and QChar variants. Note that there is no QVariant constructor specifically for type char, but there is one for QChar. For a variant of type QChar, this function returns QVariant::Char, which is the same as QMetaType::QChar, but for a variant of type char, this function returns QMetaType::Char, which is not the same as QVariant::Char.

Also note that the types void*, long, short, unsigned long, unsigned short, unsigned char, float, QObject*, and QWidget* are represented in QMetaType::Type but not in QVariant::Type, and they can be returned by this function. However, they are considered to be user defined types when tested against QVariant::Type.

To test whether an instance of QVariant contains a data type that is compatible with the data type you are interested in, use canConvert().

func (*QVariant) TypeName

func (this *QVariant) TypeName() string

Returns the name of the type stored in the variant. The returned strings describe the C++ datatype used to store the data: for example, "QFont", "QString", or "QVariantList". An Invalid variant returns 0.

func (*QVariant) TypeToName

func (this *QVariant) TypeToName(typeId int) string

Converts the int representation of the storage type, typeId, to its string representation.

Returns a null pointer if the type is QMetaType::UnknownType or doesn't exist.

func (*QVariant) UserType

func (this *QVariant) UserType() int

Returns the storage type of the value stored in the variant. For non-user types, this is the same as type().

See also type().

type QVariantAnimation

type QVariantAnimation struct {
	*QAbstractAnimation
}

func NewQVariantAnimation

func NewQVariantAnimation(parent QObject_ITF) *QVariantAnimation

Construct a QVariantAnimation object. parent is passed to QAbstractAnimation's constructor.

func NewQVariantAnimationFromPointer

func NewQVariantAnimationFromPointer(cthis unsafe.Pointer) *QVariantAnimation

func NewQVariantAnimation__

func NewQVariantAnimation__() *QVariantAnimation

Construct a QVariantAnimation object. parent is passed to QAbstractAnimation's constructor.

func (*QVariantAnimation) CurrentValue

func (this *QVariantAnimation) CurrentValue() *QVariant

func (*QVariantAnimation) Duration

func (this *QVariantAnimation) Duration() int

func (*QVariantAnimation) EasingCurve

func (this *QVariantAnimation) EasingCurve() *QEasingCurve

func (*QVariantAnimation) EndValue

func (this *QVariantAnimation) EndValue() *QVariant

func (*QVariantAnimation) Event

func (this *QVariantAnimation) Event(event QEvent_ITF) bool

Reimplemented from QObject::event().

func (*QVariantAnimation) GetCthis

func (this *QVariantAnimation) GetCthis() unsafe.Pointer

func (*QVariantAnimation) InheritEvent

func (this *QVariantAnimation) InheritEvent(f func(event *QEvent) bool)

bool event(class QEvent *)

func (*QVariantAnimation) InheritInterpolated

func (this *QVariantAnimation) InheritInterpolated(f func(from *QVariant, to *QVariant, progress float64) unsafe.Pointer)

QVariant interpolated(const class QVariant &, const class QVariant &, qreal)

func (*QVariantAnimation) InheritUpdateCurrentTime

func (this *QVariantAnimation) InheritUpdateCurrentTime(f func(arg0 int))

void updateCurrentTime(int)

func (*QVariantAnimation) InheritUpdateCurrentValue

func (this *QVariantAnimation) InheritUpdateCurrentValue(f func(value *QVariant))

void updateCurrentValue(const class QVariant &)

func (*QVariantAnimation) InheritUpdateState

func (this *QVariantAnimation) InheritUpdateState(f func(newState int, oldState int))

void updateState(class QAbstractAnimation::State, class QAbstractAnimation::State)

func (*QVariantAnimation) Interpolated

func (this *QVariantAnimation) Interpolated(from QVariant_ITF, to QVariant_ITF, progress float64) *QVariant

This virtual function returns the linear interpolation between variants from and to, at progress, usually a value between 0 and 1. You can reimplement this function in a subclass of QVariantAnimation to provide your own interpolation algorithm.

Note that in order for the interpolation to work with a QEasingCurve that return a value smaller than 0 or larger than 1 (such as QEasingCurve::InBack) you should make sure that it can extrapolate. If the semantic of the datatype does not allow extrapolation this function should handle that gracefully.

You should call the QVariantAnimation implementation of this function if you want your class to handle the types already supported by Qt (see class QVariantAnimation description for a list of supported types).

See also QEasingCurve.

func (*QVariantAnimation) KeyValueAt

func (this *QVariantAnimation) KeyValueAt(step float64) *QVariant

Returns the key frame value for the given step. The given step must be in the range 0 to 1. If there is no KeyValue for step, it returns an invalid QVariant.

See also keyValues() and setKeyValueAt().

func (*QVariantAnimation) MetaObject

func (this *QVariantAnimation) MetaObject() *QMetaObject

func (*QVariantAnimation) NewFromPointer

func (*QVariantAnimation) NewFromPointer(cthis unsafe.Pointer) *QVariantAnimation

func (*QVariantAnimation) QVariantAnimation_PTR

func (ptr *QVariantAnimation) QVariantAnimation_PTR() *QVariantAnimation

func (*QVariantAnimation) SetCthis

func (this *QVariantAnimation) SetCthis(cthis unsafe.Pointer)

func (*QVariantAnimation) SetDuration

func (this *QVariantAnimation) SetDuration(msecs int)

func (*QVariantAnimation) SetEasingCurve

func (this *QVariantAnimation) SetEasingCurve(easing QEasingCurve_ITF)

func (*QVariantAnimation) SetEndValue

func (this *QVariantAnimation) SetEndValue(value QVariant_ITF)

func (*QVariantAnimation) SetKeyValueAt

func (this *QVariantAnimation) SetKeyValueAt(step float64, value QVariant_ITF)

Creates a key frame at the given step with the given value. The given step must be in the range 0 to 1.

See also setKeyValues() and keyValueAt().

func (*QVariantAnimation) SetStartValue

func (this *QVariantAnimation) SetStartValue(value QVariant_ITF)

func (*QVariantAnimation) StartValue

func (this *QVariantAnimation) StartValue() *QVariant

func (*QVariantAnimation) UpdateCurrentTime

func (this *QVariantAnimation) UpdateCurrentTime(arg0 int)

Reimplemented from QAbstractAnimation::updateCurrentTime().

func (*QVariantAnimation) UpdateCurrentValue

func (this *QVariantAnimation) UpdateCurrentValue(value QVariant_ITF)

This virtual function is called every time the animation's current value changes. The value argument is the new current value.

The base class implementation does nothing.

See also currentValue.

func (*QVariantAnimation) UpdateState

func (this *QVariantAnimation) UpdateState(newState int, oldState int)

Reimplemented from QAbstractAnimation::updateState().

func (*QVariantAnimation) ValueChanged

func (this *QVariantAnimation) ValueChanged(value QVariant_ITF)

QVariantAnimation emits this signal whenever the current value changes.

Note: Notifier signal for property currentValue.

See also currentValue, startValue, and endValue.

type QVariantAnimation_ITF

type QVariantAnimation_ITF interface {
	QAbstractAnimation_ITF
	QVariantAnimation_PTR() *QVariantAnimation
}

type QVariantComparisonHelper

type QVariantComparisonHelper struct {
	*qtrt.CObject
}

func NewQVariantComparisonHelper

func NewQVariantComparisonHelper(var_ QVariant_ITF) *QVariantComparisonHelper

func NewQVariantComparisonHelperFromPointer

func NewQVariantComparisonHelperFromPointer(cthis unsafe.Pointer) *QVariantComparisonHelper

func (*QVariantComparisonHelper) GetCthis

func (this *QVariantComparisonHelper) GetCthis() unsafe.Pointer

func (*QVariantComparisonHelper) NewFromPointer

func (*QVariantComparisonHelper) QVariantComparisonHelper_PTR

func (ptr *QVariantComparisonHelper) QVariantComparisonHelper_PTR() *QVariantComparisonHelper

func (*QVariantComparisonHelper) SetCthis

func (this *QVariantComparisonHelper) SetCthis(cthis unsafe.Pointer)

type QVariantComparisonHelper_ITF

type QVariantComparisonHelper_ITF interface {
	QVariantComparisonHelper_PTR() *QVariantComparisonHelper
}

type QVariantHash

type QVariantHash struct {
	*qtrt.CObject
}

body block begin

func (*QVariantHash) AlignOfNode_0

func (this *QVariantHash) AlignOfNode_0() int

int alignOfNode()

func (*QVariantHash) Begin_0

func (this *QVariantHash) Begin_0()

QHash::iterator begin()

func (*QVariantHash) Begin_1

func (this *QVariantHash) Begin_1()

QHash::const_iterator begin()

func (*QVariantHash) Capacity_0

func (this *QVariantHash) Capacity_0() int

int capacity()

func (*QVariantHash) Cbegin_0

func (this *QVariantHash) Cbegin_0()

QHash::const_iterator cbegin()

func (*QVariantHash) Cend_0

func (this *QVariantHash) Cend_0()

QHash::const_iterator cend()

func (*QVariantHash) Clear_0

func (this *QVariantHash) Clear_0()

void clear()

func (*QVariantHash) Concrete_0

func (this *QVariantHash) Concrete_0()

QHash::Node * concrete(struct QHashData::Node *)

func (*QVariantHash) ConstBegin_0

func (this *QVariantHash) ConstBegin_0()

QHash::const_iterator constBegin()

func (*QVariantHash) ConstEnd_0

func (this *QVariantHash) ConstEnd_0()

QHash::const_iterator constEnd()

func (*QVariantHash) ConstFind_0

func (this *QVariantHash) ConstFind_0()

QHash::const_iterator constFind(const Key &)

func (*QVariantHash) ConstKeyValueBegin_0

func (this *QVariantHash) ConstKeyValueBegin_0()

QHash::const_key_value_iterator constKeyValueBegin()

func (*QVariantHash) ConstKeyValueEnd_0

func (this *QVariantHash) ConstKeyValueEnd_0()

QHash::const_key_value_iterator constKeyValueEnd()

func (*QVariantHash) Contains_0

func (this *QVariantHash) Contains_0() bool

bool contains(const Key &)

func (*QVariantHash) Count_0

func (this *QVariantHash) Count_0() int

int count(const Key &)

func (*QVariantHash) Count_1

func (this *QVariantHash) Count_1() int

int count()

func (*QVariantHash) CreateNode_0

func (this *QVariantHash) CreateNode_0()

QHash::Node * createNode(uint, const Key &, const T &, QHash::Node **)

func (*QVariantHash) DeleteNode2_0

func (this *QVariantHash) DeleteNode2_0()

void deleteNode2(struct QHashData::Node *)

func (*QVariantHash) DeleteNode_0

func (this *QVariantHash) DeleteNode_0()

void deleteNode(QHash::Node *)

func (*QVariantHash) Detach_0

func (this *QVariantHash) Detach_0()

void detach()

func (*QVariantHash) Detach_helper_0

func (this *QVariantHash) Detach_helper_0()

void detach_helper()

func (*QVariantHash) DuplicateNode_0

func (this *QVariantHash) DuplicateNode_0()

void duplicateNode(struct QHashData::Node *, void *)

func (*QVariantHash) Empty_0

func (this *QVariantHash) Empty_0() bool

bool empty()

func (*QVariantHash) End_0

func (this *QVariantHash) End_0()

QHash::iterator end()

func (*QVariantHash) End_1

func (this *QVariantHash) End_1()

QHash::const_iterator end()

func (*QVariantHash) Equal_range_0

func (this *QVariantHash) Equal_range_0()

QPair<QHash::iterator, QHash::iterator> equal_range(const Key &)

func (*QVariantHash) Equal_range_1

func (this *QVariantHash) Equal_range_1()

QPair<QHash::const_iterator, QHash::const_iterator> equal_range(const Key &)

func (*QVariantHash) Erase_0

func (this *QVariantHash) Erase_0()

QHash::iterator erase(class QHash::iterator)

func (*QVariantHash) Erase_1

func (this *QVariantHash) Erase_1()

QHash::iterator erase(class QHash::const_iterator)

func (*QVariantHash) FindNode_0

func (this *QVariantHash) FindNode_0()

QHash::Node ** findNode(const Key &, uint *)

func (*QVariantHash) FindNode_1

func (this *QVariantHash) FindNode_1()

QHash::Node ** findNode(const Key &, uint)

func (*QVariantHash) Find_0

func (this *QVariantHash) Find_0()

QHash::iterator find(const Key &)

func (*QVariantHash) Find_1

func (this *QVariantHash) Find_1()

QHash::const_iterator find(const Key &)

func (*QVariantHash) FreeData_0

func (this *QVariantHash) FreeData_0()

void freeData(struct QHashData *)

func (*QVariantHash) InsertMulti_0

func (this *QVariantHash) InsertMulti_0()

QHash::iterator insertMulti(const Key &, const T &)

func (*QVariantHash) Insert_0

func (this *QVariantHash) Insert_0()

QHash::iterator insert(const Key &, const T &)

func (*QVariantHash) IsDetached_0

func (this *QVariantHash) IsDetached_0() bool

bool isDetached()

func (*QVariantHash) IsEmpty_0

func (this *QVariantHash) IsEmpty_0() bool

bool isEmpty()

func (*QVariantHash) IsSharedWith_0

func (this *QVariantHash) IsSharedWith_0() bool

bool isSharedWith(const QHash<K, V> &)

func (*QVariantHash) IsValidIterator_0

func (this *QVariantHash) IsValidIterator_0() bool

bool isValidIterator(const class QHash::iterator &)

func (*QVariantHash) IsValidIterator_1

func (this *QVariantHash) IsValidIterator_1() bool

bool isValidIterator(const class QHash::const_iterator &)

func (*QVariantHash) IsValidNode_0

func (this *QVariantHash) IsValidNode_0() bool

bool isValidNode(struct QHashData::Node *)

func (*QVariantHash) KeyBegin_0

func (this *QVariantHash) KeyBegin_0()

QHash::key_iterator keyBegin()

func (*QVariantHash) KeyEnd_0

func (this *QVariantHash) KeyEnd_0()

QHash::key_iterator keyEnd()

func (*QVariantHash) KeyValueBegin_0

func (this *QVariantHash) KeyValueBegin_0()

QHash::key_value_iterator keyValueBegin()

func (*QVariantHash) KeyValueBegin_1

func (this *QVariantHash) KeyValueBegin_1()

QHash::const_key_value_iterator keyValueBegin()

func (*QVariantHash) KeyValueEnd_0

func (this *QVariantHash) KeyValueEnd_0()

QHash::key_value_iterator keyValueEnd()

func (*QVariantHash) KeyValueEnd_1

func (this *QVariantHash) KeyValueEnd_1()

QHash::const_key_value_iterator keyValueEnd()

func (*QVariantHash) Key_0

func (this *QVariantHash) Key_0()

const Key key(const T &)

func (*QVariantHash) Key_1

func (this *QVariantHash) Key_1()

const Key key(const T &, const Key &)

func (*QVariantHash) Keys_0

func (this *QVariantHash) Keys_0()

QList<Key> keys()

func (*QVariantHash) Keys_1

func (this *QVariantHash) Keys_1()

QList<Key> keys(const T &)

func (*QVariantHash) Operator_equal_0

func (this *QVariantHash) Operator_equal_0()

QHash<K, V> & operator=(const QHash<K, V> &)

func (*QVariantHash) Operator_equal_1

func (this *QVariantHash) Operator_equal_1()

QHash<K, V> & operator=(QHash<K, V> &&)

func (*QVariantHash) Operator_equal_equal_0

func (this *QVariantHash) Operator_equal_equal_0() bool

bool operator==(const QHash<K, V> &)

func (*QVariantHash) Operator_get_index_0

func (this *QVariantHash) Operator_get_index_0() *QVariant

T & operator[](const Key &)

func (*QVariantHash) Operator_get_index_1

func (this *QVariantHash) Operator_get_index_1() *QVariant

const T operator[](const Key &)

func (*QVariantHash) Operator_not_equal_0

func (this *QVariantHash) Operator_not_equal_0() bool

bool operator!=(const QHash<K, V> &)

func (*QVariantHash) Remove_0

func (this *QVariantHash) Remove_0() int

int remove(const Key &)

func (*QVariantHash) Reserve_0

func (this *QVariantHash) Reserve_0()

void reserve(int)

func (*QVariantHash) SetSharable_0

func (this *QVariantHash) SetSharable_0()

void setSharable(_Bool)

func (*QVariantHash) Size_0

func (this *QVariantHash) Size_0() int

int size()

func (*QVariantHash) Squeeze_0

func (this *QVariantHash) Squeeze_0()

void squeeze()

func (*QVariantHash) Swap_0

func (this *QVariantHash) Swap_0()

void swap(QHash<K, V> &)

func (*QVariantHash) Take_0

func (this *QVariantHash) Take_0() *QVariant

T take(const Key &)

func (*QVariantHash) UniqueKeys_0

func (this *QVariantHash) UniqueKeys_0()

QList<Key> uniqueKeys()

func (*QVariantHash) Unite_0

func (this *QVariantHash) Unite_0()

QHash<K, V> & unite(const QHash<K, V> &)

func (*QVariantHash) Value_0

func (this *QVariantHash) Value_0() *QVariant

const T value(const Key &)

func (*QVariantHash) Value_1

func (this *QVariantHash) Value_1() *QVariant

const T value(const Key &, const T &)

func (*QVariantHash) Values_0

func (this *QVariantHash) Values_0()

QList<T> values()

func (*QVariantHash) Values_1

func (this *QVariantHash) Values_1()

QList<T> values(const Key &)

type QVariantList

type QVariantList struct {
	*qtrt.CObject
}

body block begin

func NewQVariantListFromPointer

func NewQVariantListFromPointer(cthis unsafe.Pointer) *QVariantList

func (*QVariantList) Append_0

func (this *QVariantList) Append_0()

void append(const T &)

func (*QVariantList) Append_1

func (this *QVariantList) Append_1()

void append(const QList<T> &)

func (*QVariantList) At_0

func (this *QVariantList) At_0() *QVariant

const T & at(int)

func (*QVariantList) Back_0

func (this *QVariantList) Back_0() *QVariant

T & back()

func (*QVariantList) Back_1

func (this *QVariantList) Back_1() *QVariant

const T & back()

func (*QVariantList) Begin_0

func (this *QVariantList) Begin_0()

QList::iterator begin()

func (*QVariantList) Begin_1

func (this *QVariantList) Begin_1()

QList::const_iterator begin()

func (*QVariantList) Cbegin_0

func (this *QVariantList) Cbegin_0()

QList::const_iterator cbegin()

func (*QVariantList) Cend_0

func (this *QVariantList) Cend_0()

QList::const_iterator cend()

func (*QVariantList) Clear_0

func (this *QVariantList) Clear_0()

void clear()

func (*QVariantList) ConstBegin_0

func (this *QVariantList) ConstBegin_0()

QList::const_iterator constBegin()

func (*QVariantList) ConstEnd_0

func (this *QVariantList) ConstEnd_0()

QList::const_iterator constEnd()

func (*QVariantList) ConstFirst_0

func (this *QVariantList) ConstFirst_0() *QVariant

const T & constFirst()

func (*QVariantList) ConstLast_0

func (this *QVariantList) ConstLast_0() *QVariant

const T & constLast()

func (*QVariantList) Contains_0

func (this *QVariantList) Contains_0() bool

bool contains(const T &)

func (*QVariantList) Contains_impl_0

func (this *QVariantList) Contains_impl_0() bool

bool contains_impl(const T &, struct QListData::NotArrayCompatibleLayout)

func (*QVariantList) Contains_impl_1

func (this *QVariantList) Contains_impl_1() bool

bool contains_impl(const T &, struct QListData::ArrayCompatibleLayout)

func (*QVariantList) Count_0

func (this *QVariantList) Count_0() int

int count(const T &)

func (*QVariantList) Count_1

func (this *QVariantList) Count_1() int

int count()

func (*QVariantList) Count_impl_0

func (this *QVariantList) Count_impl_0() int

int count_impl(const T &, struct QListData::NotArrayCompatibleLayout)

func (*QVariantList) Count_impl_1

func (this *QVariantList) Count_impl_1() int

int count_impl(const T &, struct QListData::ArrayCompatibleLayout)

func (*QVariantList) Crbegin_0

func (this *QVariantList) Crbegin_0()

QList::const_reverse_iterator crbegin()

func (*QVariantList) Crend_0

func (this *QVariantList) Crend_0()

QList::const_reverse_iterator crend()

func (*QVariantList) Dealloc_0

func (this *QVariantList) Dealloc_0()

void dealloc(struct QListData::Data *)

func (*QVariantList) DetachShared_0

func (this *QVariantList) DetachShared_0()

void detachShared()

func (*QVariantList) Detach_0

func (this *QVariantList) Detach_0()

void detach()

func (*QVariantList) Detach_helper_0

func (this *QVariantList) Detach_helper_0()

void detach_helper(int)

func (*QVariantList) Detach_helper_1

func (this *QVariantList) Detach_helper_1()

void detach_helper()

func (*QVariantList) Detach_helper_grow_0

func (this *QVariantList) Detach_helper_grow_0()

QList::Node * detach_helper_grow(int, int)

func (*QVariantList) Empty_0

func (this *QVariantList) Empty_0() bool

bool empty()

func (*QVariantList) End_0

func (this *QVariantList) End_0()

QList::iterator end()

func (*QVariantList) End_1

func (this *QVariantList) End_1()

QList::const_iterator end()

func (*QVariantList) EndsWith_0

func (this *QVariantList) EndsWith_0() bool

bool endsWith(const T &)

func (*QVariantList) Erase_0

func (this *QVariantList) Erase_0()

QList::iterator erase(class QList::iterator)

func (*QVariantList) Erase_1

func (this *QVariantList) Erase_1()

QList::iterator erase(class QList::iterator, class QList::iterator)

func (*QVariantList) First_0

func (this *QVariantList) First_0() *QVariant

T & first()

func (*QVariantList) First_1

func (this *QVariantList) First_1() *QVariant

const T & first()

func (*QVariantList) FromSet_0

func (this *QVariantList) FromSet_0() *QVariantList

QList<T> fromSet(const QSet<T> &)

func (*QVariantList) FromStdList_0

func (this *QVariantList) FromStdList_0() *QVariantList

QList<T> fromStdList(const std::list<T> &)

func (*QVariantList) FromVector_0

func (this *QVariantList) FromVector_0() *QVariantList

QList<T> fromVector(const QVector<T> &)

func (*QVariantList) Front_0

func (this *QVariantList) Front_0() *QVariant

T & front()

func (*QVariantList) Front_1

func (this *QVariantList) Front_1() *QVariant

const T & front()

func (*QVariantList) IndexOf_0

func (this *QVariantList) IndexOf_0() int

int indexOf(const T &, int)

func (*QVariantList) Insert_0

func (this *QVariantList) Insert_0()

void insert(int, const T &)

func (*QVariantList) Insert_1

func (this *QVariantList) Insert_1()

QList::iterator insert(class QList::iterator, const T &)

func (*QVariantList) IsDetached_0

func (this *QVariantList) IsDetached_0() bool

bool isDetached()

func (*QVariantList) IsEmpty_0

func (this *QVariantList) IsEmpty_0() bool

bool isEmpty()

func (*QVariantList) IsSharedWith_0

func (this *QVariantList) IsSharedWith_0() bool

bool isSharedWith(const QList<T> &)

func (*QVariantList) IsValidIterator_0

func (this *QVariantList) IsValidIterator_0() bool

bool isValidIterator(const class QList::iterator &)

func (*QVariantList) LastIndexOf_0

func (this *QVariantList) LastIndexOf_0() int

int lastIndexOf(const T &, int)

func (*QVariantList) Last_0

func (this *QVariantList) Last_0() *QVariant

T & last()

func (*QVariantList) Last_1

func (this *QVariantList) Last_1() *QVariant

const T & last()

func (*QVariantList) Length_0

func (this *QVariantList) Length_0() int

int length()

func (*QVariantList) Mid_0

func (this *QVariantList) Mid_0() *QVariantList

QList<T> mid(int, int)

func (*QVariantList) Move_0

func (this *QVariantList) Move_0()

void move(int, int)

func (*QVariantList) Node_construct_0

func (this *QVariantList) Node_construct_0()

void node_construct(struct QList::Node *, const T &)

func (*QVariantList) Node_copy_0

func (this *QVariantList) Node_copy_0()

void node_copy(struct QList::Node *, struct QList::Node *, struct QList::Node *)

func (*QVariantList) Node_destruct_0

func (this *QVariantList) Node_destruct_0()

void node_destruct(struct QList::Node *)

func (*QVariantList) Node_destruct_1

func (this *QVariantList) Node_destruct_1()

void node_destruct(struct QList::Node *, struct QList::Node *)

func (*QVariantList) Op_eq_impl_0

func (this *QVariantList) Op_eq_impl_0() bool

bool op_eq_impl(const QList<T> &, struct QListData::NotArrayCompatibleLayout)

func (*QVariantList) Op_eq_impl_1

func (this *QVariantList) Op_eq_impl_1() bool

bool op_eq_impl(const QList<T> &, struct QListData::ArrayCompatibleLayout)

func (*QVariantList) Operator_add_0

func (this *QVariantList) Operator_add_0() *QVariantList

QList<T> operator+(const QList<T> &)

func (*QVariantList) Operator_add_equal_0

func (this *QVariantList) Operator_add_equal_0() *QVariantList

QList<T> & operator+=(const QList<T> &)

func (*QVariantList) Operator_add_equal_1

func (this *QVariantList) Operator_add_equal_1() *QVariantList

QList<T> & operator+=(const T &)

func (*QVariantList) Operator_equal_0

func (this *QVariantList) Operator_equal_0() *QVariantList

QList<T> & operator=(const QList<T> &)

func (*QVariantList) Operator_equal_1

func (this *QVariantList) Operator_equal_1() *QVariantList

QList<T> & operator=(QList<T> &&)

func (*QVariantList) Operator_equal_equal_0

func (this *QVariantList) Operator_equal_equal_0() bool

bool operator==(const QList<T> &)

func (*QVariantList) Operator_get_index_0

func (this *QVariantList) Operator_get_index_0() *QVariant

const T & operator[](int)

func (*QVariantList) Operator_get_index_1

func (this *QVariantList) Operator_get_index_1() *QVariant

T & operator[](int)

func (*QVariantList) Operator_left_shift_0

func (this *QVariantList) Operator_left_shift_0() *QVariantList

QList<T> & operator<<(const T &)

func (*QVariantList) Operator_left_shift_1

func (this *QVariantList) Operator_left_shift_1() *QVariantList

QList<T> & operator<<(const QList<T> &)

func (*QVariantList) Operator_not_equal_0

func (this *QVariantList) Operator_not_equal_0() bool

bool operator!=(const QList<T> &)

func (*QVariantList) Pop_back_0

func (this *QVariantList) Pop_back_0()

void pop_back()

func (*QVariantList) Pop_front_0

func (this *QVariantList) Pop_front_0()

void pop_front()

func (*QVariantList) Prepend_0

func (this *QVariantList) Prepend_0()

void prepend(const T &)

func (*QVariantList) Push_back_0

func (this *QVariantList) Push_back_0()

void push_back(const T &)

func (*QVariantList) Push_front_0

func (this *QVariantList) Push_front_0()

void push_front(const T &)

func (*QVariantList) Rbegin_0

func (this *QVariantList) Rbegin_0()

QList::reverse_iterator rbegin()

func (*QVariantList) Rbegin_1

func (this *QVariantList) Rbegin_1()

QList::const_reverse_iterator rbegin()

func (*QVariantList) RemoveAll_0

func (this *QVariantList) RemoveAll_0() int

int removeAll(const T &)

func (*QVariantList) RemoveAt_0

func (this *QVariantList) RemoveAt_0()

void removeAt(int)

func (*QVariantList) RemoveFirst_0

func (this *QVariantList) RemoveFirst_0()

void removeFirst()

func (*QVariantList) RemoveLast_0

func (this *QVariantList) RemoveLast_0()

void removeLast()

func (*QVariantList) RemoveOne_0

func (this *QVariantList) RemoveOne_0() bool

bool removeOne(const T &)

func (*QVariantList) Rend_0

func (this *QVariantList) Rend_0()

QList::reverse_iterator rend()

func (*QVariantList) Rend_1

func (this *QVariantList) Rend_1()

QList::const_reverse_iterator rend()

func (*QVariantList) Replace_0

func (this *QVariantList) Replace_0()

void replace(int, const T &)

func (*QVariantList) Reserve_0

func (this *QVariantList) Reserve_0()

void reserve(int)

func (*QVariantList) SetSharable_0

func (this *QVariantList) SetSharable_0()

void setSharable(_Bool)

func (*QVariantList) Size_0

func (this *QVariantList) Size_0() int

int size()

func (*QVariantList) StartsWith_0

func (this *QVariantList) StartsWith_0() bool

bool startsWith(const T &)

func (*QVariantList) Swap_0

func (this *QVariantList) Swap_0()

void swap(QList<T> &)

func (*QVariantList) Swap_1

func (this *QVariantList) Swap_1()

void swap(int, int)

func (*QVariantList) TakeAt_0

func (this *QVariantList) TakeAt_0() *QVariant

T takeAt(int)

func (*QVariantList) TakeFirst_0

func (this *QVariantList) TakeFirst_0() *QVariant

T takeFirst()

func (*QVariantList) TakeLast_0

func (this *QVariantList) TakeLast_0() *QVariant

T takeLast()

func (*QVariantList) ToSet_0

func (this *QVariantList) ToSet_0()

QSet<T> toSet()

func (*QVariantList) ToStdList_0

func (this *QVariantList) ToStdList_0()

std::list<T> toStdList()

func (*QVariantList) ToVector_0

func (this *QVariantList) ToVector_0()

QVector<T> toVector()

func (*QVariantList) Value_0

func (this *QVariantList) Value_0() *QVariant

T value(int)

func (*QVariantList) Value_1

func (this *QVariantList) Value_1() *QVariant

T value(int, const T &)

type QVariantListx

type QVariantListx struct {
	*qtrt.CObject
}

///

func NewQVariantListxFromPointer

func NewQVariantListxFromPointer(cthis unsafe.Pointer) *QVariantListx

func (*QVariantListx) At

func (this *QVariantListx) At(i int) *QVariant

func (*QVariantListx) ConvertFromSlice

func (*QVariantListx) ConvertFromSlice(lst []*QVariant) *QVariantListx

func (*QVariantListx) ConvertToSlice

func (this *QVariantListx) ConvertToSlice() (lst []*QVariant)

func (*QVariantListx) Count

func (this *QVariantListx) Count() int

func (*QVariantListx) GetCthis

func (this *QVariantListx) GetCthis() unsafe.Pointer

func (*QVariantListx) NewFromPointer

func (*QVariantListx) NewFromPointer(cthis unsafe.Pointer) *QVariantListx

func (*QVariantListx) SetCthis

func (this *QVariantListx) SetCthis(cthis unsafe.Pointer)

type QVariantMap

type QVariantMap struct {
	*qtrt.CObject
}

body block begin

func (*QVariantMap) Begin_0

func (this *QVariantMap) Begin_0()

QMap::iterator begin()

func (*QVariantMap) Begin_1

func (this *QVariantMap) Begin_1()

QMap::const_iterator begin()

func (*QVariantMap) Cbegin_0

func (this *QVariantMap) Cbegin_0()

QMap::const_iterator cbegin()

func (*QVariantMap) Cend_0

func (this *QVariantMap) Cend_0()

QMap::const_iterator cend()

func (*QVariantMap) Clear_0

func (this *QVariantMap) Clear_0()

void clear()

func (*QVariantMap) ConstBegin_0

func (this *QVariantMap) ConstBegin_0()

QMap::const_iterator constBegin()

func (*QVariantMap) ConstEnd_0

func (this *QVariantMap) ConstEnd_0()

QMap::const_iterator constEnd()

func (*QVariantMap) ConstFind_0

func (this *QVariantMap) ConstFind_0()

QMap::const_iterator constFind(const Key &)

func (*QVariantMap) ConstKeyValueBegin_0

func (this *QVariantMap) ConstKeyValueBegin_0()

QMap::const_key_value_iterator constKeyValueBegin()

func (*QVariantMap) ConstKeyValueEnd_0

func (this *QVariantMap) ConstKeyValueEnd_0()

QMap::const_key_value_iterator constKeyValueEnd()

func (*QVariantMap) Contains_0

func (this *QVariantMap) Contains_0() bool

bool contains(const Key &)

func (*QVariantMap) Count_0

func (this *QVariantMap) Count_0() int

int count(const Key &)

func (*QVariantMap) Count_1

func (this *QVariantMap) Count_1() int

int count()

func (*QVariantMap) Detach_0

func (this *QVariantMap) Detach_0()

void detach()

func (*QVariantMap) Detach_helper_0

func (this *QVariantMap) Detach_helper_0()

void detach_helper()

func (*QVariantMap) Empty_0

func (this *QVariantMap) Empty_0() bool

bool empty()

func (*QVariantMap) End_0

func (this *QVariantMap) End_0()

QMap::iterator end()

func (*QVariantMap) End_1

func (this *QVariantMap) End_1()

QMap::const_iterator end()

func (*QVariantMap) Equal_range_0

func (this *QVariantMap) Equal_range_0()

QPair<QMap::iterator, QMap::iterator> equal_range(const Key &)

func (*QVariantMap) Equal_range_1

func (this *QVariantMap) Equal_range_1()

QPair<QMap::const_iterator, QMap::const_iterator> equal_range(const Key &)

func (*QVariantMap) Erase_0

func (this *QVariantMap) Erase_0()

QMap::iterator erase(class QMap::iterator)

func (*QVariantMap) Find_0

func (this *QVariantMap) Find_0()

QMap::iterator find(const Key &)

func (*QVariantMap) Find_1

func (this *QVariantMap) Find_1()

QMap::const_iterator find(const Key &)

func (*QVariantMap) FirstKey_0

func (this *QVariantMap) FirstKey_0()

const Key & firstKey()

func (*QVariantMap) First_0

func (this *QVariantMap) First_0() *QVariant

T & first()

func (*QVariantMap) First_1

func (this *QVariantMap) First_1() *QVariant

const T & first()

func (*QVariantMap) InsertMulti_0

func (this *QVariantMap) InsertMulti_0()

QMap::iterator insertMulti(const Key &, const T &)

func (*QVariantMap) InsertMulti_1

func (this *QVariantMap) InsertMulti_1()

QMap::iterator insertMulti(class QMap::const_iterator, const Key &, const T &)

func (*QVariantMap) Insert_0

func (this *QVariantMap) Insert_0()

QMap::iterator insert(const Key &, const T &)

func (*QVariantMap) Insert_1

func (this *QVariantMap) Insert_1()

QMap::iterator insert(class QMap::const_iterator, const Key &, const T &)

func (*QVariantMap) IsDetached_0

func (this *QVariantMap) IsDetached_0() bool

bool isDetached()

func (*QVariantMap) IsEmpty_0

func (this *QVariantMap) IsEmpty_0() bool

bool isEmpty()

func (*QVariantMap) IsSharedWith_0

func (this *QVariantMap) IsSharedWith_0() bool

bool isSharedWith(const QMap<Key, T> &)

func (*QVariantMap) IsValidIterator_0

func (this *QVariantMap) IsValidIterator_0() bool

bool isValidIterator(const class QMap::const_iterator &)

func (*QVariantMap) KeyBegin_0

func (this *QVariantMap) KeyBegin_0()

QMap::key_iterator keyBegin()

func (*QVariantMap) KeyEnd_0

func (this *QVariantMap) KeyEnd_0()

QMap::key_iterator keyEnd()

func (*QVariantMap) KeyValueBegin_0

func (this *QVariantMap) KeyValueBegin_0()

QMap::key_value_iterator keyValueBegin()

func (*QVariantMap) KeyValueBegin_1

func (this *QVariantMap) KeyValueBegin_1()

QMap::const_key_value_iterator keyValueBegin()

func (*QVariantMap) KeyValueEnd_0

func (this *QVariantMap) KeyValueEnd_0()

QMap::key_value_iterator keyValueEnd()

func (*QVariantMap) KeyValueEnd_1

func (this *QVariantMap) KeyValueEnd_1()

QMap::const_key_value_iterator keyValueEnd()

func (*QVariantMap) Key_0

func (this *QVariantMap) Key_0()

const Key key(const T &, const Key &)

func (*QVariantMap) Keys_0

func (this *QVariantMap) Keys_0()

QList<Key> keys()

func (*QVariantMap) Keys_1

func (this *QVariantMap) Keys_1()

QList<Key> keys(const T &)

func (*QVariantMap) LastKey_0

func (this *QVariantMap) LastKey_0()

const Key & lastKey()

func (*QVariantMap) Last_0

func (this *QVariantMap) Last_0() *QVariant

T & last()

func (*QVariantMap) Last_1

func (this *QVariantMap) Last_1() *QVariant

const T & last()

func (*QVariantMap) LowerBound_0

func (this *QVariantMap) LowerBound_0()

QMap::iterator lowerBound(const Key &)

func (*QVariantMap) LowerBound_1

func (this *QVariantMap) LowerBound_1()

QMap::const_iterator lowerBound(const Key &)

func (*QVariantMap) Operator_equal_0

func (this *QVariantMap) Operator_equal_0()

QMap<Key, T> & operator=(const QMap<Key, T> &)

func (*QVariantMap) Operator_equal_1

func (this *QVariantMap) Operator_equal_1()

QMap<Key, T> & operator=(QMap<Key, T> &&)

func (*QVariantMap) Operator_equal_equal_0

func (this *QVariantMap) Operator_equal_equal_0() bool

bool operator==(const QMap<Key, T> &)

func (*QVariantMap) Operator_get_index_0

func (this *QVariantMap) Operator_get_index_0() *QVariant

T & operator[](const Key &)

func (*QVariantMap) Operator_get_index_1

func (this *QVariantMap) Operator_get_index_1() *QVariant

const T operator[](const Key &)

func (*QVariantMap) Operator_not_equal_0

func (this *QVariantMap) Operator_not_equal_0() bool

bool operator!=(const QMap<Key, T> &)

func (*QVariantMap) Remove_0

func (this *QVariantMap) Remove_0() int

int remove(const Key &)

func (*QVariantMap) SetSharable_0

func (this *QVariantMap) SetSharable_0()

void setSharable(_Bool)

func (*QVariantMap) Size_0

func (this *QVariantMap) Size_0() int

int size()

func (*QVariantMap) Swap_0

func (this *QVariantMap) Swap_0()

void swap(QMap<Key, T> &)

func (*QVariantMap) Take_0

func (this *QVariantMap) Take_0() *QVariant

T take(const Key &)

func (*QVariantMap) ToStdMap_0

func (this *QVariantMap) ToStdMap_0()

std::map<Key, T> toStdMap()

func (*QVariantMap) UniqueKeys_0

func (this *QVariantMap) UniqueKeys_0()

QList<Key> uniqueKeys()

func (*QVariantMap) Unite_0

func (this *QVariantMap) Unite_0()

QMap<Key, T> & unite(const QMap<Key, T> &)

func (*QVariantMap) UpperBound_0

func (this *QVariantMap) UpperBound_0()

QMap::iterator upperBound(const Key &)

func (*QVariantMap) UpperBound_1

func (this *QVariantMap) UpperBound_1()

QMap::const_iterator upperBound(const Key &)

func (*QVariantMap) Value_0

func (this *QVariantMap) Value_0() *QVariant

const T value(const Key &, const T &)

func (*QVariantMap) Values_0

func (this *QVariantMap) Values_0()

QList<T> values()

func (*QVariantMap) Values_1

func (this *QVariantMap) Values_1()

QList<T> values(const Key &)

type QVariant_ITF

type QVariant_ITF interface {
	QVariant_PTR() *QVariant
}

type QVariant__Type

type QVariant__Type = int
const QVariant__BitArray QVariant__Type = 13
const QVariant__Bitmap QVariant__Type = 73
const QVariant__Bool QVariant__Type = 1
const QVariant__Brush QVariant__Type = 66
const QVariant__ByteArray QVariant__Type = 12
const QVariant__Char QVariant__Type = 7
const QVariant__Color QVariant__Type = 67
const QVariant__Cursor QVariant__Type = 74
const QVariant__Date QVariant__Type = 14
const QVariant__DateTime QVariant__Type = 16
const QVariant__Double QVariant__Type = 6
const QVariant__EasingCurve QVariant__Type = 29
const QVariant__Font QVariant__Type = 64
const QVariant__Hash QVariant__Type = 28
const QVariant__Icon QVariant__Type = 69
const QVariant__Image QVariant__Type = 70
const QVariant__Int QVariant__Type = 2
const QVariant__Invalid QVariant__Type = 0
const QVariant__KeySequence QVariant__Type = 75
const QVariant__LastCoreType QVariant__Type = 51
const QVariant__LastGuiType QVariant__Type = 86
const QVariant__LastType QVariant__Type = -1
const QVariant__Line QVariant__Type = 23
const QVariant__LineF QVariant__Type = 24
const QVariant__List QVariant__Type = 9
const QVariant__Locale QVariant__Type = 18
const QVariant__LongLong QVariant__Type = 4
const QVariant__Map QVariant__Type = 8
const QVariant__Matrix QVariant__Type = 79
const QVariant__Matrix4x4 QVariant__Type = 81
const QVariant__ModelIndex QVariant__Type = 42
const QVariant__Palette QVariant__Type = 68
const QVariant__Pen QVariant__Type = 76
const QVariant__PersistentModelIndex QVariant__Type = 50
const QVariant__Pixmap QVariant__Type = 65
const QVariant__Point QVariant__Type = 25
const QVariant__PointF QVariant__Type = 26
const QVariant__Polygon QVariant__Type = 71
const QVariant__PolygonF QVariant__Type = 86
const QVariant__Quaternion QVariant__Type = 85
const QVariant__Rect QVariant__Type = 19
const QVariant__RectF QVariant__Type = 20
const QVariant__RegExp QVariant__Type = 27
const QVariant__Region QVariant__Type = 72
const QVariant__RegularExpression QVariant__Type = 44
const QVariant__Size QVariant__Type = 21
const QVariant__SizeF QVariant__Type = 22
const QVariant__SizePolicy QVariant__Type = 121
const QVariant__String QVariant__Type = 10
const QVariant__StringList QVariant__Type = 11
const QVariant__TextFormat QVariant__Type = 78
const QVariant__TextLength QVariant__Type = 77
const QVariant__Time QVariant__Type = 15
const QVariant__Transform QVariant__Type = 80
const QVariant__UInt QVariant__Type = 3
const QVariant__ULongLong QVariant__Type = 5
const QVariant__Url QVariant__Type = 17
const QVariant__UserType QVariant__Type = 1024
const QVariant__Uuid QVariant__Type = 30
const QVariant__Vector2D QVariant__Type = 82
const QVariant__Vector3D QVariant__Type = 83
const QVariant__Vector4D QVariant__Type = 84

type QVersionNumber

type QVersionNumber struct {
	*qtrt.CObject
}

func NewQVersionNumber

func NewQVersionNumber() *QVersionNumber

Produces a null version.

See also isNull().

func NewQVersionNumberFromPointer

func NewQVersionNumberFromPointer(cthis unsafe.Pointer) *QVersionNumber

func NewQVersionNumber_1

func NewQVersionNumber_1(maj int) *QVersionNumber

Produces a null version.

See also isNull().

func NewQVersionNumber_2

func NewQVersionNumber_2(maj int, min int) *QVersionNumber

Produces a null version.

See also isNull().

func NewQVersionNumber_3

func NewQVersionNumber_3(maj int, min int, mic int) *QVersionNumber

Produces a null version.

See also isNull().

func QVersionNumber_CommonPrefix

func QVersionNumber_CommonPrefix(v1 QVersionNumber_ITF, v2 QVersionNumber_ITF) *QVersionNumber

func QVersionNumber_FromString

func QVersionNumber_FromString(string string, suffixIndex unsafe.Pointer) *QVersionNumber

func QVersionNumber_FromString_1

func QVersionNumber_FromString_1(string QLatin1String_ITF, suffixIndex unsafe.Pointer) *QVersionNumber

func QVersionNumber_FromString_2

func QVersionNumber_FromString_2(string QStringView_ITF, suffixIndex unsafe.Pointer) *QVersionNumber

func (*QVersionNumber) CommonPrefix

QVersionNumber QVersionNumber::commonPrefix(const QVersionNumber &v1, const QVersionNumber &v2)

Returns a version number that is a parent version of both v1 and v2.

See also isPrefixOf().

func (*QVersionNumber) Compare

Compares v1 with v2 and returns an integer less than, equal to, or greater than zero, depending on whether v1 is less than, equal to, or greater than v2, respectively.

Comparisons are performed by comparing the segments of v1 and v2 starting at index 0 and working towards the end of the longer list.

QVersionNumber v1(1, 2);
QVersionNumber v2(1, 2, 0);
int compare = QVersionNumber::compare(v1, v2); // compare == -1

func (*QVersionNumber) FromString

func (this *QVersionNumber) FromString(string string, suffixIndex unsafe.Pointer) *QVersionNumber

Constructs a QVersionNumber from a specially formatted string of non-negative decimal numbers delimited by a period (.).

Once the numerical segments have been parsed, the remainder of the string is considered to be the suffix string. The start index of that string will be stored in suffixIndex if it is not null.

QString string("5.4.0-alpha");
int suffixIndex;
QVersionNumber version = QVersionNumber::fromString(string, &suffixIndex);
// version is 5.4.0
// suffixIndex is 5

See also isNull().

func (*QVersionNumber) FromString_1

func (this *QVersionNumber) FromString_1(string QLatin1String_ITF, suffixIndex unsafe.Pointer) *QVersionNumber

Constructs a QVersionNumber from a specially formatted string of non-negative decimal numbers delimited by a period (.).

Once the numerical segments have been parsed, the remainder of the string is considered to be the suffix string. The start index of that string will be stored in suffixIndex if it is not null.

QString string("5.4.0-alpha");
int suffixIndex;
QVersionNumber version = QVersionNumber::fromString(string, &suffixIndex);
// version is 5.4.0
// suffixIndex is 5

See also isNull().

func (*QVersionNumber) FromString_1_

func (this *QVersionNumber) FromString_1_(string QLatin1String_ITF) *QVersionNumber

Constructs a QVersionNumber from a specially formatted string of non-negative decimal numbers delimited by a period (.).

Once the numerical segments have been parsed, the remainder of the string is considered to be the suffix string. The start index of that string will be stored in suffixIndex if it is not null.

QString string("5.4.0-alpha");
int suffixIndex;
QVersionNumber version = QVersionNumber::fromString(string, &suffixIndex);
// version is 5.4.0
// suffixIndex is 5

See also isNull().

func (*QVersionNumber) FromString_2

func (this *QVersionNumber) FromString_2(string QStringView_ITF, suffixIndex unsafe.Pointer) *QVersionNumber

Constructs a QVersionNumber from a specially formatted string of non-negative decimal numbers delimited by a period (.).

Once the numerical segments have been parsed, the remainder of the string is considered to be the suffix string. The start index of that string will be stored in suffixIndex if it is not null.

QString string("5.4.0-alpha");
int suffixIndex;
QVersionNumber version = QVersionNumber::fromString(string, &suffixIndex);
// version is 5.4.0
// suffixIndex is 5

See also isNull().

func (*QVersionNumber) FromString_2_

func (this *QVersionNumber) FromString_2_(string QStringView_ITF) *QVersionNumber

Constructs a QVersionNumber from a specially formatted string of non-negative decimal numbers delimited by a period (.).

Once the numerical segments have been parsed, the remainder of the string is considered to be the suffix string. The start index of that string will be stored in suffixIndex if it is not null.

QString string("5.4.0-alpha");
int suffixIndex;
QVersionNumber version = QVersionNumber::fromString(string, &suffixIndex);
// version is 5.4.0
// suffixIndex is 5

See also isNull().

func (*QVersionNumber) FromString__

func (this *QVersionNumber) FromString__(string string) *QVersionNumber

Constructs a QVersionNumber from a specially formatted string of non-negative decimal numbers delimited by a period (.).

Once the numerical segments have been parsed, the remainder of the string is considered to be the suffix string. The start index of that string will be stored in suffixIndex if it is not null.

QString string("5.4.0-alpha");
int suffixIndex;
QVersionNumber version = QVersionNumber::fromString(string, &suffixIndex);
// version is 5.4.0
// suffixIndex is 5

See also isNull().

func (*QVersionNumber) GetCthis

func (this *QVersionNumber) GetCthis() unsafe.Pointer

func (*QVersionNumber) IsNormalized

func (this *QVersionNumber) IsNormalized() bool

Returns true if the version number does not contain any trailing zeros, otherwise returns false.

See also normalized().

func (*QVersionNumber) IsNull

func (this *QVersionNumber) IsNull() bool

Returns true if there are zero numerical segments, otherwise returns false.

See also segments().

func (*QVersionNumber) IsPrefixOf

func (this *QVersionNumber) IsPrefixOf(other QVersionNumber_ITF) bool

Returns true if the current version number is contained in the other version number, otherwise returns false.

QVersionNumber v1(5, 3);
QVersionNumber v2(5, 3, 1);
bool value = v1.isPrefixOf(v2); // true

See also commonPrefix().

func (*QVersionNumber) MajorVersion

func (this *QVersionNumber) MajorVersion() int

Returns the major version number, that is, the first segment. This function is equivalent to segmentAt(0). If this QVersionNumber object is null, this function returns 0.

See also isNull() and segmentAt().

func (*QVersionNumber) MicroVersion

func (this *QVersionNumber) MicroVersion() int

Returns the micro version number, that is, the third segment. This function is equivalent to segmentAt(2). If this QVersionNumber object does not contain a micro number, this function returns 0.

See also isNull() and segmentAt().

func (*QVersionNumber) MinorVersion

func (this *QVersionNumber) MinorVersion() int

Returns the minor version number, that is, the second segment. This function is equivalent to segmentAt(1). If this QVersionNumber object does not contain a minor number, this function returns 0.

See also isNull() and segmentAt().

func (*QVersionNumber) NewFromPointer

func (*QVersionNumber) NewFromPointer(cthis unsafe.Pointer) *QVersionNumber

func (*QVersionNumber) Normalized

func (this *QVersionNumber) Normalized() *QVersionNumber

Returns an equivalent version number but with all trailing zeros removed.

To check if two numbers are equivalent, use normalized() on both version numbers before performing the compare.

QVersionNumber v1(5, 4);
QVersionNumber v2(5, 4, 0);
bool equivalent = v1.normalized() == v2.normalized();
bool equal = v1 == v2;
// equivalent is true
// equal is false

func (*QVersionNumber) QVersionNumber_PTR

func (ptr *QVersionNumber) QVersionNumber_PTR() *QVersionNumber

func (*QVersionNumber) SegmentAt

func (this *QVersionNumber) SegmentAt(index int) int

Returns the segement value at index. If the index does not exist, returns 0.

See also segments() and segmentCount().

func (*QVersionNumber) SegmentCount

func (this *QVersionNumber) SegmentCount() int

Returns the number of integers stored in segments().

See also segments().

func (*QVersionNumber) SetCthis

func (this *QVersionNumber) SetCthis(cthis unsafe.Pointer)

func (*QVersionNumber) ToString

func (this *QVersionNumber) ToString() string

Returns a string with all of the segments delimited by a period (.).

See also majorVersion(), minorVersion(), microVersion(), and segments().

type QVersionNumber_ITF

type QVersionNumber_ITF interface {
	QVersionNumber_PTR() *QVersionNumber
}

type QVersionNumber__

type QVersionNumber__ = int
const QVersionNumber__InlineSegmentCount QVersionNumber__ = 7
const QVersionNumber__InlineSegmentMarker QVersionNumber__ = 0
const QVersionNumber__InlineSegmentStartIdx QVersionNumber__ = 1

type QWaitCondition

type QWaitCondition struct {
	*qtrt.CObject
}

func NewQWaitCondition

func NewQWaitCondition() *QWaitCondition

Constructs a new wait condition object.

func NewQWaitConditionFromPointer

func NewQWaitConditionFromPointer(cthis unsafe.Pointer) *QWaitCondition

func (*QWaitCondition) GetCthis

func (this *QWaitCondition) GetCthis() unsafe.Pointer

func (*QWaitCondition) NewFromPointer

func (*QWaitCondition) NewFromPointer(cthis unsafe.Pointer) *QWaitCondition

func (*QWaitCondition) Notify_all

func (this *QWaitCondition) Notify_all()

This function is provided for STL compatibility. It is equivalent to wakeAll().

This function was introduced in Qt 5.8.

func (*QWaitCondition) Notify_one

func (this *QWaitCondition) Notify_one()

This function is provided for STL compatibility. It is equivalent to wakeOne().

This function was introduced in Qt 5.8.

func (*QWaitCondition) QWaitCondition_PTR

func (ptr *QWaitCondition) QWaitCondition_PTR() *QWaitCondition

func (*QWaitCondition) SetCthis

func (this *QWaitCondition) SetCthis(cthis unsafe.Pointer)

func (*QWaitCondition) Wait

func (this *QWaitCondition) Wait(lockedMutex QMutex_ITF, time uint) bool

Releases the lockedMutex and waits on the wait condition. The lockedMutex must be initially locked by the calling thread. If lockedMutex is not in a locked state, the behavior is undefined. If lockedMutex is a recursive mutex, this function returns immediately. The lockedMutex will be unlocked, and the calling thread will block until either of these conditions is met:

Another thread signals it using wakeOne() or wakeAll(). This function will return true in this case. time milliseconds has elapsed. If time is ULONG_MAX (the default), then the wait will never timeout (the event must be signalled). This function will return false if the wait timed out.

The lockedMutex will be returned to the same locked state. This function is provided to allow the atomic transition from the locked state to the wait state.

See also wakeOne() and wakeAll().

func (*QWaitCondition) Wait_1

func (this *QWaitCondition) Wait_1(lockedReadWriteLock QReadWriteLock_ITF, time uint) bool

Releases the lockedMutex and waits on the wait condition. The lockedMutex must be initially locked by the calling thread. If lockedMutex is not in a locked state, the behavior is undefined. If lockedMutex is a recursive mutex, this function returns immediately. The lockedMutex will be unlocked, and the calling thread will block until either of these conditions is met:

Another thread signals it using wakeOne() or wakeAll(). This function will return true in this case. time milliseconds has elapsed. If time is ULONG_MAX (the default), then the wait will never timeout (the event must be signalled). This function will return false if the wait timed out.

The lockedMutex will be returned to the same locked state. This function is provided to allow the atomic transition from the locked state to the wait state.

See also wakeOne() and wakeAll().

func (*QWaitCondition) Wait_1_

func (this *QWaitCondition) Wait_1_(lockedReadWriteLock QReadWriteLock_ITF) bool

Releases the lockedMutex and waits on the wait condition. The lockedMutex must be initially locked by the calling thread. If lockedMutex is not in a locked state, the behavior is undefined. If lockedMutex is a recursive mutex, this function returns immediately. The lockedMutex will be unlocked, and the calling thread will block until either of these conditions is met:

Another thread signals it using wakeOne() or wakeAll(). This function will return true in this case. time milliseconds has elapsed. If time is ULONG_MAX (the default), then the wait will never timeout (the event must be signalled). This function will return false if the wait timed out.

The lockedMutex will be returned to the same locked state. This function is provided to allow the atomic transition from the locked state to the wait state.

See also wakeOne() and wakeAll().

func (*QWaitCondition) Wait__

func (this *QWaitCondition) Wait__(lockedMutex QMutex_ITF) bool

Releases the lockedMutex and waits on the wait condition. The lockedMutex must be initially locked by the calling thread. If lockedMutex is not in a locked state, the behavior is undefined. If lockedMutex is a recursive mutex, this function returns immediately. The lockedMutex will be unlocked, and the calling thread will block until either of these conditions is met:

Another thread signals it using wakeOne() or wakeAll(). This function will return true in this case. time milliseconds has elapsed. If time is ULONG_MAX (the default), then the wait will never timeout (the event must be signalled). This function will return false if the wait timed out.

The lockedMutex will be returned to the same locked state. This function is provided to allow the atomic transition from the locked state to the wait state.

See also wakeOne() and wakeAll().

func (*QWaitCondition) WakeAll

func (this *QWaitCondition) WakeAll()

Wakes all threads waiting on the wait condition. The order in which the threads are woken up depends on the operating system's scheduling policies and cannot be controlled or predicted.

See also wakeOne().

func (*QWaitCondition) WakeOne

func (this *QWaitCondition) WakeOne()

Wakes one thread waiting on the wait condition. The thread that is woken up depends on the operating system's scheduling policies, and cannot be controlled or predicted.

If you want to wake up a specific thread, the solution is typically to use different wait conditions and have different threads wait on different conditions.

See also wakeAll().

type QWaitCondition_ITF

type QWaitCondition_ITF interface {
	QWaitCondition_PTR() *QWaitCondition
}

type QWriteLocker

type QWriteLocker struct {
	*qtrt.CObject
}

func NewQWriteLocker

func NewQWriteLocker(readWriteLock QReadWriteLock_ITF) *QWriteLocker

func NewQWriteLockerFromPointer

func NewQWriteLockerFromPointer(cthis unsafe.Pointer) *QWriteLocker

func (*QWriteLocker) GetCthis

func (this *QWriteLocker) GetCthis() unsafe.Pointer

func (*QWriteLocker) NewFromPointer

func (*QWriteLocker) NewFromPointer(cthis unsafe.Pointer) *QWriteLocker

func (*QWriteLocker) QWriteLocker_PTR

func (ptr *QWriteLocker) QWriteLocker_PTR() *QWriteLocker

func (*QWriteLocker) ReadWriteLock

func (this *QWriteLocker) ReadWriteLock() *QReadWriteLock

func (*QWriteLocker) Relock

func (this *QWriteLocker) Relock()

func (*QWriteLocker) SetCthis

func (this *QWriteLocker) SetCthis(cthis unsafe.Pointer)

func (*QWriteLocker) Unlock

func (this *QWriteLocker) Unlock()

Unlocks the lock.

Attempting to unlock a lock that is not locked is an error, and will result in program termination.

See also lockForRead(), lockForWrite(), tryLockForRead(), and tryLockForWrite().

type QWriteLocker_ITF

type QWriteLocker_ITF interface {
	QWriteLocker_PTR() *QWriteLocker
}

type QXmlStreamAttribute

type QXmlStreamAttribute struct {
	*qtrt.CObject
}

func NewQXmlStreamAttribute

func NewQXmlStreamAttribute() *QXmlStreamAttribute

func NewQXmlStreamAttributeFromPointer

func NewQXmlStreamAttributeFromPointer(cthis unsafe.Pointer) *QXmlStreamAttribute

func NewQXmlStreamAttribute_1

func NewQXmlStreamAttribute_1(qualifiedName string, value string) *QXmlStreamAttribute

func NewQXmlStreamAttribute_2

func NewQXmlStreamAttribute_2(namespaceUri string, name string, value string) *QXmlStreamAttribute

func (*QXmlStreamAttribute) GetCthis

func (this *QXmlStreamAttribute) GetCthis() unsafe.Pointer

func (*QXmlStreamAttribute) IsDefault

func (this *QXmlStreamAttribute) IsDefault() bool

func (*QXmlStreamAttribute) Name

func (this *QXmlStreamAttribute) Name() *QStringRef

func (*QXmlStreamAttribute) NamespaceUri

func (this *QXmlStreamAttribute) NamespaceUri() *QStringRef

func (*QXmlStreamAttribute) NewFromPointer

func (*QXmlStreamAttribute) NewFromPointer(cthis unsafe.Pointer) *QXmlStreamAttribute

func (*QXmlStreamAttribute) Operator_equal

func (this *QXmlStreamAttribute) Operator_equal(other unsafe.Pointer) *QXmlStreamAttribute

func (*QXmlStreamAttribute) Operator_equal_1

func (this *QXmlStreamAttribute) Operator_equal_1(arg0 QXmlStreamAttribute_ITF) *QXmlStreamAttribute

func (*QXmlStreamAttribute) Operator_equal_equal

func (this *QXmlStreamAttribute) Operator_equal_equal(other QXmlStreamAttribute_ITF) bool

func (*QXmlStreamAttribute) Operator_not_equal

func (this *QXmlStreamAttribute) Operator_not_equal(other QXmlStreamAttribute_ITF) bool

func (*QXmlStreamAttribute) Prefix

func (this *QXmlStreamAttribute) Prefix() *QStringRef

func (*QXmlStreamAttribute) QXmlStreamAttribute_PTR

func (ptr *QXmlStreamAttribute) QXmlStreamAttribute_PTR() *QXmlStreamAttribute

func (*QXmlStreamAttribute) QualifiedName

func (this *QXmlStreamAttribute) QualifiedName() *QStringRef

func (*QXmlStreamAttribute) SetCthis

func (this *QXmlStreamAttribute) SetCthis(cthis unsafe.Pointer)

func (*QXmlStreamAttribute) Value

func (this *QXmlStreamAttribute) Value() *QStringRef

type QXmlStreamAttribute_ITF

type QXmlStreamAttribute_ITF interface {
	QXmlStreamAttribute_PTR() *QXmlStreamAttribute
}

type QXmlStreamAttributes

type QXmlStreamAttributes struct {
	*qtrt.CObject
}

func NewQXmlStreamAttributes

func NewQXmlStreamAttributes() *QXmlStreamAttributes

func NewQXmlStreamAttributesFromPointer

func NewQXmlStreamAttributesFromPointer(cthis unsafe.Pointer) *QXmlStreamAttributes

func (*QXmlStreamAttributes) GetCthis

func (this *QXmlStreamAttributes) GetCthis() unsafe.Pointer

func (*QXmlStreamAttributes) HasAttribute

func (this *QXmlStreamAttributes) HasAttribute(qualifiedName string) bool

func (*QXmlStreamAttributes) HasAttribute_1

func (this *QXmlStreamAttributes) HasAttribute_1(qualifiedName QLatin1String_ITF) bool

func (*QXmlStreamAttributes) HasAttribute_2

func (this *QXmlStreamAttributes) HasAttribute_2(namespaceUri string, name string) bool

func (*QXmlStreamAttributes) NewFromPointer

func (*QXmlStreamAttributes) NewFromPointer(cthis unsafe.Pointer) *QXmlStreamAttributes

func (*QXmlStreamAttributes) QXmlStreamAttributes_PTR

func (ptr *QXmlStreamAttributes) QXmlStreamAttributes_PTR() *QXmlStreamAttributes

func (*QXmlStreamAttributes) SetCthis

func (this *QXmlStreamAttributes) SetCthis(cthis unsafe.Pointer)

func (*QXmlStreamAttributes) Value

func (this *QXmlStreamAttributes) Value(namespaceUri string, name string) *QStringRef

func (*QXmlStreamAttributes) Value_1

func (this *QXmlStreamAttributes) Value_1(namespaceUri string, name QLatin1String_ITF) *QStringRef

func (*QXmlStreamAttributes) Value_2

func (this *QXmlStreamAttributes) Value_2(namespaceUri QLatin1String_ITF, name QLatin1String_ITF) *QStringRef

func (*QXmlStreamAttributes) Value_3

func (this *QXmlStreamAttributes) Value_3(qualifiedName string) *QStringRef

func (*QXmlStreamAttributes) Value_4

func (this *QXmlStreamAttributes) Value_4(qualifiedName QLatin1String_ITF) *QStringRef

type QXmlStreamAttributes_ITF

type QXmlStreamAttributes_ITF interface {
	QXmlStreamAttributes_PTR() *QXmlStreamAttributes
}

type QXmlStreamEntityDeclaration

type QXmlStreamEntityDeclaration struct {
	*qtrt.CObject
}

func NewQXmlStreamEntityDeclaration

func NewQXmlStreamEntityDeclaration() *QXmlStreamEntityDeclaration

func NewQXmlStreamEntityDeclarationFromPointer

func NewQXmlStreamEntityDeclarationFromPointer(cthis unsafe.Pointer) *QXmlStreamEntityDeclaration

func (*QXmlStreamEntityDeclaration) GetCthis

func (this *QXmlStreamEntityDeclaration) GetCthis() unsafe.Pointer

func (*QXmlStreamEntityDeclaration) Name

func (*QXmlStreamEntityDeclaration) NewFromPointer

func (*QXmlStreamEntityDeclaration) NotationName

func (this *QXmlStreamEntityDeclaration) NotationName() *QStringRef

func (*QXmlStreamEntityDeclaration) Operator_equal

func (*QXmlStreamEntityDeclaration) Operator_equal_1

func (*QXmlStreamEntityDeclaration) Operator_equal_equal

func (this *QXmlStreamEntityDeclaration) Operator_equal_equal(other QXmlStreamEntityDeclaration_ITF) bool

func (*QXmlStreamEntityDeclaration) Operator_not_equal

func (this *QXmlStreamEntityDeclaration) Operator_not_equal(other QXmlStreamEntityDeclaration_ITF) bool

func (*QXmlStreamEntityDeclaration) PublicId

func (this *QXmlStreamEntityDeclaration) PublicId() *QStringRef

func (*QXmlStreamEntityDeclaration) QXmlStreamEntityDeclaration_PTR

func (ptr *QXmlStreamEntityDeclaration) QXmlStreamEntityDeclaration_PTR() *QXmlStreamEntityDeclaration

func (*QXmlStreamEntityDeclaration) SetCthis

func (this *QXmlStreamEntityDeclaration) SetCthis(cthis unsafe.Pointer)

func (*QXmlStreamEntityDeclaration) SystemId

func (this *QXmlStreamEntityDeclaration) SystemId() *QStringRef

func (*QXmlStreamEntityDeclaration) Value

func (this *QXmlStreamEntityDeclaration) Value() *QStringRef

type QXmlStreamEntityDeclaration_ITF

type QXmlStreamEntityDeclaration_ITF interface {
	QXmlStreamEntityDeclaration_PTR() *QXmlStreamEntityDeclaration
}

type QXmlStreamEntityResolver

type QXmlStreamEntityResolver struct {
	*qtrt.CObject
}

func NewQXmlStreamEntityResolverFromPointer

func NewQXmlStreamEntityResolverFromPointer(cthis unsafe.Pointer) *QXmlStreamEntityResolver

func (*QXmlStreamEntityResolver) GetCthis

func (this *QXmlStreamEntityResolver) GetCthis() unsafe.Pointer

func (*QXmlStreamEntityResolver) NewFromPointer

func (*QXmlStreamEntityResolver) QXmlStreamEntityResolver_PTR

func (ptr *QXmlStreamEntityResolver) QXmlStreamEntityResolver_PTR() *QXmlStreamEntityResolver

func (*QXmlStreamEntityResolver) ResolveEntity

func (this *QXmlStreamEntityResolver) ResolveEntity(publicId string, systemId string) string

func (*QXmlStreamEntityResolver) ResolveUndeclaredEntity

func (this *QXmlStreamEntityResolver) ResolveUndeclaredEntity(name string) string

func (*QXmlStreamEntityResolver) SetCthis

func (this *QXmlStreamEntityResolver) SetCthis(cthis unsafe.Pointer)

type QXmlStreamEntityResolver_ITF

type QXmlStreamEntityResolver_ITF interface {
	QXmlStreamEntityResolver_PTR() *QXmlStreamEntityResolver
}

type QXmlStreamNamespaceDeclaration

type QXmlStreamNamespaceDeclaration struct {
	*qtrt.CObject
}

func NewQXmlStreamNamespaceDeclaration

func NewQXmlStreamNamespaceDeclaration() *QXmlStreamNamespaceDeclaration

func NewQXmlStreamNamespaceDeclarationFromPointer

func NewQXmlStreamNamespaceDeclarationFromPointer(cthis unsafe.Pointer) *QXmlStreamNamespaceDeclaration

func NewQXmlStreamNamespaceDeclaration_1

func NewQXmlStreamNamespaceDeclaration_1(prefix string, namespaceUri string) *QXmlStreamNamespaceDeclaration

func (*QXmlStreamNamespaceDeclaration) GetCthis

func (*QXmlStreamNamespaceDeclaration) NamespaceUri

func (this *QXmlStreamNamespaceDeclaration) NamespaceUri() *QStringRef

func (*QXmlStreamNamespaceDeclaration) NewFromPointer

func (*QXmlStreamNamespaceDeclaration) Operator_equal

func (*QXmlStreamNamespaceDeclaration) Operator_equal_1

func (*QXmlStreamNamespaceDeclaration) Operator_equal_equal

func (*QXmlStreamNamespaceDeclaration) Operator_not_equal

func (*QXmlStreamNamespaceDeclaration) Prefix

func (*QXmlStreamNamespaceDeclaration) QXmlStreamNamespaceDeclaration_PTR

func (ptr *QXmlStreamNamespaceDeclaration) QXmlStreamNamespaceDeclaration_PTR() *QXmlStreamNamespaceDeclaration

func (*QXmlStreamNamespaceDeclaration) SetCthis

func (this *QXmlStreamNamespaceDeclaration) SetCthis(cthis unsafe.Pointer)

type QXmlStreamNamespaceDeclaration_ITF

type QXmlStreamNamespaceDeclaration_ITF interface {
	QXmlStreamNamespaceDeclaration_PTR() *QXmlStreamNamespaceDeclaration
}

type QXmlStreamNotationDeclaration

type QXmlStreamNotationDeclaration struct {
	*qtrt.CObject
}

func NewQXmlStreamNotationDeclaration

func NewQXmlStreamNotationDeclaration() *QXmlStreamNotationDeclaration

func NewQXmlStreamNotationDeclarationFromPointer

func NewQXmlStreamNotationDeclarationFromPointer(cthis unsafe.Pointer) *QXmlStreamNotationDeclaration

func (*QXmlStreamNotationDeclaration) GetCthis

func (this *QXmlStreamNotationDeclaration) GetCthis() unsafe.Pointer

func (*QXmlStreamNotationDeclaration) Name

func (*QXmlStreamNotationDeclaration) NewFromPointer

func (*QXmlStreamNotationDeclaration) Operator_equal

func (*QXmlStreamNotationDeclaration) Operator_equal_1

func (*QXmlStreamNotationDeclaration) Operator_equal_equal

func (this *QXmlStreamNotationDeclaration) Operator_equal_equal(other QXmlStreamNotationDeclaration_ITF) bool

func (*QXmlStreamNotationDeclaration) Operator_not_equal

func (*QXmlStreamNotationDeclaration) PublicId

func (this *QXmlStreamNotationDeclaration) PublicId() *QStringRef

func (*QXmlStreamNotationDeclaration) QXmlStreamNotationDeclaration_PTR

func (ptr *QXmlStreamNotationDeclaration) QXmlStreamNotationDeclaration_PTR() *QXmlStreamNotationDeclaration

func (*QXmlStreamNotationDeclaration) SetCthis

func (this *QXmlStreamNotationDeclaration) SetCthis(cthis unsafe.Pointer)

func (*QXmlStreamNotationDeclaration) SystemId

func (this *QXmlStreamNotationDeclaration) SystemId() *QStringRef

type QXmlStreamNotationDeclaration_ITF

type QXmlStreamNotationDeclaration_ITF interface {
	QXmlStreamNotationDeclaration_PTR() *QXmlStreamNotationDeclaration
}

type QXmlStreamReader

type QXmlStreamReader struct {
	*qtrt.CObject
}

func NewQXmlStreamReader

func NewQXmlStreamReader() *QXmlStreamReader

func NewQXmlStreamReaderFromPointer

func NewQXmlStreamReaderFromPointer(cthis unsafe.Pointer) *QXmlStreamReader

func NewQXmlStreamReader_1

func NewQXmlStreamReader_1(device QIODevice_ITF) *QXmlStreamReader

func NewQXmlStreamReader_2

func NewQXmlStreamReader_2(data QByteArray_ITF) *QXmlStreamReader

func NewQXmlStreamReader_3

func NewQXmlStreamReader_3(data string) *QXmlStreamReader

func NewQXmlStreamReader_4

func NewQXmlStreamReader_4(data string) *QXmlStreamReader

func (*QXmlStreamReader) AddData

func (this *QXmlStreamReader) AddData(data QByteArray_ITF)

func (*QXmlStreamReader) AddData_1

func (this *QXmlStreamReader) AddData_1(data string)

func (*QXmlStreamReader) AddData_2

func (this *QXmlStreamReader) AddData_2(data string)

func (*QXmlStreamReader) AddExtraNamespaceDeclaration

func (this *QXmlStreamReader) AddExtraNamespaceDeclaration(extraNamespaceDeclaraction QXmlStreamNamespaceDeclaration_ITF)

func (*QXmlStreamReader) AtEnd

func (this *QXmlStreamReader) AtEnd() bool

func (*QXmlStreamReader) Attributes

func (this *QXmlStreamReader) Attributes() *QXmlStreamAttributes

func (*QXmlStreamReader) CharacterOffset

func (this *QXmlStreamReader) CharacterOffset() int64

func (*QXmlStreamReader) Clear

func (this *QXmlStreamReader) Clear()

func (*QXmlStreamReader) ColumnNumber

func (this *QXmlStreamReader) ColumnNumber() int64

func (*QXmlStreamReader) Device

func (this *QXmlStreamReader) Device() *QIODevice

func (*QXmlStreamReader) DocumentEncoding

func (this *QXmlStreamReader) DocumentEncoding() *QStringRef

func (*QXmlStreamReader) DocumentVersion

func (this *QXmlStreamReader) DocumentVersion() *QStringRef

func (*QXmlStreamReader) DtdName

func (this *QXmlStreamReader) DtdName() *QStringRef

func (*QXmlStreamReader) DtdPublicId

func (this *QXmlStreamReader) DtdPublicId() *QStringRef

func (*QXmlStreamReader) DtdSystemId

func (this *QXmlStreamReader) DtdSystemId() *QStringRef

func (*QXmlStreamReader) EntityResolver

func (this *QXmlStreamReader) EntityResolver() *QXmlStreamEntityResolver

func (*QXmlStreamReader) Error

func (this *QXmlStreamReader) Error() int

func (*QXmlStreamReader) ErrorString

func (this *QXmlStreamReader) ErrorString() string

func (*QXmlStreamReader) GetCthis

func (this *QXmlStreamReader) GetCthis() unsafe.Pointer

func (*QXmlStreamReader) HasError

func (this *QXmlStreamReader) HasError() bool

func (*QXmlStreamReader) IsCDATA

func (this *QXmlStreamReader) IsCDATA() bool

func (*QXmlStreamReader) IsCharacters

func (this *QXmlStreamReader) IsCharacters() bool

func (*QXmlStreamReader) IsComment

func (this *QXmlStreamReader) IsComment() bool

func (*QXmlStreamReader) IsDTD

func (this *QXmlStreamReader) IsDTD() bool

func (*QXmlStreamReader) IsEndDocument

func (this *QXmlStreamReader) IsEndDocument() bool

func (*QXmlStreamReader) IsEndElement

func (this *QXmlStreamReader) IsEndElement() bool

func (*QXmlStreamReader) IsEntityReference

func (this *QXmlStreamReader) IsEntityReference() bool

func (*QXmlStreamReader) IsProcessingInstruction

func (this *QXmlStreamReader) IsProcessingInstruction() bool

func (*QXmlStreamReader) IsStandaloneDocument

func (this *QXmlStreamReader) IsStandaloneDocument() bool

func (*QXmlStreamReader) IsStartDocument

func (this *QXmlStreamReader) IsStartDocument() bool

func (*QXmlStreamReader) IsStartElement

func (this *QXmlStreamReader) IsStartElement() bool

func (*QXmlStreamReader) IsWhitespace

func (this *QXmlStreamReader) IsWhitespace() bool

func (*QXmlStreamReader) LineNumber

func (this *QXmlStreamReader) LineNumber() int64

func (*QXmlStreamReader) Name

func (this *QXmlStreamReader) Name() *QStringRef

func (*QXmlStreamReader) NamespaceProcessing

func (this *QXmlStreamReader) NamespaceProcessing() bool

func (*QXmlStreamReader) NamespaceUri

func (this *QXmlStreamReader) NamespaceUri() *QStringRef

func (*QXmlStreamReader) NewFromPointer

func (*QXmlStreamReader) NewFromPointer(cthis unsafe.Pointer) *QXmlStreamReader

func (*QXmlStreamReader) Prefix

func (this *QXmlStreamReader) Prefix() *QStringRef

func (*QXmlStreamReader) ProcessingInstructionData

func (this *QXmlStreamReader) ProcessingInstructionData() *QStringRef

func (*QXmlStreamReader) ProcessingInstructionTarget

func (this *QXmlStreamReader) ProcessingInstructionTarget() *QStringRef

func (*QXmlStreamReader) QXmlStreamReader_PTR

func (ptr *QXmlStreamReader) QXmlStreamReader_PTR() *QXmlStreamReader

func (*QXmlStreamReader) QualifiedName

func (this *QXmlStreamReader) QualifiedName() *QStringRef

func (*QXmlStreamReader) RaiseError

func (this *QXmlStreamReader) RaiseError(message string)

func (*QXmlStreamReader) RaiseError__

func (this *QXmlStreamReader) RaiseError__()

func (*QXmlStreamReader) ReadElementText

func (this *QXmlStreamReader) ReadElementText(behaviour int) string

func (*QXmlStreamReader) ReadElementText__

func (this *QXmlStreamReader) ReadElementText__() string

func (*QXmlStreamReader) ReadNext

func (this *QXmlStreamReader) ReadNext() int

func (*QXmlStreamReader) ReadNextStartElement

func (this *QXmlStreamReader) ReadNextStartElement() bool

func (*QXmlStreamReader) SetCthis

func (this *QXmlStreamReader) SetCthis(cthis unsafe.Pointer)

func (*QXmlStreamReader) SetDevice

func (this *QXmlStreamReader) SetDevice(device QIODevice_ITF)

func (*QXmlStreamReader) SetEntityResolver

func (this *QXmlStreamReader) SetEntityResolver(resolver QXmlStreamEntityResolver_ITF)

func (*QXmlStreamReader) SetNamespaceProcessing

func (this *QXmlStreamReader) SetNamespaceProcessing(arg0 bool)

func (*QXmlStreamReader) SkipCurrentElement

func (this *QXmlStreamReader) SkipCurrentElement()

func (*QXmlStreamReader) Text

func (this *QXmlStreamReader) Text() *QStringRef

func (*QXmlStreamReader) TokenString

func (this *QXmlStreamReader) TokenString() string

func (*QXmlStreamReader) TokenType

func (this *QXmlStreamReader) TokenType() int

type QXmlStreamReader_ITF

type QXmlStreamReader_ITF interface {
	QXmlStreamReader_PTR() *QXmlStreamReader
}

type QXmlStreamReader__Error

type QXmlStreamReader__Error = int
const QXmlStreamReader__CustomError QXmlStreamReader__Error = 2
const QXmlStreamReader__NoError QXmlStreamReader__Error = 0
const QXmlStreamReader__NotWellFormedError QXmlStreamReader__Error = 3
const QXmlStreamReader__PrematureEndOfDocumentError QXmlStreamReader__Error = 4
const QXmlStreamReader__UnexpectedElementError QXmlStreamReader__Error = 1

type QXmlStreamReader__ReadElementTextBehaviour

type QXmlStreamReader__ReadElementTextBehaviour = int
const QXmlStreamReader__ErrorOnUnexpectedElement QXmlStreamReader__ReadElementTextBehaviour = 0
const QXmlStreamReader__IncludeChildElements QXmlStreamReader__ReadElementTextBehaviour = 1
const QXmlStreamReader__SkipChildElements QXmlStreamReader__ReadElementTextBehaviour = 2

type QXmlStreamReader__TokenType

type QXmlStreamReader__TokenType = int
const QXmlStreamReader__Characters QXmlStreamReader__TokenType = 6
const QXmlStreamReader__Comment QXmlStreamReader__TokenType = 7
const QXmlStreamReader__DTD QXmlStreamReader__TokenType = 8
const QXmlStreamReader__EndDocument QXmlStreamReader__TokenType = 3
const QXmlStreamReader__EndElement QXmlStreamReader__TokenType = 5
const QXmlStreamReader__EntityReference QXmlStreamReader__TokenType = 9
const QXmlStreamReader__Invalid QXmlStreamReader__TokenType = 1
const QXmlStreamReader__NoToken QXmlStreamReader__TokenType = 0
const QXmlStreamReader__ProcessingInstruction QXmlStreamReader__TokenType = 10
const QXmlStreamReader__StartDocument QXmlStreamReader__TokenType = 2
const QXmlStreamReader__StartElement QXmlStreamReader__TokenType = 4

type QXmlStreamStringRef

type QXmlStreamStringRef struct {
	*qtrt.CObject
}

func NewQXmlStreamStringRef

func NewQXmlStreamStringRef() *QXmlStreamStringRef

func NewQXmlStreamStringRefFromPointer

func NewQXmlStreamStringRefFromPointer(cthis unsafe.Pointer) *QXmlStreamStringRef

func NewQXmlStreamStringRef_1

func NewQXmlStreamStringRef_1(aString QStringRef_ITF) *QXmlStreamStringRef

func NewQXmlStreamStringRef_2

func NewQXmlStreamStringRef_2(aString string) *QXmlStreamStringRef

func NewQXmlStreamStringRef_3

func NewQXmlStreamStringRef_3(aString unsafe.Pointer) *QXmlStreamStringRef

func (*QXmlStreamStringRef) Clear

func (this *QXmlStreamStringRef) Clear()

func (*QXmlStreamStringRef) GetCthis

func (this *QXmlStreamStringRef) GetCthis() unsafe.Pointer

func (*QXmlStreamStringRef) NewFromPointer

func (*QXmlStreamStringRef) NewFromPointer(cthis unsafe.Pointer) *QXmlStreamStringRef

func (*QXmlStreamStringRef) Operator_equal

func (this *QXmlStreamStringRef) Operator_equal(other unsafe.Pointer) *QXmlStreamStringRef

func (*QXmlStreamStringRef) Operator_equal_1

func (this *QXmlStreamStringRef) Operator_equal_1(other QXmlStreamStringRef_ITF) *QXmlStreamStringRef

func (*QXmlStreamStringRef) Position

func (this *QXmlStreamStringRef) Position() int

func (*QXmlStreamStringRef) QXmlStreamStringRef_PTR

func (ptr *QXmlStreamStringRef) QXmlStreamStringRef_PTR() *QXmlStreamStringRef

func (*QXmlStreamStringRef) SetCthis

func (this *QXmlStreamStringRef) SetCthis(cthis unsafe.Pointer)

func (*QXmlStreamStringRef) Size

func (this *QXmlStreamStringRef) Size() int

func (*QXmlStreamStringRef) String

func (this *QXmlStreamStringRef) String() string

func (*QXmlStreamStringRef) Swap

func (this *QXmlStreamStringRef) Swap(other QXmlStreamStringRef_ITF)

type QXmlStreamStringRef_ITF

type QXmlStreamStringRef_ITF interface {
	QXmlStreamStringRef_PTR() *QXmlStreamStringRef
}

type QXmlStreamWriter

type QXmlStreamWriter struct {
	*qtrt.CObject
}

func NewQXmlStreamWriter

func NewQXmlStreamWriter() *QXmlStreamWriter

func NewQXmlStreamWriterFromPointer

func NewQXmlStreamWriterFromPointer(cthis unsafe.Pointer) *QXmlStreamWriter

func NewQXmlStreamWriter_1

func NewQXmlStreamWriter_1(device QIODevice_ITF) *QXmlStreamWriter

func NewQXmlStreamWriter_2

func NewQXmlStreamWriter_2(array QByteArray_ITF) *QXmlStreamWriter

func NewQXmlStreamWriter_3

func NewQXmlStreamWriter_3(string string) *QXmlStreamWriter

func (*QXmlStreamWriter) AutoFormatting

func (this *QXmlStreamWriter) AutoFormatting() bool

func (*QXmlStreamWriter) AutoFormattingIndent

func (this *QXmlStreamWriter) AutoFormattingIndent() int

func (*QXmlStreamWriter) Codec

func (this *QXmlStreamWriter) Codec() *QTextCodec

func (*QXmlStreamWriter) Device

func (this *QXmlStreamWriter) Device() *QIODevice

func (*QXmlStreamWriter) GetCthis

func (this *QXmlStreamWriter) GetCthis() unsafe.Pointer

func (*QXmlStreamWriter) HasError

func (this *QXmlStreamWriter) HasError() bool

func (*QXmlStreamWriter) NewFromPointer

func (*QXmlStreamWriter) NewFromPointer(cthis unsafe.Pointer) *QXmlStreamWriter

func (*QXmlStreamWriter) QXmlStreamWriter_PTR

func (ptr *QXmlStreamWriter) QXmlStreamWriter_PTR() *QXmlStreamWriter

func (*QXmlStreamWriter) SetAutoFormatting

func (this *QXmlStreamWriter) SetAutoFormatting(arg0 bool)

func (*QXmlStreamWriter) SetAutoFormattingIndent

func (this *QXmlStreamWriter) SetAutoFormattingIndent(spacesOrTabs int)

func (*QXmlStreamWriter) SetCodec

func (this *QXmlStreamWriter) SetCodec(codec QTextCodec_ITF)

func (*QXmlStreamWriter) SetCodec_1

func (this *QXmlStreamWriter) SetCodec_1(codecName string)

func (*QXmlStreamWriter) SetCthis

func (this *QXmlStreamWriter) SetCthis(cthis unsafe.Pointer)

func (*QXmlStreamWriter) SetDevice

func (this *QXmlStreamWriter) SetDevice(device QIODevice_ITF)

func (*QXmlStreamWriter) WriteAttribute

func (this *QXmlStreamWriter) WriteAttribute(qualifiedName string, value string)

func (*QXmlStreamWriter) WriteAttribute_1

func (this *QXmlStreamWriter) WriteAttribute_1(namespaceUri string, name string, value string)

func (*QXmlStreamWriter) WriteAttribute_2

func (this *QXmlStreamWriter) WriteAttribute_2(attribute QXmlStreamAttribute_ITF)

func (*QXmlStreamWriter) WriteAttributes

func (this *QXmlStreamWriter) WriteAttributes(attributes QXmlStreamAttributes_ITF)

func (*QXmlStreamWriter) WriteCDATA

func (this *QXmlStreamWriter) WriteCDATA(text string)

func (*QXmlStreamWriter) WriteCharacters

func (this *QXmlStreamWriter) WriteCharacters(text string)

func (*QXmlStreamWriter) WriteComment

func (this *QXmlStreamWriter) WriteComment(text string)

func (*QXmlStreamWriter) WriteCurrentToken

func (this *QXmlStreamWriter) WriteCurrentToken(reader QXmlStreamReader_ITF)

func (*QXmlStreamWriter) WriteDTD

func (this *QXmlStreamWriter) WriteDTD(dtd string)

func (*QXmlStreamWriter) WriteDefaultNamespace

func (this *QXmlStreamWriter) WriteDefaultNamespace(namespaceUri string)

func (*QXmlStreamWriter) WriteEmptyElement

func (this *QXmlStreamWriter) WriteEmptyElement(qualifiedName string)

func (*QXmlStreamWriter) WriteEmptyElement_1

func (this *QXmlStreamWriter) WriteEmptyElement_1(namespaceUri string, name string)

func (*QXmlStreamWriter) WriteEndDocument

func (this *QXmlStreamWriter) WriteEndDocument()

func (*QXmlStreamWriter) WriteEndElement

func (this *QXmlStreamWriter) WriteEndElement()

func (*QXmlStreamWriter) WriteEntityReference

func (this *QXmlStreamWriter) WriteEntityReference(name string)

func (*QXmlStreamWriter) WriteNamespace

func (this *QXmlStreamWriter) WriteNamespace(namespaceUri string, prefix string)

func (*QXmlStreamWriter) WriteNamespace__

func (this *QXmlStreamWriter) WriteNamespace__(namespaceUri string)

func (*QXmlStreamWriter) WriteProcessingInstruction

func (this *QXmlStreamWriter) WriteProcessingInstruction(target string, data string)

func (*QXmlStreamWriter) WriteProcessingInstruction__

func (this *QXmlStreamWriter) WriteProcessingInstruction__(target string)

func (*QXmlStreamWriter) WriteStartDocument

func (this *QXmlStreamWriter) WriteStartDocument()

func (*QXmlStreamWriter) WriteStartDocument_1

func (this *QXmlStreamWriter) WriteStartDocument_1(version string)

func (*QXmlStreamWriter) WriteStartDocument_2

func (this *QXmlStreamWriter) WriteStartDocument_2(version string, standalone bool)

func (*QXmlStreamWriter) WriteStartElement

func (this *QXmlStreamWriter) WriteStartElement(qualifiedName string)

func (*QXmlStreamWriter) WriteStartElement_1

func (this *QXmlStreamWriter) WriteStartElement_1(namespaceUri string, name string)

func (*QXmlStreamWriter) WriteTextElement

func (this *QXmlStreamWriter) WriteTextElement(qualifiedName string, text string)

func (*QXmlStreamWriter) WriteTextElement_1

func (this *QXmlStreamWriter) WriteTextElement_1(namespaceUri string, name string, text string)

type QXmlStreamWriter_ITF

type QXmlStreamWriter_ITF interface {
	QXmlStreamWriter_PTR() *QXmlStreamWriter
}

type Qt__AlignmentFlag

type Qt__AlignmentFlag = int // core
const Qt__AlignAbsolute Qt__AlignmentFlag = 16
const Qt__AlignBaseline Qt__AlignmentFlag = 256
const Qt__AlignBottom Qt__AlignmentFlag = 64
const Qt__AlignCenter Qt__AlignmentFlag = 132
const Qt__AlignHCenter Qt__AlignmentFlag = 4
const Qt__AlignHorizontal_Mask Qt__AlignmentFlag = 31
const Qt__AlignJustify Qt__AlignmentFlag = 8
const Qt__AlignLeading Qt__AlignmentFlag = 1
const Qt__AlignLeft Qt__AlignmentFlag = 1
const Qt__AlignRight Qt__AlignmentFlag = 2
const Qt__AlignTop Qt__AlignmentFlag = 32
const Qt__AlignTrailing Qt__AlignmentFlag = 2
const Qt__AlignVCenter Qt__AlignmentFlag = 128
const Qt__AlignVertical_Mask Qt__AlignmentFlag = 480

type Qt__AlternativeNameEntryType

type Qt__AlternativeNameEntryType = int // network

Describes the key types for alternative name entries in QSslCertificate.

Note: In Qt 4, this enum was called AlternateNameEntryType. That name is deprecated in Qt 5.

See also QSslCertificate::subjectAlternativeNames().

const Qt__DnsEntry Qt__AlternativeNameEntryType = 1

A DNS host name entry; the entry contains a host name entry that the certificate is valid for. The entry may contain wildcards.

const Qt__EmailEntry Qt__AlternativeNameEntryType = 0

An email entry; the entry contains an email address that the certificate is valid for.

type Qt__AnchorPoint

type Qt__AnchorPoint = int // core

Specifies a side of a layout item that can be anchored. This is used by QGraphicsAnchorLayout.

See also QGraphicsAnchorLayout.

const Qt__AnchorBottom Qt__AnchorPoint = 5

The bottom side of a layout item.

const Qt__AnchorHorizontalCenter Qt__AnchorPoint = 1

A "virtual" side that is centered between the left and the right side of a layout item.

const Qt__AnchorLeft Qt__AnchorPoint = 0

The left side of a layout item.

const Qt__AnchorRight Qt__AnchorPoint = 2

The right side of a layout item.

const Qt__AnchorTop Qt__AnchorPoint = 3

The top side of a layout item.

const Qt__AnchorVerticalCenter Qt__AnchorPoint = 4

A "virtual" side that is centered between the top and the bottom side of a layout item.

type Qt__ApplicationAttribute

type Qt__ApplicationAttribute = int // core

This enum describes attributes that change the behavior of application-wide features. These are enabled and disabled using QCoreApplication::setAttribute(), and can be tested for with QCoreApplication::testAttribute().

The following values are deprecated or obsolete:

Qt::AA_MacPluginApplicationAA_PluginApplicationThis attribute has been deprecated. Use AA_PluginApplication instead.

const Qt__AA_AttributeCount Qt__ApplicationAttribute = 31
const Qt__AA_CompressHighFrequencyEvents Qt__ApplicationAttribute = 25
const Qt__AA_CompressTabletEvents Qt__ApplicationAttribute = 29
const Qt__AA_DisableHighDpiScaling Qt__ApplicationAttribute = 21
const Qt__AA_DisableShaderDiskCache Qt__ApplicationAttribute = 27
const Qt__AA_DisableWindowContextHelpButton Qt__ApplicationAttribute = 30
const Qt__AA_DontCheckOpenGLContextThreadAffinity Qt__ApplicationAttribute = 26
const Qt__AA_DontCreateNativeWidgetSiblings Qt__ApplicationAttribute = 4

Ensures that siblings of native widgets stay non-native unless specifically set by the Qt::WA_NativeWindow attribute.

const Qt__AA_DontShowIconsInMenus Qt__ApplicationAttribute = 2

Actions with the Icon property won't be shown in any menus unless specifically set by the QAction::iconVisibleInMenu property. Menus that are currently open or menus already created in the native macOS menubar may not pick up a change in this attribute. Changes in the QAction::iconVisibleInMenu property will always be picked up.

const Qt__AA_DontShowShortcutsInContextMenus Qt__ApplicationAttribute = 28
const Qt__AA_DontUseNativeDialogs Qt__ApplicationAttribute = 23
const Qt__AA_DontUseNativeMenuBar Qt__ApplicationAttribute = 6

All menubars created while this attribute is set to true won't be used as a native menubar (e.g, the menubar at the top of the main screen on macOS).

const Qt__AA_EnableHighDpiScaling Qt__ApplicationAttribute = 20
const Qt__AA_ForceRasterWidgets Qt__ApplicationAttribute = 14
const Qt__AA_ImmediateWidgetCreation Qt__ApplicationAttribute = 0
const Qt__AA_MSWindowsUseDirect3DByDefault Qt__ApplicationAttribute = 1

This value is obsolete and has no effect.

const Qt__AA_MacDontSwapCtrlAndMeta Qt__ApplicationAttribute = 7

On macOS by default, Qt swaps the Control and Meta (Command) keys (i.e., whenever Control is pressed, Qt sends Meta, and whenever Meta is pressed Control is sent). When this attribute is true, Qt will not do the flip. QKeySequence::StandardKey will also flip accordingly (i.e., QKeySequence::Copy will be Command+C on the keyboard regardless of the value set, though what is output for QKeySequence::toString() will be different).

const Qt__AA_MacPluginApplication Qt__ApplicationAttribute = 5
const Qt__AA_NativeWindows Qt__ApplicationAttribute = 3

Ensures that widgets have native windows.

const Qt__AA_PluginApplication Qt__ApplicationAttribute = 5
const Qt__AA_SetPalette Qt__ApplicationAttribute = 19
const Qt__AA_ShareOpenGLContexts Qt__ApplicationAttribute = 18
const Qt__AA_SynthesizeMouseForUnhandledTabletEvents Qt__ApplicationAttribute = 24
const Qt__AA_SynthesizeMouseForUnhandledTouchEvents Qt__ApplicationAttribute = 12
const Qt__AA_SynthesizeTouchForUnhandledMouseEvents Qt__ApplicationAttribute = 11
const Qt__AA_Use96Dpi Qt__ApplicationAttribute = 8
const Qt__AA_UseDesktopOpenGL Qt__ApplicationAttribute = 15
const Qt__AA_UseHighDpiPixmaps Qt__ApplicationAttribute = 13
const Qt__AA_UseOpenGLES Qt__ApplicationAttribute = 16
const Qt__AA_UseSoftwareOpenGL Qt__ApplicationAttribute = 17
const Qt__AA_UseStyleSheetPropagationInWidgetStyles Qt__ApplicationAttribute = 22
const Qt__AA_X11InitThreads Qt__ApplicationAttribute = 10

type Qt__ApplicationState

type Qt__ApplicationState = int // core
const Qt__ApplicationActive Qt__ApplicationState = 4
const Qt__ApplicationHidden Qt__ApplicationState = 1
const Qt__ApplicationInactive Qt__ApplicationState = 2
const Qt__ApplicationSuspended Qt__ApplicationState = 0

type Qt__ArrowType

type Qt__ArrowType = int // core

ConstantValue Qt::NoArrow0 Qt::UpArrow1 Qt::DownArrow2 Qt::LeftArrow3 Qt::RightArrow4

const Qt__DownArrow Qt__ArrowType = 2
const Qt__LeftArrow Qt__ArrowType = 3
const Qt__NoArrow Qt__ArrowType = 0
const Qt__RightArrow Qt__ArrowType = 4
const Qt__UpArrow Qt__ArrowType = 1

type Qt__AspectRatioMode

type Qt__AspectRatioMode = int // core

This enum type defines what happens to the aspect ratio when scaling an rectangle.

See also QSize::scale() and QImage::scaled().

const Qt__IgnoreAspectRatio Qt__AspectRatioMode = 0

The size is scaled freely. The aspect ratio is not preserved.

const Qt__KeepAspectRatio Qt__AspectRatioMode = 1

The size is scaled to a rectangle as large as possible inside a given rectangle, preserving the aspect ratio.

const Qt__KeepAspectRatioByExpanding Qt__AspectRatioMode = 2

The size is scaled to a rectangle as small as possible outside a given rectangle, preserving the aspect ratio.

type Qt__AutoParentResult

type Qt__AutoParentResult = int // qml
const Qt__IncompatibleObject Qt__AutoParentResult = 1
const Qt__IncompatibleParent Qt__AutoParentResult = 2
const Qt__Parented Qt__AutoParentResult = 0

type Qt__Axis

type Qt__Axis = int // core

This enum type defines three values to represent the three axes in the cartesian coordinate system.

See also QTransform::rotate() and QTransform::rotateRadians().

const Qt__XAxis Qt__Axis = 0

The X axis.

const Qt__YAxis Qt__Axis = 1

The Y axis.

const Qt__ZAxis Qt__Axis = 2

The Z axis.

type Qt__BGMode

type Qt__BGMode = int // core

Background mode:

ConstantValue Qt::TransparentMode0 Qt::OpaqueMode1

const Qt__OpaqueMode Qt__BGMode = 1
const Qt__TransparentMode Qt__BGMode = 0

type Qt__BindFlag

type Qt__BindFlag = int // androidextras
const Qt__AboveClient Qt__BindFlag = 8
const Qt__AdjustWithActivity Qt__BindFlag = 128
const Qt__AllowOomManagement Qt__BindFlag = 16
const Qt__AutoCreate Qt__BindFlag = 1
const Qt__DebugUnbind Qt__BindFlag = 2
const Qt__ExternalService Qt__BindFlag = -2147483648
const Qt__Important Qt__BindFlag = 64
const Qt__None Qt__BindFlag = 0
const Qt__NotForeground Qt__BindFlag = 4
const Qt__WaivePriority Qt__BindFlag = 32

type Qt__BrushStyle

type Qt__BrushStyle = int // core

This enum type defines the brush styles supported by Qt, i.e. the fill pattern of shapes drawn using QPainter.

See also QBrush.

const Qt__BDiagPattern Qt__BrushStyle = 12
const Qt__ConicalGradientPattern Qt__BrushStyle = 17
const Qt__CrossPattern Qt__BrushStyle = 11
const Qt__Dense1Pattern Qt__BrushStyle = 2

Extremely dense brush pattern.

const Qt__Dense2Pattern Qt__BrushStyle = 3

Very dense brush pattern.

const Qt__Dense3Pattern Qt__BrushStyle = 4

Somewhat dense brush pattern.

const Qt__Dense4Pattern Qt__BrushStyle = 5

Half dense brush pattern.

const Qt__Dense5Pattern Qt__BrushStyle = 6

Somewhat sparse brush pattern.

const Qt__Dense6Pattern Qt__BrushStyle = 7

Very sparse brush pattern.

const Qt__Dense7Pattern Qt__BrushStyle = 8

Extremely sparse brush pattern.

const Qt__DiagCrossPattern Qt__BrushStyle = 14
const Qt__FDiagPattern Qt__BrushStyle = 13
const Qt__HorPattern Qt__BrushStyle = 9

Horizontal lines.

const Qt__LinearGradientPattern Qt__BrushStyle = 15
const Qt__NoBrush Qt__BrushStyle = 0

No brush pattern.

const Qt__RadialGradientPattern Qt__BrushStyle = 16
const Qt__SolidPattern Qt__BrushStyle = 1

Uniform color.

const Qt__TexturePattern Qt__BrushStyle = 24
const Qt__VerPattern Qt__BrushStyle = 10

type Qt__CaseSensitivity

type Qt__CaseSensitivity = int // core

ConstantValue Qt::CaseInsensitive0 Qt::CaseSensitive1

const Qt__CaseInsensitive Qt__CaseSensitivity = 0
const Qt__CaseSensitive Qt__CaseSensitivity = 1

type Qt__CheckState

type Qt__CheckState = int // core

This enum describes the state of checkable items, controls, and widgets.

See also QCheckBox, Qt::ItemFlags, and Qt::ItemDataRole.

const Qt__Checked Qt__CheckState = 2

The item is checked.

const Qt__PartiallyChecked Qt__CheckState = 1

The item is partially checked. Items in hierarchical models may be partially checked if some, but not all, of their children are checked.

const Qt__Unchecked Qt__CheckState = 0

The item is unchecked.

type Qt__ChecksumType

type Qt__ChecksumType = int // core

This enum describes the possible standards used by qChecksum().

This enum was introduced or modified in Qt 5.9.

const Qt__ChecksumIso3309 Qt__ChecksumType = 0
const Qt__ChecksumItuV41 Qt__ChecksumType = 1

type Qt__ClipOperation

type Qt__ClipOperation = int // core
const Qt__IntersectClip Qt__ClipOperation = 2

Intersects the current clip path/rect/region with the one supplied in the function call.

const Qt__NoClip Qt__ClipOperation = 0

This operation turns clipping off.

const Qt__ReplaceClip Qt__ClipOperation = 1

Replaces the current clip path/rect/region with the one supplied in the function call.

type Qt__ConnectionType

type Qt__ConnectionType = int // core

This enum describes the types of connection that can be used between signals and slots. In particular, it determines whether a particular signal is delivered to a slot immediately or queued for delivery at a later time.

With queued connections, the parameters must be of types that are known to Qt's meta-object system, because Qt needs to copy the arguments to store them in an event behind the scenes. If you try to use a queued connection and get the error message:

QObject::connect: Cannot queue arguments of type 'MyType'

Call qRegisterMetaType() to register the data type before you establish the connection.

When using signals and slots with multiple threads, see Signals and Slots Across Threads.

See also Thread Support in Qt, QObject::connect(), qRegisterMetaType(), and Q_DECLARE_METATYPE().

const Qt__AutoConnection Qt__ConnectionType = 0

(Default) If the receiver lives in the thread that emits the signal, Qt::DirectConnection is used. Otherwise, Qt::QueuedConnection is used. The connection type is determined when the signal is emitted.

const Qt__BlockingQueuedConnection Qt__ConnectionType = 3

Same as Qt::QueuedConnection, except that the signalling thread blocks until the slot returns. This connection must not be used if the receiver lives in the signalling thread, or else the application will deadlock.

const Qt__DirectConnection Qt__ConnectionType = 1

The slot is invoked immediately when the signal is emitted. The slot is executed in the signalling thread.

const Qt__QueuedConnection Qt__ConnectionType = 2

The slot is invoked when control returns to the event loop of the receiver's thread. The slot is executed in the receiver's thread.

const Qt__UniqueConnection Qt__ConnectionType = 128

type Qt__ContextMenuPolicy

type Qt__ContextMenuPolicy = int // core

This enum type defines the various policies a widget can have with respect to showing a context menu.

const Qt__ActionsContextMenu Qt__ContextMenuPolicy = 2

the widget displays its QWidget::actions() as context menu.

const Qt__CustomContextMenu Qt__ContextMenuPolicy = 3

the widget emits the QWidget::customContextMenuRequested() signal.

const Qt__DefaultContextMenu Qt__ContextMenuPolicy = 1

the widget's QWidget::contextMenuEvent() handler is called.

const Qt__NoContextMenu Qt__ContextMenuPolicy = 0

the widget does not feature a context menu, context menu handling is deferred to the widget's parent.

const Qt__PreventContextMenu Qt__ContextMenuPolicy = 4

the widget does not feature a context menu, and in contrast to NoContextMenu, the handling is not deferred to the widget's parent. This means that all right mouse button events are guaranteed to be delivered to the widget itself through QWidget::mousePressEvent(), and QWidget::mouseReleaseEvent().

type Qt__CoordinateSystem

type Qt__CoordinateSystem = int // core

This enum specifies the coordinate system.

This enum was introduced or modified in Qt 4.6.

const Qt__DeviceCoordinates Qt__CoordinateSystem = 0

Coordinates are relative to the top-left corner of the object's paint device.

const Qt__LogicalCoordinates Qt__CoordinateSystem = 1

Coordinates are relative to the top-left corner of the object.

type Qt__Corner

type Qt__Corner = int // core

This enum type specifies a corner in a rectangle:

const Qt__BottomLeftCorner Qt__Corner = 2
const Qt__BottomRightCorner Qt__Corner = 3
const Qt__TopLeftCorner Qt__Corner = 0
const Qt__TopRightCorner Qt__Corner = 1

type Qt__CursorMoveStyle

type Qt__CursorMoveStyle = int // core

This enum describes the movement style available to text cursors. The options are:

const Qt__LogicalMoveStyle Qt__CursorMoveStyle = 0

Within a left-to-right text block, decrease cursor position when pressing left arrow key, increase cursor position when pressing the right arrow key. If the text block is right-to-left, the opposite behavior applies.

const Qt__VisualMoveStyle Qt__CursorMoveStyle = 1

Pressing the left arrow key will always cause the cursor to move left, regardless of the text's writing direction. Pressing the right arrow key will always cause the cursor to move right.

type Qt__CursorShape

type Qt__CursorShape = int // core

This enum type defines the various cursors that can be used.

The standard arrow cursor is the default for widgets in a normal state.

const Qt__ArrowCursor Qt__CursorShape = 0

The standard arrow cursor.

const Qt__BitmapCursor Qt__CursorShape = 24

4

const Qt__BlankCursor Qt__CursorShape = 10
const Qt__BusyCursor Qt__CursorShape = 16
const Qt__ClosedHandCursor Qt__CursorShape = 18
const Qt__CrossCursor Qt__CursorShape = 2

A crosshair cursor, typically used to help the user accurately select a point on the screen.

const Qt__CustomCursor Qt__CursorShape = 25
const Qt__DragCopyCursor Qt__CursorShape = 19
const Qt__DragLinkCursor Qt__CursorShape = 21
const Qt__DragMoveCursor Qt__CursorShape = 20
const Qt__ForbiddenCursor Qt__CursorShape = 14
const Qt__IBeamCursor Qt__CursorShape = 4

A caret or ibeam cursor, indicating that a widget can accept and display text input.

const Qt__LastCursor Qt__CursorShape = 21
const Qt__OpenHandCursor Qt__CursorShape = 17
const Qt__PointingHandCursor Qt__CursorShape = 13
const Qt__SizeAllCursor Qt__CursorShape = 9

A cursor used for elements that are used to resize top-level windows in any direction.

const Qt__SizeBDiagCursor Qt__CursorShape = 7

A cursor used for elements that are used to diagonally resize top-level windows at their top-right and bottom-left corners.

const Qt__SizeFDiagCursor Qt__CursorShape = 8

A cursor used for elements that are used to diagonally resize top-level windows at their top-left and bottom-right corners.

const Qt__SizeHorCursor Qt__CursorShape = 6

A cursor used for elements that are used to horizontally resize top-level windows.

const Qt__SizeVerCursor Qt__CursorShape = 5

A cursor used for elements that are used to vertically resize top-level windows.

const Qt__SplitHCursor Qt__CursorShape = 12
const Qt__SplitVCursor Qt__CursorShape = 11
const Qt__UpArrowCursor Qt__CursorShape = 1

An arrow pointing upwards toward the top of the screen.

const Qt__WaitCursor Qt__CursorShape = 3

An hourglass or watch cursor, usually shown during operations that prevent the user from interacting with the application.

const Qt__WhatsThisCursor Qt__CursorShape = 15

type Qt__DateFormat

type Qt__DateFormat = int // core

Qt::SystemLocaleShortDate?The short format used by the operating system. Qt::SystemLocaleLongDate?The long format used by the operating system. Qt::DefaultLocaleShortDate?The short format specified by the application's locale. Qt::DefaultLocaleLongDate?The long format used by the application's locale. Qt::LocaleDate?This enum value is deprecated. Use Qt::DefaultLocaleShortDate instead (or Qt::DefaultLocaleLongDate if you want long dates). Qt::LocalDateSystemLocaleDateThis enum value is deprecated. Use Qt::SystemLocaleShortDate instead (or Qt::SystemLocaleLongDate if you want long dates).

Note: For ISODate formats, each Y, M and D represents a single digit of the year, month and day used to specify the date. Each H, M and S represents a single digit of the hour, minute and second used to specify the time. The presence of a literal T character is used to separate the date and time when both are specified.

const Qt__DefaultLocaleLongDate Qt__DateFormat = 7
const Qt__DefaultLocaleShortDate Qt__DateFormat = 6
const Qt__ISODate Qt__DateFormat = 1
const Qt__ISODateWithMs Qt__DateFormat = 9
const Qt__LocalDate Qt__DateFormat = 2
const Qt__LocaleDate Qt__DateFormat = 3
const Qt__RFC2822Date Qt__DateFormat = 8
const Qt__SystemLocaleDate Qt__DateFormat = 2

This enum value is deprecated. Use Qt::SystemLocaleShortDate instead (or Qt::SystemLocaleLongDate if you want long dates).

const Qt__SystemLocaleLongDate Qt__DateFormat = 5
const Qt__SystemLocaleShortDate Qt__DateFormat = 4
const Qt__TextDate Qt__DateFormat = 0

The default Qt format, which includes the day and month name, the day number in the month, and the year in full. The day and month names will be short, localized names. This is basically equivalent to using the date format string, "ddd MMM d yyyy". See QDate::toString() for more information.

type Qt__DayOfWeek

type Qt__DayOfWeek = int // core

ConstantValue Qt::Monday1 Qt::Tuesday2 Qt::Wednesday3 Qt::Thursday4 Qt::Friday5 Qt::Saturday6 Qt::Sunday7

const Qt__Friday Qt__DayOfWeek = 5
const Qt__Monday Qt__DayOfWeek = 1
const Qt__Saturday Qt__DayOfWeek = 6
const Qt__Sunday Qt__DayOfWeek = 7
const Qt__Thursday Qt__DayOfWeek = 4
const Qt__Tuesday Qt__DayOfWeek = 2
const Qt__Wednesday Qt__DayOfWeek = 3

type Qt__DockWidgetArea

type Qt__DockWidgetArea = int // core
const Qt__AllDockWidgetAreas Qt__DockWidgetArea = 15
const Qt__BottomDockWidgetArea Qt__DockWidgetArea = 8
const Qt__DockWidgetArea_Mask Qt__DockWidgetArea = 15
const Qt__LeftDockWidgetArea Qt__DockWidgetArea = 1
const Qt__NoDockWidgetArea Qt__DockWidgetArea = 0
const Qt__RightDockWidgetArea Qt__DockWidgetArea = 2
const Qt__TopDockWidgetArea Qt__DockWidgetArea = 4

type Qt__DockWidgetAreaSizes

type Qt__DockWidgetAreaSizes = int // core
const Qt__NDockWidgetAreas Qt__DockWidgetAreaSizes = 4

type Qt__DrawingHint

type Qt__DrawingHint = int // widgets
const Qt__OpaqueAll Qt__DrawingHint = 511
const Qt__OpaqueBottom Qt__DrawingHint = 128
const Qt__OpaqueBottomLeft Qt__DrawingHint = 64
const Qt__OpaqueBottomRight Qt__DrawingHint = 256
const Qt__OpaqueCenter Qt__DrawingHint = 16
const Qt__OpaqueCorners Qt__DrawingHint = 325
const Qt__OpaqueEdges Qt__DrawingHint = 170
const Qt__OpaqueFrame Qt__DrawingHint = 495
const Qt__OpaqueLeft Qt__DrawingHint = 8
const Qt__OpaqueRight Qt__DrawingHint = 32
const Qt__OpaqueTop Qt__DrawingHint = 2
const Qt__OpaqueTopLeft Qt__DrawingHint = 1
const Qt__OpaqueTopRight Qt__DrawingHint = 4

type Qt__DropAction

type Qt__DropAction = int // core
const Qt__ActionMask Qt__DropAction = 255
const Qt__CopyAction Qt__DropAction = 1
const Qt__IgnoreAction Qt__DropAction = 0
const Qt__LinkAction Qt__DropAction = 4
const Qt__MoveAction Qt__DropAction = 2
const Qt__TargetMoveAction Qt__DropAction = 32770

type Qt__Edge

type Qt__Edge = int // core
const Qt__BottomEdge Qt__Edge = 8
const Qt__LeftEdge Qt__Edge = 2
const Qt__RightEdge Qt__Edge = 4
const Qt__TopEdge Qt__Edge = 1

type Qt__EncodingFormat

type Qt__EncodingFormat = int // network

Describes supported encoding formats for certificates and keys.

const Qt__Der Qt__EncodingFormat = 1

The DER format.

const Qt__Pem Qt__EncodingFormat = 0

The PEM format.

type Qt__EnterKeyType

type Qt__EnterKeyType = int // core

This can be used to alter the appearance of the Return key on an on-screen keyboard.

Note: Not all of these values are supported on all platforms. For unsupported values the default key will be used instead.

This enum was introduced or modified in Qt 5.6.

const Qt__EnterKeyDefault Qt__EnterKeyType = 0

The default Enter key. This can either be a button closing the keyboard, or a Return button causing a new line in case of a multi-line input field.

const Qt__EnterKeyDone Qt__EnterKeyType = 2

Show a "Done" button. The keyboard will close when this button is pressed.

const Qt__EnterKeyGo Qt__EnterKeyType = 3

Show a "Go" button. Typically used in an address bar when entering a URL; the keyboard will close when this button is pressed.

const Qt__EnterKeyNext Qt__EnterKeyType = 6

Show a "Next" button. Typically used in a form to allow navigating to the next input field; the keyboard will not close when this button is pressed.

const Qt__EnterKeyPrevious Qt__EnterKeyType = 7

Show a "Previous" button. The keyboard will not close when this button is pressed.

const Qt__EnterKeyReturn Qt__EnterKeyType = 1

Show a Return button that inserts a new line. The keyboard will not close when this button is pressed.

const Qt__EnterKeySearch Qt__EnterKeyType = 5

Show a "Search" button. The keyboard will close when this button is pressed.

const Qt__EnterKeySend Qt__EnterKeyType = 4

Show a "Send" button. The keyboard will close when this button is pressed.

type Qt__EventPriority

type Qt__EventPriority = int // core

This enum can be used to specify event priorities.

Note that these values are provided purely for convenience, since event priorities can be any value between INT_MAX and INT_MIN, inclusive. For example, you can define custom priorities as being relative to each other:

enum CustomEventPriority
{
    // An important event
    ImportantEventPriority = Qt::HighEventPriority,

    // A more important event
    MoreImportantEventPriority = ImportantEventPriority + 1,

    // A critical event
    CriticalEventPriority = 100 * MoreImportantEventPriority,

    // Not that important
    StatusEventPriority = Qt::LowEventPriority,

    // These are less important than Status events
    IdleProcessingDoneEventPriority = StatusEventPriority - 1
};

See also QCoreApplication::postEvent().

const Qt__HighEventPriority Qt__EventPriority = 1

Events with this priority are sent before events with NormalEventPriority or LowEventPriority.

const Qt__LowEventPriority Qt__EventPriority = -1
const Qt__NormalEventPriority Qt__EventPriority = 0

Events with this priority are sent after events with HighEventPriority, but before events with LowEventPriority.

type Qt__FillRule

type Qt__FillRule = int // core

Specifies which method should be used to fill the paths and polygons.

const Qt__OddEvenFill Qt__FillRule = 0

Specifies that the region is filled using the odd even fill rule. With this rule, we determine whether a point is inside the shape by using the following method. Draw a horizontal line from the point to a location outside the shape, and count the number of intersections. If the number of intersections is an odd number, the point is inside the shape. This mode is the default.

const Qt__WindingFill Qt__FillRule = 1

Specifies that the region is filled using the non zero winding rule. With this rule, we determine whether a point is inside the shape by using the following method. Draw a horizontal line from the point to a location outside the shape. Determine whether the direction of the line at each intersection point is up or down. The winding number is determined by summing the direction of each intersection. If the number is non zero, the point is inside the shape. This fill mode can also in most cases be considered as the intersection of closed shapes.

type Qt__FindChildOption

type Qt__FindChildOption = int // core
const Qt__FindChildrenRecursively Qt__FindChildOption = 1
const Qt__FindDirectChildrenOnly Qt__FindChildOption = 0

type Qt__FocusPolicy

type Qt__FocusPolicy = int // core

This enum type defines the various policies a widget can have with respect to acquiring keyboard focus.

const Qt__ClickFocus Qt__FocusPolicy = 2
const Qt__NoFocus Qt__FocusPolicy = 0

the widget does not accept focus.

const Qt__StrongFocus Qt__FocusPolicy = 11
const Qt__TabFocus Qt__FocusPolicy = 1
const Qt__WheelFocus Qt__FocusPolicy = 15

type Qt__FocusReason

type Qt__FocusReason = int // core

This enum specifies why the focus changed. It will be passed through QWidget::setFocus and can be retrieved in the QFocusEvent sent to the widget upon focus change.

See also Keyboard Focus in Widgets.

const Qt__ActiveWindowFocusReason Qt__FocusReason = 3

The window system made this window either active or inactive.

const Qt__BacktabFocusReason Qt__FocusReason = 2

A Backtab occurred. The input for this may include the Shift or Control keys; e.g. Shift+Tab.

const Qt__MenuBarFocusReason Qt__FocusReason = 6

The menu bar took focus.

const Qt__MouseFocusReason Qt__FocusReason = 0

A mouse action occurred.

const Qt__NoFocusReason Qt__FocusReason = 8
const Qt__OtherFocusReason Qt__FocusReason = 7

Another reason, usually application-specific.

const Qt__PopupFocusReason Qt__FocusReason = 4

The application opened/closed a pop-up that grabbed/released the keyboard focus.

const Qt__ShortcutFocusReason Qt__FocusReason = 5

The user typed a label's buddy shortcut

const Qt__TabFocusReason Qt__FocusReason = 1

The Tab key was pressed.

type Qt__GestureFlag

type Qt__GestureFlag = int // core
const Qt__DontStartGestureOnChildren Qt__GestureFlag = 1
const Qt__IgnoredGesturesPropagateToParent Qt__GestureFlag = 4
const Qt__ReceivePartialGestures Qt__GestureFlag = 2

type Qt__GestureState

type Qt__GestureState = int // core

This enum type describes the state of a gesture.

This enum was introduced or modified in Qt 4.6.

See also QGesture.

const Qt__GestureCanceled Qt__GestureState = 4

A gesture was canceled.

const Qt__GestureFinished Qt__GestureState = 3

A gesture has finished.

const Qt__GestureStarted Qt__GestureState = 1

A continuous gesture has started.

const Qt__GestureUpdated Qt__GestureState = 2

A gesture continues.

const Qt__NoGesture Qt__GestureState = 0

No gesture has been detected.

type Qt__GestureType

type Qt__GestureType = int // core

This enum type describes the standard gestures.

User-defined gestures are registered with the QGestureRecognizer::registerRecognizer() function which generates a custom gesture ID with the Qt::CustomGesture flag set.

This enum was introduced or modified in Qt 4.6.

See also QGesture, QWidget::grabGesture(), and QGraphicsObject::grabGesture().

const Qt__CustomGesture Qt__GestureType = 256
const Qt__LastGestureType Qt__GestureType = -1
const Qt__PanGesture Qt__GestureType = 3

A Pan gesture.

const Qt__PinchGesture Qt__GestureType = 4

A Pinch gesture.

const Qt__SwipeGesture Qt__GestureType = 5

A Swipe gesture.

const Qt__TapAndHoldGesture Qt__GestureType = 2

A Tap-And-Hold (Long-Tap) gesture.

const Qt__TapGesture Qt__GestureType = 1

A Tap gesture.

type Qt__GlobalColor

type Qt__GlobalColor = int // core

Qt's predefined QColor objects:

See also QColor.

const Qt__black Qt__GlobalColor = 2
const Qt__blue Qt__GlobalColor = 9
const Qt__color0 Qt__GlobalColor = 0
const Qt__color1 Qt__GlobalColor = 1
const Qt__cyan Qt__GlobalColor = 10
const Qt__darkBlue Qt__GlobalColor = 15
const Qt__darkCyan Qt__GlobalColor = 16
const Qt__darkGray Qt__GlobalColor = 4
const Qt__darkGreen Qt__GlobalColor = 14
const Qt__darkMagenta Qt__GlobalColor = 17
const Qt__darkRed Qt__GlobalColor = 13
const Qt__darkYellow Qt__GlobalColor = 18
const Qt__gray Qt__GlobalColor = 5
const Qt__green Qt__GlobalColor = 8
const Qt__lightGray Qt__GlobalColor = 6
const Qt__magenta Qt__GlobalColor = 11
const Qt__red Qt__GlobalColor = 7
const Qt__transparent Qt__GlobalColor = 19
const Qt__white Qt__GlobalColor = 3

White (#ffffff)

const Qt__yellow Qt__GlobalColor = 12

type Qt__HBitmapFormat

type Qt__HBitmapFormat = int // winextras
const Qt__HBitmapAlpha Qt__HBitmapFormat = 2
const Qt__HBitmapNoAlpha Qt__HBitmapFormat = 0
const Qt__HBitmapPremultipliedAlpha Qt__HBitmapFormat = 1

type Qt__HitTestAccuracy

type Qt__HitTestAccuracy = int // core

This enum contains the types of accuracy that can be used by the QTextDocument class when testing for mouse clicks on text documents.

const Qt__ExactHit Qt__HitTestAccuracy = 0

The point at which input occurred must coincide exactly with input-sensitive parts of the document.

const Qt__FuzzyHit Qt__HitTestAccuracy = 1

The point at which input occurred can lie close to input-sensitive parts of the document.

type Qt__ImageConversionFlag

type Qt__ImageConversionFlag = int // core
const Qt__AlphaDither_Mask Qt__ImageConversionFlag = 12
const Qt__AutoColor Qt__ImageConversionFlag = 0
const Qt__AutoDither Qt__ImageConversionFlag = 0
const Qt__AvoidDither Qt__ImageConversionFlag = 128
const Qt__ColorMode_Mask Qt__ImageConversionFlag = 3
const Qt__ColorOnly Qt__ImageConversionFlag = 3
const Qt__DiffuseAlphaDither Qt__ImageConversionFlag = 8
const Qt__DiffuseDither Qt__ImageConversionFlag = 0
const Qt__DitherMode_Mask Qt__ImageConversionFlag = 192
const Qt__Dither_Mask Qt__ImageConversionFlag = 48
const Qt__MonoOnly Qt__ImageConversionFlag = 2
const Qt__NoAlpha Qt__ImageConversionFlag = 12
const Qt__NoFormatConversion Qt__ImageConversionFlag = 512
const Qt__NoOpaqueDetection Qt__ImageConversionFlag = 256
const Qt__OrderedAlphaDither Qt__ImageConversionFlag = 4
const Qt__OrderedDither Qt__ImageConversionFlag = 16
const Qt__PreferDither Qt__ImageConversionFlag = 64
const Qt__ThresholdAlphaDither Qt__ImageConversionFlag = 0
const Qt__ThresholdDither Qt__ImageConversionFlag = 32

type Qt__Initialization

type Qt__Initialization = int // core
const Qt__Uninitialized Qt__Initialization = 0

type Qt__InputMethodHint

type Qt__InputMethodHint = int // core
const Qt__ImhDate Qt__InputMethodHint = 128
const Qt__ImhDialableCharactersOnly Qt__InputMethodHint = 1048576
const Qt__ImhDigitsOnly Qt__InputMethodHint = 65536
const Qt__ImhEmailCharactersOnly Qt__InputMethodHint = 2097152
const Qt__ImhExclusiveInputMask Qt__InputMethodHint = -65536
const Qt__ImhFormattedNumbersOnly Qt__InputMethodHint = 131072
const Qt__ImhHiddenText Qt__InputMethodHint = 1
const Qt__ImhLatinOnly Qt__InputMethodHint = 8388608
const Qt__ImhLowercaseOnly Qt__InputMethodHint = 524288
const Qt__ImhMultiLine Qt__InputMethodHint = 1024
const Qt__ImhNoAutoUppercase Qt__InputMethodHint = 4
const Qt__ImhNoPredictiveText Qt__InputMethodHint = 64
const Qt__ImhNone Qt__InputMethodHint = 0
const Qt__ImhPreferLatin Qt__InputMethodHint = 512
const Qt__ImhPreferLowercase Qt__InputMethodHint = 32
const Qt__ImhPreferNumbers Qt__InputMethodHint = 8
const Qt__ImhPreferUppercase Qt__InputMethodHint = 16
const Qt__ImhSensitiveData Qt__InputMethodHint = 2
const Qt__ImhTime Qt__InputMethodHint = 256
const Qt__ImhUppercaseOnly Qt__InputMethodHint = 262144
const Qt__ImhUrlCharactersOnly Qt__InputMethodHint = 4194304

type Qt__InputMethodQuery

type Qt__InputMethodQuery = int // core
const Qt__ImAbsolutePosition Qt__InputMethodQuery = 1024
const Qt__ImAnchorPosition Qt__InputMethodQuery = 128
const Qt__ImAnchorRectangle Qt__InputMethodQuery = 16384
const Qt__ImCurrentSelection Qt__InputMethodQuery = 32
const Qt__ImCursorPosition Qt__InputMethodQuery = 8
const Qt__ImCursorRectangle Qt__InputMethodQuery = 2
const Qt__ImEnabled Qt__InputMethodQuery = 1
const Qt__ImEnterKeyType Qt__InputMethodQuery = 8192
const Qt__ImFont Qt__InputMethodQuery = 4
const Qt__ImHints Qt__InputMethodQuery = 256
const Qt__ImInputItemClipRectangle Qt__InputMethodQuery = 32768
const Qt__ImMaximumTextLength Qt__InputMethodQuery = 64
const Qt__ImMicroFocus Qt__InputMethodQuery = 2
const Qt__ImPlatformData Qt__InputMethodQuery = -2147483648
const Qt__ImPreferredLanguage Qt__InputMethodQuery = 512
const Qt__ImQueryAll Qt__InputMethodQuery = -1
const Qt__ImQueryInput Qt__InputMethodQuery = 16570
const Qt__ImSurroundingText Qt__InputMethodQuery = 16
const Qt__ImTextAfterCursor Qt__InputMethodQuery = 4096
const Qt__ImTextBeforeCursor Qt__InputMethodQuery = 2048

type Qt__ItemDataRole

type Qt__ItemDataRole = int // core

Each item in the model has a set of data elements associated with it, each with its own role. The roles are used by the view to indicate to the model which type of data it needs. Custom models should return data in these types.

The general purpose roles (and the associated types) are:

Roles describing appearance and meta data (with associated types):

Accessibility roles (with associated types):

User roles:

For user roles, it is up to the developer to decide which types to use and ensure that components use the correct types when accessing and setting data.

const Qt__AccessibleDescriptionRole Qt__ItemDataRole = 12
const Qt__AccessibleTextRole Qt__ItemDataRole = 11
const Qt__BackgroundColorRole Qt__ItemDataRole = 8

This role is obsolete. Use BackgroundRole instead.

const Qt__BackgroundRole Qt__ItemDataRole = 8

The background brush used for items rendered with the default delegate. (QBrush)

const Qt__CheckStateRole Qt__ItemDataRole = 10
const Qt__DecorationPropertyRole Qt__ItemDataRole = 28
const Qt__DecorationRole Qt__ItemDataRole = 1

The data to be rendered as a decoration in the form of an icon. (QColor, QIcon or QPixmap)

const Qt__DisplayPropertyRole Qt__ItemDataRole = 27
const Qt__DisplayRole Qt__ItemDataRole = 0

The key data to be rendered in the form of text. (QString)

const Qt__EditRole Qt__ItemDataRole = 2

The data in a form suitable for editing in an editor. (QString)

const Qt__FontRole Qt__ItemDataRole = 6

The font used for items rendered with the default delegate. (QFont)

const Qt__ForegroundRole Qt__ItemDataRole = 9

The foreground brush (text color, typically) used for items rendered with the default delegate. (QBrush)

const Qt__InitialSortOrderRole Qt__ItemDataRole = 14
const Qt__SizeHintRole Qt__ItemDataRole = 13
const Qt__StatusTipPropertyRole Qt__ItemDataRole = 30
const Qt__StatusTipRole Qt__ItemDataRole = 4

The data displayed in the status bar. (QString)

const Qt__TextAlignmentRole Qt__ItemDataRole = 7

The alignment of the text for items rendered with the default delegate. (Qt::Alignment)

const Qt__TextColorRole Qt__ItemDataRole = 9

This role is obsolete. Use ForegroundRole instead.

const Qt__ToolTipPropertyRole Qt__ItemDataRole = 29
const Qt__ToolTipRole Qt__ItemDataRole = 3

The data displayed in the item's tooltip. (QString)

const Qt__UserRole Qt__ItemDataRole = 256
const Qt__WhatsThisPropertyRole Qt__ItemDataRole = 31
const Qt__WhatsThisRole Qt__ItemDataRole = 5

The data displayed for the item in "What's This?" mode. (QString)

type Qt__ItemFlag

type Qt__ItemFlag = int // core
const Qt__ItemIsAutoTristate Qt__ItemFlag = 64
const Qt__ItemIsDragEnabled Qt__ItemFlag = 4
const Qt__ItemIsDropEnabled Qt__ItemFlag = 8
const Qt__ItemIsEditable Qt__ItemFlag = 2
const Qt__ItemIsEnabled Qt__ItemFlag = 32
const Qt__ItemIsSelectable Qt__ItemFlag = 1
const Qt__ItemIsTristate Qt__ItemFlag = 64
const Qt__ItemIsUserCheckable Qt__ItemFlag = 16
const Qt__ItemIsUserTristate Qt__ItemFlag = 256
const Qt__ItemNeverHasChildren Qt__ItemFlag = 128
const Qt__NoItemFlags Qt__ItemFlag = 0

type Qt__ItemSelectionMode

type Qt__ItemSelectionMode = int // core

This enum is used in QGraphicsItem, QGraphicsScene and QGraphicsView to specify how items are selected, or how to determine if shapes and items collide.

See also QGraphicsScene::items(), QGraphicsScene::collidingItems(), QGraphicsView::items(), QGraphicsItem::collidesWithItem(), and QGraphicsItem::collidesWithPath().

const Qt__ContainsItemBoundingRect Qt__ItemSelectionMode = 2
const Qt__ContainsItemShape Qt__ItemSelectionMode = 0
const Qt__IntersectsItemBoundingRect Qt__ItemSelectionMode = 3
const Qt__IntersectsItemShape Qt__ItemSelectionMode = 1

type Qt__ItemSelectionOperation

type Qt__ItemSelectionOperation = int // core

This enum is used in QGraphicsScene to specify what to do with currently selected items when setting a selection area.

See also QGraphicsScene::setSelectionArea().

const Qt__AddToSelection Qt__ItemSelectionOperation = 1

The items in the selection area are added to the currently selected items.

const Qt__ReplaceSelection Qt__ItemSelectionOperation = 0

The currently selected items are replaced by items in the selection area.

type Qt__IteratorCapability

type Qt__IteratorCapability = int // core
const Qt__BiDirectionalCapability Qt__IteratorCapability = 2
const Qt__ForwardCapability Qt__IteratorCapability = 1
const Qt__RandomAccessCapability Qt__IteratorCapability = 4

type Qt__Key

type Qt__Key = int // core

The key names used by Qt.

Qt::Key_AnyKey_Space

See also QKeyEvent::key().

const Qt__Key_0 Qt__Key = 48
const Qt__Key_1 Qt__Key = 49
const Qt__Key_2 Qt__Key = 50
const Qt__Key_3 Qt__Key = 51
const Qt__Key_4 Qt__Key = 52
const Qt__Key_5 Qt__Key = 53
const Qt__Key_6 Qt__Key = 54
const Qt__Key_7 Qt__Key = 55
const Qt__Key_8 Qt__Key = 56
const Qt__Key_9 Qt__Key = 57
const Qt__Key_A Qt__Key = 65
const Qt__Key_AE Qt__Key = 198
const Qt__Key_Aacute Qt__Key = 193
const Qt__Key_Acircumflex Qt__Key = 194
const Qt__Key_AddFavorite Qt__Key = 16777408
const Qt__Key_Adiaeresis Qt__Key = 196
const Qt__Key_Agrave Qt__Key = 192
const Qt__Key_Alt Qt__Key = 16777251
const Qt__Key_AltGr Qt__Key = 16781571
const Qt__Key_Ampersand Qt__Key = 38
const Qt__Key_Any Qt__Key = 32
const Qt__Key_Apostrophe Qt__Key = 39
const Qt__Key_ApplicationLeft Qt__Key = 16777415
const Qt__Key_ApplicationRight Qt__Key = 16777416
const Qt__Key_Aring Qt__Key = 197
const Qt__Key_AsciiCircum Qt__Key = 94
const Qt__Key_AsciiTilde Qt__Key = 126
const Qt__Key_Asterisk Qt__Key = 42
const Qt__Key_At Qt__Key = 64
const Qt__Key_Atilde Qt__Key = 195
const Qt__Key_AudioCycleTrack Qt__Key = 16777478
const Qt__Key_AudioForward Qt__Key = 16777474
const Qt__Key_AudioRandomPlay Qt__Key = 16777476
const Qt__Key_AudioRepeat Qt__Key = 16777475
const Qt__Key_AudioRewind Qt__Key = 16777413
const Qt__Key_Away Qt__Key = 16777464
const Qt__Key_B Qt__Key = 66
const Qt__Key_Back Qt__Key = 16777313
const Qt__Key_BackForward Qt__Key = 16777414
const Qt__Key_Backslash Qt__Key = 92
const Qt__Key_Backspace Qt__Key = 16777219
const Qt__Key_Backtab Qt__Key = 16777218
const Qt__Key_Bar Qt__Key = 124
const Qt__Key_BassBoost Qt__Key = 16777331
const Qt__Key_BassDown Qt__Key = 16777333
const Qt__Key_BassUp Qt__Key = 16777332
const Qt__Key_Battery Qt__Key = 16777470
const Qt__Key_Blue Qt__Key = 16777495
const Qt__Key_Bluetooth Qt__Key = 16777471
const Qt__Key_Book Qt__Key = 16777417
const Qt__Key_BraceLeft Qt__Key = 123
const Qt__Key_BraceRight Qt__Key = 125
const Qt__Key_BracketLeft Qt__Key = 91
const Qt__Key_BracketRight Qt__Key = 93
const Qt__Key_BrightnessAdjust Qt__Key = 16777410
const Qt__Key_C Qt__Key = 67
const Qt__Key_CD Qt__Key = 16777418
const Qt__Key_Calculator Qt__Key = 16777419
const Qt__Key_Calendar Qt__Key = 16777444
const Qt__Key_Call Qt__Key = 17825796
const Qt__Key_Camera Qt__Key = 17825824
const Qt__Key_CameraFocus Qt__Key = 17825825
const Qt__Key_Cancel Qt__Key = 16908289
const Qt__Key_CapsLock Qt__Key = 16777252
const Qt__Key_Ccedilla Qt__Key = 199
const Qt__Key_ChannelDown Qt__Key = 16777497
const Qt__Key_ChannelUp Qt__Key = 16777496
const Qt__Key_Clear Qt__Key = 16777227
const Qt__Key_ClearGrab Qt__Key = 16777421
const Qt__Key_Close Qt__Key = 16777422
const Qt__Key_Codeinput Qt__Key = 16781623
const Qt__Key_Colon Qt__Key = 58
const Qt__Key_Comma Qt__Key = 44
const Qt__Key_Community Qt__Key = 16777412
const Qt__Key_Context1 Qt__Key = 17825792
const Qt__Key_Context2 Qt__Key = 17825793
const Qt__Key_Context3 Qt__Key = 17825794
const Qt__Key_Context4 Qt__Key = 17825795
const Qt__Key_ContrastAdjust Qt__Key = 16777485
const Qt__Key_Control Qt__Key = 16777249
const Qt__Key_Copy Qt__Key = 16777423
const Qt__Key_Cut Qt__Key = 16777424
const Qt__Key_D Qt__Key = 68
const Qt__Key_DOS Qt__Key = 16777426
const Qt__Key_Dead_Abovedot Qt__Key = 16781910
const Qt__Key_Dead_Abovering Qt__Key = 16781912
const Qt__Key_Dead_Acute Qt__Key = 16781905
const Qt__Key_Dead_Belowdot Qt__Key = 16781920
const Qt__Key_Dead_Breve Qt__Key = 16781909
const Qt__Key_Dead_Caron Qt__Key = 16781914
const Qt__Key_Dead_Cedilla Qt__Key = 16781915
const Qt__Key_Dead_Circumflex Qt__Key = 16781906
const Qt__Key_Dead_Diaeresis Qt__Key = 16781911
const Qt__Key_Dead_Doubleacute Qt__Key = 16781913
const Qt__Key_Dead_Grave Qt__Key = 16781904
const Qt__Key_Dead_Hook Qt__Key = 16781921
const Qt__Key_Dead_Horn Qt__Key = 16781922
const Qt__Key_Dead_Iota Qt__Key = 16781917
const Qt__Key_Dead_Macron Qt__Key = 16781908
const Qt__Key_Dead_Ogonek Qt__Key = 16781916
const Qt__Key_Dead_Semivoiced_Sound Qt__Key = 16781919
const Qt__Key_Dead_Tilde Qt__Key = 16781907
const Qt__Key_Dead_Voiced_Sound Qt__Key = 16781918
const Qt__Key_Delete Qt__Key = 16777223
const Qt__Key_Direction_L Qt__Key = 16777305
const Qt__Key_Direction_R Qt__Key = 16777312
const Qt__Key_Display Qt__Key = 16777425
const Qt__Key_Documents Qt__Key = 16777427
const Qt__Key_Dollar Qt__Key = 36
const Qt__Key_Down Qt__Key = 16777237
const Qt__Key_E Qt__Key = 69
const Qt__Key_ETH Qt__Key = 208
const Qt__Key_Eacute Qt__Key = 201
const Qt__Key_Ecircumflex Qt__Key = 202
const Qt__Key_Ediaeresis Qt__Key = 203
const Qt__Key_Egrave Qt__Key = 200
const Qt__Key_Eisu_Shift Qt__Key = 16781615
const Qt__Key_Eisu_toggle Qt__Key = 16781616
const Qt__Key_Eject Qt__Key = 16777401
const Qt__Key_End Qt__Key = 16777233
const Qt__Key_Enter Qt__Key = 16777221
const Qt__Key_Equal Qt__Key = 61
const Qt__Key_Escape Qt__Key = 16777216
const Qt__Key_Excel Qt__Key = 16777428
const Qt__Key_Exclam Qt__Key = 33
const Qt__Key_Execute Qt__Key = 16908291
const Qt__Key_Exit Qt__Key = 16908298
const Qt__Key_Explorer Qt__Key = 16777429
const Qt__Key_F Qt__Key = 70
const Qt__Key_F1 Qt__Key = 16777264
const Qt__Key_F10 Qt__Key = 16777273
const Qt__Key_F11 Qt__Key = 16777274
const Qt__Key_F12 Qt__Key = 16777275
const Qt__Key_F13 Qt__Key = 16777276
const Qt__Key_F14 Qt__Key = 16777277
const Qt__Key_F15 Qt__Key = 16777278
const Qt__Key_F16 Qt__Key = 16777279
const Qt__Key_F17 Qt__Key = 16777280
const Qt__Key_F18 Qt__Key = 16777281
const Qt__Key_F19 Qt__Key = 16777282
const Qt__Key_F2 Qt__Key = 16777265
const Qt__Key_F20 Qt__Key = 16777283
const Qt__Key_F21 Qt__Key = 16777284
const Qt__Key_F22 Qt__Key = 16777285
const Qt__Key_F23 Qt__Key = 16777286
const Qt__Key_F24 Qt__Key = 16777287
const Qt__Key_F25 Qt__Key = 16777288
const Qt__Key_F26 Qt__Key = 16777289
const Qt__Key_F27 Qt__Key = 16777290
const Qt__Key_F28 Qt__Key = 16777291
const Qt__Key_F29 Qt__Key = 16777292
const Qt__Key_F3 Qt__Key = 16777266
const Qt__Key_F30 Qt__Key = 16777293
const Qt__Key_F31 Qt__Key = 16777294
const Qt__Key_F32 Qt__Key = 16777295
const Qt__Key_F33 Qt__Key = 16777296
const Qt__Key_F34 Qt__Key = 16777297
const Qt__Key_F35 Qt__Key = 16777298
const Qt__Key_F4 Qt__Key = 16777267
const Qt__Key_F5 Qt__Key = 16777268
const Qt__Key_F6 Qt__Key = 16777269
const Qt__Key_F7 Qt__Key = 16777270
const Qt__Key_F8 Qt__Key = 16777271
const Qt__Key_F9 Qt__Key = 16777272
const Qt__Key_Favorites Qt__Key = 16777361
const Qt__Key_Finance Qt__Key = 16777411
const Qt__Key_Find Qt__Key = 16777506
const Qt__Key_Flip Qt__Key = 17825798
const Qt__Key_Forward Qt__Key = 16777314
const Qt__Key_G Qt__Key = 71
const Qt__Key_Game Qt__Key = 16777430
const Qt__Key_Go Qt__Key = 16777431
const Qt__Key_Greater Qt__Key = 62
const Qt__Key_Green Qt__Key = 16777493
const Qt__Key_Guide Qt__Key = 16777498
const Qt__Key_H Qt__Key = 72
const Qt__Key_Hangul Qt__Key = 16781617
const Qt__Key_Hangul_Banja Qt__Key = 16781625
const Qt__Key_Hangul_End Qt__Key = 16781619
const Qt__Key_Hangul_Hanja Qt__Key = 16781620
const Qt__Key_Hangul_Jamo Qt__Key = 16781621
const Qt__Key_Hangul_Jeonja Qt__Key = 16781624
const Qt__Key_Hangul_PostHanja Qt__Key = 16781627
const Qt__Key_Hangul_PreHanja Qt__Key = 16781626
const Qt__Key_Hangul_Romaja Qt__Key = 16781622
const Qt__Key_Hangul_Special Qt__Key = 16781631
const Qt__Key_Hangul_Start Qt__Key = 16781618
const Qt__Key_Hangup Qt__Key = 17825797
const Qt__Key_Hankaku Qt__Key = 16781609
const Qt__Key_Help Qt__Key = 16777304
const Qt__Key_Henkan Qt__Key = 16781603
const Qt__Key_Hibernate Qt__Key = 16777480
const Qt__Key_Hiragana Qt__Key = 16781605
const Qt__Key_Hiragana_Katakana Qt__Key = 16781607
const Qt__Key_History Qt__Key = 16777407
const Qt__Key_Home Qt__Key = 16777232
const Qt__Key_HomePage Qt__Key = 16777360
const Qt__Key_HotLinks Qt__Key = 16777409
const Qt__Key_Hyper_L Qt__Key = 16777302
const Qt__Key_Hyper_R Qt__Key = 16777303
const Qt__Key_I Qt__Key = 73
const Qt__Key_Iacute Qt__Key = 205
const Qt__Key_Icircumflex Qt__Key = 206
const Qt__Key_Idiaeresis Qt__Key = 207
const Qt__Key_Igrave Qt__Key = 204
const Qt__Key_Info Qt__Key = 16777499
const Qt__Key_Insert Qt__Key = 16777222
const Qt__Key_J Qt__Key = 74
const Qt__Key_K Qt__Key = 75
const Qt__Key_Kana_Lock Qt__Key = 16781613
const Qt__Key_Kana_Shift Qt__Key = 16781614
const Qt__Key_Kanji Qt__Key = 16781601
const Qt__Key_Katakana Qt__Key = 16781606
const Qt__Key_KeyboardBrightnessDown Qt__Key = 16777398
const Qt__Key_KeyboardBrightnessUp Qt__Key = 16777397
const Qt__Key_KeyboardLightOnOff Qt__Key = 16777396
const Qt__Key_L Qt__Key = 76
const Qt__Key_LastNumberRedial Qt__Key = 17825801
const Qt__Key_Launch0 Qt__Key = 16777378
const Qt__Key_Launch1 Qt__Key = 16777379
const Qt__Key_Launch2 Qt__Key = 16777380
const Qt__Key_Launch3 Qt__Key = 16777381
const Qt__Key_Launch4 Qt__Key = 16777382
const Qt__Key_Launch5 Qt__Key = 16777383
const Qt__Key_Launch6 Qt__Key = 16777384
const Qt__Key_Launch7 Qt__Key = 16777385
const Qt__Key_Launch8 Qt__Key = 16777386
const Qt__Key_Launch9 Qt__Key = 16777387
const Qt__Key_LaunchA Qt__Key = 16777388
const Qt__Key_LaunchB Qt__Key = 16777389
const Qt__Key_LaunchC Qt__Key = 16777390
const Qt__Key_LaunchD Qt__Key = 16777391
const Qt__Key_LaunchE Qt__Key = 16777392
const Qt__Key_LaunchF Qt__Key = 16777393
const Qt__Key_LaunchG Qt__Key = 16777486
const Qt__Key_LaunchH Qt__Key = 16777487
const Qt__Key_LaunchMail Qt__Key = 16777376
const Qt__Key_LaunchMedia Qt__Key = 16777377
const Qt__Key_Left Qt__Key = 16777234
const Qt__Key_Less Qt__Key = 60
const Qt__Key_LightBulb Qt__Key = 16777405
const Qt__Key_LogOff Qt__Key = 16777433
const Qt__Key_M Qt__Key = 77
const Qt__Key_MailForward Qt__Key = 16777467
const Qt__Key_Market Qt__Key = 16777434
const Qt__Key_Massyo Qt__Key = 16781612
const Qt__Key_MediaLast Qt__Key = 16842751
const Qt__Key_MediaNext Qt__Key = 16777347
const Qt__Key_MediaPause Qt__Key = 16777349
const Qt__Key_MediaPlay Qt__Key = 16777344
const Qt__Key_MediaPrevious Qt__Key = 16777346
const Qt__Key_MediaRecord Qt__Key = 16777348
const Qt__Key_MediaStop Qt__Key = 16777345
const Qt__Key_MediaTogglePlayPause Qt__Key = 16777350
const Qt__Key_Meeting Qt__Key = 16777435
const Qt__Key_Memo Qt__Key = 16777404
const Qt__Key_Menu Qt__Key = 16777301
const Qt__Key_MenuKB Qt__Key = 16777436
const Qt__Key_MenuPB Qt__Key = 16777437
const Qt__Key_Messenger Qt__Key = 16777465
const Qt__Key_Meta Qt__Key = 16777250
const Qt__Key_MicMute Qt__Key = 16777491
const Qt__Key_MicVolumeDown Qt__Key = 16777502
const Qt__Key_MicVolumeUp Qt__Key = 16777501
const Qt__Key_Minus Qt__Key = 45
const Qt__Key_Mode_switch Qt__Key = 16781694
const Qt__Key_MonBrightnessDown Qt__Key = 16777395
const Qt__Key_MonBrightnessUp Qt__Key = 16777394
const Qt__Key_Muhenkan Qt__Key = 16781602
const Qt__Key_Multi_key Qt__Key = 16781600
const Qt__Key_MultipleCandidate Qt__Key = 16781629
const Qt__Key_Music Qt__Key = 16777469
const Qt__Key_MySites Qt__Key = 16777438
const Qt__Key_N Qt__Key = 78
const Qt__Key_New Qt__Key = 16777504
const Qt__Key_News Qt__Key = 16777439
const Qt__Key_No Qt__Key = 16842754
const Qt__Key_Ntilde Qt__Key = 209
const Qt__Key_NumLock Qt__Key = 16777253
const Qt__Key_NumberSign Qt__Key = 35
const Qt__Key_O Qt__Key = 79
const Qt__Key_Oacute Qt__Key = 211
const Qt__Key_Ocircumflex Qt__Key = 212
const Qt__Key_Odiaeresis Qt__Key = 214
const Qt__Key_OfficeHome Qt__Key = 16777440
const Qt__Key_Ograve Qt__Key = 210
const Qt__Key_Ooblique Qt__Key = 216
const Qt__Key_Open Qt__Key = 16777505
const Qt__Key_OpenUrl Qt__Key = 16777364
const Qt__Key_Option Qt__Key = 16777441
const Qt__Key_Otilde Qt__Key = 213
const Qt__Key_P Qt__Key = 80
const Qt__Key_PageDown Qt__Key = 16777239
const Qt__Key_PageUp Qt__Key = 16777238
const Qt__Key_ParenLeft Qt__Key = 40
const Qt__Key_ParenRight Qt__Key = 41
const Qt__Key_Paste Qt__Key = 16777442
const Qt__Key_Pause Qt__Key = 16777224
const Qt__Key_Percent Qt__Key = 37
const Qt__Key_Period Qt__Key = 46
const Qt__Key_Phone Qt__Key = 16777443
const Qt__Key_Pictures Qt__Key = 16777468
const Qt__Key_Play Qt__Key = 16908293
const Qt__Key_Plus Qt__Key = 43
const Qt__Key_PowerDown Qt__Key = 16777483
const Qt__Key_PowerOff Qt__Key = 16777399
const Qt__Key_PreviousCandidate Qt__Key = 16781630
const Qt__Key_Print Qt__Key = 16777225
const Qt__Key_Printer Qt__Key = 16908290
const Qt__Key_Q Qt__Key = 81
const Qt__Key_Question Qt__Key = 63
const Qt__Key_QuoteDbl Qt__Key = 34
const Qt__Key_QuoteLeft Qt__Key = 96
const Qt__Key_R Qt__Key = 82
const Qt__Key_Red Qt__Key = 16777492
const Qt__Key_Redo Qt__Key = 16777508
const Qt__Key_Refresh Qt__Key = 16777316
const Qt__Key_Reload Qt__Key = 16777446
const Qt__Key_Reply Qt__Key = 16777445
const Qt__Key_Return Qt__Key = 16777220
const Qt__Key_Right Qt__Key = 16777236
const Qt__Key_Romaji Qt__Key = 16781604
const Qt__Key_RotateWindows Qt__Key = 16777447
const Qt__Key_RotationKB Qt__Key = 16777449
const Qt__Key_RotationPB Qt__Key = 16777448
const Qt__Key_S Qt__Key = 83
const Qt__Key_Save Qt__Key = 16777450
const Qt__Key_ScreenSaver Qt__Key = 16777402
const Qt__Key_ScrollLock Qt__Key = 16777254
const Qt__Key_Search Qt__Key = 16777362
const Qt__Key_Select Qt__Key = 16842752
const Qt__Key_Semicolon Qt__Key = 59
const Qt__Key_Send Qt__Key = 16777451
const Qt__Key_Settings Qt__Key = 16777500
const Qt__Key_Shift Qt__Key = 16777248
const Qt__Key_Shop Qt__Key = 16777406
const Qt__Key_SingleCandidate Qt__Key = 16781628
const Qt__Key_Slash Qt__Key = 47
const Qt__Key_Sleep Qt__Key = 16908292
const Qt__Key_Space Qt__Key = 32
const Qt__Key_Spell Qt__Key = 16777452
const Qt__Key_SplitScreen Qt__Key = 16777453
const Qt__Key_Standby Qt__Key = 16777363
const Qt__Key_Stop Qt__Key = 16777315
const Qt__Key_Subtitle Qt__Key = 16777477
const Qt__Key_Super_L Qt__Key = 16777299
const Qt__Key_Super_R Qt__Key = 16777300
const Qt__Key_Support Qt__Key = 16777454
const Qt__Key_Suspend Qt__Key = 16777484
const Qt__Key_SysReq Qt__Key = 16777226
const Qt__Key_T Qt__Key = 84
const Qt__Key_THORN Qt__Key = 222
const Qt__Key_Tab Qt__Key = 16777217
const Qt__Key_TaskPane Qt__Key = 16777455
const Qt__Key_Terminal Qt__Key = 16777456
const Qt__Key_Time Qt__Key = 16777479
const Qt__Key_ToDoList Qt__Key = 16777420
const Qt__Key_ToggleCallHangup Qt__Key = 17825799
const Qt__Key_Tools Qt__Key = 16777457
const Qt__Key_TopMenu Qt__Key = 16777482
const Qt__Key_TouchpadOff Qt__Key = 16777490
const Qt__Key_TouchpadOn Qt__Key = 16777489
const Qt__Key_TouchpadToggle Qt__Key = 16777488
const Qt__Key_Touroku Qt__Key = 16781611
const Qt__Key_Travel Qt__Key = 16777458
const Qt__Key_TrebleDown Qt__Key = 16777335
const Qt__Key_TrebleUp Qt__Key = 16777334
const Qt__Key_U Qt__Key = 85
const Qt__Key_UWB Qt__Key = 16777473
const Qt__Key_Uacute Qt__Key = 218
const Qt__Key_Ucircumflex Qt__Key = 219
const Qt__Key_Udiaeresis Qt__Key = 220
const Qt__Key_Ugrave Qt__Key = 217
const Qt__Key_Underscore Qt__Key = 95
const Qt__Key_Undo Qt__Key = 16777507
const Qt__Key_Up Qt__Key = 16777235
const Qt__Key_V Qt__Key = 86
const Qt__Key_Video Qt__Key = 16777459
const Qt__Key_View Qt__Key = 16777481
const Qt__Key_VoiceDial Qt__Key = 17825800
const Qt__Key_VolumeDown Qt__Key = 16777328
const Qt__Key_VolumeMute Qt__Key = 16777329
const Qt__Key_VolumeUp Qt__Key = 16777330
const Qt__Key_W Qt__Key = 87
const Qt__Key_WLAN Qt__Key = 16777472
const Qt__Key_WWW Qt__Key = 16777403
const Qt__Key_WakeUp Qt__Key = 16777400
const Qt__Key_WebCam Qt__Key = 16777466
const Qt__Key_Word Qt__Key = 16777460
const Qt__Key_X Qt__Key = 88
const Qt__Key_Xfer Qt__Key = 16777461
const Qt__Key_Y Qt__Key = 89
const Qt__Key_Yacute Qt__Key = 221
const Qt__Key_Yellow Qt__Key = 16777494
const Qt__Key_Yes Qt__Key = 16842753
const Qt__Key_Z Qt__Key = 90
const Qt__Key_Zenkaku Qt__Key = 16781608
const Qt__Key_Zenkaku_Hankaku Qt__Key = 16781610
const Qt__Key_Zoom Qt__Key = 16908294
const Qt__Key_ZoomIn Qt__Key = 16777462
const Qt__Key_ZoomOut Qt__Key = 16777463
const Qt__Key_acute Qt__Key = 180
const Qt__Key_brokenbar Qt__Key = 166
const Qt__Key_cedilla Qt__Key = 184
const Qt__Key_cent Qt__Key = 162
const Qt__Key_copyright Qt__Key = 169
const Qt__Key_currency Qt__Key = 164
const Qt__Key_degree Qt__Key = 176
const Qt__Key_diaeresis Qt__Key = 168
const Qt__Key_division Qt__Key = 247
const Qt__Key_exclamdown Qt__Key = 161
const Qt__Key_guillemotleft Qt__Key = 171
const Qt__Key_guillemotright Qt__Key = 187
const Qt__Key_hyphen Qt__Key = 173
const Qt__Key_iTouch Qt__Key = 16777432
const Qt__Key_macron Qt__Key = 175
const Qt__Key_masculine Qt__Key = 186
const Qt__Key_mu Qt__Key = 181
const Qt__Key_multiply Qt__Key = 215
const Qt__Key_nobreakspace Qt__Key = 160
const Qt__Key_notsign Qt__Key = 172
const Qt__Key_onehalf Qt__Key = 189
const Qt__Key_onequarter Qt__Key = 188
const Qt__Key_onesuperior Qt__Key = 185
const Qt__Key_ordfeminine Qt__Key = 170
const Qt__Key_paragraph Qt__Key = 182
const Qt__Key_periodcentered Qt__Key = 183
const Qt__Key_plusminus Qt__Key = 177
const Qt__Key_questiondown Qt__Key = 191
const Qt__Key_registered Qt__Key = 174
const Qt__Key_section Qt__Key = 167
const Qt__Key_ssharp Qt__Key = 223
const Qt__Key_sterling Qt__Key = 163
const Qt__Key_threequarters Qt__Key = 190
const Qt__Key_threesuperior Qt__Key = 179
const Qt__Key_twosuperior Qt__Key = 178
const Qt__Key_unknown Qt__Key = 33554431
const Qt__Key_ydiaeresis Qt__Key = 255
const Qt__Key_yen Qt__Key = 165

type Qt__KeyAlgorithm

type Qt__KeyAlgorithm = int // network

Describes the different key algorithms supported by QSslKey.

The opaque key facility allows applications to add support for facilities such as PKCS#11 that Qt does not currently offer natively.

const Qt__Dsa Qt__KeyAlgorithm = 2

The DSA algorithm.

const Qt__Ec Qt__KeyAlgorithm = 3

The Elliptic Curve algorithm

const Qt__Opaque Qt__KeyAlgorithm = 0

A key that should be treated as a 'black box' by QSslKey.

const Qt__Rsa Qt__KeyAlgorithm = 1

The RSA algorithm.

type Qt__KeyType

type Qt__KeyType = int // network

Describes the two types of keys QSslKey supports.

const Qt__PrivateKey Qt__KeyType = 0

A private key.

const Qt__PublicKey Qt__KeyType = 1

A public key.

type Qt__KeyboardModifier

type Qt__KeyboardModifier = int // core
const Qt__AltModifier Qt__KeyboardModifier = 134217728
const Qt__ControlModifier Qt__KeyboardModifier = 67108864
const Qt__GroupSwitchModifier Qt__KeyboardModifier = 1073741824
const Qt__KeyboardModifierMask Qt__KeyboardModifier = -33554432
const Qt__KeypadModifier Qt__KeyboardModifier = 536870912
const Qt__MetaModifier Qt__KeyboardModifier = 268435456
const Qt__NoModifier Qt__KeyboardModifier = 0
const Qt__ShiftModifier Qt__KeyboardModifier = 33554432

type Qt__LayoutDirection

type Qt__LayoutDirection = int // core

Specifies the direction of Qt's layouts and text handling.

Right-to-left layouts are necessary for certain languages, notably Arabic and Hebrew.

LayoutDirectionAuto serves two purposes. When used in conjunction with widgets and layouts, it will imply to use the layout direction set on the parent widget or QApplication. This has the same effect as QWidget::unsetLayoutDirection().

When LayoutDirectionAuto is used in conjunction with text layouting, it will imply that the text directionality is determined from the content of the string to be layouted.

See also QGuiApplication::setLayoutDirection(), QWidget::setLayoutDirection(), QTextOption::setTextDirection(), and QString::isRightToLeft().

const Qt__LayoutDirectionAuto Qt__LayoutDirection = 2

Automatic layout.

const Qt__LeftToRight Qt__LayoutDirection = 0

Left-to-right layout.

const Qt__RightToLeft Qt__LayoutDirection = 1

Right-to-left layout.

type Qt__MaskMode

type Qt__MaskMode = int // core

This enum specifies the behavior of the QPixmap::createMaskFromColor() and QImage::createMaskFromColor() functions.

const Qt__MaskInColor Qt__MaskMode = 0

Creates a mask where all pixels matching the given color are opaque.

const Qt__MaskOutColor Qt__MaskMode = 1

Creates a mask where all pixels matching the given color are transparent.

type Qt__MatchFlag

type Qt__MatchFlag = int // core
const Qt__MatchCaseSensitive Qt__MatchFlag = 16
const Qt__MatchContains Qt__MatchFlag = 1
const Qt__MatchEndsWith Qt__MatchFlag = 3
const Qt__MatchExactly Qt__MatchFlag = 0
const Qt__MatchFixedString Qt__MatchFlag = 8
const Qt__MatchRecursive Qt__MatchFlag = 64
const Qt__MatchRegExp Qt__MatchFlag = 4
const Qt__MatchStartsWith Qt__MatchFlag = 2
const Qt__MatchWildcard Qt__MatchFlag = 5
const Qt__MatchWrap Qt__MatchFlag = 32

type Qt__Modifier

type Qt__Modifier = int // core

This enum provides shorter names for the keyboard modifier keys supported by Qt.

Note: On macOS, the CTRL value corresponds to the Command keys on the keyboard, and the META value corresponds to the Control keys.

Qt::SHIFTQt::ShiftModifierThe Shift keys provided on all standard keyboards. Qt::METAQt::MetaModifierThe Meta keys. Qt::CTRLQt::ControlModifierThe Ctrl keys. Qt::ALTQt::AltModifierThe normal Alt keys, but not keys like AltGr.

See also KeyboardModifier and MouseButton.

const Qt__ALT Qt__Modifier = 134217728
const Qt__CTRL Qt__Modifier = 67108864
const Qt__META Qt__Modifier = 268435456
const Qt__MODIFIER_MASK Qt__Modifier = -33554432
const Qt__SHIFT Qt__Modifier = 33554432
const Qt__UNICODE_ACCEL Qt__Modifier = 0

type Qt__MouseButton

type Qt__MouseButton = int // core
const Qt__AllButtons Qt__MouseButton = 134217727
const Qt__BackButton Qt__MouseButton = 8
const Qt__ExtraButton1 Qt__MouseButton = 8
const Qt__ExtraButton10 Qt__MouseButton = 4096
const Qt__ExtraButton11 Qt__MouseButton = 8192
const Qt__ExtraButton12 Qt__MouseButton = 16384
const Qt__ExtraButton13 Qt__MouseButton = 32768
const Qt__ExtraButton14 Qt__MouseButton = 65536
const Qt__ExtraButton15 Qt__MouseButton = 131072
const Qt__ExtraButton16 Qt__MouseButton = 262144
const Qt__ExtraButton17 Qt__MouseButton = 524288
const Qt__ExtraButton18 Qt__MouseButton = 1048576
const Qt__ExtraButton19 Qt__MouseButton = 2097152
const Qt__ExtraButton2 Qt__MouseButton = 16
const Qt__ExtraButton20 Qt__MouseButton = 4194304
const Qt__ExtraButton21 Qt__MouseButton = 8388608
const Qt__ExtraButton22 Qt__MouseButton = 16777216
const Qt__ExtraButton23 Qt__MouseButton = 33554432
const Qt__ExtraButton24 Qt__MouseButton = 67108864
const Qt__ExtraButton3 Qt__MouseButton = 32
const Qt__ExtraButton4 Qt__MouseButton = 64
const Qt__ExtraButton5 Qt__MouseButton = 128
const Qt__ExtraButton6 Qt__MouseButton = 256
const Qt__ExtraButton7 Qt__MouseButton = 512
const Qt__ExtraButton8 Qt__MouseButton = 1024
const Qt__ExtraButton9 Qt__MouseButton = 2048
const Qt__ForwardButton Qt__MouseButton = 16
const Qt__LeftButton Qt__MouseButton = 1
const Qt__MaxMouseButton Qt__MouseButton = 67108864
const Qt__MidButton Qt__MouseButton = 4
const Qt__MiddleButton Qt__MouseButton = 4
const Qt__MouseButtonMask Qt__MouseButton = -1
const Qt__NoButton Qt__MouseButton = 0
const Qt__RightButton Qt__MouseButton = 2
const Qt__TaskButton Qt__MouseButton = 32
const Qt__XButton1 Qt__MouseButton = 8
const Qt__XButton2 Qt__MouseButton = 16

type Qt__MouseEventFlag

type Qt__MouseEventFlag = int // core
const Qt__MouseEventCreatedDoubleClick Qt__MouseEventFlag = 1
const Qt__MouseEventFlagMask Qt__MouseEventFlag = 255

type Qt__MouseEventSource

type Qt__MouseEventSource = int // core

This enum describes the source of a mouse event and can be useful to determine if the event is an artificial mouse event originating from another device such as a touchscreen.

This enum was introduced or modified in Qt 5.3.

See also Qt::AA_SynthesizeMouseForUnhandledTouchEvents.

const Qt__MouseEventNotSynthesized Qt__MouseEventSource = 0

The most common value. On platforms where such information is available this value indicates that the event was generated in response to a genuine mouse event in the system.

const Qt__MouseEventSynthesizedByApplication Qt__MouseEventSource = 3
const Qt__MouseEventSynthesizedByQt Qt__MouseEventSource = 2

Indicates that the mouse event was synthesized from an unhandled touch event by Qt.

const Qt__MouseEventSynthesizedBySystem Qt__MouseEventSource = 1

Indicates that the mouse event was synthesized from a touch event by the platform.

type Qt__NativeGestureType

type Qt__NativeGestureType = int // core

This enum returns the gesture type.

This enum was introduced or modified in Qt 5.2.

const Qt__BeginNativeGesture Qt__NativeGestureType = 0

Sent before gesture event stream.

const Qt__EndNativeGesture Qt__NativeGestureType = 1

Sent after gesture event stream.

const Qt__PanNativeGesture Qt__NativeGestureType = 2

Sent after a panning gesture. Similar to a click-and-drag mouse movement.

const Qt__RotateNativeGesture Qt__NativeGestureType = 5

Rotation delta in degrees.

const Qt__SmartZoomNativeGesture Qt__NativeGestureType = 4

Boolean magnification state.

const Qt__SwipeNativeGesture Qt__NativeGestureType = 6

Sent after a swipe movements.

const Qt__ZoomNativeGesture Qt__NativeGestureType = 3

Specifies the magnification delta in percent.

type Qt__NavigationMode

type Qt__NavigationMode = int // core

This enum type describes the mode for moving focus.

Note: In 4.6, cursor navigation is only implemented for Symbian OS. On other platforms, it behaves as NavigationModeNone.

This enum was introduced or modified in Qt 4.6.

See also QApplication::setNavigationMode() and QApplication::navigationMode().

const Qt__NavigationModeCursorAuto Qt__NavigationMode = 3

The mouse cursor is used to change focus, it is displayed only on non touchscreen devices. The keypad is used to implement a virtual cursor, unless the device has an analog mouse type of input device (e.g. touchpad). This is the recommended setting for an application such as a web browser that needs pointer control on both touch and non-touch devices.

const Qt__NavigationModeCursorForceVisible Qt__NavigationMode = 4

The mouse cursor is used to change focus, it is displayed regardless of device type. The keypad is used to implement a virtual cursor, unless the device has an analog mouse type of input device (e.g. touchpad)

const Qt__NavigationModeKeypadDirectional Qt__NavigationMode = 2

Qt::Key_Up, Qt::Key_Down, Qt::Key_Left and Qt::Key_Right are used to change focus.

const Qt__NavigationModeKeypadTabOrder Qt__NavigationMode = 1

Qt::Key_Up and Qt::Key_Down are used to change focus.

const Qt__NavigationModeNone Qt__NavigationMode = 0

Only the touch screen is used.

type Qt__Orientation

type Qt__Orientation = int // core
const Qt__Horizontal Qt__Orientation = 1
const Qt__Vertical Qt__Orientation = 2

type Qt__PenCapStyle

type Qt__PenCapStyle = int // core

This enum type defines the pen cap styles supported by Qt, i.e. the line end caps that can be drawn using QPainter.

Qt::SquareCapQt::FlatCapQt::RoundCap

See also QPen.

const Qt__FlatCap Qt__PenCapStyle = 0
const Qt__MPenCapStyle Qt__PenCapStyle = 48
const Qt__RoundCap Qt__PenCapStyle = 32
const Qt__SquareCap Qt__PenCapStyle = 16

type Qt__PenJoinStyle

type Qt__PenJoinStyle = int // core

This enum type defines the pen join styles supported by Qt, i.e. which joins between two connected lines can be drawn using QPainter.

Qt::BevelJoinQt::MiterJoinQt::RoundJoin

See also QPen.

const Qt__BevelJoin Qt__PenJoinStyle = 64
const Qt__MPenJoinStyle Qt__PenJoinStyle = 448
const Qt__MiterJoin Qt__PenJoinStyle = 0
const Qt__RoundJoin Qt__PenJoinStyle = 128
const Qt__SvgMiterJoin Qt__PenJoinStyle = 256

type Qt__PenStyle

type Qt__PenStyle = int // core

This enum type defines the pen styles that can be drawn using QPainter. The styles are:

Qt::SolidLineQt::DashLineQt::DotLine

Qt::DashDotLineQt::DashDotDotLineQt::CustomDashLine

See also QPen.

const Qt__CustomDashLine Qt__PenStyle = 6

A custom pattern defined using QPainterPathStroker::setDashPattern().

const Qt__DashDotDotLine Qt__PenStyle = 5

One dash, two dots, one dash, two dots.

const Qt__DashDotLine Qt__PenStyle = 4

Alternate dots and dashes.

const Qt__DashLine Qt__PenStyle = 2

Dashes separated by a few pixels.

const Qt__DotLine Qt__PenStyle = 3

Dots separated by a few pixels.

const Qt__MPenStyle Qt__PenStyle = 15
const Qt__NoPen Qt__PenStyle = 0

no line at all. For example, QPainter::drawRect() fills but does not draw any boundary line.

const Qt__SolidLine Qt__PenStyle = 1

A plain line.

type Qt__PermissionResult

type Qt__PermissionResult = int // androidextras
const Qt__Denied Qt__PermissionResult = 1
const Qt__Granted Qt__PermissionResult = 0

type Qt__QtMsgType

type Qt__QtMsgType = int // core
const Qt__QtCriticalMsg Qt__QtMsgType = 2
const Qt__QtDebugMsg Qt__QtMsgType = 0
const Qt__QtFatalMsg Qt__QtMsgType = 3
const Qt__QtInfoMsg Qt__QtMsgType = 4
const Qt__QtSystemMsg Qt__QtMsgType = 2
const Qt__QtWarningMsg Qt__QtMsgType = 1

type Qt__RegistrationType

type Qt__RegistrationType = int // qml
const Qt__AutoParentRegistration Qt__RegistrationType = 2
const Qt__CompositeRegistration Qt__RegistrationType = 4
const Qt__CompositeSingletonRegistration Qt__RegistrationType = 5
const Qt__InterfaceRegistration Qt__RegistrationType = 1
const Qt__QmlUnitCacheHookRegistration Qt__RegistrationType = 6
const Qt__SingletonRegistration Qt__RegistrationType = 3
const Qt__TypeRegistration Qt__RegistrationType = 0

type Qt__ScreenOrientation

type Qt__ScreenOrientation = int // core
const Qt__InvertedLandscapeOrientation Qt__ScreenOrientation = 8
const Qt__InvertedPortraitOrientation Qt__ScreenOrientation = 4
const Qt__LandscapeOrientation Qt__ScreenOrientation = 2
const Qt__PortraitOrientation Qt__ScreenOrientation = 1
const Qt__PrimaryOrientation Qt__ScreenOrientation = 0

type Qt__ScrollBarPolicy

type Qt__ScrollBarPolicy = int // core

This enum type describes the various modes of QAbstractScrollArea's scroll bars.

(The modes for the horizontal and vertical scroll bars are independent.)

const Qt__ScrollBarAlwaysOff Qt__ScrollBarPolicy = 1

QAbstractScrollArea never shows a scroll bar.

const Qt__ScrollBarAlwaysOn Qt__ScrollBarPolicy = 2
const Qt__ScrollBarAsNeeded Qt__ScrollBarPolicy = 0

QAbstractScrollArea shows a scroll bar when the content is too large to fit and not otherwise. This is the default.

type Qt__ScrollPhase

type Qt__ScrollPhase = int // core

This enum describes the phase of scrolling.

This enum was introduced or modified in Qt 5.2.

const Qt__NoScrollPhase Qt__ScrollPhase = 0
const Qt__ScrollBegin Qt__ScrollPhase = 1

Scrolling is about to begin, but the scrolling distance did not yet change.

const Qt__ScrollEnd Qt__ScrollPhase = 3

Scrolling has ended, but the scrolling distance did not change anymore.

const Qt__ScrollUpdate Qt__ScrollPhase = 2

The scrolling distance has changed (default).

type Qt__ShortcutContext

type Qt__ShortcutContext = int // core

For a QEvent::Shortcut event to occur, the shortcut's key sequence must be entered by the user in a context where the shortcut is active. The possible contexts are these:

const Qt__ApplicationShortcut Qt__ShortcutContext = 2

The shortcut is active when one of the applications windows are active.

const Qt__WidgetShortcut Qt__ShortcutContext = 0

The shortcut is active when its parent widget has focus.

const Qt__WidgetWithChildrenShortcut Qt__ShortcutContext = 3

The shortcut is active when its parent widget, or any of its children has focus. Children which are top-level widgets, except pop-ups, are not affected by this shortcut context.

const Qt__WindowShortcut Qt__ShortcutContext = 1

The shortcut is active when its parent widget is a logical subwidget of the active top-level window.

type Qt__SizeHint

type Qt__SizeHint = int // core

This enum is used by QGraphicsLayoutItem::sizeHint()

This enum was introduced or modified in Qt 4.4.

See also QGraphicsLayoutItem::sizeHint().

const Qt__MaximumSize Qt__SizeHint = 2

is used to specify the maximum size of a graphics layout item.

const Qt__MinimumDescent Qt__SizeHint = 3

is used to specify the minimum descent of a text string in a graphics layout item.

const Qt__MinimumSize Qt__SizeHint = 0

is used to specify the minimum size of a graphics layout item.

const Qt__NSizeHints Qt__SizeHint = 4
const Qt__PreferredSize Qt__SizeHint = 1

is used to specify the preferred size of a graphics layout item.

type Qt__SizeMode

type Qt__SizeMode = int // core

This enum is used by QPainter::drawRoundedRect() and QPainterPath::addRoundedRect() functions to specify the radii of rectangle corners with respect to the dimensions of the bounding rectangles specified.

This enum was introduced or modified in Qt 4.4.

const Qt__AbsoluteSize Qt__SizeMode = 0

Specifies the size using absolute measurements.

const Qt__RelativeSize Qt__SizeMode = 1

Specifies the size relative to the bounding rectangle, typically using percentage measurements.

type Qt__SortOrder

type Qt__SortOrder = int // core

This enum describes how the items in a widget are sorted.

const Qt__AscendingOrder Qt__SortOrder = 0
const Qt__DescendingOrder Qt__SortOrder = 1

type Qt__SslOption

type Qt__SslOption = int // network
const Qt__SslOptionDisableCompression Qt__SslOption = 4
const Qt__SslOptionDisableEmptyFragments Qt__SslOption = 1
const Qt__SslOptionDisableLegacyRenegotiation Qt__SslOption = 16
const Qt__SslOptionDisableServerCipherPreference Qt__SslOption = 128
const Qt__SslOptionDisableServerNameIndication Qt__SslOption = 8
const Qt__SslOptionDisableSessionPersistence Qt__SslOption = 64
const Qt__SslOptionDisableSessionSharing Qt__SslOption = 32
const Qt__SslOptionDisableSessionTickets Qt__SslOption = 2

type Qt__SslProtocol

type Qt__SslProtocol = int // network

Describes the protocol of the cipher.

Note: most servers understand both SSL and TLS, but it is recommended to use TLS only for security reasons. However, SSL and TLS are not compatible with each other: if you get unexpected handshake failures, verify that you chose the correct setting for your protocol.

const Qt__AnyProtocol Qt__SslProtocol = 5
const Qt__SecureProtocols Qt__SslProtocol = 7
const Qt__SslV2 Qt__SslProtocol = 1

SSLv2

const Qt__SslV3 Qt__SslProtocol = 0

SSLv3

const Qt__TlsV1SslV3 Qt__SslProtocol = 6
const Qt__TlsV1_0 Qt__SslProtocol = 2
const Qt__TlsV1_0OrLater Qt__SslProtocol = 8
const Qt__TlsV1_1 Qt__SslProtocol = 3
const Qt__TlsV1_1OrLater Qt__SslProtocol = 9
const Qt__TlsV1_2 Qt__SslProtocol = 4
const Qt__TlsV1_2OrLater Qt__SslProtocol = 10
const Qt__UnknownProtocol Qt__SslProtocol = -1

type Qt__TabFocusBehavior

type Qt__TabFocusBehavior = int // core

This enum type provides different focus behaviors for tab navigation.

This enum was introduced or modified in Qt 5.5.

const Qt__NoTabFocus Qt__TabFocusBehavior = 0
const Qt__TabFocusAllControls Qt__TabFocusBehavior = 255

xffiterate all controls and widgets.

const Qt__TabFocusListControls Qt__TabFocusBehavior = 2
const Qt__TabFocusTextControls Qt__TabFocusBehavior = 1

type Qt__TextElideMode

type Qt__TextElideMode = int // core

This enum specifies where the ellipsis should appear when displaying texts that don't fit:

See also QAbstractItemView::textElideMode, QFontMetrics::elidedText(), AlignmentFlag, and QTabBar::elideMode.

const Qt__ElideLeft Qt__TextElideMode = 0

The ellipsis should appear at the beginning of the text.

const Qt__ElideMiddle Qt__TextElideMode = 2

The ellipsis should appear in the middle of the text.

const Qt__ElideNone Qt__TextElideMode = 3

Ellipsis should NOT appear in the text.

const Qt__ElideRight Qt__TextElideMode = 1

The ellipsis should appear at the end of the text.

type Qt__TextFlag

type Qt__TextFlag = int // core

This enum type is used to define some modifier flags. Some of these flags only make sense in the context of printing:

You can use as many modifier flags as you want, except that Qt::TextSingleLine and Qt::TextWordWrap cannot be combined.

Flags that are inappropriate for a given use are generally ignored.

const Qt__TextBypassShaping Qt__TextFlag = 1048576
const Qt__TextDontClip Qt__TextFlag = 512
const Qt__TextDontPrint Qt__TextFlag = 16384
const Qt__TextExpandTabs Qt__TextFlag = 1024
const Qt__TextForceLeftToRight Qt__TextFlag = 131072
const Qt__TextForceRightToLeft Qt__TextFlag = 262144
const Qt__TextHideMnemonic Qt__TextFlag = 32768
const Qt__TextIncludeTrailingSpaces Qt__TextFlag = 134217728
const Qt__TextJustificationForced Qt__TextFlag = 65536
const Qt__TextLongestVariant Qt__TextFlag = 524288
const Qt__TextShowMnemonic Qt__TextFlag = 2048
const Qt__TextSingleLine Qt__TextFlag = 256
const Qt__TextWordWrap Qt__TextFlag = 4096
const Qt__TextWrapAnywhere Qt__TextFlag = 8192

type Qt__TextFormat

type Qt__TextFormat = int // core

This enum is used in widgets that can display both plain text and rich text, for example QLabel. It is used for deciding whether a text string should be interpreted as one or the other. This is normally done by passing one of the enum values to a QTextEdit::setTextFormat() function.

const Qt__AutoText Qt__TextFormat = 2

The text string is interpreted as for Qt::RichText if Qt::mightBeRichText() returns true, otherwise as Qt::PlainText.

const Qt__PlainText Qt__TextFormat = 0

The text string is interpreted as a plain text string.

const Qt__RichText Qt__TextFormat = 1

The text string is interpreted as a rich text string. See Supported HTML Subset for the definition of rich text.

type Qt__TextInteractionFlag

type Qt__TextInteractionFlag = int // core
const Qt__LinksAccessibleByKeyboard Qt__TextInteractionFlag = 8
const Qt__LinksAccessibleByMouse Qt__TextInteractionFlag = 4
const Qt__NoTextInteraction Qt__TextInteractionFlag = 0
const Qt__TextBrowserInteraction Qt__TextInteractionFlag = 13
const Qt__TextEditable Qt__TextInteractionFlag = 16
const Qt__TextEditorInteraction Qt__TextInteractionFlag = 19
const Qt__TextSelectableByKeyboard Qt__TextInteractionFlag = 2
const Qt__TextSelectableByMouse Qt__TextInteractionFlag = 1

type Qt__TileRule

type Qt__TileRule = int // core

This enum describes how to repeat or stretch the parts of an image when drawing.

This enum was introduced or modified in Qt 4.6.

const Qt__RepeatTile Qt__TileRule = 1

Repeat the image until there is no more space. May crop the last image.

const Qt__RoundTile Qt__TileRule = 2

Similar to Repeat, but scales the image down to ensure that the last tile is not cropped.

const Qt__StretchTile Qt__TileRule = 0

Scale the image to fit to the available area.

type Qt__TimeSpec

type Qt__TimeSpec = int // core
const Qt__LocalTime Qt__TimeSpec = 0

Locale dependent time (Timezones and Daylight Savings Time).

const Qt__OffsetFromUTC Qt__TimeSpec = 2

An offset in seconds from Coordinated Universal Time.

const Qt__TimeZone Qt__TimeSpec = 3

A named time zone using a specific set of Daylight Savings rules.

const Qt__UTC Qt__TimeSpec = 1

Coordinated Universal Time, replaces Greenwich Mean Time.

type Qt__TimerType

type Qt__TimerType = int // core

The timer type indicates how accurate a timer can be.

On Windows, Qt will use Windows's Multimedia timer facility (if available) for Qt::PreciseTimer and normal Windows timers for Qt::CoarseTimer and Qt::VeryCoarseTimer.

const Qt__CoarseTimer Qt__TimerType = 1
const Qt__PreciseTimer Qt__TimerType = 0

Precise timers try to keep millisecond accuracy

const Qt__VeryCoarseTimer Qt__TimerType = 2

Very coarse timers only keep full second accuracy

type Qt__ToolBarArea

type Qt__ToolBarArea = int // core
const Qt__AllToolBarAreas Qt__ToolBarArea = 15
const Qt__BottomToolBarArea Qt__ToolBarArea = 8
const Qt__LeftToolBarArea Qt__ToolBarArea = 1
const Qt__NoToolBarArea Qt__ToolBarArea = 0
const Qt__RightToolBarArea Qt__ToolBarArea = 2
const Qt__ToolBarArea_Mask Qt__ToolBarArea = 15
const Qt__TopToolBarArea Qt__ToolBarArea = 4

type Qt__ToolBarAreaSizes

type Qt__ToolBarAreaSizes = int // core
const Qt__NToolBarAreas Qt__ToolBarAreaSizes = 4

type Qt__ToolButtonStyle

type Qt__ToolButtonStyle = int // core

The style of the tool button, describing how the button's text and icon should be displayed.

const Qt__ToolButtonFollowStyle Qt__ToolButtonStyle = 4

Follow the style.

const Qt__ToolButtonIconOnly Qt__ToolButtonStyle = 0

Only display the icon.

const Qt__ToolButtonTextBesideIcon Qt__ToolButtonStyle = 2

The text appears beside the icon.

const Qt__ToolButtonTextOnly Qt__ToolButtonStyle = 1

Only display the text.

const Qt__ToolButtonTextUnderIcon Qt__ToolButtonStyle = 3

The text appears under the icon.

type Qt__TouchPointState

type Qt__TouchPointState = int // core
const Qt__TouchPointMoved Qt__TouchPointState = 2
const Qt__TouchPointPressed Qt__TouchPointState = 1
const Qt__TouchPointReleased Qt__TouchPointState = 8
const Qt__TouchPointStationary Qt__TouchPointState = 4

type Qt__TransformationMode

type Qt__TransformationMode = int // core

This enum type defines whether image transformations (e.g., scaling) should be smooth or not.

See also QImage::scaled().

const Qt__FastTransformation Qt__TransformationMode = 0

The transformation is performed quickly, with no smoothing.

const Qt__SmoothTransformation Qt__TransformationMode = 1

The resulting image is transformed using bilinear filtering.

type Qt__UIEffect

type Qt__UIEffect = int // core

This enum describes the available UI effects.

By default, Qt will try to use the platform specific desktop settings for each effect. Use the QApplication::setDesktopSettingsAware() function (passing false as argument) to prevent this, and the QApplication::setEffectEnabled() to enable or disable a particular effect.

Note that all effects are disabled on screens running at less than 16-bit color depth.

See also QApplication::setEffectEnabled() and QGuiApplication::setDesktopSettingsAware().

const Qt__UI_AnimateCombo Qt__UIEffect = 3

Show animated comboboxes.

const Qt__UI_AnimateMenu Qt__UIEffect = 1

Show animated menus.

const Qt__UI_AnimateToolBox Qt__UIEffect = 6

Reserved

const Qt__UI_AnimateTooltip Qt__UIEffect = 4

Show tooltip animations.

const Qt__UI_FadeMenu Qt__UIEffect = 2

Show faded menus.

const Qt__UI_FadeTooltip Qt__UIEffect = 5

Show tooltip fading effects.

const Qt__UI_General Qt__UIEffect = 0

type Qt__WhiteSpaceMode

type Qt__WhiteSpaceMode = int // core

This enum describes the types of whitespace mode that are used by the QTextDocument class to meet the requirements of different kinds of textual information.

Qt::WhiteSpaceNoWrap2

const Qt__WhiteSpaceModeUndefined Qt__WhiteSpaceMode = -1
const Qt__WhiteSpaceNoWrap Qt__WhiteSpaceMode = 2
const Qt__WhiteSpaceNormal Qt__WhiteSpaceMode = 0

The whitespace mode used to display normal word wrapped text in paragraphs.

const Qt__WhiteSpacePre Qt__WhiteSpaceMode = 1

A preformatted text mode in which whitespace is reproduced exactly.

type Qt__WidgetAttribute

type Qt__WidgetAttribute = int // core

This enum type is used to specify various widget attributes. Attributes are set and cleared with QWidget::setAttribute(), and queried with QWidget::testAttribute(), although some have special convenience functions which are mentioned below.

Qt::WA_NoBackgroundWA_OpaquePaintEventThis value is obsolete. Use WA_OpaquePaintEvent instead.

const Qt__WA_AcceptDrops Qt__WidgetAttribute = 78
const Qt__WA_AcceptTouchEvents Qt__WidgetAttribute = 121
const Qt__WA_AlwaysShowToolTips Qt__WidgetAttribute = 84
const Qt__WA_AlwaysStackOnTop Qt__WidgetAttribute = 128
const Qt__WA_AttributeCount Qt__WidgetAttribute = 131
const Qt__WA_CanHostQMdiSubWindowTitleBar Qt__WidgetAttribute = 95
const Qt__WA_ContentsMarginsRespectsSafeArea Qt__WidgetAttribute = 130
const Qt__WA_ContentsPropagated Qt__WidgetAttribute = 3
const Qt__WA_CustomWhatsThis Qt__WidgetAttribute = 47
const Qt__WA_DeleteOnClose Qt__WidgetAttribute = 55
const Qt__WA_Disabled Qt__WidgetAttribute = 0

Indicates that the widget is disabled, i.e. it does not receive any mouse or keyboard events. There is also a getter functions QWidget::isEnabled(). This is set/cleared by the Qt kernel.

const Qt__WA_DontCreateNativeAncestors Qt__WidgetAttribute = 101
const Qt__WA_DontShowOnScreen Qt__WidgetAttribute = 103
const Qt__WA_DropSiteRegistered Qt__WidgetAttribute = 79
const Qt__WA_ForceAcceptDrops Qt__WidgetAttribute = 79
const Qt__WA_ForceDisabled Qt__WidgetAttribute = 32
const Qt__WA_ForceUpdatesDisabled Qt__WidgetAttribute = 59
const Qt__WA_GrabbedShortcut Qt__WidgetAttribute = 50
const Qt__WA_GroupLeader Qt__WidgetAttribute = 72
const Qt__WA_Hover Qt__WidgetAttribute = 74
const Qt__WA_InputMethodEnabled Qt__WidgetAttribute = 14
const Qt__WA_InputMethodTransparent Qt__WidgetAttribute = 75
const Qt__WA_InvalidSize Qt__WidgetAttribute = 45
const Qt__WA_KeyCompression Qt__WidgetAttribute = 33
const Qt__WA_KeyboardFocusChange Qt__WidgetAttribute = 77
const Qt__WA_LaidOut Qt__WidgetAttribute = 7
const Qt__WA_LayoutOnEntireRect Qt__WidgetAttribute = 48
const Qt__WA_LayoutUsesWidgetRect Qt__WidgetAttribute = 92
const Qt__WA_MSWindowsUseDirect3D Qt__WidgetAttribute = 94
const Qt__WA_MacAlwaysShowToolWindow Qt__WidgetAttribute = 96
const Qt__WA_MacBrushedMetal Qt__WidgetAttribute = 46
const Qt__WA_MacFrameworkScaled Qt__WidgetAttribute = 117
const Qt__WA_MacMetalStyle Qt__WidgetAttribute = 46
const Qt__WA_MacMiniSize Qt__WidgetAttribute = 91
const Qt__WA_MacNoClickThrough Qt__WidgetAttribute = 12
const Qt__WA_MacNoShadow Qt__WidgetAttribute = 127
const Qt__WA_MacNormalSize Qt__WidgetAttribute = 89
const Qt__WA_MacOpaqueSizeGrip Qt__WidgetAttribute = 85
const Qt__WA_MacShowFocusRect Qt__WidgetAttribute = 88
const Qt__WA_MacSmallSize Qt__WidgetAttribute = 90
const Qt__WA_MacVariableSize Qt__WidgetAttribute = 102
const Qt__WA_Mapped Qt__WidgetAttribute = 11
const Qt__WA_MouseNoMask Qt__WidgetAttribute = 71
const Qt__WA_MouseTracking Qt__WidgetAttribute = 2

Indicates that the widget has mouse tracking enabled. See QWidget::mouseTracking.

const Qt__WA_Moved Qt__WidgetAttribute = 43
const Qt__WA_NativeWindow Qt__WidgetAttribute = 100
const Qt__WA_NoBackground Qt__WidgetAttribute = 4
const Qt__WA_NoChildEventsForParent Qt__WidgetAttribute = 58
const Qt__WA_NoChildEventsFromChildren Qt__WidgetAttribute = 39
const Qt__WA_NoMousePropagation Qt__WidgetAttribute = 73
const Qt__WA_NoMouseReplay Qt__WidgetAttribute = 54
const Qt__WA_NoSystemBackground Qt__WidgetAttribute = 9

Indicates that the widget has no background, i.e. when the widget receives paint events, the background is not automatically repainted. Note: Unlike WA_OpaquePaintEvent, newly exposed areas are never filled with the background (e.g., after showing a window for the first time the user can see "through" it until the application processes the paint events). This flag is set or cleared by the widget's author.

const Qt__WA_NoX11EventCompression Qt__WidgetAttribute = 81
const Qt__WA_OpaquePaintEvent Qt__WidgetAttribute = 4

Indicates that the widget paints all its pixels when it receives a paint event. Thus, it is not required for operations like updating, resizing, scrolling and focus changes to erase the widget before generating paint events. The use of WA_OpaquePaintEvent provides a small optimization by helping to reduce flicker on systems that do not support double buffering and avoiding computational cycles necessary to erase the background prior to painting. Note: Unlike WA_NoSystemBackground, WA_OpaquePaintEvent makes an effort to avoid transparent window backgrounds. This flag is set or cleared by the widget's author.

const Qt__WA_OutsideWSRange Qt__WidgetAttribute = 49
const Qt__WA_PaintOnScreen Qt__WidgetAttribute = 8
const Qt__WA_PaintUnclipped Qt__WidgetAttribute = 52
const Qt__WA_PendingMoveEvent Qt__WidgetAttribute = 34
const Qt__WA_PendingResizeEvent Qt__WidgetAttribute = 35
const Qt__WA_PendingUpdate Qt__WidgetAttribute = 44
const Qt__WA_QuitOnClose Qt__WidgetAttribute = 76
const Qt__WA_Resized Qt__WidgetAttribute = 42
const Qt__WA_RightToLeft Qt__WidgetAttribute = 56
const Qt__WA_SetCursor Qt__WidgetAttribute = 38
const Qt__WA_SetFont Qt__WidgetAttribute = 37
const Qt__WA_SetLayoutDirection Qt__WidgetAttribute = 57
const Qt__WA_SetLocale Qt__WidgetAttribute = 87
const Qt__WA_SetPalette Qt__WidgetAttribute = 36
const Qt__WA_SetStyle Qt__WidgetAttribute = 86
const Qt__WA_SetWindowIcon Qt__WidgetAttribute = 53
const Qt__WA_SetWindowModality Qt__WidgetAttribute = 118
const Qt__WA_ShowModal Qt__WidgetAttribute = 70
const Qt__WA_ShowWithoutActivating Qt__WidgetAttribute = 98
const Qt__WA_StaticContents Qt__WidgetAttribute = 5

Indicates that the widget contents are north-west aligned and static. On resize, such a widget will receive paint events only for parts of itself that are newly visible. This flag is set or cleared by the widget's author.

const Qt__WA_StyleSheet Qt__WidgetAttribute = 97
const Qt__WA_StyledBackground Qt__WidgetAttribute = 93
const Qt__WA_TabletTracking Qt__WidgetAttribute = 129
const Qt__WA_TintedBackground Qt__WidgetAttribute = 82
const Qt__WA_TouchPadAcceptSingleTouchEvents Qt__WidgetAttribute = 123
const Qt__WA_TranslucentBackground Qt__WidgetAttribute = 120
const Qt__WA_TransparentForMouseEvents Qt__WidgetAttribute = 51
const Qt__WA_UnderMouse Qt__WidgetAttribute = 1

Indicates that the widget is under the mouse cursor. The value is not updated correctly during drag and drop operations. There is also a getter function, QWidget::underMouse(). This flag is set or cleared by the Qt kernel.

const Qt__WA_UpdatesDisabled Qt__WidgetAttribute = 10
const Qt__WA_WState_AcceptedTouchBeginEvent Qt__WidgetAttribute = 122
const Qt__WA_WState_CompressKeys Qt__WidgetAttribute = 61
const Qt__WA_WState_ConfigPending Qt__WidgetAttribute = 64
const Qt__WA_WState_Created Qt__WidgetAttribute = 60
const Qt__WA_WState_DND Qt__WidgetAttribute = 67
const Qt__WA_WState_ExplicitShowHide Qt__WidgetAttribute = 69
const Qt__WA_WState_Hidden Qt__WidgetAttribute = 16
const Qt__WA_WState_InPaintEvent Qt__WidgetAttribute = 62
const Qt__WA_WState_OwnSizePolicy Qt__WidgetAttribute = 68
const Qt__WA_WState_Polished Qt__WidgetAttribute = 66
const Qt__WA_WState_Reparented Qt__WidgetAttribute = 63
const Qt__WA_WState_Visible Qt__WidgetAttribute = 15
const Qt__WA_WState_WindowOpacitySet Qt__WidgetAttribute = 119
const Qt__WA_WindowModified Qt__WidgetAttribute = 41
const Qt__WA_WindowPropagation Qt__WidgetAttribute = 80
const Qt__WA_X11BypassTransientForHint Qt__WidgetAttribute = 99
const Qt__WA_X11DoNotAcceptFocus Qt__WidgetAttribute = 126
const Qt__WA_X11NetWmWindowTypeCombo Qt__WidgetAttribute = 115
const Qt__WA_X11NetWmWindowTypeDND Qt__WidgetAttribute = 116
const Qt__WA_X11NetWmWindowTypeDesktop Qt__WidgetAttribute = 104
const Qt__WA_X11NetWmWindowTypeDialog Qt__WidgetAttribute = 110
const Qt__WA_X11NetWmWindowTypeDock Qt__WidgetAttribute = 105
const Qt__WA_X11NetWmWindowTypeDropDownMenu Qt__WidgetAttribute = 111
const Qt__WA_X11NetWmWindowTypeMenu Qt__WidgetAttribute = 107
const Qt__WA_X11NetWmWindowTypeNotification Qt__WidgetAttribute = 114
const Qt__WA_X11NetWmWindowTypePopupMenu Qt__WidgetAttribute = 112
const Qt__WA_X11NetWmWindowTypeSplash Qt__WidgetAttribute = 109
const Qt__WA_X11NetWmWindowTypeToolBar Qt__WidgetAttribute = 106
const Qt__WA_X11NetWmWindowTypeToolTip Qt__WidgetAttribute = 113
const Qt__WA_X11NetWmWindowTypeUtility Qt__WidgetAttribute = 108
const Qt__WA_X11OpenGLOverlay Qt__WidgetAttribute = 83

type Qt__WindowFlip3DPolicy

type Qt__WindowFlip3DPolicy = int // winextras
const Qt__FlipDefault Qt__WindowFlip3DPolicy = 0
const Qt__FlipExcludeAbove Qt__WindowFlip3DPolicy = 2
const Qt__FlipExcludeBelow Qt__WindowFlip3DPolicy = 1

type Qt__WindowFrameSection

type Qt__WindowFrameSection = int // core

This enum is used to describe parts of a window frame. It is returned by QGraphicsWidget::windowFrameSectionAt() to describe what section of the window frame is under the mouse.

ConstantValue Qt::NoSection0 Qt::LeftSection1 Qt::TopLeftSection2 Qt::TopSection3 Qt::TopRightSection4 Qt::RightSection5 Qt::BottomRightSection6 Qt::BottomSection7 Qt::BottomLeftSection8 Qt::TitleBarArea9

This enum was introduced or modified in Qt 4.4.

See also QGraphicsWidget::windowFrameEvent(), QGraphicsWidget::paintWindowFrame(), and QGraphicsWidget::windowFrameSectionAt().

const Qt__BottomLeftSection Qt__WindowFrameSection = 8
const Qt__BottomRightSection Qt__WindowFrameSection = 6
const Qt__BottomSection Qt__WindowFrameSection = 7
const Qt__LeftSection Qt__WindowFrameSection = 1
const Qt__NoSection Qt__WindowFrameSection = 0
const Qt__RightSection Qt__WindowFrameSection = 5
const Qt__TitleBarArea Qt__WindowFrameSection = 9
const Qt__TopLeftSection Qt__WindowFrameSection = 2
const Qt__TopRightSection Qt__WindowFrameSection = 4
const Qt__TopSection Qt__WindowFrameSection = 3

type Qt__WindowModality

type Qt__WindowModality = int // core

This enum specifies the behavior of a modal window. A modal window is one that blocks input to other windows. Note that windows that are children of a modal window are not blocked.

The values are:

See also QWidget::windowModality and QDialog.

const Qt__ApplicationModal Qt__WindowModality = 2

The window is modal to the application and blocks input to all windows.

const Qt__NonModal Qt__WindowModality = 0

The window is not modal and does not block input to other windows.

const Qt__WindowModal Qt__WindowModality = 1

The window is modal to a single window hierarchy and blocks input to its parent window, all grandparent windows, and all siblings of its parent and grandparent windows.

type Qt__WindowState

type Qt__WindowState = int // core
const Qt__WindowActive Qt__WindowState = 8
const Qt__WindowFullScreen Qt__WindowState = 4
const Qt__WindowMaximized Qt__WindowState = 2
const Qt__WindowMinimized Qt__WindowState = 1
const Qt__WindowNoState Qt__WindowState = 0

type Qt__WindowType

type Qt__WindowType = int // core
const Qt__BypassGraphicsProxyWidget Qt__WindowType = 536870912
const Qt__BypassWindowManagerHint Qt__WindowType = 1024
const Qt__CoverWindow Qt__WindowType = 65
const Qt__CustomizeWindowHint Qt__WindowType = 33554432
const Qt__Desktop Qt__WindowType = 17
const Qt__Dialog Qt__WindowType = 3
const Qt__Drawer Qt__WindowType = 7
const Qt__ForeignWindow Qt__WindowType = 33
const Qt__FramelessWindowHint Qt__WindowType = 2048
const Qt__MSWindowsFixedSizeDialogHint Qt__WindowType = 256
const Qt__MSWindowsOwnDC Qt__WindowType = 512
const Qt__MacWindowToolBarButtonHint Qt__WindowType = 268435456
const Qt__MaximizeUsingFullscreenGeometryHint Qt__WindowType = 4194304
const Qt__NoDropShadowWindowHint Qt__WindowType = 1073741824
const Qt__Popup Qt__WindowType = 9
const Qt__Sheet Qt__WindowType = 5
const Qt__SplashScreen Qt__WindowType = 15
const Qt__SubWindow Qt__WindowType = 18
const Qt__Tool Qt__WindowType = 11
const Qt__ToolTip Qt__WindowType = 13
const Qt__Widget Qt__WindowType = 0
const Qt__Window Qt__WindowType = 1
const Qt__WindowCloseButtonHint Qt__WindowType = 134217728
const Qt__WindowContextHelpButtonHint Qt__WindowType = 65536
const Qt__WindowDoesNotAcceptFocus Qt__WindowType = 2097152
const Qt__WindowFullscreenButtonHint Qt__WindowType = -2147483648
const Qt__WindowMaximizeButtonHint Qt__WindowType = 32768
const Qt__WindowMinMaxButtonsHint Qt__WindowType = 49152
const Qt__WindowMinimizeButtonHint Qt__WindowType = 16384
const Qt__WindowOverridesSystemGestures Qt__WindowType = 1048576
const Qt__WindowShadeButtonHint Qt__WindowType = 131072
const Qt__WindowStaysOnBottomHint Qt__WindowType = 67108864
const Qt__WindowStaysOnTopHint Qt__WindowType = 262144
const Qt__WindowSystemMenuHint Qt__WindowType = 8192
const Qt__WindowTitleHint Qt__WindowType = 4096
const Qt__WindowTransparentForInput Qt__WindowType = 524288
const Qt__WindowType_Mask Qt__WindowType = 255
const Qt__X11BypassWindowManagerHint Qt__WindowType = 1024

type Qt___EXCEPTION_DISPOSITION

type Qt___EXCEPTION_DISPOSITION = int // stdglobal
const Qt__ExceptionCollidedUnwind Qt___EXCEPTION_DISPOSITION = 3
const Qt__ExceptionContinueExecution Qt___EXCEPTION_DISPOSITION = 0
const Qt__ExceptionContinueSearch Qt___EXCEPTION_DISPOSITION = 1
const Qt__ExceptionNestedException Qt___EXCEPTION_DISPOSITION = 2

type Qt___Ios_Fmtflags

type Qt___Ios_Fmtflags = int // stdglobal
const Qt___S_adjustfield Qt___Ios_Fmtflags = 176
const Qt___S_basefield Qt___Ios_Fmtflags = 74
const Qt___S_boolalpha Qt___Ios_Fmtflags = 1
const Qt___S_dec Qt___Ios_Fmtflags = 2
const Qt___S_fixed Qt___Ios_Fmtflags = 4
const Qt___S_floatfield Qt___Ios_Fmtflags = 260
const Qt___S_hex Qt___Ios_Fmtflags = 8
const Qt___S_internal Qt___Ios_Fmtflags = 16
const Qt___S_ios_fmtflags_end Qt___Ios_Fmtflags = 65536
const Qt___S_ios_fmtflags_max Qt___Ios_Fmtflags = 2147483647
const Qt___S_ios_fmtflags_min Qt___Ios_Fmtflags = -2147483648
const Qt___S_left Qt___Ios_Fmtflags = 32
const Qt___S_oct Qt___Ios_Fmtflags = 64
const Qt___S_right Qt___Ios_Fmtflags = 128
const Qt___S_scientific Qt___Ios_Fmtflags = 256
const Qt___S_showbase Qt___Ios_Fmtflags = 512
const Qt___S_showpoint Qt___Ios_Fmtflags = 1024
const Qt___S_showpos Qt___Ios_Fmtflags = 2048
const Qt___S_skipws Qt___Ios_Fmtflags = 4096
const Qt___S_unitbuf Qt___Ios_Fmtflags = 8192
const Qt___S_uppercase Qt___Ios_Fmtflags = 16384

type Qt___Ios_Iostate

type Qt___Ios_Iostate = int // stdglobal
const Qt___S_badbit Qt___Ios_Iostate = 1
const Qt___S_eofbit Qt___Ios_Iostate = 2
const Qt___S_failbit Qt___Ios_Iostate = 4
const Qt___S_goodbit Qt___Ios_Iostate = 0
const Qt___S_ios_iostate_end Qt___Ios_Iostate = 65536
const Qt___S_ios_iostate_max Qt___Ios_Iostate = 2147483647
const Qt___S_ios_iostate_min Qt___Ios_Iostate = -2147483648

type Qt___Ios_Openmode

type Qt___Ios_Openmode = int // stdglobal
const Qt___S_app Qt___Ios_Openmode = 1
const Qt___S_ate Qt___Ios_Openmode = 2
const Qt___S_bin Qt___Ios_Openmode = 4
const Qt___S_in Qt___Ios_Openmode = 8
const Qt___S_ios_openmode_end Qt___Ios_Openmode = 65536
const Qt___S_ios_openmode_max Qt___Ios_Openmode = 2147483647
const Qt___S_ios_openmode_min Qt___Ios_Openmode = -2147483648
const Qt___S_out Qt___Ios_Openmode = 16
const Qt___S_trunc Qt___Ios_Openmode = 32

type Qt___Ios_Seekdir

type Qt___Ios_Seekdir = int // stdglobal
const Qt___S_beg Qt___Ios_Seekdir = 0
const Qt___S_cur Qt___Ios_Seekdir = 1
const Qt___S_end Qt___Ios_Seekdir = 2
const Qt___S_ios_seekdir_end Qt___Ios_Seekdir = 65536

type Qt___Lock_policy

type Qt___Lock_policy = int // stdglobal
const Qt___S_atomic Qt___Lock_policy = 2
const Qt___S_mutex Qt___Lock_policy = 1
const Qt___S_single Qt___Lock_policy = 0

type Qt___MEDIA_TYPE

type Qt___MEDIA_TYPE = int // stdglobal
const Qt__F3_120M_512 Qt___MEDIA_TYPE = 13
const Qt__F3_128Mb_512 Qt___MEDIA_TYPE = 20
const Qt__F3_1Pt23_1024 Qt___MEDIA_TYPE = 18
const Qt__F3_1Pt2_512 Qt___MEDIA_TYPE = 17
const Qt__F3_1Pt44_512 Qt___MEDIA_TYPE = 2
const Qt__F3_20Pt8_512 Qt___MEDIA_TYPE = 4
const Qt__F3_230Mb_512 Qt___MEDIA_TYPE = 21
const Qt__F3_2Pt88_512 Qt___MEDIA_TYPE = 3
const Qt__F3_640_512 Qt___MEDIA_TYPE = 14
const Qt__F3_720_512 Qt___MEDIA_TYPE = 5
const Qt__F5_160_512 Qt___MEDIA_TYPE = 10
const Qt__F5_180_512 Qt___MEDIA_TYPE = 9
const Qt__F5_1Pt23_1024 Qt___MEDIA_TYPE = 19
const Qt__F5_1Pt2_512 Qt___MEDIA_TYPE = 1
const Qt__F5_320_1024 Qt___MEDIA_TYPE = 8
const Qt__F5_320_512 Qt___MEDIA_TYPE = 7
const Qt__F5_360_512 Qt___MEDIA_TYPE = 6
const Qt__F5_640_512 Qt___MEDIA_TYPE = 15
const Qt__F5_720_512 Qt___MEDIA_TYPE = 16
const Qt__F8_256_128 Qt___MEDIA_TYPE = 22
const Qt__FixedMedia Qt___MEDIA_TYPE = 12
const Qt__RemovableMedia Qt___MEDIA_TYPE = 11
const Qt__Unknown Qt___MEDIA_TYPE = 0

type Qt___Manager_operation

type Qt___Manager_operation = int // stdglobal
const Qt____clone_functor Qt___Manager_operation = 2
const Qt____destroy_functor Qt___Manager_operation = 3
const Qt____get_functor_ptr Qt___Manager_operation = 1
const Qt____get_type_info Qt___Manager_operation = 0

type Qt___RPC_ASYNC_EVENT

type Qt___RPC_ASYNC_EVENT = int // stdglobal
const Qt__RpcCallComplete Qt___RPC_ASYNC_EVENT = 0
const Qt__RpcClientCancel Qt___RPC_ASYNC_EVENT = 4
const Qt__RpcClientDisconnect Qt___RPC_ASYNC_EVENT = 3
const Qt__RpcReceiveComplete Qt___RPC_ASYNC_EVENT = 2
const Qt__RpcSendComplete Qt___RPC_ASYNC_EVENT = 1

type Qt___RPC_NOTIFICATION_TYPES

type Qt___RPC_NOTIFICATION_TYPES = int // stdglobal
const Qt__RpcNotificationTypeApc Qt___RPC_NOTIFICATION_TYPES = 2
const Qt__RpcNotificationTypeCallback Qt___RPC_NOTIFICATION_TYPES = 5
const Qt__RpcNotificationTypeEvent Qt___RPC_NOTIFICATION_TYPES = 1
const Qt__RpcNotificationTypeHwnd Qt___RPC_NOTIFICATION_TYPES = 4
const Qt__RpcNotificationTypeIoc Qt___RPC_NOTIFICATION_TYPES = 3
const Qt__RpcNotificationTypeNone Qt___RPC_NOTIFICATION_TYPES = 0

type Qt___Rb_tree_color

type Qt___Rb_tree_color = int // stdglobal
const Qt___S_black Qt___Rb_tree_color = 1
const Qt___S_red Qt___Rb_tree_color = 0

type Qt____memory_order_modifier

type Qt____memory_order_modifier = int // stdglobal
const Qt____memory_order_hle_acquire Qt____memory_order_modifier = 65536
const Qt____memory_order_hle_release Qt____memory_order_modifier = 131072
const Qt____memory_order_mask Qt____memory_order_modifier = 65535
const Qt____memory_order_modifier_mask Qt____memory_order_modifier = -65536

type Qt__errc

type Qt__errc = int // stdglobal
const Qt__address_family_not_supported Qt__errc = 97
const Qt__address_in_use Qt__errc = 98
const Qt__address_not_available Qt__errc = 99
const Qt__already_connected Qt__errc = 106
const Qt__argument_list_too_long Qt__errc = 7
const Qt__argument_out_of_domain Qt__errc = 33
const Qt__bad_address Qt__errc = 14
const Qt__bad_file_descriptor Qt__errc = 9
const Qt__bad_message Qt__errc = 74
const Qt__broken_pipe Qt__errc = 32
const Qt__connection_aborted Qt__errc = 103
const Qt__connection_already_in_progress Qt__errc = 114
const Qt__connection_refused Qt__errc = 111
const Qt__connection_reset Qt__errc = 104
const Qt__cross_device_link Qt__errc = 18
const Qt__destination_address_required Qt__errc = 89
const Qt__device_or_resource_busy Qt__errc = 16
const Qt__directory_not_empty Qt__errc = 39
const Qt__executable_format_error Qt__errc = 8
const Qt__file_exists Qt__errc = 17
const Qt__file_too_large Qt__errc = 27
const Qt__filename_too_long Qt__errc = 36
const Qt__function_not_supported Qt__errc = 38
const Qt__host_unreachable Qt__errc = 113
const Qt__identifier_removed Qt__errc = 43
const Qt__illegal_byte_sequence Qt__errc = 84
const Qt__inappropriate_io_control_operation Qt__errc = 25
const Qt__interrupted Qt__errc = 4
const Qt__invalid_argument Qt__errc = 22
const Qt__invalid_seek Qt__errc = 29
const Qt__io_error Qt__errc = 5
const Qt__is_a_directory Qt__errc = 21
const Qt__message_size Qt__errc = 90
const Qt__network_down Qt__errc = 100
const Qt__network_reset Qt__errc = 102
const Qt__network_unreachable Qt__errc = 101
const Qt__no_buffer_space Qt__errc = 105
const Qt__no_child_process Qt__errc = 10
const Qt__no_link Qt__errc = 67
const Qt__no_lock_available Qt__errc = 37
const Qt__no_message Qt__errc = 42
const Qt__no_message_available Qt__errc = 61
const Qt__no_protocol_option Qt__errc = 92
const Qt__no_space_on_device Qt__errc = 28
const Qt__no_stream_resources Qt__errc = 63
const Qt__no_such_device Qt__errc = 19
const Qt__no_such_device_or_address Qt__errc = 6
const Qt__no_such_file_or_directory Qt__errc = 2
const Qt__no_such_process Qt__errc = 3
const Qt__not_a_directory Qt__errc = 20
const Qt__not_a_socket Qt__errc = 88
const Qt__not_a_stream Qt__errc = 60
const Qt__not_connected Qt__errc = 107
const Qt__not_enough_memory Qt__errc = 12
const Qt__not_supported Qt__errc = 95
const Qt__operation_canceled Qt__errc = 125
const Qt__operation_in_progress Qt__errc = 115
const Qt__operation_not_permitted Qt__errc = 1
const Qt__operation_not_supported Qt__errc = 95
const Qt__operation_would_block Qt__errc = 11
const Qt__owner_dead Qt__errc = 130
const Qt__permission_denied Qt__errc = 13
const Qt__protocol_error Qt__errc = 71
const Qt__protocol_not_supported Qt__errc = 93
const Qt__read_only_file_system Qt__errc = 30
const Qt__resource_deadlock_would_occur Qt__errc = 35
const Qt__resource_unavailable_try_again Qt__errc = 11
const Qt__result_out_of_range Qt__errc = 34
const Qt__state_not_recoverable Qt__errc = 131
const Qt__stream_timeout Qt__errc = 62
const Qt__text_file_busy Qt__errc = 26
const Qt__timed_out Qt__errc = 110
const Qt__too_many_files_open Qt__errc = 24
const Qt__too_many_files_open_in_system Qt__errc = 23
const Qt__too_many_links Qt__errc = 31
const Qt__too_many_symbolic_link_levels Qt__errc = 40
const Qt__value_too_large Qt__errc = 75
const Qt__wrong_protocol_type Qt__errc = 91

type Qt__float_denorm_style

type Qt__float_denorm_style = int // stdglobal
const Qt__denorm_absent Qt__float_denorm_style = 0
const Qt__denorm_indeterminate Qt__float_denorm_style = -1
const Qt__denorm_present Qt__float_denorm_style = 1

type Qt__float_round_style

type Qt__float_round_style = int // stdglobal
const Qt__round_indeterminate Qt__float_round_style = -1
const Qt__round_to_nearest Qt__float_round_style = 1
const Qt__round_toward_infinity Qt__float_round_style = 2
const Qt__round_toward_neg_infinity Qt__float_round_style = 3
const Qt__round_toward_zero Qt__float_round_style = 0

type Qt__future_errc

type Qt__future_errc = int // stdglobal
const Qt__broken_promise Qt__future_errc = 4
const Qt__future_already_retrieved Qt__future_errc = 1
const Qt__no_state Qt__future_errc = 3
const Qt__promise_already_satisfied Qt__future_errc = 2

type Qt__future_status

type Qt__future_status = int // stdglobal
const Qt__deferred Qt__future_status = 2
const Qt__ready Qt__future_status = 0
const Qt__timeout Qt__future_status = 1

type Qt__io_errc

type Qt__io_errc = int // stdglobal
const Qt__stream Qt__io_errc = 1

type Qt__jobjectRefType

type Qt__jobjectRefType = int // stdglobal
const Qt__JNIGlobalRefType Qt__jobjectRefType = 2
const Qt__JNIInvalidRefType Qt__jobjectRefType = 0
const Qt__JNILocalRefType Qt__jobjectRefType = 1
const Qt__JNIWeakGlobalRefType Qt__jobjectRefType = 3

type Qt__memory_order

type Qt__memory_order = int // stdglobal
const Qt__memory_order_acq_rel Qt__memory_order = 4
const Qt__memory_order_acquire Qt__memory_order = 2
const Qt__memory_order_consume Qt__memory_order = 1
const Qt__memory_order_relaxed Qt__memory_order = 0
const Qt__memory_order_release Qt__memory_order = 3
const Qt__memory_order_seq_cst Qt__memory_order = 5

type Qt__pointer_safety

type Qt__pointer_safety = int // stdglobal
const Qt__preferred Qt__pointer_safety = 1
const Qt__relaxed Qt__pointer_safety = 0
const Qt__strict Qt__pointer_safety = 2

type Qt__tagExtendedErrorParamTypes

type Qt__tagExtendedErrorParamTypes = int // stdglobal
const Qt__eeptAnsiString Qt__tagExtendedErrorParamTypes = 1
const Qt__eeptBinary Qt__tagExtendedErrorParamTypes = 7
const Qt__eeptLongVal Qt__tagExtendedErrorParamTypes = 3
const Qt__eeptNone Qt__tagExtendedErrorParamTypes = 6
const Qt__eeptPointerVal Qt__tagExtendedErrorParamTypes = 5
const Qt__eeptShortVal Qt__tagExtendedErrorParamTypes = 4
const Qt__eeptUnicodeString Qt__tagExtendedErrorParamTypes = 2

type VariantData

type VariantData struct {
	*qtrt.CObject
}

func NewVariantData

func NewVariantData(metaTypeId_ int, data_ unsafe.Pointer, flags_ uint) *VariantData

func NewVariantDataFromPointer

func NewVariantDataFromPointer(cthis unsafe.Pointer) *VariantData

func (*VariantData) GetCthis

func (this *VariantData) GetCthis() unsafe.Pointer

func (*VariantData) NewFromPointer

func (*VariantData) NewFromPointer(cthis unsafe.Pointer) *VariantData

func (*VariantData) SetCthis

func (this *VariantData) SetCthis(cthis unsafe.Pointer)

func (*VariantData) VariantData_PTR

func (ptr *VariantData) VariantData_PTR() *VariantData

type VariantData_ITF

type VariantData_ITF interface {
	VariantData_PTR() *VariantData
}

type VectorBoolElements

type VectorBoolElements struct {
	*qtrt.CObject
}

func NewVectorBoolElementsFromPointer

func NewVectorBoolElementsFromPointer(cthis unsafe.Pointer) *VectorBoolElements

func (*VectorBoolElements) GetCthis

func (this *VectorBoolElements) GetCthis() unsafe.Pointer

func (*VectorBoolElements) NewFromPointer

func (*VectorBoolElements) NewFromPointer(cthis unsafe.Pointer) *VectorBoolElements

func (*VectorBoolElements) SetCthis

func (this *VectorBoolElements) SetCthis(cthis unsafe.Pointer)

func (*VectorBoolElements) VectorBoolElements_PTR

func (ptr *VectorBoolElements) VectorBoolElements_PTR() *VectorBoolElements

type VectorBoolElements_ITF

type VectorBoolElements_ITF interface {
	VectorBoolElements_PTR() *VectorBoolElements
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL