Results 1 to 10 of 10

Thread: Disable Checkable Button Question

  1. #1
    Join Date
    Feb 2007
    Posts
    13
    Thanks
    2

    Default Disable Checkable Button Question

    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

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Disable Checkable Button Question

    Quote Originally Posted by jbpvr View Post
    Does anyone know of a way around this?
    Update to 4.2.2:
    http://www.trolltech.com/developer/t...ntry&id=137115
    J-P Nurmi

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Disable Checkable Button Question

    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.

  4. #4
    Join Date
    Feb 2007
    Posts
    13
    Thanks
    2

    Default Re: Disable Checkable Button Question

    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.

  5. #5
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Disable Checkable Button Question

    Quote Originally Posted by jbpvr View Post
    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
    J-P Nurmi

  6. #6
    Join Date
    Feb 2007
    Posts
    13
    Thanks
    2

    Default Re: Disable Checkable Button Question

    That's it. Does anybody else see the same behavior with 4.2.0 and is it gone in 4.2.2

    Thanks

  7. #7
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Disable Checkable Button Question

    Works fine for me with Qt4.2.2/X11 and the cleanlooks style turned on.
    Attached Images Attached Images
    J-P Nurmi

  8. #8
    Join Date
    Feb 2007
    Posts
    13
    Thanks
    2

    Default Re: Disable Checkable Button Question

    Thanks, I'll have work upgrade on Monday.

  9. #9
    Join Date
    Feb 2007
    Posts
    13
    Thanks
    2

    Default Re: Disable Checkable Button Question

    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.....

  10. #10
    Join Date
    Feb 2007
    Posts
    13
    Thanks
    2

    Default Re: Disable Checkable Button Question

    If anybody is interested, I contacted QT, and they made a fix for this problem, which will be released in 4.3.0

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.