code: def _parse_alignment(alignment):
      
  
      align_flags = None
      for qt_align in alignment.split('|'):
          _, qt_align = qt_align.split('::')
          align = getattr(QtCore.Qt, qt_align)
  
          if align_flags is None:
              align_flags = align
          else:
              align_flags |= align
  
      return align_flags
docs: Convert a C++ alignment to the corresponding flags.