-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow different settings for floated widgets #314
Comments
Maybe, but needs to be well thought first. Can two floating windows (with different settings) be tabbed together ? If so, which settings do they acquire ? |
Hi Sergio, you are right, a good question, but maybe it’s not that difficulty. We have an application, with windows which can be easily docked. Other windows may be docked, or not, but may be to big to always stay in front of the our application. So back to your question.
Kind regards, |
Ok, sounds good. 1.6 is due today though, I'll try to delay the release by 1 day or so ;) |
Are you OK with using 1.6 branch instead of 1.6 tag ? There's quite some work involved in making a release, which we would have to duplicate |
Hi Sergio, |
Yes. !.6 branch is ok. We already use this branch. |
Hi Sergio, |
I does not. I'm trying to implement it this week. @tlaemmlein Which exact "settings" need to be per-window ? Would the window flags be enough (Qt::Window vs Qt::Tool) ? |
this new feature will be added into the new 1.7 branch, btw |
@iamsergio We need the internal functionality of Flag_TitleBarHasMinimizeButton which is Qt::Window and Qt::Tool (after checking the source code). Hence I'm very sure that Qt::Window and Qt::Tool are enough. To be more sure you can create an dev branch, where I can test the feature. |
See DockWidgetBase::setFloatingWindowFlags(flags) and set your needed flags, per dock widget. |
Branch is 1.7. Which is exactly the same as 1.6 but with this feature on top. |
Hi @iamsergio , Hence it is ok to hide Qt::Tool and Qt::Window. So I think FloatingWindowFlag::UseQtTool and FloatingWindowFlag::UseQtWindow could be removed. The minimize action doesn't work if the (floating) window is set by the floating flags. Kind Regards, Thomas |
…ow.cpp No behaviour change for now, just moving. Its usage is tricky, so it should only be used in one place, so we can honour FloatingWindow::m_flags overrides too. For issue #314
If the user has passed custom per-window flags then we shouldn't use the global ones. Fixes minimize problem in #314
Still, one redundant flag was removed, but now, the one with the long name. For #314
|
Hi Sergio,
you are right, a good question, but maybe it's not that difficulty.
We have an application, with windows which can be easily docked.
Other windows are rarely used, or just used to configure something and afterwards closed again.
But during that time they interact with an docked window. Therefore they should stay in front of the application.
Other windows may be docked, or not, but may be to big to always stay in front of the our application.
So it should be possible to bring the application in front of this window.
So back to your question.
It see two possibilities.
1. ) It's not allowed to dock/tab floating windows of different kinds.
2.) It's configurable if such windows than always stay in front or be minimizable and stay in the background.
Kind regards,
Hannes
From: Sergio Martins ***@***.***>
Sent: Monday, September 12, 2022 12:47 PM
To: KDAB/KDDockWidgets ***@***.***>
Cc: Hannes Cmarits ***@***.***>; Author ***@***.***>
Subject: Re: [KDAB/KDDockWidgets] Allow different settings for floated widgets (Issue #314)
Maybe, but needs to be well thought first.
Can two floating windows (with different settings) be tabbed together ? If so, which settings do they acquire ?
-
Reply to this email directly, view it on GitHub<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FKDAB%2FKDDockWidgets%2Fissues%2F314%23issuecomment-1243555866&data=05%7C01%7C%7C05a9d79e6db0466e700708da94ac2b9e%7C0a49c39df76b48e3a9c7ecf781a1a79a%7C0%7C0%7C637985764433952225%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=VKDvOtjAH7tSnuvWcJzL9O3R9tYJyJHNHcj%2FOltZeyo%3D&reserved=0>, or unsubscribe<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFSBITYDP5PEGGGLGIBIMB3V54C3RANCNFSM6AAAAAAQKIHYHQ&data=05%7C01%7C%7C05a9d79e6db0466e700708da94ac2b9e%7C0a49c39df76b48e3a9c7ecf781a1a79a%7C0%7C0%7C637985764433952225%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BSF4m3XXEXZ5AW%2Blp1QAkNWn0hbl2VwnudRUtBdvrWI%3D&reserved=0>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Hi KDDockWidgets-Team, hi Sergio,
at the moment it seems to be possible to keep floated widget in front of the main application or allow to minimize and be also in the background of the main application.
We need the possibility to have both types.
Have floated widgets which stay always in front of the main application, and
widgets which can be in front or behind the main application.
If not already possible, this should be provided.
Cheers, Hannes
The text was updated successfully, but these errors were encountered: