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 6374399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:29:00+00:00 2026-05-25T01:29:00+00:00

Is it possible to cut a QGLWidget ? I mean I would like to

  • 0

Is it possible to cut a QGLWidget? I mean I would like to cut it so i get access to the gui below. It sounds strange, but it would be a lot of work for me to divide my QGLWidget into two. I hope you understand what I mean.

  • 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-05-25T01:29:00+00:00Added an answer on May 25, 2026 at 1:29 am

    I don’t fully understand what you mean by “cut” and GUI below. In Qt with layout mechanisms properly used a widget consumes the area it covers and there are no widgets beneath it.

    Do you want to render multiple views into a single QGLWidget? This is easily achieved by proper use of glViewport + glScissor.


    EDIT due to comment

    There are two kinds of windows:

    • Top level (those you can freely move around on the screen)
    • Child windows (subwindows like widgets or panes in a top level window)

    Child windows again come in two characteristics:

    • logical child
    • real child

    A logical child window just consists of its position, dimension and layer and are managed by the toolkit. From the view of the operating system there’s just one top level window. The toolkit is it that manages its internal state to give the impression of independent sibling windows in the toplevel window.

    A real child window is manages by the operating/graphics system. Such real child windows may share their graphics context with their parent and sibling. However OpenGL only works well if the window into which a OpenGL context is created has its very own graphics context. Thus any OpenGL child window inevitably will have its very own graphics context and graphics system window object. Most graphics systems out there don’t properly support applying shapes onto child windows (only toplevel windows, and then this also conflicts with OpenGL).

    So this boils all down that it’s virtually impossible, nor advisible to try to “layer” an OpenGL window on top of a sibling. It may work in some circumstances, but most of the time it won’t.

    That’s the bad news.

    The good news are, that you simply looked in a slightly wrong direction. I hereby direct your view towards QGraphicsView. QGraphicsView supports OpenGL as a backend, you can also write your own OpenGL renderer code to be executed within a QGraphicsView. But furthermore QGraphicsView can also be used for rendering widgets, also using OpenGL. So all you have to do is putting both your OpenGL rendering code and your widget into a common QGraphicsView scene and are done. And here is a tutorial http://www.crossplatform.ru/node/612 the result of the tutorial looks like this: enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to get cut out text effect like this using CSS/CSS3 only?
Possible Duplicate: How does the Google Did you mean? Algorithm work? Suppose you have
Is it possible to cut decimal, and not round it. Like this. decimal number
It seems like people who would never dare cut and paste code have no
I would like to know if it's possible to setup an HTTP Proxy for
Hi is it possible to cut string like this: String in data columns: ,123,456
I know how to record audio in actionscript 3. But is it possible to
Possible Duplicate: How disable Copy, Cut, Select, Select All in UITextView I have some
Is it possible using some sort of client side code to detect cut and
I cannot get my DataBinding to cut off the decimal digits of my sliders

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.