Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why QMainWindow doesn't set to centre of screen ?
Qt 6.11 is out! See what's new in the release blog

Why QMainWindow doesn't set to centre of screen ?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 995 Views 1 Watching
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I found that Dialog automatically displays on center of screen but for MainWindow we have to set it explicitly. Why ?

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      If you mean QMainWindow then it should center and it does for me. What OS/Qt version are you running?

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        OS: Ubuntu 14.04
        Qt Creator 3.1.1
        Based on Qt 5.2.1 (GCC 4.6.1, 64 bit)

        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