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. Problem with rendering backgrounds on an included webpage
Forum Updated to NodeBB v4.3 + New Features

Problem with rendering backgrounds on an included webpage

Scheduled Pinned Locked Moved Qt WebKit
16 Posts 2 Posters 7.3k 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.
  • 1 Offline
    1 Offline
    1blah111111
    wrote on last edited by
    #2

    and here is the code of the widget.cpp that is the program:

    @#include <QtWebKit>
    #include <QtNetwork>
    #include <QNetworkCookieJar>
    #include <QWebFrame>
    #include "qwebview.h"
    #include "qwebframe.h"
    #include "qwebelement.h"
    #include "widget.h"
    #include "ui_widget.h"

    Widget::Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
    {
    ui->setupUi(this);
    QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true);
    ui->Advnt_Main->stop();
    ui->Ally_Main->stop();
    ui->Equipt_Main->stop();
    ui->Log_Main->stop();
    ui->Magic_Main->stop();
    ui->Msgs_Main->stop();
    ui->Nav_Main->stop();
    ui->News_Main->stop();
    ui->Prgrs_Main->stop();
    ui->Profile_Main->stop();
    ui->Quest_Main->stop();
    ui->Story_Main->stop();
    ui->map_main->stop();
    QNetworkAccessManager *const networkAccessManager = new
    QNetworkAccessManager(this);
    ui->Login_Main->page()->setNetworkAccessManager( networkAccessManager );
    ui->Advnt_Main->page()->setNetworkAccessManager( networkAccessManager );
    ui->Ally_Main->page()->setNetworkAccessManager( networkAccessManager );
    ui->Equipt_Main->page()->setNetworkAccessManager( networkAccessManager );
    ui->Log_Main->page()->setNetworkAccessManager( networkAccessManager );
    ui->Magic_Main->page()->setNetworkAccessManager( networkAccessManager );
    ui->Msgs_Main->page()->setNetworkAccessManager( networkAccessManager );
    ui->Nav_Main->page()->setNetworkAccessManager( networkAccessManager );
    ui->News_Main->page()->setNetworkAccessManager( networkAccessManager );
    ui->Prgrs_Main->page()->setNetworkAccessManager( networkAccessManager );
    ui->Profile_Main->page()->setNetworkAccessManager( networkAccessManager );
    ui->Quest_Main->page()->setNetworkAccessManager( networkAccessManager );
    ui->Story_Main->page()->setNetworkAccessManager( networkAccessManager );
    ui->map_main->page()->setNetworkAccessManager( networkAccessManager );
    ui->Login_Main->load( QUrl("http://magicduel.com/layout.php") );
    }
    Widget::~Widget()
    {
    delete ui;
    }

    void Widget::on_actionLoggedin_triggered()
    {
    ui->Advnt_Main->load( QUrl("http://magicduel.com/dlg/dlg.adventurelog.php") );
    ui->Ally_Main->load( QUrl("http://magicduel.com/ifrm/ifrm.alliance.php") );
    ui->Equipt_Main->load( QUrl("qrc:/Equiptment.html") );
    ui->Log_Main->load( QUrl("http://magicduel.com/dlg/dlg.battlelog.php") );
    ui->Magic_Main->load( QUrl("http://magicduel.com/ifrm/ifrm.magicpage.php") );
    ui->Msgs_Main->load( QUrl("http://magicduel.com/dlg/dlg.messagelist.php?categ=") );
    ui->Nav_Main->load( QUrl("http://magicduel.com/layout.php") );
    ui->News_Main->load( QUrl("http://magicduel.com/dlg/dlg.changelog.php") );
    ui->Prgrs_Main->load( QUrl("http://magicduel.com/dlg/dlg.todaysprofile.php") );
    ui->Profile_Main->load( QUrl("http://magicduel.com/ifrm/ifrm.profile.php") );
    ui->Quest_Main->load( QUrl("http://magicduel.com/pages/info.rpcquestlist.php") );
    ui->Story_Main->load( QUrl("http://magicduel.com/ifrm/ifrm.quest.php") );
    ui->map_main->load( QUrl("http://magicduel.com/dlg/dlg.realmmap.php") );
    }

    void QNetworkCookieJar ( QObject *)
    {

    }

    QNetworkCookieJar::~QNetworkCookieJar ()
    {

    }

    @

    the extra includes at the top are leftover from me working on getting the main login page to load quicker (the code there currently doesn't compile, so i took it out for the moment)

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

      btw the image tags are normal in the source of the webpage, the forum is changing them to []'s

      1 Reply Last reply
      0
      • B Offline
        B Offline
        benjamin.poulain
        wrote on last edited by
        #4

        I just don't understand what is your problem.

        Are you saying some resources of a page are not fetched correctly? If yes, could you give us the url of the page and tell us which resources are failing?

        1 Reply Last reply
        0
        • 1 Offline
          1 Offline
          1blah111111
          wrote on last edited by
          #5

          i included the page with the html above inside a qrc file, and refered to it with the qrc reference, the background should be tiling all the way across the page, not just the 2 times it's currently doing.

          1 Reply Last reply
          0
          • ? This user is from outside of this forum
            ? This user is from outside of this forum
            Guest
            wrote on last edited by
            #6

            [quote author="1blah111111" date="1285537538"]btw the image tags are normal in the source of the webpage, the forum is changing them to []'s[/quote]

            can you edit the img tag and use html tags for the < and > symbols, i.e. & #60; & # 62; (without spacing of course)

            @<html>@

            1 Reply Last reply
            0
            • 1 Offline
              1 Offline
              1blah111111
              wrote on last edited by
              #7

              ok, solution found, apparently qt doesn't like background-repeat:round; or background-repeat:repeat-x,repeat-y; however background-repeat:repeat; does achieve the desired effect. I suspect there is something wrong in the repeat-x coding since it renders the repeat-y correctly in the background-repeat:repeat-x,repeat-y; but it doesn't render repeat-x correctly.

              btw the flash bug is now fixed. just update via the ubuntu repository, and you may need to restart, but it does now work.

              1 Reply Last reply
              0
              • B Offline
                B Offline
                benjamin.poulain
                wrote on last edited by
                #8

                bq. ok, solution found, apparently qt doesn’t like background-repeat:round; or background-repeat:repeat-x,repeat-y; however background-repeat:repeat;

                Which version of Qt/WebKit?
                Could you made a reduction so we can check if there is a bug in 4.7?

                1 Reply Last reply
                0
                • 1 Offline
                  1 Offline
                  1blah111111
                  wrote on last edited by
                  #9

                  i build using Qt v4.7, and whatever the latest webkit for qt is (i built it from git)

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    benjamin.poulain
                    wrote on last edited by
                    #10

                    [quote author="1blah111111" date="1285967187"]i build using Qt v4.7, and whatever the latest webkit for qt is (i built it from git)[/quote]

                    Strange. I am not aware of any pending issue regarding background-repeat.

                    1 Reply Last reply
                    0
                    • 1 Offline
                      1 Offline
                      1blah111111
                      wrote on last edited by
                      #11

                      the bug in flash is only fixed if you update webkit.

                      1 Reply Last reply
                      0
                      • 1 Offline
                        1 Offline
                        1blah111111
                        wrote on last edited by
                        #12

                        it's a problem with the included webkit, as well as the webkit i built.

                        1 Reply Last reply
                        0
                        • 1 Offline
                          1 Offline
                          1blah111111
                          wrote on last edited by
                          #13

                          also, any idea why my qt creator seems to have decided it wants to use the kde style (i'm using gnome, but i have the kde desktop installed) and doesn't want to even detect the gnome style? My application's tabs only fit in the space if your using gnome.

                          1 Reply Last reply
                          0
                          • ? This user is from outside of this forum
                            ? This user is from outside of this forum
                            Guest
                            wrote on last edited by
                            #14

                            [quote author="1blah111111" date="1285975001"]also, any idea why my qt creator seems to have decided it wants to use the kde style (i'm using gnome, but i have the kde desktop installed) and doesn't want to even detect the gnome style? My application's tabs only fit in the space if your using gnome.[/quote]

                            better to post this in its own separate thread

                            1 Reply Last reply
                            0
                            • 1 Offline
                              1 Offline
                              1blah111111
                              wrote on last edited by
                              #15

                              k, as soon as webkit finished building and i can restart to check to see if something just decided that kde gets to be my default desktop manager (i don't like kde! the style's great, but i don't get the right layout with my system bars at the top and bottom, and if i don't have that, i can't use my 8 virtual desktops easily, and i need them, because i usually have about 20 windows open!(as well as about the same number of tabs in firefox :P ) ) (i have to restart because it doesn't seem to be wanting to connect to the internet even though i have it physically wired to the router, which is in turn, physically routed to the modem.... and everything else on the network isn't having any trouble connecting.... admittedly a bit slow, but their still connecting.... I also need to restart because i updated the linux kernel..... i need to stop doing that.... because it causes problems if you try to do things like install packages when it's in a limbo state like that.....)

                              1 Reply Last reply
                              0
                              • 1 Offline
                                1 Offline
                                1blah111111
                                wrote on last edited by
                                #16

                                and i've now restarted, and figured something else out, but that's going in a new topic. and here is the new topic: "here":http://developer.qt.nokia.com/forums/viewthread/1124/

                                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