DavidColson
DavidColson

Reputation: 8597

Qt on OSX Unresponsive widgets

After successfully porting my Qt based windows application to OSX I noticed a problem. Widgets are behaving rather oddly, with not a single error being thrown and exactly the same code used on Windows.

Widgets, such as QTreeView and QListView, when clicked on show a blue border around them. When in this state that particular widget becomes unresponsive to clicks. That is until another widget is clicked on, becoming "active" with a blue border. When the first widget is clicked on (the non-active one) it reacts, but then gets a blue border and does not react to any input.

Other strange behavior, is when these widgets are popped out of the main application window, they stop rendering, as in you get a blank, floating window. When docked back into the main window they return to normal.

Since I cannot reproduce this behaviour on Windows with the identical code, it must be Qt on OSX, or OSX itself.

I have not a clue as to what is causing this.

By the way I am using Qt 5.0.2

I appreciate any and all help.

More info: I had'nt noticed this but I am getting the output QBackingStore::flush() called with non-exposed window, behavior is undefined.

I'm not sure if this is a result of my widgets disappearing out of there containing dock widget when undocked, or is the source of the problem

Upvotes: 1

Views: 569

Answers (1)

DavidColson
DavidColson

Reputation: 8597

So you're all aware this was fixed by upgrading to Qt 5.1.0 beta.

I cannot explain why it just works when using a new version and not with an older version. My own code between the two is identical.

Upvotes: 1

Related Questions