当前位置:网站首页>QML introduction to advanced

QML introduction to advanced

2022-06-21 11:12:00 yantuguiguziPGJ

This is a Earth salt Of the 178 Original articles

e23346208104e97d85f582f419531f78.png

1

Hello everyone , I am earth salt .

Today, we have solved the need to wait for the chip to be taken out after detection before resetting , The corresponding device will pop up the specified dialog box for confirmation and then reset .

Software translation is to use qml Dynamically generate button requirements on the dialog box .

Look at the official qml Dialog example , I feel very big .

pawn .

Use a foreign elder brother's project , Similar to Apple style dialog .

The code was accumulated by me a long time ago , Find this link again , It feels like it took me a lifetime .

https://github.com/anyks/MessageDialogIOSQml

One by one qml Encapsulates the model and delegates , Interface calls are very smooth .

On use , We need to pay attention to , The interface function open The parameter of must have enabled attribute , For example, put button Example .

7b1b8ed887f194c88615291ca3363a79.png

2

Here, I will push brother Tao qml Application framework , Integrated html journal 、 Dynamic addition and deletion of tables 、 Component associated to designer interface drag and drop call 、opengl Special effects examples, etc .

qml From the beginning to the advanced stage , Thank you, brother Tao .

https://github.com/jaredtao/TaoQuick

Steal two pictures here .

9b67f4a69e0f20fdf50e1d5a0da62479.png

2b041f93b32fe78005282785e1303d08.png

3

Today I watched qt Source code , Search the following class definitions class+ macro + Meaning of class name .

The following resources were found , Feel like doing SDK Or class library development depends on this .

# https://blog.csdn.net/LinearF/article/details/81981031
# https://blog.csdn.net/weixin_39743893/article/details/81225240
#ifdef UILIB_STATIC // If it's static UI library 
#  define DUILIB_API // No need for dynamic links , Defined as an empty string 
#else
#  if defined(UILIB_EXPORTS)// Need to export UI library 
#    if  defined(_MSC_VER)// If it is a Microsoft compiler ( Defines the version number )
#      define DUILIB_API __declspec(dllexport)// Define as export 
#    else
#      define DUILIB_API // Non Microsoft compilers , Empty string  
#    endif
#  else// No need to export UI library 
#    if defined(_MSC_VER)// If it is a Microsoft compiler ( Defines the version number )
#      define DUILIB_API __declspec(dllimport)// Defined as import 
#    else
#      define DUILIB_API // Non Microsoft compilers , Empty string 
#    endif
#  endif
#endif

4

Mr. Liu shows the machine vision operation again , The software is too slick .

2b7ca8c5775f66e2109c12f069a40b52.gif

We will find out whether the identified objects will be detected according to the setting of area size .

Of course, it seems that we can visualize the degree to which the coordinate axis is now offset to the horizontal axis . 

We can do principal component analysis on its area , Then analyze the main directions for visualization .

Western Chongqing image Trainee , official account : Western Chongqing image Trainee Try to use OpnenCv Write a simple example of measuring the rotation angle !

The knowledge of internal links is also enlightening .

265ec691f797600b4cf95055b242e60e.png

2dd120cdb60e4fa7a45243010951a147.png

Today is another bald day , pawn .

--End--

原网站

版权声明
本文为[yantuguiguziPGJ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/172/202206211057156103.html