text: Holders Hibernian or Hearts will host the winners of another replay, between Clyde and Ayr United.
  Celtic, already League Cup winners, will entertain Championship side St Mirren and Partick Thistle travel to Aberdeen in the two clear-cut ties.
  Rangers host the winner of the replay between Hamilton Academical and Championship side Dunfermline Athletic.
  Media playback is not supported on this device
  It means the Premiership's top three sides have been handed home ties in the quarter-finals to be played over the weekend of 4/5 March.
  The other hosts will be either Hearts, sitting fourth, or last year's winners after the Edinburgh rivals drew 0-0 at Tynecastle on Sunday.
  Championship leaders Hibs also played their neighbours at the same stage last season, winning a replay at Easter Road, and went on to beat Rangers in the final.
  Last season's runners-up won the last of this weekend's fifth-round ties, edging out Championship outfit Greenock Morton 2-1 in Glasgow.
  Media playback is not supported on this device
  The Ibrox side, presently under caretaker manager Graeme Murty after Mark Warburton's departure on Friday, will find out their opponents on Tuesday, when Premiership rivals Hamilton entertain Dunfermline.
  League Two outfit Clyde host Ayr of the Championship on the same night, while Hibs host Hearts the following Wednesday.
  Premiership leaders Celtic will be strong favourites to progress having been drawn at home to St Mirren, who are currently bottom of the Championship.
  Aberdeen, sitting second in the top-flight, host Thistle in an all-Premiership tie.
  Aberdeen v Partick Thistle
  Celtic v St Mirren
  Hearts or Hibernian v Ayr United or Clyde
  Rangers v Dunfermline Athletic or Hamilton Academical
  Ties to be played over the weekend of 4/5 March.
target: Celtic, Rangers and Aberdeen were all handed home ties after the draw for the Scottish Cup quarter-finals.