QT learning notes

QMainWindow QMainWindow is a class that provides users with main window programs, including a menu bar, multiple tool bars, multiple dock widgets, a status bar and a central widget. It is the basis of many applications, such as text editor, picture editor, etc. menu bar A main window has at most one menu bar. Located at the top of the ...

Added by Coreyjames25 on Sun, 02 Jan 2022 01:00:26 +0200

Data structure and algorithm (2-2) linked storage of linear list (single linked list, static linked list, circular linked list, two-way circular linked list)

catalogue 1, Single linked list 1. Storage mode 2. Insert 3. Delete Total code: II. Static linked list 1. Storage mode 2. Insert 3. Delete 4. Traversal Total code: 3, Circular linked list Total code: 4, Bidirectional circular linked list 1. Storage method: 2. Insert and delete 3. Forward traversal and reverse traversal Total ...

Added by benrussell on Sat, 01 Jan 2022 21:41:04 +0200

Deploying yolox using libtorch

preface The last article introduced how to use ncnn to deploy yolox on nano. Because the ncnn related deployment code of yolox is open source, we only need to configure the environment according to the process, modify the relevant code and compile it. The author has open source the code of four deployment methods, but there is no libtorch. Lib ...

Added by cyberdesi on Sat, 01 Jan 2022 15:56:09 +0200

Decoration pattern & prototype pattern of design pattern

1, Decoration mode: 1. Basic theory: Decoration pattern: dynamically add some additional responsibilities to an object. In terms of adding functions, decoration pattern is more flexible than generating subclasses Decoration mode summary: A way to dynamically add more functions to existing functions. When the system needs new functionality, ...

Added by tyler on Sat, 01 Jan 2022 15:34:51 +0200

stl exercise (emmmmm)

Links: Login - Professional IT Written Interview Reference Platform_ Niuke Source: Niuke.com   Now you'll give a square map with an n-side length. There are empty places on the map and enemies in some places. Now we have a chance to bomb the enemy. The area to bomb the enemy is a square area of k*k. The problem you need to solve now is to cal ...

Added by 01hanstu on Fri, 31 Dec 2021 18:35:05 +0200

QT knowledge sorting

Project structure MOC (meta object compiler) is used for meta object code generation and is applicable to * h,.cpp file, when scanned Q in H file_ The object macro generates a moc_xxx.cpp code and write the dependencies to Makefile. uic(User Interface Compiler) is used for Widget layout generation and is applicable to ui file, rcc(Resource Com ...

Added by biznickman on Fri, 31 Dec 2021 15:54:27 +0200

Basic knowledge of embedded C language -- compound type & Memory & etc

catalogue 1. Generate random number 2. Value transmission and address transmission 3. Return the address of the variable: 4. Address to return to the heap area: 5. Structure array 6. Structure pointer 7. Structure sleeve pointer 8. Structure array as formal parameter of function 9. Enumeration: 10. Memory storage mode: size side &nbs ...

Added by BahBah on Fri, 31 Dec 2021 05:40:47 +0200

Optimization skills of multi-level if/case statements in software development

In daily development, we often see if statements nested in if. Once I had an exchange with a senior coder. Most coders wrote business codes as long as they knew if else. He said that it may not be so. When there are a large number of if else nesting, we can see different code levels. There are a lot of if else nesting, which is difficult to re ...

Added by cvsherri on Fri, 31 Dec 2021 01:49:45 +0200

On C + + callback function (callback) concise and practical

1 about callback functions 1.1 definitions The definition of callback function can be very strict (complex) or simple (random). In fact, instead of studying the definition, it's better to discuss why callback function is needed and what callback function can do. In my opinion, callback functions are not different from ordinary functions in th ...

Added by matijarma on Thu, 30 Dec 2021 23:06:04 +0200

Basic knowledge of embedded C language -- memory management & Function & pointer & array

Memory management: local variableStatic local variableglobal variablestatic globalScopeValid within {} of the defined variableValid within {} of the defined variableThe whole project, all documentsCurrent filelife cycleThe program runs to the variable definition to open up space, and the space is released after the function is completedThe s ...

Added by beginneratphp on Thu, 30 Dec 2021 20:42:38 +0200