Results 1 to 6 of 6

Thread: QT-QML application: QQuickWindow to Full Screen: repaint failure ("bad window" in top

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2013
    Posts
    61
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QT-QML application: QQuickWindow to Full Screen: repaint failure ("bad window" in

    Thanks anda_skoa,

    My content follows the fullscreen change. In fact, the full screen over the QQuickWindow works, BUT this 'old size' window badly repainter over my new size in the the top-left (the app window seems to go there before applying the fullscreen mode)

    I meant I use the QML objects from the c++ to access QML methods or properties

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

    Default Re: QT-QML application: QQuickWindow to Full Screen: repaint failure ("bad window" in

    Quote Originally Posted by ddonate View Post
    My content follows the fullscreen change. In fact, the full screen over the QQuickWindow works, BUT this 'old size' window badly repainter over my new size in the the top-left (the app window seems to go there before applying the fullscreen mode)
    I am afraid I don't understand then.
    So when the app goes full screen, the content resizes nicely and all is well.
    But when you switch back from full screen then the old, fullscreen content is still visible?

    Quote Originally Posted by ddonate View Post
    I meant I use the QML objects from the c++ to access QML methods or properties
    Yes, that's what I though.
    But you will learn soon enough that there are less hacky ways

    Cheers,
    _

  3. #3
    Join Date
    Apr 2013
    Posts
    61
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QT-QML application: QQuickWindow to Full Screen: repaint failure ("bad window" in

    Quote Originally Posted by anda_skoa View Post
    So when the app goes full screen, the content resizes nicely and all is well.
    But when you switch back from full screen then the old, fullscreen content is still visible?
    _
    No, my problem is when going to fullScreen: The application size changes properly to full screen, but before changing the size, the old application window (with size previous to FS) seems to go to the top-left corner and it keeps there after the FS process is finished. So once the application is in FS, this window bad "frame" is like frozen there. When I repaint the application (for instance background and foreground again) this "frame" dissapears.

    Quote Originally Posted by anda_skoa View Post
    But you will learn soon enough that there are less hacky ways
    _
    Any suggestion to search?


    Thanks a lot

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

    Default Re: QT-QML application: QQuickWindow to Full Screen: repaint failure ("bad window" in

    Quote Originally Posted by ddonate View Post
    No, my problem is when going to fullScreen: The application size changes properly to full screen, but before changing the size, the old application window (with size previous to FS) seems to go to the top-left corner and it keeps there after the FS process is finished. So once the application is in FS, this window bad "frame" is like frozen there. When I repaint the application (for instance background and foreground again) this "frame" dissapears.
    Hmm, strange. Doesn't the system trigger an update when the window goes fullscreen?

    Quote Originally Posted by ddonate View Post
    Any suggestion to search?
    http://doc.qt.io/qt-5/qtqml-cppinteg...ttributes.html

    I.e. always prefer accessing C++ from the QML side over accessing QML from the C++ side.

    Cheers,
    _

Similar Threads

  1. getting error Failure "SSL handshake failed"
    By Radhika in forum Qt Programming
    Replies: 1
    Last Post: 25th November 2015, 22:26
  2. Replies: 2
    Last Post: 2nd March 2015, 16:27
  3. Replies: 0
    Last Post: 9th January 2015, 11:09
  4. Replies: 5
    Last Post: 29th September 2012, 20:30
  5. "Render" Qt dialog window from ".ui" file
    By BitEater in forum Qt Programming
    Replies: 1
    Last Post: 8th July 2011, 15:40

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
  •  
Qt is a trademark of The Qt Company.