Comments (3)
It would be great, if there is also a IsDockedToMainWindowChanged() Qt signal. Or even better: a Q_PROPTERTY "DockedToMainWindow".
from kddockwidgets.
Added DockWidget::isInMainWindow().
Signal will come later this week
from kddockwidgets.
Hello Sergio,
unfortunately isInMainWindow() does not work as we expect it to work.
I just added below piece of code, in constructor of MyMainWindow.cpp
auto checkIsinMainWindowAction = fileMenu->addAction(QStringLiteral("Is in MainWindow"));
connect(checkIsinMainWindowAction, &QAction::triggered, this, [&]() {
for (int i = 0; i < m_dockwidgets.size(); i++)
{
if(m_dockwidgets[i]->isInMainWindow())
qDebug() << m_dockwidgets[i]->windowTitle() << "is on main window";
}
});
On the console output I see the below messages.
+40-120) margins: 0, 0, 0, 0 minimum size: 80x150 MINMAXINFO maxSize=0,0 maxpos=0,0 mintrack=160,300 maxtrack=0,0)
"DockWidget #0" is on main window
"DockWidget #1" is on main window
"DockWidget #2" is on main window
"DockWidget #3" is on main window
"DockWidget #4" is on main window
"DockWidget #5" is on main window
"DockWidget #6" is on main window
"DockWidget #7" is on main window
"DockWidget #8" is on main window
Even though few widgets were not directly docked to mainwindow. Few were docked to TestApp as shown in above screen shot.
Could you please have a look at this.
Kind Regards
Nandish
from kddockwidgets.
Related Issues (20)
- Documentation update commit references nonexistent file HOT 1
- Integrate redocking indicator to MDI window HOT 3
- Link error when building KDDockWidgets HOT 7
- Nested MainWindows on Linux HOT 2
- Problem with running qtquick example: (Please call KDDockWidgets::initPlatform()). HOT 3
- Issues with nested MainWindows / DockWidgets HOT 9
- How to set affinity? HOT 9
- `setTitle` on floating-changed doesn't work HOT 4
- Apply layout of one set of dockwidgets to a different set HOT 2
- Qt Quick: crash when `delete`-ing a toplevel dockwidget HOT 1
- Qt Quick: Crash when deleting dockWidget in MDI HOT 1
- Indicators not showing due to other `KDDockWidget` in background HOT 2
- Restore layout for window doesn't work if it's currently maximized HOT 7
- On restore, LayoutSaver assigns zero width/height to windows from disconnected screen
- Move DockWidget programmically HOT 1
- Broken "Toggle Another" Quick MDI example HOT 4
- Linking problems HOT 18
- Restore maximized window state while it's currently maximized doesn't work HOT 2
- The display on the right side of the dock window is weird. HOT 3
- Crash in KDDockWidgets::DockWidgetInstantiator::isFocusedChanged HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kddockwidgets.