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. Broke my QWidget resizer somehow
Forum Updated to NodeBB v4.3 + New Features

Broke my QWidget resizer somehow

Scheduled Pinned Locked Moved Solved General and Desktop
1 Posts 1 Posters 122 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.
  • J Offline
    J Offline
    JustPassingBy
    wrote on last edited by JustPassingBy
    #1

    [PYTHON 3.8]
    I cannot resize my QWidget layout in Qt Creator 4.12.3 version. Minimum is 16x16 (width; height) and max is 37x37.
    Before what I did, it worked just fine but now after I tried one thing, everything broke.

    What is it that I tried? I tried to put background-image to QWidget and then Qt Creator froze for a moment and then unfroze. Ran the program and image didn't scale (auto-fit, like QLabel has) so I went and googled "CSS background image auto-scale" and found min-width:100%; or auto; and same with max-width then I pressed OK and boom, everything broke.

    I guess stylesheet != CSS or it is but I used wrong things and now I am stuck trying to figure out how to fix it.
    alt text

    EDIT: Solved. Had to reset minimumSize and maximumSize attribute and now I can resize however I want to. Sorry for trouble.

    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