Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to properly position a widget on a window.



  • 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!


  • Lifetime Qt Champion

    Hi,

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


Log in to reply