Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Polish
  4. Rysowanie po QVideoWidget z przezroczystością
Forum Updated to NodeBB v4.3 + New Features

Rysowanie po QVideoWidget z przezroczystością

Scheduled Pinned Locked Moved Unsolved Polish
1 Posts 1 Posters 483 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
    lbrycht
    wrote on last edited by
    #1

    Pracuję na qt5 (c++) .
    Wykorzystuję QVideoWidget do odtwarzania strumienia wideo rtsp. Chciałem rysować dowolne sygnatry za pomocą QPainter na wyświetlającym się wideo. Jednak podczas rysowania zasłaniam obraz wideo. Dla przykładu jak obszar rysowania podałem połowę zobrazowania QVideoWidget.

    1.png

    Próbowałem dodawać dodatkowy QLabel na QVideoWidget:
    QLabel *label = new QLabel(ui->videoWidget);
    i dopiero później rysować po "label", lecz też zasłaniam QVideoWidget.

    Dodawałem też:
    ui->videoWidget->setAttribute(Qt::WA_X11OpenGLOverlay );
    Lecz wtedy przezroczystość siega aż pulpitu systemu operacyjnego.

    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