Category : qt6

Qt 6 has removed the support for ANGLE for their OpenGL backend. Now I would still like to use ANGLE with Qt because I would like to run custom OpenGL code that is translated by ANGLE to Vulkan Linux and Direct3D on Windows. I’ve tried to use ANGLE in my Qt 6 application, but without ..

Read more

Does anyone know how to convert QVideoFrame to OpenCV cv::Mat in QT6? I have event where video frame arrived from video camera. void videoFrameChanged(const QVideoFrame &frame)// frame from QCamera { QImage qImg=frame.toImage();//<<– slow cv::Mat m=Qimage2Mat_shared(qImg); … } I know how to convert QImage to cv::Mat, but here used very slow function: frame.toImage(). How to convert ..

Read more

I have a custom style based on QStyleProxy and set on qApp->setStyle. Then I have a QWidget subclass that overrides paintEvent and calls style()->drawPrimitive: void CommandBar::paintEvent(QPaintEvent *event) { Q_UNUSED(event); QPainter painter(this); using Borders = StyleOptionCommandBar::Border; StyleOptionCommandBar::Borders flags(Borders::None); flags.setFlag(Borders::Top, m_hasTopBorder); flags.setFlag(Borders::Bottom, m_hasBottomBorder); StyleOptionCommandBar option(flags); option.initFrom(this); style()->drawPrimitive(QStyle::PE_Frame, &option, &painter, this); } For whatever reason, the proxy style ..

Read more

I’am trying to call asynchrone function like slot but when i click on the button nothing happen. Code: connect(ui->Button1, SIGNAL(clicked()), this, SLOT(QtConcurrent::run(func1))); func is declared in private slot. When i call function normally, everything work nice but the app is frozen during some time until the function completes. connect(ui->Button1, SIGNAL(clicked()), this, SLOT(func1())); Source: Windows Questions ..

Read more

I could not start this simple startup code. #include <QApplication> int main(int argc, char* argv[]) { QApplication app(argc, argv); return app.exec(); } The following popup appears: The bin folder looks like this: I build the project with the following Conan script: … options = {‘qt6’: ‘ANY’} default_options = {‘qt:shared’: True, ‘qt6’: None} generators = ‘cmake’, ..

Read more