QDesktopWidget desktop;int taskBarHeight = desktop.screenGeometry().height() - desktop.availableGeometry().height();