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. Centering application window in .cc file
Forum Updated to NodeBB v4.3 + New Features

Centering application window in .cc file

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 2 Posters 490 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

    actually i created one project
    I'm using run guard for starting the application window and it's opening at bottom right

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mc6bullet
      wrote on last edited by
      #2

      I want to open at center.

      jsulmJ 1 Reply Last reply
      0
      • M Mc6bullet

        I want to open at center.

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

        @Mc6bullet Try https://wiki.qt.io/How_to_Center_a_Window_on_the_Screen

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

        M 1 Reply Last reply
        0
        • jsulmJ jsulm

          @Mc6bullet Try https://wiki.qt.io/How_to_Center_a_Window_on_the_Screen

          M Offline
          M Offline
          Mc6bullet
          wrote on last edited by
          #4

          @jsulm Where i paste this code in qml or cc

          jsulmJ 1 Reply Last reply
          0
          • M Mc6bullet

            @jsulm Where i paste this code in qml or cc

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

            @Mc6bullet Ah, sorry did not realised you asked in QML forum!
            Maybe this can help: https://stackoverflow.com/questions/8970766/qml-main-window-position-on-start-screen-center/26424028

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

            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