Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Fullscreen issue

Fullscreen issue

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 226 Views
  • 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.
  • M Offline
    M Offline
    Mc6bullet
    wrote on last edited by
    #1

    I'm trying to do fullscreen window but it's not working tried below code in application window

    if (ScreenTools.isMobile || Screen.height / ScreenTools.realPixelDensity < 120) {
    mainWindow.showFullScreen()
    } else {
    //window.showFullScreen()

            width   = ScreenTools.isMobile ? Screen.width  : Math.min(250 * Screen.pixelDensity, Screen.width)
            height  = ScreenTools.isMobile ? Screen.height : Math.min(150 * Screen.pixelDensity, Screen.height)
            Window.showFullScreen()
            x = Screen.width / 2 - width / 2
            y = Screen.height / 2 - height / 2
    
        }
    
    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      Try Window.resize( width, height );
      showFullScreen may not work sometimes. Check this out: https://doc.qt.io/qt-5/qwidget.html#showFullScreen

      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