×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    78

    Qtoolbar button and checked state is not shown

    Hei

    The checked state is not shown in Qtoolbar Action Icon.
    It works on all win and mac platforms.

    The debuggable code
    ----------------------------------------------
    int checked;
    if(g_ULdata->frames[g_ULdata->ActiveFrame].CenterOnShip){
    checked=true;
    }
    else{
    checked=false;
    }
    int checkednow=ui->actionKeskit->isChecked();
    if( checkednow!=checked){
    ui->actionKeskit->setChecked(checked);
    }
    --------------------------------------------------------------------------------
    Has no effect on shown apllication??

    Hannu

  2. #2
    Nokia Developer Expert
    Join Date
    Feb 2008
    Posts
    183

    Re: Qtoolbar button and checked state is not shown

    Sounds like a bug in the QS60Style. Somewhat easy to check if it is style related by calling setStyle(new QWindowsStyle()); for your QApplication.
    If it still reproduces (with Windows style in Symbian OS), then it is a bug in the Symbian port of Qt. Otherwise it is QS60Style issue.

    Please report a bug to http://bugreports.qt.nokia.com.

  3. #3
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    78

    Re: Qtoolbar button and checked state is not shown

    Hei

    Or this is bug in both. It works somehow with QWindowsStyle, feels sluggish and leaves painted as "selected" instead of "Checked".

    This works nicely in Maemo, only proble is how to paint onto black with black..
    Is it possible to use QWindowsStyle only in toolbar? This could be some quick correction.

    I will report this as bug.

    Hannu

  4. #4
    Nokia Developer Expert
    Join Date
    Feb 2008
    Posts
    183

    Re: Qtoolbar button and checked state is not shown

    No, you can't set widget level QStyle, but you could try to control it with QStyleSheet.

Similar Threads

  1. Replies: 3
    Last Post: 2010-08-04, 07:35
  2. Replies: 0
    Last Post: 2010-02-15, 11:32
  3. How to change the state of radio button
    By nikita51 in forum Symbian
    Replies: 7
    Last Post: 2009-06-18, 10:15
  4. checked
    By dubey_hbti27 in forum News and Announcements
    Replies: 1
    Last Post: 2006-12-07, 12:30
  5. How can the field strength be checked?
    By Nokia_FAQ in forum Nokia M2M
    Replies: 1
    Last Post: 2002-05-14, 14:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •