Results 1 to 8 of 8

Thread: How to tell which tab widgets tab is requesting custom menu

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    4
    Thanked 140 Times in 132 Posts

    Default Re: How to tell which tab widgets tab is requesting custom menu

    I think it would be easier to make apropriate context menu in widgets added to the tabs. For example: In orders tab you would have some OrdersWidget with some list of orders or something. Make the order's menu as a context menu in OrdersWidget. Then:
    Qt Code:
    1. tabWidget->addTab(new OrdersWidget, tr("Orders"));
    To copy to clipboard, switch view to plain text mode 
    So clicking anywhere on tab page will result in showing the orders menu. Same with CustomerWidget and so on.
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

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

    tgreaves (23rd March 2009)

Similar Threads

  1. Custom Widgets and layout managers...
    By TemporalBeing in forum Qt Programming
    Replies: 6
    Last Post: 4th March 2009, 13:48
  2. Replies: 2
    Last Post: 16th May 2008, 14:39
  3. picking geometry in qt custom widgets
    By notsonerdysunny in forum Qt Programming
    Replies: 2
    Last Post: 17th July 2007, 23:01
  4. create custom widgets
    By nimmyj in forum General Discussion
    Replies: 1
    Last Post: 20th November 2006, 08:24
  5. image for a custom menu Item.......
    By Naveen in forum Qt Programming
    Replies: 2
    Last Post: 23rd February 2006, 09:28

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.