Ho Ntlafatsa Likopo tsa Ubuntu [QML]

Ho kenya Ubuntu SDK

Botho SDK ke IDE e re fang lisebelisoa tseo re li hlokang ho nts'etsapele ts'ebeliso ho latela QTCMoqapi.

sudo apt-get install ubuntu-sdk

Haeba hang ha e kentsoe rea e bula ebe sena se tla hlaha:

sdk

Litokomane

Re ka fumana tlhaiso-leseling e ngata ho ho web Bahlahisi ba Ubuntu, lithupelo, api ...

Ka hare ho Ubuntu SDK e le 'ngoe re ka fumana likarolo tseo re ka ithutang tsona, ra bona khoutu ... Likarolo ke Thuso, Wiki, Lisebelisoa tsa Core le API.

Ho API re ka fumana li-api tsohle tsa Ubuntu likarolo tsa 0.1 e leng likarolo tseo re tla li sebelisa ho theha sesebelisoa.

Ho Core Apps e re bontša sebaka sa marang-rang ubuntu-phone-coreapps ea launchpad moo re ka fumanang khoutu ea lits'ebetso tse 'maloa. Ho Thuso re ka bona libuka tse ling tse tla re thusa ho qala.

ho web moo re ka fumanang thupelo ea ho hlahisa json ka qml le javascript.

Ho theha kopo (Mofani)

Ho bona mohlala re tla theha moreki, eo ke seng ke buile hanyane ka eona ho joalo.

Re theha projeke e ncha: File -> New File or Project

qalo

Mme re khetha Simple UI UI. Ka nako eo re thehileng morero oa rona, e tla bonahala e hlophisehile, e na le lifaele tse ling le lifoldara tse ling, haeba re ka matha hona joale re tla fumana mohlala oa ts'ebeliso, eo re ke keng ra e sebelisa kapa re tla e sebelisa e le ntlha ea motheo ho theha tsa rona. .

  Ho ts'oaroa ho tloha ka 2014-04-06 17:10:44

Haeba joale re eketsa lenaneBona ka mohlala o nkang data ea Json ho metlae, joalo ka sehlooho, re tla ba le:

Ho ts'oaroa ho tloha ka 2014-04-06 18:07:59

Re theha faele e bitsoang data.js, ho etsa file ena tlanya ka ho le letona morerong Eketsa e ncha -> Qt -> JS file:

Ho ts'oaroa ho tloha ka 2014-04-06 18:07:00

Re khona ho bona hore na re bala json joang ka ho nka feela liphetho tsa liphetho moo re tla fumana sehlooho sa eona bakeng sa sephetho se seng le se seng.

console.log e tšoana le ho etsa khatiso bakeng sa console.

Qetellong re kentse stup.qml kaholimo ho moo thepa e tsoang kantle ho naha e leng teng

import "data.js" as Data

Sephetho: Ho ts'oaroa ho tloha ka 2014-04-06 17:57:16

Ha re nahane hore re batla ho fa ts'ebeliso ea rona ts'ebeliso e ntle, ka mohlala ho fapana le ho bonts'a sehlooho feela se bonts'ang setšoantšo. 'me re tsebe ho li tsamaisa ka tsela e otlolohileng, hantle, ha re e etse:

Re eketsa thepa ea boikoetliso ponong ea lenane

orientation: ListView.Horizontal

Re boetse re fetola sengoloa bakeng sa setšoantšo:

Image {
width: 200; height: 150
fillMode: Image.PreserveAspectFit
source: thumbnail+".jpg"
}

Le ho data.js re kenya sets'oants'o

marvelModel.append({id: i.id, title: i.title, thumbnail: i.thumbnail.path});

Re ka bona sephetho:

Ho ts'oaroa ho tloha ka 2014-04-06 18:29:44 Joale re ka etsa mesebetsi e mengata hore kopo ea rona e e etse, joalo ka ho tobetsa setšoantšong ho tla re bonts'a tlhaiso-leseling, enjine ea patlo ea batho ... Empa re tla tlohela mohlala mona.

ambalaji

Kamora nako, re tlameha feela ho theha sephutheloana sa rona, re ea ho Packaging:

sdk_packagin Rea bona hore re tlameha ho tlatsa likarolo tse ling. Ha e le mohlala haeba u sebelisa marang-rang ..., ha lintho tsohle li felletse re fana ka sephutheloana se tla etsa file ea .click hore re tsebe ho kenya ts'ebeliso.

Qetello (GTK3 kapa QML)

Mabapi le chebahalo, nna ka bonna ke rata gtk haholo empa tekanyo ea "phetolo" ea sena e siea ho lakatseha haholo, ka lehlakoreng le leng ka qml o ka etsa UI haholo ho ba bang hape e na le Lisebelisoa (Likomporo tsa Desktop) tse tlohelang ponahalo ekare ke gtk.


Litaba tsa sengoloa sena li latela melao-motheo ea rona ea melao ea boitšoaro ea bongoli. Ho tlaleha phoso tlanya mona.

Maikutlo a 2, siea ea hau

Siea maikutlo a hau

aterese ya hao ya imeile ke ke ho phatlalatswa.

*

*

  1. E ikarabella bakeng sa data: Miguel Ángel Gatón
  2. Morero oa data: Laola SPAM, tsamaiso ea maikutlo.
  3. Molao: Tumello ea hau
  4. Puisano ea data: Lintlha li ke ke tsa tsebisoa batho ba boraro ntle le ka tlamo ea molao.
  5. Polokelo ea data: Database e hapiloeng ke Occentus Networks (EU)
  6. Litokelo: Nako efe kapa efe o ka fokotsa, oa hlaphoheloa mme oa hlakola tlhaiso-leseling ea hau.

  1.   r @ y a re

    Tlhaloso feela, Ubuntu SDK HA SE IDE ebile ha e thehiloe ho QtCreator, ho joalo ka ha lebitso la eona le bonts'a Setsi sa Nts'etsopele se ka kopanngoang le QtCreator.

  2.   cuelebre a re

    Kajeno ke qalile ho latela thuto ena le tse ling tse tharo, empa ha ke leka ho tsamaisa morero, ke tsoa ts'ebelisong, na o ka mpolella hore na ho na le bothata ba mofuta ofe kapa ofe?

bool('nete)