QT Multilevel Directory Development

Source: Internet
Author: User

When we write the QT development interface program, we often use the code of each module or the QML file to separate, so as not to qml too many files and look a bit messy

Below, let's take a look at:

We write each module separately in a. pri file

, and then we include them in the. Pro file

Include ($ $PWD/.. /.. /.. /BASE/BASE.PRI)

Include ($ $PWD/.. /.. /CAPB.PRI)

Two. pri files are two different modules one is the interface, and the other is the data

The content of one of them is posted below;

HEADERS + = $ $PWD/appctrl/appsettings.hxx \
           $ $PWD/common/utabdiag.hxx  \
           $ $PWD/common/utabsys.hxx   \
           $ $PWD/common/regbaseitem_api.hxx \
           $ $PWD/common/utabdef.h \
           $ $PWD/common/utabdiaglocal.h \
           $ $PWD /common/version.h \
           $ $PWD/viewmodel/actstatenotifier.hxx \
        
SOURCES + $ $PWD/appctrl/appsettings.cxx \
           $ $PWD/common/utabdiagimpl.c \
           $ $PWD/common/regbaseitem_api.cxx \
           $ $PWD/common/utabdiag.cxx \
           $ $PWD /COMMON/UTABSYS.CXX \
           $ $PWD/viewmodel/actstatenotifier.cxx \


Win32 {
    Rc_file + $ $PWD/resource/ Mainres.rc
}

include ($ $PWD/third-part/qxview/qxview.pri   )
include ($ $PWD/third-part/utabdev /UTABDEV.PRI)
include ($ $PWD/third-part/scipack/mkspecs/qmake_subdir/scipack.pri)

Take a look at the back.

Include ($ $PWD/third-part/qxview/qxview.pri)

Include ($ $PWD/third-part/utabdev/utabdev.pri)

Include ($ $PWD/third-part/scipack/mkspecs/qmake_subdir/scipack.pri)

We've got a couple of modules here.

Finally we put out the effect;


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.