Results 1 to 3 of 3

Thread: Qt handling of Linux framebuffer resizing

  1. #1
    Join Date
    Oct 2015
    Posts
    2
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Qt handling of Linux framebuffer resizing

    Hello,

    I am designing a Qt embedded (Boot to Qt) app, which renders directly to the Linux framebuffer. It is possible that the screen resolution or orientation of the device may change at run-time. This change is initiated by an external app, or the user rotating the device. How will the Qt framework handle the underlying framebuffer change in resolution/orientation? Is there a way to refresh the screen without having to restart my app, following a change in resolution?

    Thank you!

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt handling of Linux framebuffer resizing

    That will most likely depend on the QPA you are using.

    Qt does allow QPAs to do that, resolution or orientation changes can be signalled through the QScreen API.

    Cheers,
    _

  3. #3
    Join Date
    Oct 2015
    Posts
    2
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Qt handling of Linux framebuffer resizing

    Thank you for the follow up. I reviewed a bit of documentation and QPA code and I also found the following training video useful: https://www.youtube.com/watch?v=qCWWxBf6vko.
    I agree that QScreen signals can provide the trigger to update the screen. However, what I haven't found out so far is how to initiate a complete refresh of all widgets and graphical elements, so that the contents of the frame buffer match the new screen resolution.

    Cheers!

Similar Threads

  1. Qt 5.2.0 Opensource with Linux Framebuffer
    By nasenfahrrad7 in forum Qt for Embedded and Mobile
    Replies: 9
    Last Post: 3rd March 2015, 20:27
  2. Replies: 1
    Last Post: 12th December 2013, 16:08
  3. Replies: 3
    Last Post: 2nd March 2010, 20:58
  4. framebuffer
    By damien in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 22nd September 2008, 21:27
  5. Linux Framebuffer Test Problem
    By jefflg in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 19th May 2007, 07:06

Tags for this Thread

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.