Results 1 to 7 of 7

Thread: Invisible but still active QActions

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    Mar 2006
    Location
    San Francisco, CA
    Posts
    23
    Thanks
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Invisible but still active QActions

    Quote Originally Posted by jpn View Post
    Did you remember to allocate a new signal mapper object as well so that viewPanXMapper is not a null/dangling pointer?
    No I didn't remember !!!

    Thank you .. it works now !

    p.s for maximum compatibility with the older code I changed things so that the QShortcut::activated() is connected to the QAction::trigger() and left the mapper set
    up as before.

    Qt Code:
    1. QShortcut *sLeft = new QShortcut(QKeySequence(tr("Left")), this);
    2. connect(sLeft,SIGNAL(activated()),viewPan_LeftAction, SLOT(trigger()));
    To copy to clipboard, switch view to plain text mode 
    Last edited by barnabyr; 21st November 2006 at 22:48.

Similar Threads

  1. Qt application with live Active X camera feed.
    By bitChanger in forum Qt Programming
    Replies: 8
    Last Post: 4th September 2012, 19:26
  2. How to manage QPainter?
    By Caius Aérobus in forum Qt Programming
    Replies: 3
    Last Post: 28th April 2006, 13:20
  3. Painter not active!
    By Caius Aérobus in forum Qt Programming
    Replies: 7
    Last Post: 30th March 2006, 15:44

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
  •  
Qt is a trademark of The Qt Company.