We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to save the dock layout to a file and reload it when reopen. the code of save dock layout :
QFile file("VisualLayout.ini"); if (file.open(QIODevice::WriteOnly)) { QDataStream out(&file); out << _dockMan->saveState(); file.close(); }
and the code of load the config file:
QFile file("VisualLayout.ini"); if (file.open(QIODevice::ReadOnly)) { QByteArray ba; QDataStream in(&file); in >> ba; file.close(); if (_dockMan->restoreState(ba)) { qDebug() << QString("good"); } else { qDebug() << QString("failed"); } }
but it just reload the 1st dock area layout, and totally ignored other dock area.
The text was updated successfully, but these errors were encountered:
Not sure which is the official repo, but https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System is staying up to date. @BarryArch you may find better luck with that other repo.
Sorry, something went wrong.
No branches or pull requests
I want to save the dock layout to a file and reload it when reopen.
the code of save dock layout :
and the code of load the config file:
but it just reload the 1st dock area layout, and totally ignored other dock area.
The text was updated successfully, but these errors were encountered: