Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the development skills of Qt

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "what are the development skills of Qt". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

When the compiler finds a large number of errors, from the first point of view, one by one to solve, do not rush to see the next error, often the latter errors are caused by the previous errors, the first solution is likely to be solved.

Timer is a good thing, learn to use it well, and sometimes use QTimer::singleShot to solve unexpected problems.

Open creator and add MAKEFLAGS=-j8 to the environment in which you build the suite without having to set up multithreaded compilation each time. Cherish time and life. The new version of QtCreator is j8 by default.

If you want to successfully deploy Android programs with QtCreator, you must first configure it successfully in AndroidStudio and level all the holes.

Many times after finding the corresponding encapsulation method for Qt, remember to take a look at the overloading of the function. If you have multiple parameters, you will find a different world. Sometimes you will suddenly realize that Qt has already sealed it for us.

You can write the marked version number + ico icon in the pro file (only supported by Qt5)

VERSION = 2018.7.25RC_ICONS = main0.ico

The administrator runs the program, limited to the MSVC compiler.

QMAKE_LFLAGS + = / MANIFESTUAC: "level='requireAdministrator' uiAccess='false'" # runs QMAKE_LFLAGS + = / SUBSYSTEM:WINDOWS as an administrator, and "5.01" # VS2013 runs on XP

The running file comes with the debug output window CONFIG + = console pro

Draw the tiled background QPainter::drawTiledPixmap, draw the rounded rectangle QPainter::drawRoundedRect (), instead of QPainter::drawRoundRect ()

Remove old styl

/ / remove the original style style ()-> unpolish (ui- > btn); / / restyle the new control. Style ()-> polish (ui- > btn); this is the end of "what are the development skills of Qt"? thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report