Results 1 to 3 of 3

Thread: QAction without check state

  1. #1

    Default QAction without check state

    Hi,

    When I create QActions to put in a QToolBar i want to disable the check and hover mode but I can´t. Is there anyway to do it? Thank you very much. Here is my code:


    Qt Code:
    1. this->action = new QAction(this);
    2. this->action->setIcon(QIcon("images/inicio.png"));
    3. this->action->setCheckable(false);
    4. connect(this->action , SIGNAL(triggered()), this, SLOT(actionMethod()));
    5. toolbar->addAction(this->action);
    To copy to clipboard, switch view to plain text mode 

    Rewards.
    Last edited by pardas; 4th August 2012 at 18:15.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QAction without check state

    ... and what is not working?

  3. #3

    Default Re: QAction without check state

    That when I push the action it gets checked...instead of putting this attribute to false I have to put any attribute when I create the QToolbar...

Similar Threads

  1. QAbstractItemView and tri state check boxes
    By GrahamLabdon in forum Newbie
    Replies: 1
    Last Post: 3rd June 2011, 07:54
  2. Replies: 0
    Last Post: 19th December 2010, 16:03
  3. Accessing check state of CheckBox in QTableWidget
    By lnxusr in forum Qt Programming
    Replies: 6
    Last Post: 22nd November 2009, 01:13
  4. how to check button state such as "hover"?
    By billconan in forum Qt Programming
    Replies: 2
    Last Post: 12th November 2009, 01:45
  5. Help: How to save Check box state
    By Garibalde in forum Qt Programming
    Replies: 4
    Last Post: 1st July 2009, 20:24

Tags for this Thread

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.