Results 1 to 2 of 2

Thread: Qmenu as View in a QCombobox

  1. #1
    Join Date
    Jun 2009
    Posts
    12

    Default Qmenu as View in a QCombobox

    I need to create a ComboBox that does not use the usual popup (a list) but something that looks like a Qmenu. I suppose I cannot just set the QMenu as a view to the QComboBox. Do you have any ideas how to realize that?

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qmenu as View in a QCombobox

    You need to re-implement these also along-with setting custom view.
    Qt Code:
    1. QComboBox::showPopup()
    To copy to clipboard, switch view to plain text mode 
    and
    Qt Code:
    1. QComboBox::hidePopup()
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Graphics View and the Pixmap
    By spawn9997 in forum Qt Programming
    Replies: 2
    Last Post: 26th June 2009, 22:12
  2. Model / View - Design Question
    By antarctic in forum Qt Programming
    Replies: 8
    Last Post: 8th June 2009, 07:39
  3. Graphics View Panning ,zooming
    By linuxdev in forum Qt Programming
    Replies: 3
    Last Post: 29th December 2008, 07:17
  4. World View Zooming factor
    By Pharell in forum General Programming
    Replies: 0
    Last Post: 6th November 2008, 13:04
  5. Model, View and Proxy
    By No-Nonsense in forum Qt Programming
    Replies: 2
    Last Post: 21st November 2006, 08:50

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.