What is the result of QDesktopWidget::isVirtualDesktop()?
What is the result of QDesktopWidget::isVirtualDesktop()?
A camel can go 14 days without drink,
I can't!!!
QDesktopWidget::isVirtualDesktop() returns true, so????
In a virtual desktop you have only one screen, that starches over multiple hardware monitors.
virtualDesktop : const bool
This property holds if the system manages the available screens in a virtual desktop.
For virtual desktops, screen() will always return the same widget. The size of the virtual desktop is the size of this desktop widget.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
try this
Qt Code:
originalPixmap = QPixmap::grabWindow(desktop->winId(), desktop->x(), desktop->y(), desktop->width(), desktop->height());To copy to clipboard, switch view to plain text mode
Or check width to height ratio.
If it's huge - you have a multiple screen desktop (or veeeery odd screen)![]()
Bookmarks