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
Forum Updated to NodeBB v4.3 + New Features

Resizing Qwidget with app window

Scheduled Pinned Locked Moved General and Desktop
qwidgetresizeresolution
2 Posts 2 Posters 1.2k 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.
  • O Offline
    O Offline
    Omri
    wrote on 12 Sept 2015, 08:32 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.

    J 1 Reply Last reply 12 Sept 2015, 10:07
    0
    • O Omri
      12 Sept 2015, 08:32

      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.

      J Offline
      J Offline
      Joel Bodenmann
      wrote on 12 Sept 2015, 10:07 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

      1/2

      12 Sept 2015, 08:32

      • Login

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