Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Qt Dialog buttons need to be pressed twice
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1771
Location: PB, Germany

PostPosted: Thu Aug 04, 2022 7:24 am    Post subject: Qt Dialog buttons need to be pressed twice Reply with quote

Hi,

I have a weird issue since probably more than a year.
On almost every Qt application I need to press Open or other buttons twice to get the file dialog. First it felt like a bad mouse key but it's really twice every time.

After the first call of such a file dialog, all the dialogs within the application are working fine until the application is restarted.

Some examples for the issue:
app-emulation/virtualbox (Choose Disk file for ISO images)
app-admin/keepassxc (Database->Open Database)

My environment is Xfce with Gtk, the file dialog looks like the Gtk dialog.
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Fri Aug 05, 2022 9:44 am    Post subject: Reply with quote

Maybe its a window focus thing.
Ie first click on button acquires focus and second click is button pressing.
In xfce settings manager
Code:

Window Manager -> Focus -> New window focus -> tick box "Automatically give focus to newly created windows"

_________________
:)
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1771
Location: PB, Germany

PostPosted: Fri Aug 05, 2022 12:40 pm    Post subject: Reply with quote

Actually I don't think so.
alamahant wrote:
Code:
Window Manager -> Focus -> New window focus -> tick box "Automatically give focus to newly created windows"

I have that option enabled. As well as [x] Focus follow mouse.
The current window I'm working on has focus. The new file dialog doesn't appear at all, it's not hidded or in background, it doesn't open on first click, only on second click. After that everything is working as expected and file dialogs are opening on first click, until I exit the application and start again.
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
Ralphred
Guru
Guru


Joined: 31 Dec 2013
Posts: 501

PostPosted: Fri Aug 05, 2022 3:43 pm    Post subject: Reply with quote

Massimo B. wrote:
it doesn't open on first click, only on second click. After that everything is working as expected and file dialogs are opening on first click, until I exit the application and start again.

What happens if you click in the window (but not a button), then try a button?
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1771
Location: PB, Germany

PostPosted: Thu Aug 11, 2022 10:33 am    Post subject: Reply with quote

Ralphred wrote:
What happens if you click in the window (but not a button), then try a button?
Same issue.
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1897
Location: 127.0.0.1

PostPosted: Sat Aug 13, 2022 10:43 am    Post subject: Reply with quote

Hi,

Does this happen with another user on your system ?
If not, maybe some configuration file in your ~ interfere with the expected behavior of the Qt dialog (~/.config/QtProject.conf or something else..)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum