PDA

View Full Version : Disable Checkable Button Question



jbpvr
2nd March 2007, 21:21
Hello,

I want to be able to have a button checked (toggled down), and disable it, while the button maintains a checked state.

When I disable the button, the button looks like it is not checked. Does anyone know of a way around this?

Thanks,

QT 4.2

jpn
2nd March 2007, 21:30
Does anyone know of a way around this?
Update to 4.2.2:
http://www.trolltech.com/developer/task-tracker/index_html?method=entry&id=137115

wysota
2nd March 2007, 21:32
It looks fine for me. Maybe it's a matter of style used? Which style do you use? I checked all styles but Aqua and WindowsXP and the checkbox looks checked to me in all of them.

jbpvr
3rd March 2007, 00:16
Crap, I'm at home. I don't have it here, but it's a new style that comes with 4x where it wasn't in 3.3, and it begins with C but is not CDE. I kind of has a XP look.

I am running on redhat 9.0.

In response to jpn, I'm using QPushButton and setting it to checkable to get a toggle button. But upgrading to 4.2.2 may fix the problem.

jpn
3rd March 2007, 09:04
I don't have it here, but it's a new style that comes with 4x where it wasn't in 3.3, and it begins with C but is not CDE. I kind of has a XP look.
Sounds like the Gnomeish QCleanlooksStyle :)

jbpvr
3rd March 2007, 11:35
That's it. Does anybody else see the same behavior with 4.2.0 and is it gone in 4.2.2

Thanks

jpn
3rd March 2007, 11:58
Works fine for me with Qt4.2.2/X11 and the cleanlooks style turned on.

jbpvr
4th March 2007, 01:55
Thanks, I'll have work upgrade on Monday.

jbpvr
6th March 2007, 21:10
QPushbutton set to checkable and set to checked. When it becomes disabled, the button still doesn't look depressed.

I'm only seeing this in Cleanlook, the other styles work.

I'm running 4.2.3.

hummmm.....

jbpvr
20th March 2007, 17:57
If anybody is interested, I contacted QT, and they made a fix for this problem, which will be released in 4.3.0