Releases: Nintersoft/QCustomWindow
Releases · Nintersoft/QCustomWindow
QCustomWindow v3.0.0
What's new in v3.0?
- Fixed limitations of v2.0 release;
- Renamed QTitlebBar to QCustomTitleBar:
- Added possibility of setting titlebar window button text;
- Set titlebar window button text names (it is now possible to customize buttons through stylesheets);
- Migrated window movimentation codes to QCustomWindow:
- Added window movimentation signals to QCustomTitleBar:
- stopWindowMoveRequest;
- startWindowMoveRequest;
- changeWindowPositionRequest.
- Created necessary slots for window movimentation in QCustomWindow.
- Added window movimentation signals to QCustomTitleBar:
- Renamed CustomTitlebar to QCustomWindow (project level);
- New widgets no longer receives custom event filters when inserted into QCustomWindow;
- Resolved conflicts with QMainWindow native methods;
- QCustomWindow cannot be an alien widget anymore;
- Simplified event listeners (improved performance);
- Added support to native window resizign/moving accordingly to the new QWindow APIs (since Qt 5.12);
- Added flag variables to enforce custom window movimentation algorithms when necessary.
- New private QHoverWatcher widget which is responsible for holding QCustomWindow client area (and detecting when mouse enters this area);
- Fixed cursor redefinition when mouse leaves non-client area;
- Fixed window move when it was supposed to resize only;
- Added support to windowIcon display:
- QCustomTitleBar icon is linked to QCustomWindow windowIcon;
- Should you want to hide QCustomTitleBar window, just assign a Null QIcon to it;
- Added object names to lblWindowTitle and lblWindowIcon in QCustomTitleBar (it is now possible to specify element attributes in stylesheet).
- Parent widget is no longer mandatory for QCustomTitleBar;
- QCustomWindow now supports being minimized, closed and restrored from taskbar;
- Fixed a bug which could cause window to be resized even if the cursor was inside client area;
- Added Qt5/Qt6 compatible sources;
- Minor fixes.
CustomTitleBar v2.0.0
What's new in v2.0?
- NMainWindow has been renamed to QCustomWindow;
- TitleBar has been renamed to QTitleBar;
- QCustomWindow and QTitleBar no longer use Qt designer files;
- It is no longer necessary to call "setCustomWidgets", "setNewCentralWidget" or "setCustomStatusBar". Widget additions are handled on "QCustomWindow::event(QEvent*)";
- QTitleBar can be directly accessed through "QCustomWindow::titleBar()" method;
- QToolBar and QDockWidget objects can be normally added/inserted/removed;
- Faster API calls (every single event has been redesiged so as to provide smoother window transformations);
- QTitleBar properties must be set directly to QCustomWindow's titlebar object;
- Minor fixes;
LIMITATIONS
Unfortunately, there are some limitations which cannot be overcome (yet). Here are some of them:
- It is not recommended to change QToobar's stylesheet after it has been inserted into a QCustomWindow's layout;
- Under no circumstances "QMainWindow::setMenuBar" and "QMainWindow::setMenuWidgets" should be called, since those methods have been reimplemented in QCustomWindow. It means that they cannot be generated by Qt Designer.
Dynamic Link Library Implementation
Added:
- Dynamic link project sample.
- Dynamic link library implementation.
- Custom stylesheet for titlebar feature.
Improved:
- [ IMPORTANT ] This library is no longer under NSOSL, but MPL v2.0
- Project samples (improved sources and adapted to the changes made).
Fixed:
- onCloseEvent was resizing the window titlebar.
Primeira versão | First release
Primeira versão
EN
First release