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. Media query for pixel density not working in QtWebView
Forum Updated to NodeBB v4.3 + New Features

Media query for pixel density not working in QtWebView

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 809 Views 1 Watching
  • 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.
  • H Offline
    H Offline
    hien
    wrote on 23 Sept 2013, 08:48 last edited by
    #1

    I am trying this, but it doesn't seem to be working in the web view.
    @media
    only screen and (-webkit-min-device-pixel-ratio: 2),
    only screen and ( min--moz-device-pixel-ratio: 2),
    only screen and ( -o-min-device-pixel-ratio: 2/1),
    only screen and ( min-device-pixel-ratio: 2),
    only screen and ( min-resolution: 192dpi),
    only screen and ( min-resolution: 2dppx) {
    #logo {
    background: url(../img/logo@2x.png);
    }
    }

    Opening the html file in safari works fine. I am using Qt5.1. Is this a bug? Thanks

    1 Reply Last reply
    0

    1/1

    23 Sept 2013, 08:48

    • Login

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