Quay cranes are among the most important resources in port terminals, and their efficient use is crucial for port terminals to remain competitive in the market. The problem of determining the sequence of tasks performed by the quay cranes that minimizes the turnaround time of a vessel is an NP‐hard problem known as the quay crane scheduling problem (QCSP).In this paper, we consider the unidirectional QCSP under uncertain processing times, where the cranes are only allowed to move in a specific direction. We start by presenting the first distributionally robust optimization (DRO) model for this problem and an exact decomposition algorithm to solve it. The proposed DRO model makes it possible to derive a stochastic programming model and a robust optimization model for the unidirectional QCSP by an appropriate choice of the risk‐averse parameter of the model. Through extensive numerical results, we compare these three approaches—stochastic programming, robust optimization, and DRO—to investigate whether significant differences among the solutions obtained exist. Finally, we propose a new method for helping practitioners to determine a representative set of different DRO solutions.