c++ - cant exchange widget in QSplitter (Qt) -


I have a coupler with two widgets. One of them is static, the other should be changed on the press of a button. But the problem is that the widget can not change?

I have an indicator for the widget that is changing - switch to a widget called "Widget- Pointer" - this-> Content

.

Here is a code snippet where I switch the widget:

  qDebug () & lt; & Lt; "First:" & lt; & Lt; This- & gt; material; This- & gt; Content = widget; QDebug () & lt; & Lt; "After:" & lt; & Lt; This- & gt; material; This- & gt; Content-> Updates (); This- & gt; Content-> Repaint ();  

My debug output confirms there that the indicator indicates the second widget:

 First: After QLineEdit (0x363850): SCTableView (0x3644c0) 

Any thoughts?

Post-text "itemprop =" text ">

The problem is resolved. Thanks to some people at #qt on Freenode.

After having switched to widget, I forgot to call Visual- (true) on content.

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -