Results 1 to 4 of 4

Thread: Android Issue - webview moving left

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2015
    Posts
    185
    Thanks
    5
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Android Issue - webview moving left

    I have a webview inside framelayout in turn inside relative layout.

    When the page is loaded, I am able to drag the page out of the screen to it's left and right it doesn't move beyond the default loaded right point.

    Meaning, the page is movable infinite to the left and restricted to a point on right.

    How can I prevent the infinite left side movement.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Android Issue - webview moving left

    I don't know what a "relative layout" is and struggle to understand what you are asking about.

    Is the "page" the outermost widget containing the QWebView or a web page loaded inside the web view?
    Perhaps a screen capture or a small, self-contained example program that demonstrates the problem would help explain.
    "We can't solve problems by using the same kind of thinking we used when we created them." -- Einstein
    If you are posting code then please use [code] [/code] tags around it - makes addressing the problem easier.

  3. #3
    Join Date
    Feb 2015
    Posts
    185
    Thanks
    5
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Re: Android Issue - webview moving left

    webpage loaded inside the webview is moving left

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Android Issue - webview moving left

    Everything displayed in a QWebView is a result of the HTML you fed it. I suggest you start there.

Similar Threads

  1. Webview draw issue
    By grisson in forum Qt Quick
    Replies: 0
    Last Post: 30th September 2011, 15:16
  2. HTML5 in Webview in QML (performance issue)
    By aya_lawliet in forum Qt Quick
    Replies: 4
    Last Post: 29th June 2011, 07:13
  3. Moving QGraphicsScene to Left or Right firections
    By augusbas in forum Qt Programming
    Replies: 2
    Last Post: 30th June 2010, 05:45
  4. Webview->setHTML issue?
    By Zantagor in forum Qt Programming
    Replies: 1
    Last Post: 26th June 2009, 16:45
  5. Moving left and right on the screen
    By Benjamin in forum Qt Programming
    Replies: 6
    Last Post: 21st June 2009, 20:09

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.