Results 1 to 2 of 2

Thread: Hide "Reload" in QWebView

  1. #1
    Join Date
    May 2012
    Posts
    5
    Qt products
    Qt4

    Question Hide "Reload" in QWebView

    Hi friends,

    Is there anybody know how to hide or disable the "Reload" button in the QWebView, I tried
    Qt Code:
    1. setContextMenuPolicy(Qt::NoContextMenu);
    To copy to clipboard, switch view to plain text mode 
    and
    Qt Code:
    1. page()->action(QWebPage::NavigationTypeReload)->setVisible(false);
    To copy to clipboard, switch view to plain text mode 

    But neither of two ways work in my Qt 4.7.1, so please help me, thanks a lot !
    Last edited by JediMaster; 28th May 2013 at 11:43.

  2. #2
    Join Date
    May 2013
    Location
    Bialystok/Poland
    Posts
    13
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Hide "Reload" in QWebView

    You can connect a context menu request signal to your own function and in this function does not do anything or add only what you want.

    Qt Code:
    1. connect(webView, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(contextMenuRequest(QPoint)));
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. How to hide Close Button "X" on Widget ?
    By merry in forum Qt Programming
    Replies: 8
    Last Post: 25th January 2020, 09:03
  2. QWebView "Adobe Flash Player Settings" can't click
    By MLangley in forum Qt Programming
    Replies: 2
    Last Post: 10th December 2011, 00:10
  3. Replies: 4
    Last Post: 19th March 2008, 18:47
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 20:05
  5. How to "hide window when close button pressed"
    By iGoo in forum Qt Programming
    Replies: 4
    Last Post: 26th July 2006, 10:53

Tags for this Thread

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.