pub struct LoadHint(/* private fields */);
Expand description
This enum describes the possible hints that can be used to change the way libraries are handled when they are loaded. These values indicate how symbols are resolved when libraries are loaded, and are specified using the setLoadHints() function.
C++ enum: QLibrary::LoadHint
.
This enum describes the possible hints that can be used to change the way libraries are handled when they are loaded. These values indicate how symbols are resolved when libraries are loaded, and are specified using the setLoadHints() function.
The LoadHints type is a typedef for QFlags<LoadHint>. It stores an OR combination of LoadHint values.
See also loadHints.
Implementations§
source§impl LoadHint
impl LoadHint
sourcepub const ResolveAllSymbolsHint: LoadHint = _
pub const ResolveAllSymbolsHint: LoadHint = _
Causes all symbols in a library to be resolved when it is loaded, not simply when resolve() is called. (C++ enum variant: ResolveAllSymbolsHint = 1
)
sourcepub const ExportExternalSymbolsHint: LoadHint = _
pub const ExportExternalSymbolsHint: LoadHint = _
Exports unresolved and external symbols in the library so that they can be resolved in other dynamically-loaded libraries loaded later. (C++ enum variant: ExportExternalSymbolsHint = 2
)
sourcepub const LoadArchiveMemberHint: LoadHint = _
pub const LoadArchiveMemberHint: LoadHint = _
Allows the file name of the library to specify a particular object file within an archive file. If this hint is given, the filename of the library consists of a path, which is a reference to an archive file, followed by a reference to the archive member. (C++ enum variant: LoadArchiveMemberHint = 4
)
sourcepub const PreventUnloadHint: LoadHint = _
pub const PreventUnloadHint: LoadHint = _
Prevents the library from being unloaded from the address space if close() is called. The library’s static variables are not reinitialized if open() is called at a later time. (C++ enum variant: PreventUnloadHint = 8
)
sourcepub const DeepBindHint: LoadHint = _
pub const DeepBindHint: LoadHint = _
Instructs the linker to prefer definitions in the loaded library over exported definitions in the loading application when resolving external symbols in the loaded library. This option is only supported on Linux. (C++ enum variant: DeepBindHint = 16
)