Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Qt 5.3 RC] Framebuffer issues
Forum Updated to NodeBB v4.3 + New Features

[Qt 5.3 RC] Framebuffer issues

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 792 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.
  • T Offline
    T Offline
    tiotodi
    wrote on last edited by
    #1

    Hello guys!

    So, I have this project running in my Raspberry Pi Model-B board and everything works fine! But, the deal is about the framebuffer. Even I changing the framebuffer width and height, and doing other things with the video configuration, the Qt do not follow the configuration file, and load the screen with your own settings, again, even I try to force this using the method "resize", inside my code, it doesn't work.

    What I have done?

    Here is my code, it's just a simple WebKit widget to load HTML files:

    @#include <QtWidgets/QApplication>
    #include <QtWebKitWidgets/QWebView>
    #include <QTextStream>

    int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);
    QWebView *view = new QWebView();

    if (argc < 2)
    {
        QTextStream(stdout) << "[ERROR] You need to pass the file path or an URL!" << endl;
        exit(1);
    }
    
    char* path = argv[1];
    view->load(QUrl(path));
    view->show();
    
    return app.exec(&#41;;
    

    }
    @

    Does anyone know how can I change these videos settings?

    Thanks!

    EDIT:

    Here is the example: "framebuffer issues":http://i.imgur.com/KldWwTA.jpg

    Note in the picture, the corners is not aligned with the edges of the surface.

    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