Issue title: libc++abi.dylib: uncaught exception of type cv38d1:d2b4:3d06:83e8:96a5:8c2:893d:aba5xception: OpenCV(4.5.0) /tmp/opencv-20201123-44189-puvplv/opencv-4.5.0/modules/highgui/src/window.cpp:597: error: (-213:The function/feature is not implemented) The library is compiled without QT support in function 'createButton'
 Issue body: ##### System information (version)
- OpenCV => `3.4.12_3`
- Operating System / Platform => `macOS BigSur 64 Bit`
- Compiler / IDE => `CLion 2020.3 (Clang++  (ver 116.69.203.11500032)) / Qt 6/ Qt 5`

##### Detailed description
I would like to use `highgui.hpp` OpenCV lib. I have already install `OpenCV`, `Qt`. I have tried to run 2 separate window (Qt,OpenCV) and it works fine (when I didn't use `highgui.hpp`, just `QApplication` and `opencv.hpp`).  
If I call `createButton` there is exception. The same situation for CMakeList OpenCV version `4.5.0_5` and `116.69.203.115_11` 
(it was installed via brew). I also tried to download Qt Creator and the same problem it was:
```
libc++abi.dylib: terminating with uncaught exception of type cv38d1:d2b4:3d06:83e8:96a5:8c2:893d:aba5xception: OpenCV(4.5.0) /tmp/opencv-20201123-44189-puvplv/opencv-4.5.0/modules/highgui/src/window.cpp:597: error: (-213:The function/feature is not implemented) The library is compiled without QT support in function 'createButton'
```

I have already read [The same issue](https://github.com/opencv/opencv/issues/11372). But the solution is not correct. I have tried all possible version `OpenCV` and Qt (5 ,6 ,4). Clang and gcc compilers.

##### Steps to reproduce

    ```.cpp
#include <QApplication>
#include <QPushButton>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/highgui.hpp>
#include <iostream>

using namespace std;
using namespace cv;

void blurCallback(int state, void *userdata);

void blurCallback(int state, void *userdata) {}

int main(int argc, char *argv[]) {
    QApplication a(argc, argv);
    QPushButton button("Hello world!", nullptr);
    button.resize(200, 100);
    button.show();
    Mat img = imread("imgs/pic.png");
    namedWindow("test", WINDOW_AUTOSIZE);
//    try {
        createButton("Blur", blurCallback);
//    }
//    catch (...) {
//        cout << "Error";
//    }
    imshow("test", img);
    cerr << cv38d1:d2b4:3d06:83e8:96a5:8c2:893d:aba5getBuildInformation();
    waitKey(0);
    return QApplication38d1:d2b4:3d06:83e8:96a5:8c2:893d:aba5xec();
}
 ```
Possible `CMakeLists.txt`:
```CMAKE
cmake_minimum_required(VERSION 3.17)
project(untitled)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_PREFIX_PATH /usr/local/Cellar/qt/5.15.2)
# The same for QT 6.
set(QT_VERSION 5)
set(REQUIRED_LIBS Core Gui Widgets)
set(REQUIRED_LIBS_QUALIFIED Qt38d1:d2b4:3d06:83e8:96a5:8c2:893d:aba5Core Qt38d1:d2b4:3d06:83e8:96a5:8c2:893d:aba5Gui Qt38d1:d2b4:3d06:83e8:96a5:8c2:893d:aba5Widgets)
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )
find_package(Qt5 COMPONENTS Core Gui Widgets REQUIRED)

add_executable(${PROJECT_NAME} main.cpp)

target_link_libraries(${PROJECT_NAME} Qt38d1:d2b4:3d06:83e8:96a5:8c2:893d:aba5Core Qt38d1:d2b4:3d06:83e8:96a5:8c2:893d:aba5Gui Qt38d1:d2b4:3d06:83e8:96a5:8c2:893d:aba5Widgets ${OpenCV_LIBS})
```

##### Issue submission checklist

 - [x] I report the issue, it's not a question
   <!--
   OpenCV team works with answers.opencv.org, Stack Overflow and other communities
   to discuss problems. Tickets with question without real issue statement will be
   closed.
   -->
 - [x] I checked the problem with documentation, FAQ, open issues,
       answers.opencv.org, Stack Overflow, etc and have not found solution
   <!--
   Places to check:
   * OpenCV documentation: https://docs.opencv.org
   * FAQ page: https://github.com/opencv/opencv/wiki/FAQ
   * OpenCV forum: https://answers.opencv.org
   * OpenCV issue tracker: https://github.com/opencv/opencv/issues?q=is%3Aissue
   * Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv
   -->
 - [x] I updated to latest OpenCV version and the issue is still there
   <!--
   master branch for OpenCV 4.x and 3.4 branch for OpenCV 3.x releases.
   OpenCV team supports only latest release for each branch.
   The ticket is closed, if the problem is not reproduced with modern version.
   -->
 - [x] There is reproducer code and related data files: videos, images, onnx, etc
   <!--
   The best reproducer -- test case for OpenCV that we can add to the library.
   Recommendations for media files and binary files:
   * Try to reproduce the issue with images and videos in opencv_extra repository
     to reduce attachment size
   * Use PNG for images, if you report some CV related bug, but not image reader
     issue
   * Attach the image as archive to the ticket, if you report some reader issue.
     Image hosting services compress images and it breaks the repro code.
   * Provide ONNX file for some public model or ONNX file with with random weights,
     if you report ONNX parsing or handling issue. Architecture details diagram
     from netron tool can be very useful too. See https://lutzroeder.github.io/netron/
   -->

 Comments: 
 Comment 0: `createButton` requires enabled Qt during the build of OpenCV itself. Check CMake output / `getBuildInformation()`.

---

Usage questions should go to Users OpenCV Q/A forum: https://forum.opencv.org/ 
{'source': 'GithubIssues', 'repo_name_with_owner': 'opencv/opencv', 'issue_id': 784916551, 'repo_stars': 58402.0}