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. Resizing Qwidget with app window
QtWS25 Last Chance

Resizing Qwidget with app window

Scheduled Pinned Locked Moved General and Desktop
qwidgetresizeresolution
2 Posts 2 Posters 1.1k 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.
  • O Offline
    O Offline
    Omri
    wrote on last edited by
    #1

    Hi,
    I am using Qwidget to play video streams.
    I am looking of a way to synchronize the Qwidget window with the app window, meaning when I minimize the app window or maximize it, the Qwidget's resolution will grow small or big with the app(same as happens with youtube windows for example).
    I've searched and couldn't find a solution for this.
    Thanks.

    Joel BodenmannJ 1 Reply Last reply
    0
    • O Omri

      Hi,
      I am using Qwidget to play video streams.
      I am looking of a way to synchronize the Qwidget window with the app window, meaning when I minimize the app window or maximize it, the Qwidget's resolution will grow small or big with the app(same as happens with youtube windows for example).
      I've searched and couldn't find a solution for this.
      Thanks.

      Joel BodenmannJ Offline
      Joel BodenmannJ Offline
      Joel Bodenmann
      wrote on last edited by
      #2

      I am not sure what you are referring to as you app window, but provided that it too is a QWidget you can use QWidget::changeEvent(QEvent* event). In there you can check the event to figure out whether the widget got minimized, maximized or just resized.
      From there you can just pass the information to you video player widget and handle it appropriately.

      Hope that helps.

      Industrial process automation software: https://simulton.com
      Embedded Graphics & GUI library: https://ugfx.io

      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