Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Open New Window using Javascript and Menu bar hide issue
QtWS25 Last Chance

Open New Window using Javascript and Menu bar hide issue

Scheduled Pinned Locked Moved Qt WebKit
3 Posts 2 Posters 2.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    ketan16may
    wrote on last edited by
    #1

    Hi,

    I Have modified the Demo browser code to hide the Menu bar i.e. File/Edit etc menus.
    but after hiding the menu bar, even the keyboard short keys doesn't work.
    For an example if I press Ctrl+N for opening new window with menu bar hidden, nothing happens.
    Below are the changes done:
    added line : menuBar()->setVisible(false);
    at the end of the function "void BrowserMainWindow::setupMenu()" from browsermainwindow.cpp.

    Please help how to achieve opening new window with short keys while menu bar is hidden.

    Also if i do open new window with javascript the new window is opened without menu bar even the menu bar is not hided. And the window is displayed without opacity which is coded in the mainwindow function.

    Any help will be grateful.

    Thanks in advance

    Regards
    Ketan

    1 Reply Last reply
    0
    • E Offline
      E Offline
      eikeR
      wrote on last edited by
      #2

      Which Qt version and which system are you using?
      Also, there are several browser examples, please tell us the directory name, just to be sure.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        ketan16may
        wrote on last edited by
        #3

        I am using Qt 4.8 on fedora17 system.
        The project location is /QtSdk/Demos/4.7/browser.

        The project is available with the latest sdk setup.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved