Silkroad Online Forums

A community forum for the free online game Silkroad Online. Discuss Silkroad Online, read up on guides, and build your character and skills.

Faq Search Members Chat  Register Profile Login

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Anyone familiar wth Qt Creator or C++? [probably solved]
PostPosted: Mon Nov 12, 2012 10:47 am 
Elite Member
User avatar
Offline

Joined: Apr 2007
Posts: 6385
Location: ┌(╬ಠ益ಠ)╯( ̄ー ̄)(ノ◕ヮ◕)ノ:・✧(╯°Д°)╯彡┻━┻ψ(`∇´)ψ(☞゚∀゚)☞¯\_(ツ)_/¯ლ(ಥ益ಥლ)ԅ༼ ◔ڡ◔༽งヽ༼ʘ̚ل͜ʘ̚༽ノᕕ(ᐛ)ᕗ( ͡° ͜ʖ ͡°)
So I've downloaded the Qt SDK to create a program that's supposed to allow users to turn on/off LEDs in a LEDcube. unfortunately Qt seems to work in C++ or some sort of hybrid between C++ and Qt's custom language :?

Anyway, we've had some training with C, but we're completely unfamiliar with C++. So I'm basically stuck.

I'm trying to make a button that's supposed to represent a LED. when you press it it's supposed to change colors.
1st press -> normal button turns red
2nd press -> red turns green
3rd press -> green turns orange
4th press -> orange turns back to normal button mode (LED off).
and process has to be repeatable.

I've managed to do the first one of making it turn red, but beyond that I can find neither tutorials nor clues on how to make the other set of changes...

Anyone familiar enough with C++ or Qt to help out?

EDIT:
I think I might've found a way. it's not exactly where I want it yet, but I know what I need to do.

_________________
Image
Day[9] wrote:
"Tea is a lot like gold expansions - it helps you kill people."
- Day[9] Daily 337 -


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group