make showLoadImageDialog() a slot and connect actionOpen.triggered directly to it.