Results 1 to 2 of 2

Thread: Getting QPushButton to press when embedded in a QFrame.

  1. #1
    Join Date
    Dec 2008
    Posts
    23
    Qt products
    Qt4
    Platforms
    Windows

    Default Getting QPushButton to press when embedded in a QFrame.

    I embedded a QPushButton subclass within a QFrame, but I can't get it to press when I click on it (i.e. am not getting the onclick, and it is not showing the depression). Is there a way to get the click to work when embedded?
    The QFrame has a layout into which I am adding the QPushButton subclass. The QFrame is within another QFrame which is added in a scene.

    Thanks,

    --greg
    Last edited by barrygp; 17th March 2011 at 04:39. Reason: additional info

  2. #2
    Join Date
    Dec 2008
    Posts
    23
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Getting QPushButton to press when embedded in a QFrame.

    Want to add: The top level QFrame is within a QGraphicsItemGroup.

Similar Threads

  1. Replies: 2
    Last Post: 1st January 2011, 00:16
  2. How to emit mouse press event in QPushButton
    By dpatel in forum Qt Programming
    Replies: 1
    Last Post: 30th December 2010, 13:00
  3. Replies: 0
    Last Post: 8th November 2010, 21:17
  4. Caching of QPushButton embedded in QGraphicsScene
    By matthias_ in forum Qt Programming
    Replies: 3
    Last Post: 1st October 2010, 19:31
  5. Replies: 3
    Last Post: 26th September 2006, 12:16

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.