|
From: | Daniel J Sebald |
Subject: | Re: GUI - X Error: BadMatch |
Date: | Sun, 27 Jan 2013 16:44:10 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16 |
On 01/27/2013 04:34 PM, marco atzeri wrote:
On 1/27/2013 11:14 PM, Daniel J Sebald wrote:Wait, I think I see what the problem is. The overloaded function setFocus() will set the focus "if this widget or one of its parents is the active window". Perhaps the two lines in that change set need to be switched from: 4.11 + setFocus (); 4.12 + activateWindow (); to activateWindow (); setFocus (); Perhaps without an "activateWindow ()" the Qt widget doesn't yet have it's focus reason validated. Just guessing, but it's worth a try. Danit makes no difference Marco
There is this part of the documentation:"Be aware that if the widget is hidden, it will not accept focus until it is shown."
Is focus being set before the widgets are shown?... running out of ideas. Dan
[Prev in Thread] | Current Thread | [Next in Thread] |