Edit /etc/apt/sources.list and add tsinghua mirror as the source.
Read the link below for details
https://mirrors.tuna.tsinghua.edu.cn/help/raspbian/
Run commands below to install Qt5 with apt
# install Qt5
$ sudo apt-get update
$ sudo apt-get upgrade
Buster OS
$ sudo apt-get install qt5-default
$ sudo apt-get install qtcreator
$ sudo apt-get install qtdeclarative5-dev
or Bullseye OS
$ sudo apt-get install qtbase5-dev qtchooser
$ sudo apt-get install qt5-qmake qtbase5-dev-tools
$ sudo apt-get install qtcreator
$ sudo apt-get install qtdeclarative5-dev
See the link below for details
https://qengineering.eu/install-qt5-with-opencv-on-raspberry-pi-4.html