Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. How to properly position a widget on a window.
Qt 6.11 is out! See what's new in the release blog

How to properly position a widget on a window.

Scheduled Pinned Locked Moved Unsolved Qt 6
2 Posts 2 Posters 582 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.
  • G Offline
    G Offline
    gouneken
    wrote on last edited by
    #1

    Good evening, I wrote a Qt computer code to be able to position a widget at a precise position on a window by means of abscissa and ordinates. But I do not know which abscissa or ordered corresponds to a position on a window and my widget often does not display in the right place, as soon as it is so badly positioned that it does not display in full. I was wondering if there was a part on Qt Creator to divide a window into an array to better see the coordinates of a position. Otherwise, how to know the coordinates of a position. Thank you for reading to the end!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Any reason for not using layouts ?
      How are you calculating the position of your widget ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - 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