Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt on QNX
  4. QML application taking full screen/current resolution instead of QML application Window width and height on QNX
Forum Updated to NodeBB v4.3 + New Features

QML application taking full screen/current resolution instead of QML application Window width and height on QNX

Scheduled Pinned Locked Moved Unsolved Qt on QNX
5 Posts 5 Posters 534 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.
  • IamSumitI Offline
    IamSumitI Offline
    IamSumit
    wrote on last edited by
    #1

    Hello All,
    I am developing QML application as the following-
    import QtQuick

    Window {
    id:windz
    width: 800
    height: 600
    visible: true
    color: "green"

    Component.onCompleted: {
    console.log("main.qml width: "+width+"main.qml height: "+height)}
    }
    I have given 800 and 600 as hardcoded size to Window element , but when I run my application on QNX target whose resolution is 1920 and 1080, My application resolution getting ovelapped by 1920 and 1080 even I gave 800 and 600. Why is this behaviour? and what is the solution to have 800600 resolution on QNX for my application. Pleas noted that On windows when I run same application it is coming up in 800600. please help

    Be Cute

    jsulmJ JoeCFDJ Ronel_qtmasterR X 4 Replies Last reply
    0
    • IamSumitI IamSumit

      Hello All,
      I am developing QML application as the following-
      import QtQuick

      Window {
      id:windz
      width: 800
      height: 600
      visible: true
      color: "green"

      Component.onCompleted: {
      console.log("main.qml width: "+width+"main.qml height: "+height)}
      }
      I have given 800 and 600 as hardcoded size to Window element , but when I run my application on QNX target whose resolution is 1920 and 1080, My application resolution getting ovelapped by 1920 and 1080 even I gave 800 and 600. Why is this behaviour? and what is the solution to have 800600 resolution on QNX for my application. Pleas noted that On windows when I run same application it is coming up in 800600. please help

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @IamSumit I'm not a QNX expert: is there a window manager running which supports windows which are not full-screen?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • IamSumitI IamSumit

        Hello All,
        I am developing QML application as the following-
        import QtQuick

        Window {
        id:windz
        width: 800
        height: 600
        visible: true
        color: "green"

        Component.onCompleted: {
        console.log("main.qml width: "+width+"main.qml height: "+height)}
        }
        I have given 800 and 600 as hardcoded size to Window element , but when I run my application on QNX target whose resolution is 1920 and 1080, My application resolution getting ovelapped by 1920 and 1080 even I gave 800 and 600. Why is this behaviour? and what is the solution to have 800600 resolution on QNX for my application. Pleas noted that On windows when I run same application it is coming up in 800600. please help

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #3

        @IamSumit Can you try:
        ApplicationWindow?

        1 Reply Last reply
        0
        • IamSumitI IamSumit

          Hello All,
          I am developing QML application as the following-
          import QtQuick

          Window {
          id:windz
          width: 800
          height: 600
          visible: true
          color: "green"

          Component.onCompleted: {
          console.log("main.qml width: "+width+"main.qml height: "+height)}
          }
          I have given 800 and 600 as hardcoded size to Window element , but when I run my application on QNX target whose resolution is 1920 and 1080, My application resolution getting ovelapped by 1920 and 1080 even I gave 800 and 600. Why is this behaviour? and what is the solution to have 800600 resolution on QNX for my application. Pleas noted that On windows when I run same application it is coming up in 800600. please help

          Ronel_qtmasterR Offline
          Ronel_qtmasterR Offline
          Ronel_qtmaster
          wrote on last edited by
          #4

          @IamSumit what if you add to your code visibility: Window.FullScreen

          1 Reply Last reply
          0
          • IamSumitI IamSumit

            Hello All,
            I am developing QML application as the following-
            import QtQuick

            Window {
            id:windz
            width: 800
            height: 600
            visible: true
            color: "green"

            Component.onCompleted: {
            console.log("main.qml width: "+width+"main.qml height: "+height)}
            }
            I have given 800 and 600 as hardcoded size to Window element , but when I run my application on QNX target whose resolution is 1920 and 1080, My application resolution getting ovelapped by 1920 and 1080 even I gave 800 and 600. Why is this behaviour? and what is the solution to have 800600 resolution on QNX for my application. Pleas noted that On windows when I run same application it is coming up in 800600. please help

            X Offline
            X Offline
            xmunix
            wrote last edited by
            #5

            @IamSumit Hi, did you get any solution to this problem? I'm facing a similar problem.

            1 Reply Last reply
            0
            • SGaistS SGaist moved this topic from QML and Qt Quick

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved