0

For some reasons, I need to draw a widget onto one another. The structure is the following (see the image) :

  • I have an original QTableWigetItem
  • On the QTableWigetItem, I create a QWidget at the foreground with the same geometry
  • This QWidget contains a QBoxLayout
  • This QBoxLayout contains a QPixmap and a QComboBox enter image description here

I want to do the following things : The QWidget is just a "container" for my QBoxLayout and I would like to set him completely "invisible" for the user. If the user click or move at the position of the widget, I want the event of the QTableWigetItem in the background to be trigerred. But the problem is that I want the QPixmap and the QComboBox to be at the foreground, visible and "normal". For me it's just a trick to be able to put children widgets in a QTableWidget of a HeaderView.

How to make the QWidget "completely invisible" (from the event/signals point of view) ?

Thank you very much.

1 Answer 1

1

Try QWidget::setWindowOpacity(0)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.