×

Discussion Board

Results 1 to 4 of 4

Thread: answer

  1. #1
    Regular Contributor
    Join Date
    Jul 2011
    Posts
    100

    answer

    How I can use a checbox in a cpp file that is in another?

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: answer

    You would need to get reference to the object holding the checkbox, and make sure there is public methods implemented for the required access, or implement signals in the object holding teh checkbox and then connect the signal to teh slot in the object which would want to receive the signal.

  3. #3
    Regular Contributor
    Join Date
    Jul 2011
    Posts
    100

    Re: answer

    How do you check if a checkbox is checked? Can be this way? if (ui-> checkBox-> isTristate () == true) true and false would be marked unchecked?

  4. #4
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: answer

    Hi,

    As per the doc of QCheckBox,

    You can use isChecked() to query whether or not a checkbox is checked, as it is inherited from QAbstractButton it has this method.

Similar Threads

  1. Someone MUST answer this!
    By rubizm in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 6
    Last Post: 2011-06-23, 16:51
  2. Replies: 8
    Last Post: 2008-12-03, 02:25
  3. Please Answer me
    By thecourier in forum Symbian
    Replies: 2
    Last Post: 2005-03-09, 17:46
  4. JNI is the answer
    By yumariso in forum Mobile Java General
    Replies: 1
    Last Post: 2003-07-07, 08:28
  5. Can someone please answer this ?
    By nintel in forum Bluetooth Technology
    Replies: 1
    Last Post: 2002-11-21, 10:22

Posting Permissions

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