Results 1 to 4 of 4

Thread: Right-click popup from a QListbox

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Right-click popup from a QListbox

    Reimplement the context menu event handler of QListBox, not main window.
    J-P Nurmi

  2. The following user says thank you to jpn for this useful post:

    nleverin (2nd November 2007)

  3. #2
    Join Date
    Jun 2007
    Posts
    21
    Thanks
    25
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Right-click popup from a QListbox

    Hi Jpn,

    thanks for the reply.

    Because i have implemented my qlistbox in the designer does this mean that i would have to Reimplement the context menu event handler of QListBox, in a subclass of qlistbox and then create a custom widget that uses this this new reimplemented qlistbox within the designer?

    cheers,
    nlev.

  4. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Right-click popup from a QListbox

    Try following these instructions: Creating Custom Widgets
    J-P Nurmi

  5. The following user says thank you to jpn for this useful post:

    nleverin (7th November 2007)

Similar Threads

  1. Double Click Capturing
    By ToddAtWSU in forum Qt Programming
    Replies: 2
    Last Post: 8th January 2011, 14:12
  2. QGraphicsScene Click / Double Click
    By philentropist in forum Qt Programming
    Replies: 1
    Last Post: 9th February 2007, 04:32
  3. Can't close my popup
    By Jimmy2775 in forum Qt Programming
    Replies: 2
    Last Post: 11th July 2006, 09:10

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.