Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9206483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:11:07+00:00 2026-06-18T00:11:07+00:00

I’m creating application to analyze data from a device and displaying it on the

  • 0

I’m creating application to analyze data from a device and displaying it on the screen. SDK to handling this device have function to display current frame of data in specific Window by setting window handler (HWND).

In my Qt Gui Application i’m trying display my own widget over video stream, which a DLL showing in my QGLWidget (it’s set by winId function and HWND). MainWidget is a parent of QGLWidget where the data stream is displayed, and QWidget (or some graphic marker, for example Circle) should be displayed above data stream from QGLWidget.

Everything works almost perfect, but I’m getting blinking effect (twinkle effect?) – my circle widget is hidding and showing with frequency which human eye can get and i try to avoid it. The only option to eliminate that is create this circle as widget and set for its Qt::Popup flag, by it has big disadvantage – i don’t have access to the rest of interface (I know, it’s Popup flag fault). I’ve tried other options like:

  • set Qt::WindowStaysOnTopHint and few other flags,
  • create layout object which parent is QGLWidget, where i’m displaying data from device, and than set circle widget as item of layout, but here black background is shading displayed data (i’ve turned off even background, but i’ve realized that Qt can’t know what is under my widget because it’s handled by external library).

In documentation i found information that i can create my own directshow+COM object (or interface, am i right?) to handling video stream but i don’t really know this technologies and i want avoid this option so much!

[Edit] I found that i can take current frame of data as IPictureDisp interface, but as I said earlier i don’t really know COM technology. I’ve tried to find something about, how work with IPictureDisp but i don’t have basic knowledge about COM technology. Does anybody has any good tutorial about it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:11:08+00:00Added an answer on June 18, 2026 at 12:11 am

    Try this widget hierarchy:

    MainWindget
    |-QGLWidget
    |-MarkerWidet
    

    MarkerWidet should be a small square widget.

    Make sure that MarkerWidet is above QGLWidget by calling MarkerWidet::raise().
    But call MarkerWidet::lower() before calling MarkerWidet::raise(). Qt has an error with QWidget::raise(), this error is eliminated by calling lower(); raise();.

    After starting your application check actual widget hierarchy, use Spy++ to do it. Spy++ can be found in the Visual Studio installation, or downloaded here.

    Pseudocode:

    MainWindget* mainWidget = new MainWindget;
    QGLWidget* glWidget = new QGLWidget(mainWidget);
    device->setHwnd(glWidget->winId());
    mainWidget->show();
    ...
    MarkerWidet* marker = new MarkerWidet(mainWidget);
    marker->resize(30, 30);
    marker->move(10, 10);
    marker->lower();
    marker->raise();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
This could be a duplicate question, but I have no idea what search terms
I have a text area in my form which accepts all possible characters from
Does anyone know how can I replace this 2 symbol below from the string
I want to construct a data frame in an Rcpp function, but when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.