Qhov yoojyim tshaj plaws yog qhov kev kawm sau ua pom. Yeej, feem ntau cov tub ntxhais kawm tau paub txog cov lus programming los ntawm nws. Sau nws koj tus kheej yog yooj yim heev, lub ntsiab tseem ceeb yog kom nkag siab txog compiler interface thiab cov hauv paus ntawm hom lus programming.
Tsim nyog
Qt-SDK
Cov Lus Qhia
Kauj ruam 1
Rub lub program ib qho txuas rau koj lub khoos phis tawm. Nws yog qhov zoo tshaj plaws los siv cov kev paub zoo xws li, piv txwv li Nokia Qt SDK, vim nws muaj qhov cuam tshuam zoo tshaj plaws thiab yuav yooj yim dua rau cov neeg siv cov novice. Rub tawm nws los ntawm cov nom tswv site thiab tsis muaj kev txhaum dab tsi rau nws nrog Qt-Tus Tswv Tsim. Nruab lub compiler rau koj lub computer thiab khiav nws.
Kauj ruam 2
Xaiv los tsim txoj haujlwm hu ua Hello World. Txhawm rau ua li no, nyem Tsim qhov Project nyob rau hauv qab yog kaum thiab xaiv hom ntawv thov hauv qhov rai tshiab uas tau tshwm sim. Hauv cov lus programming, xaiv C ++. Nyob rau hauv lub qhov rai tom ntej uas tshwm, sau lub npe helloworld. Ntxiv mus, xaiv ib lub cuab yeej yog qhov kev zov me nyuam tsis tau raug tsim los siv rau kev siv computer ntiag tug.
Kauj ruam 3
Nyem rau Tom ntej no khawm ob zaug, xaiv cov yam xav tau nyob hauv lub qhov rais kawg thiab nyem OK. Koj yuav pom daim teb ua haujlwm, qhib cov editor, xaiv qhov tseem ceeb ntawm sab laug ntawm lub vijtsam, sau cov lus QLabel daim ntawv lo (Nyob zoo Txhua tus) nyob hauv kab #endif. Koj tuaj yeem siv cov kab lus koj nyiam. Tso / tom kawg ntawm kab ntawv.
Kauj ruam 4
Ntawm kab tom ntej, sau label.show () # thiab los ntawm cov ntawv qhia saum toj, xaiv Xaiv siv Siv cov lus txib Khiav. Hauv kab thib peb los ntawm sab saud, sau Xam QLabel, raws li sau hauv ob kab lus saum toj kawg nkaus. Hauv lub thawv ntawv uas tau tshwm sim, xaiv qhov Save All.
Kauj ruam 5
Yog tias koj tau sau ib qho kev ua haujlwm los tso tawm cov ntawv nyeem ntawm lub xov tooj ntawm tes, qhib lub simulator nyob rau hauv cov cuab yeej ntawm sab laug thiab kos cov ntawv sau ua haujlwm rau kev ua haujlwm. Koj tseem tuaj yeem xaiv lwm simulator hauv cov npe hauv qab no, ntxiv rau qhov uas koj tau xaiv thaum tsim. Tom ntej no, muab tso ua ke siv khawm nyob rau sab laug sab laug, tos kom khoos phis tawj kom tiav txhua kauj ruam tsim nyog.