Results 1 to 7 of 7

Thread: popup menu appears on scroll bar when right clicked on scroll bar

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    10

    Default Re: popup menu appears on scroll bar when right clicked on scroll bar

    Thanks for the imput guys i really appreciate your help I tried both approaches but unfortunately the scrollbar popup menu still appears.

    Is this an inbuilt QT feature? could someone in trolltech confirm this? Thanks once again.

    (PS i am using Qt 4.1.1)

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

    Default Re: popup menu appears on scroll bar when right clicked on scroll bar

    Qt Code:
    1. scrollArea->horizontalScrollBar()->setContextMenuPolicy(Qt::NoContextMenu);
    2. scrollArea->verticalScrollBar()->setContextMenuPolicy(Qt::NoContextMenu);
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

  3. #3
    Join Date
    Jan 2006
    Posts
    10

    Default Re: popup menu appears on scroll bar when right clicked on scroll bar

    solved the problem...thanks a lot guys...you have beena big help.

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.