Se no, MOLTO MALE!!!! Correte a scaricarlo immediatamente.
Se si, M O L T O B E N E!
Possiamo cominciare a vedere come funziona e come è facile creare programmini utili (o anche meno utili).
Oggi proveremo a creare un convertitore lira-euro, oramai non più utile ma che può essere molto utile per imparare qualche nozione di base su librerie grafiche.
Bene apriamo l'IDE e creaimo un nuovo progetto ( File->New->Qt4GuiApplication ) e chiamiamolo Convertitore e la classe di grafica MainWindow.
Automaticamente il nostro IDE avrà creato 4 file come in questa figura:
Ora creaimo i seguenti controlli:
- una label text con object name "valuta" e il testo (si cambia cliccandoci sopra due volte) "Lira";
- un push button con object name "ok_bt" e il testo "Converti";
- un line edit con object name "line" e nessun testo al suo interno.
Otteniamo in questo modo una finestra che assomiglia a questa:
Ora dobbiamo aggiungere la logica del programma all'interno dei file "mainwindow.h" e "mainwindow.cpp".
Apriamo il file mainwindow.h e fra gli attributi pubblici e privati inseriamo le seguenti linee:
void on_ok_bt_clicked();
L'IDE automaticamente collegherà questa funzione alla pressione del tasto "Converti" dell'interfaccia, l'importante è che abbia lo stesso nome "void on_
Ora scriviamo il corpo del metodo nel file C++:
void MainWindow::on_ok_bt_clicked()
{
QString money = ui->valuta->text();
if(money == "Lira")
{
//Convertiamo le lire in euro
QString line = ui->line->text();
float numero = line.toFloat();
numero = numero / 1936.27;
QString a = QString::number(numero);
ui->line->setText(a);
ui->valuta->setText("Euro");
}
else
{
//Convertiamo gli euro in lire
QString line = ui->line->text();
float numero = line.toFloat();
numero = numero * 1936.27;
QString a = QString::number(numero);
ui->line->setText(a);
ui->valuta->setText("Lira");
}
}
Dobbiamo per forza usare gli oggetti QString che ci mette a disposizione Qt per prendere i dati dai controlli e reinserire i risultati.
Clicchiamo su e "come per magia" comparirà il nostro convertitore in tutto il suo splendore:
Questo è il punto di partenza per una marea di terre inseplorate. Diamo pure sfogo alla nostra fantasia.
32 commenti:
grazie per il tutorial :)
sembra veramente ben fatto questo qtcreator
singles book ex bachelorette [url=http://loveepicentre.com/]dating porn[/url] bad dating sims http://loveepicentre.com/ casual sex dating free
car audio subwoofer alpine plt 5 ford 2002 f150 supercrew [url=http://www.cardvdplanet.com/7-inch-tft-lcd-touch-screen-car-dvd-player-with--discount-price86.html]videovisor auto dvd visor[/url] honda car audio code http://www.cardvdplanet.com/car-dvd-player-with-fm-function-cd136--discount-price47.html auto audio
cathedral city auto audio store [url=http://www.cardvdplanet.com/6-95-inch-16-10-tft-high-digital-screen-wince--discount-price45.html]ford cd cassette car audio[/url] car audio subwoofer alpine plt 5 ford 2002 f150 supercrew http://www.cardvdplanet.com/buy-cheap-car-dvd4.html car audio 1995 infiniti j30
car audio equipment for gmc [url=http://www.cardvdplanet.com/4-3-inch-touchscreen-car-dvd-sd-card-reader--discount-price41.html]selling auto audio[/url] auto dvd player http://www.cardvdplanet.com/4-3-inch-tft-touch-screen-dvd-tv-car0079--discount-price67.html auto audio wiring kits
urinary system including connection to circulatory system [url=http://usadrugstoretoday.com/products/cytoxan.htm]cytoxan[/url] oxford dental insurance http://usadrugstoretoday.com/products/albendazole.htm generic jokes http://usadrugstoretoday.com/products/purim.htm
picture of tea bagging [url=http://usadrugstoretoday.com/products/viagrx.htm]viagrx[/url] job stress and coping [url=http://usadrugstoretoday.com/categories/colesterol.htm]medical device reporting fda[/url]
ambassador travel appleton http://livetravel.in/tourist/chinese-language-tourist travel jobs in nz
[url=http://livetravel.in/expedia/expedia-discount-coupon-expedia-discount-coupon]alaska cruise travel world cruises[/url] insider travel tips for virgin islands [url=http://livetravel.in/travel/travel-harare-to-johannesburg]travel harare to johannesburg[/url]
apple travel agency des moines iowa http://livetravel.in/lufthansa/sar-valve-closed-boeing-tech
[url=http://livetravel.in/car-rental/car-rental-decatur-illinois]is a visa required for travel in czech republic[/url] gun will travel business card [url=http://livetravel.in/maps/military-maps]military maps[/url]
largest travel agencies http://livetravel.in/tours/bus-tours-out-of-nh
[url=http://livetravel.in/flight/round-the-world-flight-deals]travel insurance for 10 people[/url] miniature travel shampoo [url=http://livetravel.in/tourist/ft-lauderdale-tourist-bureau]ft lauderdale tourist bureau[/url] bolton travel clinic [url=http://livetravel.in/motel/sands-motel-caddillac]sands motel caddillac[/url]
average salary of a travel agent [url=http://livetravel.in/adventure/walkthrough-for-sonic-rush-adventure-for-nintendo-ds]walkthrough for sonic rush adventure for nintendo ds[/url]
netherlands travel packages http://livetravel.in/tour/international-tour-companies-in-australia
[url=http://livetravel.in/cruises/cruises-leaving-from-louisiana]travel agencies regulation act[/url] steel coffee travel mugs [url=http://livetravel.in/flight/employment-airlines-flight-attends]employment airlines flight attends[/url]
[url=http://livetravel.in/lufthansa/boeing-spectralab]boeing spectralab[/url] travel portland maine from boston [url=http://livetravel.in/tours/inspirational-tours]inspirational tours[/url] travel access [url=http://livetravel.in/adventure/abillity-guide-for-sonic-adventure-2-battle]abillity guide for sonic adventure 2 battle[/url]
adult travel reviews in the caribbean [url=http://livetravel.in/motel/classic-motel-florida]classic motel florida[/url]
travel information cruise http://atravel.in/tour_agent-singapore-tour south india travel agents
[url=http://atravel.in/expedia_expedia-corporate-travel-travelers]edmonton canada travel radio[/url] last minute travel vacation [url=http://atravel.in/travel_west-palm-beach-travel]west palm beach travel[/url]
what is the best travel and health insurance in australia http://atravel.in/car-rental_alamo-car-rental-coupon-online
[url=http://atravel.in/cruise_cruise-clearance]brunswick travel bag for nintendo wii[/url] travel agent position [url=http://atravel.in/cruise_cruise-clearance]cruise clearance[/url]
tyler junior college travel bid http://atravel.in/airlines_united-airlines-china hotel travel italy riccione [url=http://atravel.in/lufthansa_boeing-employee-flying-club]boeing employee flying club[/url]
how does santa travel to deliver presents in new zeland http://wikitravel.in/disneyland/meal-plan-disneyland-california ellenton gardens travel resprt
[url=http://wikitravel.in/airlines/delta-airlines-office]century travel track[/url] europe travel package london [url=http://wikitravel.in/tours/walking-tours-south-america]walking tours south america[/url]
best time to travel to the keys http://wikitravel.in/airlines/reno-nevada-airlines
[url=http://wikitravel.in/flight/northwest-airlines-flight-attendent]cheap insurance multi travel trip[/url] travel package orange bowl 2008 [url=http://wikitravel.in/airport/general-mitchell-intl-airport]general mitchell intl airport[/url]
free boston travel brochures http://wikitravel.in/cruise/salary-cruise-line-job writing travel brochures [url=http://wikitravel.in/tour/sytycd-tour-numbers]sytycd tour numbers[/url]
vibrating therapeudic shoes http://topcitystyle.com/blue-accessories-color32.html difference between medium width and wide width shoes [url=http://topcitystyle.com/white-black-color169.html]natural clothes[/url] polo ralph lauren shirts
http://topcitystyle.com/henleys-jackets-amp-sweatshirts-brand69.html boarding school fashion design [url=http://topcitystyle.com/?action=products&product_id=1841]color consultation fashion[/url]
in thier shoes http://topcitystyle.com/takeshy-kurosawa-on-sale-brand9.html foster parents in laurens county dfcs [url=http://topcitystyle.com/red-hoodies-color8.html]fashion myspace[/url] designer japanese toys
http://topcitystyle.com/prada-men-brand10.html polish horseshoes [url=http://topcitystyle.com/29-stretch-jeans-size16.html]theresia shoes[/url]
unusual botique fashions http://topcitystyle.com/on-sale-round-neck-type2.html coast designer evening wear [url=http://topcitystyle.com/?action=products&product_id=2088]exotic shoes[/url] nike sprint sisters shoes
http://topcitystyle.com/white-black-jackets-amp-sweatshirts-color18.html myspace fashion jewelry glitter graphics [url=http://topcitystyle.com/-swim-sport-shorts-category89.html]japanese brand infant shoes[/url]
playstation games adult http://theporncollection.in/orgy/shemail-orgy
[url=http://theporncollection.in/free-hentai/free-animal-hentai]hentai videos streaming[/url] free anal lesbian porn [url=http://theporncollection.in/mature-woman/free-palm-pilot-mature-downloads]free palm pilot mature downloads[/url]
noisy adult diapers http://theporncollection.in/sex-mature/curvy-mature-in-corset
[url=http://theporncollection.in/best-porn/drunk-porn-glory-hole-porn]free dildo stuffing pussy[/url] moonlite entertainment adult dvds [url=http://theporncollection.in/hentai-porn/hentai-pokemon-diamond-and-pearl]hentai pokemon diamond and pearl[/url]
massive dildo in the urethia joke http://theporncollection.in/gay-love/amature-18-gay-vid
[url=http://theporncollection.in/gay-love/gay-athlete-vids]anal stimulator for her[/url] best over the counter eye lubricant [url=http://theporncollection.in/mature-woman/hairy-mature-lady-sonia]hairy mature lady sonia[/url]
adult furry animations http://theporncollection.in/gay-love/gay-ocean-grove
[url=http://theporncollection.in/porn-girl/free-porn-passwords-torrent]martial arts america adult classes[/url] masturbtion lubricants [url=http://theporncollection.in/incest/abortions-after-being-raped-or-incest]abortions after being raped or incest[/url]
joe pesci movie lines [url=http://worldmovs.co.cc/full_version-i--robot/2983database/]I, Robot[/url] movie about sex addict after car crash [url=http://full-length-movies.com/dvd-quality-movie-cristiano-ronaldo-the-boy-who-had-a-dream/11149database/]Cristiano Ronaldo The Boy Who Had A Dream[/url]
harvard square movie theater [url=http://full-length-movies.com/dvd-quality-movie-----------------------------------------------------ninja/30250database/]?? ? ?±???????‡?…?????‚ ???µ???????„?¬???±?‚ ?¤?‰?? Ninja[/url] simon birch movie [url=http://full-length-movies.com/dvd-quality-movie-tarta-de-fresa-y-el-arcoiris-de-la-amistad/22457database/]Tarta De Fresa Y El Arcoiris De La Amistad[/url]
marry poppins movie [url=http://worldmovs.co.cc/full_version-stardust/6116database/]Stardust[/url] movie theaters long beach california [url=http://full-length-movies.com/dvd-quality-movie-welcome-to-paradise/23925database/]Welcome to Paradise[/url]
download spiderman 3 the movie free [url=http://full-length-movies.com/dvd-quality-movie-day-zero/17814database/]Day Zero[/url] brandy taylor movie [url=http://full-length-movies.com/dvd-quality-movie-the-agony/16675database/]The Agony[/url]
http://xwv.in/labetalol/the/difference/between/labetalol/and/metoprolol
[url=http://xwv.in/overdose/vics/vapor/overdose]drugs destroyed my brother[/url] celebrity drug overdoses [url=http://xwv.in/naprosyn/naprosyn/dosage]naprosyn dosage[/url]
roadside drug test how long after detectable http://xwv.in/lisinopril/taking/lisinopril/with/cozaar
[url=http://xwv.in/mycelex/mycelex/filters]the drug zyrtec[/url] formulary for prescription drugs [url=http://xwv.in/weight-loss/weight/loss/surgery/roux/en/y/gastric/bypass/topeka/kansas]weight loss surgery roux en y gastric bypass topeka kansas[/url]
drug myspace layouts for girls http://xwv.in/kidney/vasopressant/herb/for/kidney
[url=http://xwv.in/lexapro/information/on/lexapro]azilect erectile[/url] programs in florida schools against drugs [url=http://xwv.in/osteoporosis/injectable/drugs/for/osteoporosis]injectable drugs for osteoporosis[/url] say no to drug slogans [url=http://xwv.in/isotretinoin/red/marks/go/away/after/finished/taking/isotretinoin]red marks go away after finished taking isotretinoin[/url]
atlantic city gambling harrahs http://xwn.in/keno_calculating-the-probability-of-keno-numbers-beat-the-game free bonus baccarat casino online
[url=http://xwn.in/slot_slot-car-manufacturers]the good and bad things of giving lottery tickets to voters[/url] best usa online casinos [url=http://xwn.in/jackpot_delta-downs-jackpot-finish]delta downs jackpot finish[/url]
fantasysprings resort casino http://xwn.in/jackpot_pepsi-cola-jackpot
[url=http://xwn.in/jokers_showtime-a-pair-of-jokers]bingo gifs[/url] shirley jackson the lottery summary [url=http://xwn.in/slots_wheel-of-fortune-special-edition-super-spin-video-slots-free]wheel of fortune special edition super spin video slots free[/url]
mass winning lottery numbers http://xwn.in/blackjack_samsung-blackjack-chime-while-charging jackpot bingo [url=http://xwn.in/online-casino_south-dakota-casino]south dakota casino[/url]
bingo in carrollton texas http://wqm.in/slots_free-onlilne-slots daveedwards lottery winner
[url=http://wqm.in/blackjack_free-interactive-blackjack]football betting square blank[/url] featherfall hotel and casino [url=http://wqm.in/slot_nickle-slot]nickle slot[/url]
casino caribbean vacations http://wqm.in/online-casinos_list-of-casinos-in-louisiana
[url=http://wqm.in/baccarat_baccarat-champion-katie]choose lottery numbers[/url] championship gambling checker [url=http://wqm.in/casino-online_fingerlakes-casino]fingerlakes casino[/url]
san diego house lottery http://wqm.in/roulette_roulette-odds military draft lottery [url=http://wqm.in/keno_to-win-keno-play-game]to win keno play game[/url]
stateline casino wendover http://lwv.in/slot/hand-held-lighted-slot-machine italy football betting shops
[url=http://lwv.in/betting/rules-of-betting-odds]casinos in cancun[/url] pennslvania casinos [url=http://lwv.in/online-casino/casino-job-lake-mystic]casino job lake mystic[/url]
led zeppelin lottery http://lwv.in/baccarat/baccarat-luck
[url=http://lwv.in/lottery/bc-lottery]casinos near atlantic city boardwalk hall[/url] gambling casinos pocono pa [url=http://lwv.in/blackjack/online-strip-blackjack]online strip blackjack[/url]
northcarolina lottery http://lwv.in/roulette/digital-roulette-layout terribles casino [url=http://lwv.in/poker-online/paulson-brand-poker-chips]paulson brand poker chips[/url]
wendy darling movie poster [url=http://moviestrawberry.com/films/film_the_legend_of_the_7_golden_vampires/]the legend of the 7 golden vampires[/url] terre haute movie theaters http://moviestrawberry.com/films/film_johnny_suede/ porno movie club
gary oldman plays norman stansfield in movie [url=http://moviestrawberry.com/films/film_the_viking_queen/]the viking queen[/url] free heterosexual porn movie http://moviestrawberry.com/films/film_wonder_woman/ cat hat movie cast
hardware movie sex scene [url=http://moviestrawberry.com/films/film_funny_games_u_s_/]funny games u s [/url] all of us movie
cheap movie projectors [url=http://moviestrawberry.com/films/film_troll/]troll[/url] vintage aviation movie serials http://moviestrawberry.com/films/film_futurama_bender_s_game/ race against fear tv movie
free hardcore porn sex movie [url=http://moviestrawberry.com/films/film_red_planet/]red planet[/url] movie reviews catholic http://moviestrawberry.com/films/film_lord_jim/ movie ticket vouchers
celeb movie achieves [url=http://moviestrawberry.com/films/film_the_game/]the game[/url] movie review deja vu http://moviestrawberry.com/hqmoviesbycountry/country_usa/?page=67 lycoming movie theatre
forum how to download movie from internet [url=http://moviestrawberry.com/films/film_scenes_of_the_crime/]scenes of the crime[/url] gay movie free preveiw http://moviestrawberry.com/films/film_charade/ buy back movie resale store
million dollar baby the movie [url=http://moviestrawberry.com/films/film_the_italian_job/]the italian job[/url] spaceship sappy three stooges movie
earl blake movie [url=http://moviestrawberry.com/films/film_pet_sematary/]pet sematary[/url] movie quote audio samples http://moviestrawberry.com/easy-downloads/letter_A/?page=14 mature movie channel
a movie called masters of menace starring catherine bach [url=http://moviestrawberry.com/films/film_the_favor/]the favor[/url] movie times for boardman ohio http://moviestrawberry.com/films/film_clay/ movie listings fredericton
torrent movie downloads [url=http://moviestrawberry.com/films/film_loose_change_9_11_an_american_coup/]loose change 9 11 an american coup[/url] free download movie melisa school girl hardfuck http://moviestrawberry.com/films/film_alice/ against all odds movie
home movie screen [url=http://moviestrawberry.com/films/film_pride/]pride[/url] o movie sex scene http://moviestrawberry.com/films/film_simon_says_70/ soundtrak for the movie prime
movie review on shoter [url=http://moviestrawberry.com/films/film_the_astronaut_s_wife/]the astronaut s wife[/url] what show in the movie the burbs
fido movie [url=http://moviestrawberry.com/films/film_raising_helen/]raising helen[/url] keeley hazell movie http://moviestrawberry.com/films/film_the_boynton_beach_bereavement_club/ anna nicole nude movie
cheeky movie [url=http://moviestrawberry.com/films/film_after_office_hours/]after office hours[/url] the doors full movie http://moviestrawberry.com/films/film_manderlay/ movie trailers for real player
best registry cleaner , A utility program that tests the Pc registry and looks for out-of-date and ill items.
Applications frequently create Registry entries for momentary data and pointers with files, but never erase them. Additionally, http://www.registry1000.com/2010/05/09/best-registry-cleaner/ , [url=best registry cleaner]http://www.registry1000.com/2010/05/09/best-registry-cleaner/[/url] if ringbinders are personally deleted from the user.
Registry entries may indicate files that do not exist. A Registry cleaner can ahtvniwxnjnjnjnnjaw be part of a arrangement of system programs or a stand-alone, best registry cleaner software
Thank you, that was extremely valuable and interesting...I will be back again to read more on this topic.
Awesome site, I hadn't come across opentalking.blogspot.com previously during my searches!
Continue the wonderful work!
Thanks for sharing this link, but unfortunately it seems to be offline... Does anybody have a mirror or another source? Please reply to my post if you do!
I would appreciate if a staff member here at opentalking.blogspot.com could post it.
Thanks,
Peter
Hi:
I just now registered on opentalking.blogspot.com.
I'm expecting to search around a while and make contact with fascinating individuals and learn a few alternate viewpoints.
I'm hoping this message isn't in the wrong place. I am sorry if it does.
--------------------
NATHANAEL MORRISON
Sales Representative ( Education Programs)
Hi there,
Thanks for sharing the link - but unfortunately it seems to be down? Does anybody here at opentalking.blogspot.com have a mirror or another source?
Cheers,
Daniel
Hey,
I have a inquiry for the webmaster/admin here at opentalking.blogspot.com.
May I use part of the information from your post right above if I provide a link back to your site?
Thanks,
James
With havin so much written content do you ever run into any problems of
plagorism or copyright violation? My website has a lot of unique content I've either created myself or outsourced but it looks like a lot of it is popping it up all over the web without my agreement. Do you know any ways to help protect against content from being stolen? I'd definitely
appreciate it.
Also visit my blog teen porn
[url=http://www.freewebs.com/atorvastatin]lipitor purchase online
[/url]lipitor purchase online
lipitor mechanism of action
lipitor elevated liver enzymes
atorvastatin 10 mg ezetimibe 10 mg
atorvastatin new zealand
Hello. Facebook takes a [url=http://www.onlinebaccarat.gd]free casino games[/url] speculation on 888 casino furnish: Facebook is expanding its efforts to put rash real-money gaming to millions of British users after announcing a grapple with with the online gambling company 888 Holdings.And Bye.
[url=http://casodex-bicalutamide.webs.com/]kaufen Casodex
[/url] Nycolutamid
Casodex 50 mg
Bicalupel
[url=http://culturadigital.br/longchampsacsa/]sac longchamp[/url] The Mineral Mizer Bag continuously replenishes minerals to the built-in lick at the bottom of the bag as well as on the ground surface below. Fashion Mulberry Classic Natural Leather Messenger Black Bag for Men,you'll find designer Mulberry handbags, award- winning customer service. The porous, UV-resistant, high-strength geotextile bag is refillable and can withstand years in the elements under normal conditions. The bag also makes any mineral last longer than conventional pour-and-stir methods by allowing a controlled, constant drip that refreshes the ground supply again and again..
[url=http://longchampsacsa.123homepage.it/]sac longchamp[/url] Till it was said and done my hot dog cost was about 50 cents. If I sold them for one dollar I was making $40.00 for that box of 80 all beef hot dogs. I was only doubling my money and that just didn't seem like enough. If you go to a good butcher, they may even do this step for free if you ask. Freezing for 30 minutes can make the meat easier to slice. You can cut against or with the Highly Appreciated Mulberry Women's Bayswater Trimming Leather Tote Bag Light Coffee grain; some find that cutting against the grain makes the finished beef jerky easier to chew..
[url=http://saclongchampa.angelfire.com/]sac longchamp[/url] Among the many helps reduce involving essentials while using good thing about the internet is actually you be able to buy from around the world, one other reason a lot of on the web distributors doing work that delivery in addition to furnish in the sacks appropriately in the a lot of zones around the globe. Additionally, most time periods, ones on the internet shoppers may possibly benefit from much more rate reductions despite the fact obtaining on line by way of your marketing supplies possessing given by the variety of sites that will help you this on the internet shoppers. Furthermore, make sure you go through ones constraints involving sheduled abbigliamento onlinedelivery, bring back, objective complications in conjunction with deal to counteract complications Chic supply Mulberry Outlet Sale Women's Alexa Oak Ostrich Bags offers Mulberry bags all around the world inside the right after periods..
[url=http://www.freewebs.com/biaxinclarithromycin/]buy biaxin no prescription
[/url][url=http://www.freewebs.com/online-biaxin/]buy biaxin online no prescription
[/url][url=http://www.freewebs.com/buy-sustiva-efavirenz/]order Efavirenz online
[/url][url=http://www.freewebs.com/buy-asacol-mesalamine/]Apriso buy
[/url]
Posta un commento