Skip to content

QCustomWindow v3.0.0

Latest
Compare
Choose a tag to compare
@mauromascarenhas mauromascarenhas released this 21 Oct 22:37

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.
  • 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.