Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Solution for QTBUG-15485(QFont::setPixelSize: Pixel size <= 0 (0))?
Forum Updated to NodeBB v4.3 + New Features

Solution for QTBUG-15485(QFont::setPixelSize: Pixel size <= 0 (0))?

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 10.7k 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.
  • A Offline
    A Offline
    aashish.lg
    wrote on last edited by
    #1

    I am trying to open a url using QWebView but getting the below mentioned message in my application output window.
    QFont::setPixelSize: Pixel size <= 0 (0)

    URL is :- http://screen.yahoo.com/dark-shadows-featurette-strange-family-29147710.html

    When I googled I came to know that it is already existing bug in Qt, but status is unresolved.
    Can anybody throw more light on this issue, any workaround etc.....

    Edit: a single questionmark does just fine in the title; Andre

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DerManu
      wrote on last edited by
      #2

      Well QWebView calls setPixelSize(0) occasionally (maybe dependant on the provided web-page) and QFont emits a warning if that happens. There's not really more to it. You could either live with the warning, fix QWebKit or fix QFont, or wait for someone to fix it for you (e.g. revive the bugreport and support the developers in fixing it/reproducing).

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aashish.lg
        wrote on last edited by
        #3

        Thanks for your suggestion. But as you said there is not really more to it, but I am not getting my webpage displayed at all. Its simply not just a warning message for me , my stuff is not working might be because of this. I have given URL also in my first post.

        Please throw more light on this , if you know any workaround in this regard.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DerManu
          wrote on last edited by
          #4

          Well when I load that page with QWebView i get the warning debug output, too, but the website loads normally and looks identically to that displyed with firefox (excluding the embedded flash video, of course).

          1 Reply Last reply
          0
          • A Offline
            A Offline
            aashish.lg
            wrote on last edited by
            #5

            Thats the problem.....not only website , the flash video content should also play with it.
            for an example take the url of any youtube video, load it through the QWebView you will get the flash video as well, but here it is excluded.

            Do you suspect this is happening because of QFont set pixel(). If not any idea how to make it work?

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DerManu
              wrote on last edited by
              #6

              Try to compare the HTML-code for the embedded video of youtube and that website. Maybe get the code from your QWebView and from firefox, to find out whether they differ (maybe the video website doesn't want non-standard browsers to see the video due to copyright-assholery).

              1 Reply Last reply
              0
              • J Offline
                J Offline
                Jack OConnor
                wrote on last edited by
                #7

                Bit of a late reply here. A good solution comes up near the end of this thread: https://groups.google.com/forum/?fromgroups=#!topic/capybara-webkit/n1xMK0HnMWo

                qInstallMsgHandler allows you to intercept all Qt debug messages, of which this is one. I'm using QtWebKit in Python, so I set the handler with QtCore.qInstallMsgHandler.

                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