Anyone familiar wth Qt Creator or C++? [probably solved]

Anything else. Post a funny site or tell us about yourself. Discuss current events or whatever else you want. Post off topic threads here.
Post Reply
User avatar
poehalcho
Elite Member
Posts: 6131
Joined: Mon Apr 30, 2007 3:32 pm
Quick Reply: Yes
Location: ┌(╬ಠ益ಠ)╯( ̄ー ̄)(ノ◕ヮ◕)ノ:・✧(╯°Д°)╯彡┻━┻ψ(`∇´)ψ(☞゚∀゚)☞¯\_(ツ)_/¯ლ(ಥ益ಥლ)ԅ༼ ◔ڡ◔༽งヽ༼ʘ̚ل͜ʘ̚༽ノᕕ(ᐛ)ᕗ( ͡° ͜ʖ ͡°)

Anyone familiar wth Qt Creator or C++? [probably solved]

Post by poehalcho »

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 -

Post Reply

Return to “Off Topic Lounge”