Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. window too big
Qt 6.11 is out! See what's new in the release blog

window too big

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 945 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.
  • L Offline
    L Offline
    lumpynose
    wrote on last edited by lumpynose
    #1

    X windows, debian linux, python 3. My X setup is very minimal; my .xinitrc file starts blackbox and and xscreensaver and that's it.

    When I run the demo sample code from this page

    https://doc.qt.io/qtforpython/quickstart.html

    The window is too large. The button is off the bottom of the screen.

    According to xdpyinfo the screen is 1920x1280 pixels (219x146 millimeters). I was assuming the numbers to resize(800, 600) are pixels but I see from the docs that the numbers are floats although it says that they represent 1 pixel.

    Can someone clear up my confusion? Or, how can I make a window that's 800x600 pixels?

    jsulmJ 1 Reply Last reply
    0
    • L lumpynose

      X windows, debian linux, python 3. My X setup is very minimal; my .xinitrc file starts blackbox and and xscreensaver and that's it.

      When I run the demo sample code from this page

      https://doc.qt.io/qtforpython/quickstart.html

      The window is too large. The button is off the bottom of the screen.

      According to xdpyinfo the screen is 1920x1280 pixels (219x146 millimeters). I was assuming the numbers to resize(800, 600) are pixels but I see from the docs that the numbers are floats although it says that they represent 1 pixel.

      Can someone clear up my confusion? Or, how can I make a window that's 800x600 pixels?

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

      @lumpynose said in window too big:

      Or, how can I make a window that's 800x600 pixels?

      https://doc.qt.io/qt-5/qwidget.html#resize-1

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

      1 Reply Last reply
      2

      • Login

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