![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtCore More...
#include <qsize.h>
Public Member Functions | |
constexpr | QSize () noexcept |
Constructs a size with an invalid width and height (i.e., isValid() returns false ). | |
constexpr | QSize (int w, int h) noexcept |
Constructs a size with the given width and height. | |
constexpr bool | isNull () const noexcept |
Returns true if both the width and height is 0; otherwise returns false. | |
constexpr bool | isEmpty () const noexcept |
Returns true if either of the width and height is less than or equal to 0; otherwise returns false . | |
constexpr bool | isValid () const noexcept |
Returns true if both the width and height is equal to or greater than 0; otherwise returns false . | |
constexpr int | width () const noexcept |
Returns the width. | |
constexpr int | height () const noexcept |
Returns the height. | |
constexpr void | setWidth (int w) noexcept |
Sets the width to the given width. | |
constexpr void | setHeight (int h) noexcept |
Sets the height to the given height. | |
void | transpose () noexcept |
Swaps the width and height values. | |
constexpr QSize | transposed () const noexcept |
void | scale (int w, int h, Qt::AspectRatioMode mode) noexcept |
Scales the size to a rectangle with the given width and height, according to the specified mode: | |
void | scale (const QSize &s, Qt::AspectRatioMode mode) noexcept |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Scales the size to a rectangle with the given size, according to the specified mode. | |
QSize | scaled (int w, int h, Qt::AspectRatioMode mode) const noexcept |
QSize | scaled (const QSize &s, Qt::AspectRatioMode mode) const noexcept |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
constexpr QSize | expandedTo (const QSize &) const noexcept |
Returns a size holding the maximum width and height of this size and the given otherSize. | |
constexpr QSize | boundedTo (const QSize &) const noexcept |
Returns a size holding the minimum width and height of this size and the given otherSize. | |
constexpr QSize | grownBy (QMargins m) const noexcept |
constexpr QSize | shrunkBy (QMargins m) const noexcept |
constexpr int & | rwidth () noexcept |
Returns a reference to the width. | |
constexpr int & | rheight () noexcept |
Returns a reference to the height. | |
constexpr QSize & | operator+= (const QSize &) noexcept |
Adds the given size to this size, and returns a reference to this size. | |
constexpr QSize & | operator-= (const QSize &) noexcept |
Subtracts the given size from this size, and returns a reference to this size. | |
constexpr QSize & | operator*= (qreal c) noexcept |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Multiplies both the width and height by the given factor, and returns a reference to the size. | |
QSize & | operator/= (qreal c) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Divides both the width and height by the given divisor, and returns a reference to the size. | |
constexpr QSizeF | toSizeF () const noexcept |
Friends | |
constexpr bool | operator== (const QSize &s1, const QSize &s2) noexcept |
Returns true if s1 and s2 are equal; otherwise returns false . | |
constexpr bool | operator!= (const QSize &s1, const QSize &s2) noexcept |
Returns true if s1 and s2 are different; otherwise returns false . | |
constexpr QSize | operator+ (const QSize &s1, const QSize &s2) noexcept |
Returns the sum of s1 and s2; each component is added separately. | |
constexpr QSize | operator- (const QSize &s1, const QSize &s2) noexcept |
Returns s2 subtracted from s1; each component is subtracted separately. | |
constexpr QSize | operator* (const QSize &s, qreal c) noexcept |
Multiplies the given size by the given factor, and returns the result rounded to the nearest integer. | |
constexpr QSize | operator* (qreal c, const QSize &s) noexcept |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Multiplies the given size by the given factor, and returns the result rounded to the nearest integer. | |
QSize | operator/ (const QSize &s, qreal c) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Divides the given size by the given divisor, and returns the result rounded to the nearest integer. | |
constexpr size_t | qHash (const QSize &, size_t) noexcept |
template<std::size_t I, typename S , std::enable_if_t<(I< 2), bool > = true, std::enable_if_t< std::is_same_v< q20::remove_cvref_t< S >, QSize >, bool > = true> | |
constexpr decltype(auto) | get (S &&s) noexcept |
Related Symbols | |
(Note that these are not member symbols.) | |
QDataStream & | operator<< (QDataStream &stream, const QSize &size) |
Writes the given size to the given stream, and returns a reference to the stream. | |
QDataStream & | operator>> (QDataStream &stream, QSize &size) |
Reads a size from the given stream into the given size, and returns a reference to the stream. | |
\inmodule QtCore
The QSize class defines the size of a two-dimensional object using integer point precision.
A size is specified by a width() and a height(). It can be set in the constructor and changed using the setWidth(), setHeight(), or scale() functions, or using arithmetic operators. A size can also be manipulated directly by retrieving references to the width and height using the rwidth() and rheight() functions. Finally, the width and height can be swapped using the transpose() function.
The isValid() function determines if a size is valid (a valid size has both width and height greater than or equal to zero). The isEmpty() function returns true
if either of the width and height is less than, or equal to, zero, while the isNull() function returns true
only if both the width and the height is zero.
Use the expandedTo() function to retrieve a size which holds the maximum height and width of this size and a given size. Similarly, the boundedTo() function returns a size which holds the minimum height and width of this size and a given size.
QSize objects can be streamed as well as compared.
|
inlineconstexprnoexcept |
Constructs a size with an invalid width and height (i.e., isValid() returns false
).
Definition at line 116 of file qsize.h.
Referenced by transposed().
|
inlineconstexprnoexcept |
Constructs a size with the given width and height.
Returns a size holding the minimum width and height of this size and the given otherSize.
Definition at line 196 of file qsize.h.
References qMin().
Referenced by QMdiAreaPrivate::appendChild(), QFormLayoutPrivate::arrangeWidgets(), QLayout::closestAcceptableSize(), QPlatformWindow::constrainWindowSize(), QItemDelegate::doLayout(), QCommonStyle::drawControl(), fixToolBarOrientation(), QDockAreaLayout::getGrid(), QTabWidget::initStyleOption(), QWidgetResizeHandler::mouseMoveEvent(), QWidgetItem::setGeometry(), QWindowPrivate::setMinOrMaxSize(), QBoxLayoutPrivate::setupGeom(), QComboBox::showPopup(), QWaylandXdgToplevel::sizeForResize(), QtPrivate::QWellArray::sizeHint(), QWidgetItem::sizeHint(), QScrollArea::sizeHint(), QOpenGLTextureUploader::textureImage(), QOpenGL2PaintEngineExPrivate::updateBrushTexture(), QScrollAreaPrivate::updateScrollBars(), and QQC2::QCommonStylePrivate::viewItemLayout().
Returns a size holding the maximum width and height of this size and the given otherSize.
Definition at line 191 of file qsize.h.
References qMax().
Referenced by QMdiAreaPrivate::appendChild(), QMenuBarPrivate::calcActionRects(), QLayout::closestAcceptableSize(), QPlatformWindow::constrainWindowSize(), QProgressDialogPrivate::ensureSizeIsAtLeastSizeHint(), QDockAreaLayout::getGrid(), QGroupBox::minimumSizeHint(), QWidgetResizeHandler::mouseMoveEvent(), qNormalizeRadii(), qSmartMaxSize(), QToolBarAreaLayoutItem::realSizeHint(), QMdiAreaPrivate::rearrange(), QSGMapboxGLTextureNode::resize(), QMdiAreaPrivate::resizeToMinimumTileSize(), QWasmWindow::setGeometry(), QWidgetItem::setGeometry(), QMainWindowLayout::setGeometry(), QWindowPrivate::setMinOrMaxSize(), QMdiSubWindowPrivate::setNewGeometry(), QMdiSubWindowPrivate::setNormalMode(), QBoxLayoutPrivate::setupGeom(), QMdiSubWindowPrivate::setWindowFlags(), QMdiArea::showEvent(), QComboBox::showPopup(), QAndroidStyle::AndroidLayerDrawable::size(), QWaylandXdgToplevel::sizeForResize(), QAndroidStyle::AndroidSeekBarControl::sizeFromContents(), QQC2_NAMESPACE::QMacStyle::sizeFromContents(), QMacStyle::sizeFromContents(), QQC2::QWindowsXPStyle::sizeFromContents(), QWidgetItem::sizeHint(), QMenuPrivate::updateActionRects(), and QScrollAreaPrivate::updateScrollBars().
Definition at line 49 of file qsize.h.
Referenced by QDockAreaLayoutItem::maximumSize(), QDockAreaLayoutItem::minimumSize(), and QDockAreaLayoutItem::sizeHint().
|
inlineconstexprnoexcept |
Returns the height.
Definition at line 132 of file qsize.h.
Referenced by DrmEglServerBuffer::DrmEglServerBuffer(), LibHybrisEglServerBuffer::LibHybrisEglServerBuffer(), QSGRhiAtlasTexture::Manager::Manager(), QtPrivate::PageItem::PageItem(), QEGLPbuffer::QEGLPbuffer(), QGLXPbuffer::QGLXPbuffer(), QOpenVGOffscreenSurface::QOpenVGOffscreenSurface(), QQnxScreen::QQnxScreen(), QRollEffect::QRollEffect(), QWasmOffscreenSurface::QWasmOffscreenSurface(), QSGRhiAtlasTexture::Texture::Texture(), QSGCompressedAtlasTexture::Texture::Texture(), _q_boundGeometryToSizeConstraints(), QLayout::activate(), QAbstractFileIconEngine::actualSize(), QPixmapIconEngine::actualSize(), QSSGRenderReflectionMap::addReflectionMapEntry(), QMacStylePrivate::CocoaControl::adjustedControlFrame(), QStyle::alignedRect(), QQC2::QStyle::alignedRect(), QLayout::alignmentRect(), QDockAreaLayoutInfo::apply(), QCocoaWindow::applyContentBorderThickness(), QAndroidCameraSession::applyResolution(), QWindowGeometrySpecification::applyTo(), QWindowsGeometryHint::applyToMinMaxInfo(), QMacStylePrivate::aquaSizeConstrain(), avfVideoSettings(), basicSize(), QOpenGL2PaintEngineEx::begin(), QOpenGL2PaintEngineEx::beginNativePainting(), QQuickContext2DImageTexture::beginPainting(), QRhiVulkan::beginPass(), QtWaylandClient::DecorationsBlitter::blit(), QPlatformGraphicsBuffer::byteCount(), QMenuBarPrivate::calcActionRects(), QQuickStyleItemScrollViewCorner::calculateGeometry(), QQuickBorderImagePrivate::calculateRects(), QQuickTableViewPrivate::calculateTopLeft(), QQuickContext2DTexture::canvasChanged(), QQuickTableViewPrivate::cellAtModelIndex(), QEglFSKmsGbmCursor::changeCursor(), QSSGRhiContext::checkAndAdjustForNPoT(), QGeoMapPrivate::clampVisibleArea(), QWidgetWindowPrivate::closestAcceptableGeometry(), QLayout::closestAcceptableSize(), QSGPlainTexture::commitTextureOperations(), QtWaylandClient::QWaylandEglWindow::contentFBO(), QXcbWindow::create(), QD3D11RenderBuffer::create(), QGles2Texture::create(), QMetalRenderBuffer::create(), QVkTextureRenderTarget::create(), QGeoCameraTilesPrivate::createFrustum(), QEglFSOpenWFDIntegration::createNativeWindow(), QWasmVideoOutput::createOffscreenElement(), QD3D11SwapChain::createOrResize(), QMetalSwapChain::createOrResize(), QVkSwapChain::createOrResize(), QKmsDevice::createScreenForConnector(), QQuickContext2DTexture::createTiles(), QRhiVulkan::createTransientImage(), D3DPresentEngine::createVideoSamples(), QIconModeViewBase::dataChanged(), QQuickScreenInfo::desktopAvailableHeight(), determinePhysicalSize(), determinePhysicalSize(), determineScreenSize(), QItemDelegate::doLayout(), QXcbVirtualDesktop::dpi(), QQC2::QWindowsXPStyle::drawComplexControl(), QAndroidStyle::AndroidSeekBarControl::drawControl(), QQC2_NAMESPACE::QMacStyle::drawControl(), QQC2::QCommonStyle::drawControl(), QMacStyle::drawControl(), QCommonStyle::drawControl(), QWindowsVistaStyle::drawControl(), QGraphicsScenePrivate::drawItemHelper(), QWindowsVistaStyle::drawPrimitive(), QRhiGles2::endPass(), QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), QRhiD3D11::enqueueSubresUpload(), QRhiGles2::enqueueSubresUpload(), QRhiMetal::enqueueSubresUpload(), QSGRhiAtlasTexture::Atlas::enqueueTextureUpload(), QSGRenderThread::ensureRhi(), QStatusBar::event(), QFFmpeg::findHwEncoder(), QRhiD3D11::finishActiveReadbacks(), QToolBarAreaLayoutInfo::fitLayout(), QToolBarAreaLayout::fitLayout(), QBackingStoreDefaultCompositor::flush(), QXcbNativeBackingStore::flush(), QVideoFrameFormat::frameHeight(), QWindowsGeometryHint::frameSizeConstraints(), QDockAreaLayout::gapRect(), QSGCompressedAtlasTexture::Atlas::generateTexture(), QQnxWindowGrabberImage::getBuffer(), QDockAreaLayout::getGrid(), VulkanWrapper::getImageInfo(), QQuick3DSceneRenderer::getRayFromViewportPos(), QQuickWidgetPrivate::grabFramebuffer(), QEglFSScreen::grabWindow(), QWindowsScreen::grabWindow(), QXcbScreen::grabWindow(), QScreen::grabWindow(), QXcbWindow::handleConfigureNotifyEvent(), QWindowsWindow::handleDpiScaledSize(), QWindowsWindow::handleNonClientHitTest(), QQuickScreenInfo::height(), QSGRhiTextureGlyphCache::height(), QQuickPixmap::height(), QVideoFrame::height(), QQuick3DTextureDataFrontend::height(), QSvgTinyDocument::height(), QWidgetItem::heightForWidth(), QMenuBar::heightForWidth(), QTableViewPrivate::heightHintForIndex(), QBoxLayoutItem::hfw(), QtWaylandClient::QWaylandShmBuffer::imageInsideMargins(), QTreeView::indexRowSizeHint(), QQuickAnimatedImagePrivate::infoForCurrentFrame(), QOpenGLFramebufferObjectPrivate::initDepthStencilAttachments(), QWasmWindow::initialize(), QQuickNinePatchNode::initialize(), QStyledItemDelegate::initStyleOption(), QColorDialogPrivate::initWidgets(), QQuickGridLayout::insertLayoutItems(), QQuickTextDocumentWithImageResources::intrinsicSize(), QWidgetPrivate::invalidateBackingStore_resizeHelper(), QWaylandXdgPositionerData::isComplete(), QuickSharedImageLoader::key(), QProgressDialogPrivate::layout(), QTabBarPrivate::layoutTabs(), QtWaylandClient::LibHybrisServerBuffer::libhybris_buffer_add_fd(), QPixmapStyle::lineEditSizeFromContents(), QSSGLoadedTexture::loadCompressedImage(), QWindowsPrintDevice::loadMinMaxPageSizes(), QQuickImageProviderWithOptions::loadSize(), QSSGLoadedTexture::loadTextureData(), QCocoaPrintDevice::macPaper(), main(), QD3D11TextureVideoBuffer::map(), QWaylandQuickItem::mapToSurface(), QListModeViewBase::mapToViewport(), QDockAreaLayoutInfo::maximumSize(), menuBarHeightForWidth(), QOpenGLPaintDevice::metric(), QBoxLayoutItem::mhfw(), QWidgetItem::minimumHeightForWidth(), QDockAreaLayoutInfo::minimumSize(), QMainWindowLayout::minimumSize(), QToolBarAreaLayout::minimumSize(), QDialog::minimumSizeHint(), QLabel::minimumSizeHint(), QMdiSubWindow::minimumSizeHint(), QMenuBar::minimumSizeHint(), QQuickTableViewPrivate::modelIndexAtCell(), QTest::mouseEvent(), QWidgetResizeHandler::mouseMoveEvent(), QRhi::newTexture(), QRhi::newTextureArray(), QQuickTableViewPrivate::nextVisibleEdgeIndex(), operator<<(), operator<<(), operator<<(), QSGOpenVGPainterNode::paint(), QSGSoftwarePainterNode::paint(), QSGDefaultPainterNode::paint(), QSGSoftwarePainterNode::paint(), QtPrivate::PageItem::paint(), QTreeViewPrivate::paintAlternatingRowColors(), QQuickStyleItemScrollViewCorner::paintEvent(), QPagePreview::paintEvent(), QGraphicsWidget::paintWindowFrame(), QScreen::physicalDotsPerInch(), QScreen::physicalDotsPerInchY(), QAndroidStyle::pixelMetric(), QQC2_NAMESPACE::QMacStyle::pixelMetric(), QMacStyle::pixelMetric(), PixmapEntry::pixmap(), QIconPrivate::pixmapDevicePixelRatio(), QTipLabel::placeTip(), QMenuPrivate::popup(), QMenuBarPrivate::popupAction(), QRhiVulkan::prepareUploadSubres(), printRenderPassDetails(), QCocoaWindow::propagateSizeHints(), QXcbWindow::propagateSizeHints(), QPixmapStyle::pushButtonSizeFromContents(), Q_TRACE_INSTRUMENT(), qDrawBorder(), qNormalizeRadii(), qrhi_toTopLeftRenderTargetRect(), qsgsimpletexturenode_update(), qSmartMinSize(), qt_aqua_get_known_size(), QQC2_NAMESPACE::qt_aqua_get_known_size(), qt_convert_to_capture_device_format(), QLinuxMediaDevice::CaptureSubDevice::queueBuffer(), QEglFSKmsScreen::rawGeometry(), QPkmHandler::read(), QTiffHandler::read(), QSvgIOHandler::read(), QPdfIOHandler::read(), read_image_scaled(), read_jpeg_image(), QOpenVGOffscreenSurface::readbackQImage(), QSGImageNode::rebuildGeometry(), QSGNinePatchNode::rebuildGeometry(), QGraphicsViewPrivate::recalculateContentSize(), QComboBoxPrivate::recomputeSizeHint(), QRhiVulkan::recreateSwapChain(), QToolBarAreaLayout::rectHint(), QStatusBar::reformat(), QTextEditPrivate::relayoutDocument(), QSGOpenVGInternalImageNode::render(), QPdfDocument::render(), renderToKTXFileInternal(), QQuick3DSceneRenderer::renderToRhiTexture(), QQuickBorderImage::requestFinished(), ColorImageProvider::requestPixmap(), QListView::resizeEvent(), QtWaylandClient::QWaylandWindow::resizeFromApplyConfigure(), QSGRhiTextureGlyphCache::resizeTextureData(), QMdiAreaPrivate::resizeToMinimumTileSize(), DmaBufServerBuffer::resourceForClient(), DrmEglServerBuffer::resourceForClient(), LibHybrisEglServerBuffer::resourceForClient(), RenderHelpers::rhiRenderAoTexture(), QAlphaWidget::run(), QPixmapIconEngine::scaledPixmap(), QWaylandOutputPrivate::sendGeometry(), QSGAreaAllocator::serialize(), QBlittablePlatformPixmap::setBlittable(), QQnxWindow::setBufferSize(), QQnxPlatformCamera::setCameraFormat(), QQuickTableViewPrivate::setCurrentIndexFromKeyEvent(), QQnxCamera::setCustomFocusPoint(), setDisplayMetrics(), EvrVideoWindowControl::setDisplayRect(), QSplitterPrivate::setGeo(), QWidgetItem::setGeometry(), QtWaylandClient::QWaylandWindow::setGeometryFromApplyConfigure(), QWindowPrivate::setMinOrMaxSize(), QMdiSubWindowPrivate::setNewGeometry(), QQuickVideoOutput::setOrientation(), QEglFSKmsGbmCursor::setPos(), QQnxScreen::setRotation(), QListView::setSelection(), QQuickTableViewPrivate::setSelectionEndPos(), QSGDefaultSpriteNode::setSheetSize(), QtWaylandClient::QWaylandXdgSurface::setSizeHints(), QSGDefaultSpriteNode::setSourceA(), QSGDefaultSpriteNode::setSourceB(), QSGDefaultSpriteNode::setSpriteSize(), QWizardHeader::setup(), setup_qt(), QGeoTiledMapScenePrivate::setupCamera(), QBoxLayoutPrivate::setupGeom(), QFormLayoutPrivate::setupHfwLayoutData(), QFormLayoutPrivate::setupVerticalLayoutData(), QWasmVideoOutput::setVideoSize(), QMdiSubWindowPrivate::setWindowFlags(), QWindowsSystemTrayIcon::showMessage(), QCocoaMenu::showPopup(), QRhiNull::simulateTextureUpload(), QSvgTinyDocument::size(), QPageSizePrivate::size(), QRhi::sizeForMipLevel(), sizeForMipLevel(), QDockWidgetLayout::sizeFromContent(), QAndroidStyle::AndroidControl::sizeFromContents(), QAndroidStyle::AndroidProgressBarControl::sizeFromContents(), QQC2_NAMESPACE::QMacStyle::sizeFromContents(), QQC2::QCommonStyle::sizeFromContents(), QQC2::QWindowsStyle::sizeFromContents(), QAndroidStyle::sizeFromContents(), QMacStyle::sizeFromContents(), QCommonStyle::sizeFromContents(), QQC2::QWindowsXPStyle::sizeFromContents(), QWindowsVistaStyle::sizeFromContents(), QDockAreaLayoutInfo::sizeHint(), QDialog::sizeHint(), QProgressDialog::sizeHint(), QCheckBox::sizeHint(), QDockWidgetTitleButton::sizeHint(), QMainWindowLayout::sizeHint(), QMdiArea::sizeHint(), QMenuBar::sizeHint(), QPushButton::sizeHint(), QRadioButton::sizeHint(), QScrollArea::sizeHint(), QToolBoxButton::sizeHint(), QToolButton::sizeHint(), QToolBarAreaLayout::sizeHint(), QSSGParticleBuffer::sliceCount(), QOpenGLTextureBlitter::sourceTransform(), sourceTransform(), QSSGRhiContextStats::stop(), QQC2::QCommonStyle::subControlRect(), QCommonStyle::subControlRect(), QAndroidStyle::subControlRect(), QAndroidStyle::AndroidSeekBarControl::subControlRect(), QQC2_NAMESPACE::QMacStyle::subElementRect(), QQC2::QCommonStyle::subElementRect(), QMacStyle::subElementRect(), QCommonStyle::subElementRect(), QSGRenderThread::sync(), QSGRenderThread::syncAndRender(), QQuick3DSceneRenderer::synchronize(), QQuickTableViewPrivate::syncSyncView(), QQC2::QMacStylePrivate::tabLayout(), QQC2::QCommonStylePrivate::tabLayout(), QTabBar::tabSizeHint(), SharedTextureFactory::textureByteCount(), QOpenGLTextureUploader::textureImage(), to_d2d_size_u(), toNativeSizeConstrained(), QtWaylandClient::DmaBufServerBuffer::toOpenGlTexture(), QtWaylandClient::DrmServerBuffer::toOpenGlTexture(), QtWaylandClient::LibHybrisServerBuffer::toOpenGlTexture(), QtWaylandClient::ShmServerBuffer::toOpenGlTexture(), VulkanServerBuffer::toOpenGlTexture(), LinuxDmabufClientBuffer::toOpenGlTexture(), WaylandEglClientBuffer::toOpenGlTexture(), QVideoTextureHelper::SubtitleLayout::update(), QMenuPrivate::updateActionRects(), QQuickTableViewPrivate::updateAverageRowHeight(), QOpenGL2PaintEngineExPrivate::updateBrushTexture(), QQuickTableViewPrivate::updateContentHeight(), QWaylandQtShellChromePrivate::updateDecorationInteraction(), QQuickTableViewPrivate::updateExtents(), QQuickIconImagePrivate::updateFillMode(), QTableView::updateGeometries(), QQuickGridMesh::updateGeometry(), QCommonListViewBase::updateHorizontalScrollBar(), QWizardPrivate::updateMinMaxSizes(), QQuickFramebufferObject::updatePaintNode(), QQuickShaderEffectSource::updatePaintNode(), QWaylandQuickItem::updatePaintNode(), AndroidCameraPrivate::updatePreviewSize(), QGeoMapMapboxGLPrivate::updateSceneGraph(), QTreeViewPrivate::updateScrollBars(), QMdiAreaPrivate::updateScrollBars(), QScrollAreaPrivate::updateScrollBars(), QMessageBoxPrivate::updateSize(), QQuick3DTexture::updateSpatialNode(), QtWaylandClient::QWaylandEglWindow::updateSurface(), QQuickTableViewPrivate::updateTableSize(), QVideoTextureHelper::updateTextureWithMap(), QVideoTextureHelper::updateUniformData(), QSGDistanceFieldTextMaterialRhiShader::updateUniformData(), QCommonListViewBase::updateVerticalScrollBar(), QListModeViewBase::updateVerticalScrollBar(), useScrollBar(), QQC2::QCommonStylePrivate::viewItemLayout(), QListView::viewportSizeHint(), QEglFSKmsEglDeviceScreen::waitForFlip(), QSSGMesh::MeshInternal::writeMeshData(), QWaylandXdgToplevelPrivate::xdg_toplevel_set_max_size(), QWaylandXdgToplevelPrivate::xdg_toplevel_set_min_size(), and QWaylandXdgOutputV1Private::zxdg_output_v1_bind_resource().
|
inlineconstexprnoexcept |
Returns true
if either of the width and height is less than or equal to 0; otherwise returns false
.
Definition at line 123 of file qsize.h.
Referenced by QtWaylandClient::QWaylandWlShellSurface::applyConfigure(), QAndroidCameraSession::applyResolution(), QPixmapIconEngine::availableSizes(), QQuickContext2DImageTexture::beginPainting(), QOpenGLFramebufferObject::blitFramebuffer(), QMenuBarPrivate::calcActionRects(), QQuickTableViewPrivate::calculateTopLeft(), QD3D11RenderBuffer::create(), QGles2RenderBuffer::create(), QMetalRenderBuffer::create(), QNullTexture::create(), QVkRenderBuffer::create(), QD3D11SwapChain::createOrResize(), D3DPresentEngine::createVideoSamples(), QGraphicsScenePrivate::drawItemHelper(), QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), QRhiD3D11::enqueueSubresUpload(), QRhiGles2::enqueueSubresUpload(), QRhiMetal::enqueueSubresUpload(), QSGGuiThreadRenderLoop::exposureChanged(), QSGThreadedRenderLoop::exposureChanged(), QOffscreenBackingStore::flush(), QXcbBackingStore::flush(), QXcbWindow::handleConfigureNotifyEvent(), QWindowsWindow::handleNonClientHitTest(), QQnxRasterWindow::hasBuffers(), QTextureFileData::isValid(), QWaylandOutputMode::isValid(), QuickSharedImageLoader::loadFile(), QQuickImageProviderWithOptions::loadSize(), QPdfEnginePrivate::newPage(), QHaikuRasterBackingStore::paintDevice(), QtWaylandClient::QWaylandScreen::physicalSize(), QSvgIconEngine::pixmap(), QD3D11Texture::prepareCreate(), QGles2Texture::prepareCreate(), QMetalTexture::prepareCreate(), QVkTexture::prepareCreate(), QRhiVulkan::prepareUploadSubres(), QCocoaWindow::propagateSizeHints(), qImageFromVideoFrame(), QSvgIOHandler::read(), QPdfIOHandler::read(), read_image_scaled(), read_jpeg_image(), QRhiVulkan::recreateSwapChain(), QQuickDesignerSupport::renderImageForItem(), QSGGuiThreadRenderLoop::renderWindow(), QQuickImagePreviewProvider::requestImage(), QXcbBackingStore::rhiFlush(), QEglFSX11Integration::screenSize(), QQnxWindow::setBufferSize(), QQnxPlatformCamera::setCameraFormat(), QQnxCamera::setCustomFocusPoint(), QGstreamerImageCapture::setImageSettings(), QSSGRhiEffectSystem::setup(), setup_qt(), QRhiNull::simulateTextureCopy(), QRhiNull::simulateTextureUpload(), QSvgTinyDocument::size(), QAndroidStyle::AndroidControl::sizeFromContents(), QQC2_NAMESPACE::QMacStyle::sizeFromContents(), QQC2::QCommonStyle::sizeFromContents(), QQC2::QWindowsStyle::sizeFromContents(), QMacStyle::sizeFromContents(), QQC2::QWindowsXPStyle::sizeFromContents(), QWindowsVistaStyle::sizeFromContents(), QQuickView::sizeHint(), QQuickWidget::sizeHint(), QMacStyle::styleHint(), QQC2_NAMESPACE::QMacStyle::styleHint(), QSGRenderThread::syncAndRender(), QQuickTableViewPrivate::syncSyncView(), QOpenGLTextureUploader::textureImage(), QMenuPrivate::updateActionRects(), QQuickShaderEffectSource::updatePaintNode(), QGeoMapMapboxGLPrivate::updateSceneGraph(), and QtWaylandClient::QWaylandEglWindow::updateSurface().
|
inlineconstexprnoexcept |
Returns true
if both the width and height is 0; otherwise returns false.
Definition at line 120 of file qsize.h.
Referenced by QAbstractFileIconEngine::actualSize(), QPixmapIconEngine::actualSize(), QDockAreaLayoutInfo::apply(), QPixmapIconEngine::bestMatch(), QDockAreaLayout::getGrid(), QDockAreaLayoutInfo::maximumSize(), QDockAreaLayoutInfo::minimumSize(), PixmapEntry::pixmap(), QSvgIconEngine::pixmap(), QCocoaWindow::propagateSizeHints(), qt_find_best_resolution_match(), qt_unique_device_formats(), QPdfDocument::render(), QListView::resizeEvent(), QPixmapIconEngine::scaledPixmap(), QSGOpenVGLayer::setLive(), QSGSoftwareLayer::setLive(), QSGRhiLayer::setLive(), QMdiSubWindowPrivate::setNormalMode(), QAndroidStyle::AndroidDrawable::setPaddingLeftToSizeWidth(), QSGRhiLayer::setSize(), QSGOpenVGLayer::setSize(), QSGSoftwareLayer::setSize(), QGraphicsProxyWidgetPrivate::setWidget_helper(), and QTabBar::tabSizeHint().
|
inlineconstexprnoexcept |
Returns true
if both the width and height is equal to or greater than 0; otherwise returns false
.
Definition at line 126 of file qsize.h.
Referenced by QPageSizePrivate::QPageSizePrivate(), QPageSizePrivate::QPageSizePrivate(), QPageSizePrivate::QPageSizePrivate(), QtWaylandClient::QWaylandShmBackingStore::QWaylandShmBackingStore(), QtWaylandClient::QWaylandQtSurface::applyConfigure(), QAndroidCameraSession::applyResolution(), QFormLayoutPrivate::arrangeWidgets(), QPixmapIconEngine::bestMatch(), D3DPresentEngine::createVideoSamples(), QFileDialogPrivate::createWidgets(), QIconModeViewBase::dataChanged(), QGraphicsScenePrivate::drawItemHelper(), QDockAreaLayout::getGrid(), QScreen::grabWindow(), QListModeViewBase::indexToListViewItem(), QFileDialogPrivate::init(), QCocoaWindow::isFixedSize(), QPageSizePrivate::isValid(), QVideoFrameFormat::isValid(), QListViewPrivate::itemSize(), QuickSharedImageLoader::key(), QuickSharedImageLoader::loadFile(), QMainWindowLayout::minimumSize(), QMdiSubWindow::minimumSizeHint(), QSplitter::minimumSizeHint(), QFFmpegImageCapture::newVideoFrame(), QMoviePrivate::next(), QCocoaWindow::propagateSizeHints(), qt_find_best_resolution_match(), qt_unique_device_formats(), QImageReader::read(), QSvgIOHandler::read(), QPdfIOHandler::read(), read_jpeg_image(), readImage(), QPngHandlerPrivate::readPngImage(), QComboBoxPrivate::recomputeSizeHint(), QTextEditPrivate::relayoutDocument(), QSGOpenVGInternalImageNode::render(), QMdiAreaPrivate::resizeToMinimumTileSize(), QQnxWindow::setBufferSize(), QMainWindow::setIconSize(), QToolBar::setIconSize(), QMdiSubWindowPrivate::setMaximizeMode(), QAndroidMediaPlayer::setMedia(), QMainWindowLayout::sizeHint(), QWidgetRepaintManager::sync(), AndroidCameraPrivate::updatePreviewSize(), QGraphicsProxyWidgetPrivate::updateProxyGeometryFromWidget(), QTreeViewPrivate::updateScrollBars(), QQuickViewPrivate::updateSize(), QQuickWidgetPrivate::updateSize(), QGstreamerVideoDevices::videoDevices(), QListView::viewportSizeHint(), QWaylandViewporterPrivate::Viewport::wp_viewport_set_destination(), QWaylandXdgToplevelPrivate::xdg_toplevel_set_max_size(), and QWaylandXdgToplevelPrivate::xdg_toplevel_set_min_size().
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Multiplies both the width and height by the given factor, and returns a reference to the size.
Note that the result is rounded to the nearest integer.
Definition at line 173 of file qsize.h.
References qRound().
Adds the given size to this size, and returns a reference to this size.
For example:
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Divides both the width and height by the given divisor, and returns a reference to the size.
Note that the result is rounded to the nearest integer.
Definition at line 183 of file qsize.h.
References Q_ASSERT, qFuzzyIsNull(), and qRound().
|
inlineconstexprnoexcept |
Returns a reference to the height.
Using a reference makes it possible to manipulate the height directly. For example:
Definition at line 156 of file qsize.h.
Referenced by QFormLayoutPrivate::calcSizeHints(), QKmsDevice::createScreenForConnector(), QQC2::QWindowsXPStyle::drawControl(), QWindowsVistaStyle::drawControl(), QWindowsGeometryHint::frameSizeConstraints(), QIIOFHelper::imageProperty(), QKmsScreenConfig::loadConfig(), QLabel::minimumSizeHint(), operator>>(), QQC2_NAMESPACE::QMacStyle::sizeFromContents(), QAndroidStyle::sizeFromContents(), QMacStyle::sizeFromContents(), QQC2::QWindowsXPStyle::sizeFromContents(), QWindowsVistaStyle::sizeFromContents(), QMenuBar::sizeHint(), QQuickShaderEffectSource::updatePaintNode(), QMdiAreaPrivate::updateScrollBars(), QTipLabel::updateSize(), and QQuick3DTexture::updateSpatialNode().
|
inlineconstexprnoexcept |
Returns a reference to the width.
Using a reference makes it possible to manipulate the width directly. For example:
Definition at line 153 of file qsize.h.
Referenced by QFormLayoutPrivate::calcSizeHints(), QKmsDevice::createScreenForConnector(), QItemDelegate::doLayout(), QWindowsGeometryHint::frameSizeConstraints(), QIIOFHelper::imageProperty(), QKmsScreenConfig::loadConfig(), QLabel::minimumSizeHint(), operator>>(), QComboBoxPrivate::recomputeSizeHint(), QQC2_NAMESPACE::QMacStyle::sizeFromContents(), QAndroidStyle::sizeFromContents(), QMacStyle::sizeFromContents(), QQC2::QWindowsXPStyle::sizeFromContents(), QWindowsVistaStyle::sizeFromContents(), QQuickShaderEffectSource::updatePaintNode(), QMdiAreaPrivate::updateScrollBars(), QScrollAreaPrivate::updateScrollBars(), QQuick3DTexture::updateSpatialNode(), and QQC2::QCommonStylePrivate::viewItemLayout().
|
inlinenoexcept |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Scales the size to a rectangle with the given size, according to the specified mode.
Definition at line 147 of file qsize.h.
References scaled().
|
inlinenoexcept |
Scales the size to a rectangle with the given width and height, according to the specified mode:
\list
Example:
Definition at line 144 of file qsize.h.
Referenced by QAbstractFileIconEngine::actualSize(), QPixmapIconEngine::actualSize(), PixmapEntry::pixmap(), QSvgIconEngine::pixmap(), QPixmapIconEngine::scaledPixmap(), and EvrVideoWindowControl::setDisplayRect().
|
noexcept |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Return a size scaled to a rectangle with the given size s, according to the specified mode.
Definition at line 189 of file qsize.cpp.
References Qt::IgnoreAspectRatio, and Qt::KeepAspectRatio.
|
inlinenoexcept |
Return a size scaled to a rectangle with the given width and height, according to the specified mode.
Definition at line 150 of file qsize.h.
References scaled().
Referenced by QPagePreview::paintEvent(), and QVideoWindowPrivate::render().
|
inlineconstexprnoexcept |
Sets the height to the given height.
Definition at line 138 of file qsize.h.
Referenced by QAndroidStyle::AndroidImageDrawable::AndroidImageDrawable(), QAndroidStyle::AndroidProgressBarControl::AndroidProgressBarControl(), QLayout::activate(), QWidgetPrivate::adjustedSize(), QQuickContext2DTexture::canvasChanged(), QKmsDevice::createScreenForConnector(), QItemDelegate::doLayout(), QWindowsVistaStyle::drawControl(), QWindowsGeometryHint::frameSizeConstraints(), QProgressDialogPrivate::layout(), QEglFSOpenWFDIntegration::platformInit(), QEglFSVivIntegration::platformInit(), QEglFSVivWaylandIntegration::platformInit(), QSGNinePatchNode::rebuildGeometry(), QComboBoxPrivate::recomputeSizeHint(), QQuickViewPrivate::rootObjectSize(), QQuickWidgetPrivate::rootObjectSize(), QWidgetItem::setGeometry(), QSvgTinyDocument::setHeight(), QMdiSubWindowPrivate::setMaximizeMode(), QMdiSubWindowPrivate::setNormalMode(), QDockWidgetLayout::sizeFromContent(), QAndroidStyle::AndroidControl::sizeFromContents(), QAndroidStyle::AndroidProgressBarControl::sizeFromContents(), QQC2_NAMESPACE::QMacStyle::sizeFromContents(), QQC2::QWindowsStyle::sizeFromContents(), QAndroidStyle::sizeFromContents(), QMacStyle::sizeFromContents(), QCommonStyle::sizeFromContents(), QQC2::QWindowsXPStyle::sizeFromContents(), QWindowsVistaStyle::sizeFromContents(), QWizard::sizeHint(), QScrollArea::sizeHint(), QQC2::QCommonStyle::subControlRect(), QCommonStyle::subControlRect(), QOpenGLTextureUploader::textureImage(), toNativeSizeConstrained(), QMenuPrivate::updateActionRects(), QOpenGL2PaintEngineExPrivate::updateBrushTexture(), QWizardPrivate::updateMinMaxSizes(), QQC2::QCommonStylePrivate::viewItemLayout(), and QListView::viewportSizeHint().
|
inlineconstexprnoexcept |
Sets the width to the given width.
Definition at line 135 of file qsize.h.
Referenced by QAndroidStyle::AndroidImageDrawable::AndroidImageDrawable(), QAndroidStyle::AndroidProgressBarControl::AndroidProgressBarControl(), QLayout::activate(), QQuickContext2DTexture::canvasChanged(), QKmsDevice::createScreenForConnector(), QWindowsVistaStyle::drawControl(), QWindowsVistaStyle::drawPrimitive(), fixInitialSize(), QWindowsGeometryHint::frameSizeConstraints(), QListModeViewBase::indexToListViewItem(), QToolBarAreaLayout::minimumSize(), QEglFSOpenWFDIntegration::platformInit(), QEglFSVivIntegration::platformInit(), QEglFSVivWaylandIntegration::platformInit(), qSmartMaxSize(), QToolBarAreaLayoutItem::realSizeHint(), QSGNinePatchNode::rebuildGeometry(), QComboBoxPrivate::recomputeSizeHint(), QQuickViewPrivate::rootObjectSize(), QQuickWidgetPrivate::rootObjectSize(), QWidgetItem::setGeometry(), QMdiSubWindowPrivate::setMaximizeMode(), QMdiSubWindowPrivate::setNormalMode(), QSvgTinyDocument::setWidth(), QDockWidgetLayout::sizeFromContent(), QAndroidStyle::AndroidControl::sizeFromContents(), QAndroidStyle::AndroidProgressBarControl::sizeFromContents(), QQC2_NAMESPACE::QMacStyle::sizeFromContents(), QQC2::QWindowsStyle::sizeFromContents(), QAndroidStyle::sizeFromContents(), QMacStyle::sizeFromContents(), QQC2::QWindowsXPStyle::sizeFromContents(), QWindowsVistaStyle::sizeFromContents(), QWizard::sizeHint(), QFontComboBox::sizeHint(), QScrollArea::sizeHint(), QToolButton::sizeHint(), QToolBarAreaLayout::sizeHint(), QQC2::QCommonStyle::subControlRect(), QCommonStyle::subControlRect(), QOpenGLTextureUploader::textureImage(), toNativeSizeConstrained(), QMenuPrivate::updateActionRects(), QOpenGL2PaintEngineExPrivate::updateBrushTexture(), QQuickIconImagePrivate::updateIcon(), and QWizardPrivate::updateMinMaxSizes().
Definition at line 51 of file qsize.h.
Referenced by QDockWidgetLayout::sizeFromContent().
|
inlineconstexprnoexcept |
|
noexcept |
Swaps the width and height values.
Definition at line 130 of file qsize.cpp.
References qSwap().
Referenced by QAndroidCameraSession::applyResolution(), QQuickStyleItemScrollBar::calculateGeometry(), QQC2::QWindowsXPStyle::drawComplexControl(), qImageFromVideoFrame(), QVideoWindowPrivate::render(), QQuickVideoOutput::setOrientation(), QQC2::QWindowsXPStyle::sizeFromContents(), and QQuickVideoOutput::sourceRect().
|
inlineconstexprnoexcept |
Returns a QSize with width and height swapped.
Definition at line 141 of file qsize.h.
References QSize().
Referenced by QQnxScreen::QQnxScreen(), QAndroidCameraSession::applyResolution(), QPageLayoutPrivate::fullRectPixels(), QPageLayoutPrivate::fullRectPoints(), QQC2_NAMESPACE::QMacStyle::sizeFromContents(), QMacStyle::sizeFromContents(), QQC2_NAMESPACE::QMacStyle::subElementRect(), QQC2::QCommonStyle::subElementRect(), QMacStyle::subElementRect(), and QCommonStyle::subElementRect().
|
inlineconstexprnoexcept |
Returns the width.
Definition at line 129 of file qsize.h.
Referenced by DrmEglServerBuffer::DrmEglServerBuffer(), LibHybrisEglServerBuffer::LibHybrisEglServerBuffer(), QSGRhiAtlasTexture::Manager::Manager(), QtPrivate::PageItem::PageItem(), QEGLPbuffer::QEGLPbuffer(), QGLXPbuffer::QGLXPbuffer(), QOpenVGOffscreenSurface::QOpenVGOffscreenSurface(), QQnxScreen::QQnxScreen(), QRollEffect::QRollEffect(), QWasmOffscreenSurface::QWasmOffscreenSurface(), QSGRhiAtlasTexture::Texture::Texture(), QSGCompressedAtlasTexture::Texture::Texture(), _q_boundGeometryToSizeConstraints(), QCalendarWidgetPrivate::_q_yearClicked(), QLayout::activate(), QAbstractFileIconEngine::actualSize(), QPixmapIconEngine::actualSize(), QSSGRenderReflectionMap::addReflectionMapEntry(), QStyle::alignedRect(), QQC2::QStyle::alignedRect(), QLayout::alignmentRect(), QDockAreaLayoutInfo::apply(), QAndroidCameraSession::applyResolution(), QWindowGeometrySpecification::applyTo(), QWindowsGeometryHint::applyToMinMaxInfo(), QMacStylePrivate::aquaSizeConstrain(), QFormLayoutPrivate::arrangeWidgets(), avfVideoSettings(), basicSize(), QOpenGL2PaintEngineEx::begin(), QOpenGL2PaintEngineEx::beginNativePainting(), QQuickContext2DImageTexture::beginPainting(), QRhiVulkan::beginPass(), QtWaylandClient::DecorationsBlitter::blit(), QGeoTiledMapScenePrivate::buildGeometry(), QMenuBarPrivate::calcActionRects(), QQuickStyleItemScrollViewCorner::calculateGeometry(), QQuickBorderImagePrivate::calculateRects(), QQuickTableViewPrivate::calculateTopLeft(), QQuickContext2DTexture::canvasChanged(), QQuickTableViewPrivate::cellAtModelIndex(), QEglFSKmsGbmCursor::changeCursor(), QSSGRhiContext::checkAndAdjustForNPoT(), QGeoMapPrivate::clampVisibleArea(), QWidgetWindowPrivate::closestAcceptableGeometry(), QLayout::closestAcceptableSize(), QSGPlainTexture::commitTextureOperations(), QComboBoxPrivate::computeWidthHint(), QtWaylandClient::QWaylandEglWindow::contentFBO(), QXcbWindow::create(), QD3D11RenderBuffer::create(), QGles2Texture::create(), QMetalRenderBuffer::create(), QNullTexture::create(), QVkTextureRenderTarget::create(), QGeoCameraTilesPrivate::createFrustum(), QEglFSOpenWFDIntegration::createNativeWindow(), QWasmVideoOutput::createOffscreenElement(), QD3D11SwapChain::createOrResize(), QMetalSwapChain::createOrResize(), QVkSwapChain::createOrResize(), createPixmapCursorFromData(), QKmsDevice::createScreenForConnector(), QQuickContext2DTexture::createTiles(), QRhiVulkan::createTransientImage(), D3DPresentEngine::createVideoSamples(), QIconModeViewBase::dataChanged(), QQuickScreenInfo::desktopAvailableWidth(), determinePhysicalSize(), determinePhysicalSize(), determineScreenSize(), QItemDelegate::doLayout(), QXcbVirtualDesktop::dpi(), QQC2::QWindowsXPStyle::drawComplexControl(), QAndroidStyle::AndroidSeekBarControl::drawControl(), QQC2_NAMESPACE::QMacStyle::drawControl(), QQC2::QCommonStyle::drawControl(), QMacStyle::drawControl(), QCommonStyle::drawControl(), QQC2::QWindowsXPStyle::drawControl(), QWindowsVistaStyle::drawControl(), QGraphicsScenePrivate::drawItemHelper(), QWindowsVistaStyle::drawPrimitive(), QRhiGles2::endPass(), QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), QRhiD3D11::enqueueSubresUpload(), QRhiGles2::enqueueSubresUpload(), QRhiMetal::enqueueSubresUpload(), QSGRhiAtlasTexture::Atlas::enqueueTextureUpload(), QSGRenderThread::ensureRhi(), QFFmpeg::findHwEncoder(), QToolBarAreaLayoutInfo::fitLayout(), QToolBarAreaLayout::fitLayout(), QBackingStoreDefaultCompositor::flush(), QXcbNativeBackingStore::flush(), QWindowsGeometryHint::frameSizeConstraints(), QVideoFrameFormat::frameWidth(), QDockAreaLayout::gapRect(), QSGCompressedAtlasTexture::Atlas::generateTexture(), QQnxWindowGrabberImage::getBuffer(), QDockAreaLayout::getGrid(), VulkanWrapper::getImageInfo(), QQuick3DSceneRenderer::getRayFromViewportPos(), QQuickWidgetPrivate::grabFramebuffer(), QEglFSScreen::grabWindow(), QWindowsScreen::grabWindow(), QXcbScreen::grabWindow(), QScreen::grabWindow(), QXcbWindow::handleConfigureNotifyEvent(), QWindowsWindow::handleDpiScaledSize(), QWindowsWindow::handleNonClientHitTest(), QTabWidget::heightForWidth(), QWidgetItem::heightForWidth(), if(), QtWaylandClient::QWaylandShmBuffer::imageInsideMargins(), QListModeViewBase::indexToListViewItem(), QQuickAnimatedImagePrivate::infoForCurrentFrame(), QOpenGLFramebufferObjectPrivate::initDepthStencilAttachments(), QWasmWindow::initialize(), QQuickNinePatchNode::initialize(), QEglFSKmsVsp2Screen::initQtLayer(), QTabWidget::initStyleOption(), QStyledItemDelegate::initStyleOption(), QColorDialogPrivate::initWidgets(), QQuickGridLayout::insertLayoutItems(), QQuickTextDocumentWithImageResources::intrinsicSize(), QWidgetPrivate::invalidateBackingStore_resizeHelper(), QWaylandXdgPositionerData::isComplete(), QuickSharedImageLoader::key(), QProgressDialogPrivate::layout(), QMessageBoxPrivate::layoutMinimumWidth(), QTabBarPrivate::layoutTabs(), QtWaylandClient::LibHybrisServerBuffer::libhybris_buffer_add_fd(), QPixmapStyle::lineEditSizeFromContents(), QSSGLoadedTexture::loadCompressedImage(), QWindowsPrintDevice::loadMinMaxPageSizes(), QQuickImageProviderWithOptions::loadSize(), QSSGLoadedTexture::loadTextureData(), QCocoaPrintDevice::macPaper(), main(), QWaylandQuickItem::mapToSurface(), QListModeViewBase::mapToViewport(), QDockAreaLayoutInfo::maximumSize(), QMenuBarPrivate::menuRect(), QOpenGLPaintDevice::metric(), QWidgetItem::minimumHeightForWidth(), QDockAreaLayoutInfo::minimumSize(), QMainWindowLayout::minimumSize(), QToolBarAreaLayout::minimumSize(), QMdiSubWindow::minimumSizeHint(), QMenuBar::minimumSizeHint(), QTabBar::minimumSizeHint(), QQuickTableViewPrivate::modelIndexAtCell(), QColumnViewGrip::mouseDoubleClickEvent(), QTest::mouseEvent(), QWidgetResizeHandler::mouseMoveEvent(), QQuickTableViewPrivate::nextVisibleEdgeIndex(), notifyPictureCaptured(), operator<<(), operator<<(), operator<<(), QSGOpenVGPainterNode::paint(), QSGSoftwarePainterNode::paint(), QSGDefaultPainterNode::paint(), QSGSoftwarePainterNode::paint(), QmlJSDebugger::SelectionHighlight::paint(), QtPrivate::PageItem::paint(), QFontFamilyDelegate::paint(), QPagePreview::paintEvent(), QFileDialogComboBox::paintEvent(), QGraphicsWidget::paintWindowFrame(), QScreen::physicalDotsPerInch(), QScreen::physicalDotsPerInchX(), QAndroidStyle::pixelMetric(), QQC2_NAMESPACE::QMacStyle::pixelMetric(), QMacStyle::pixelMetric(), PixmapEntry::pixmap(), QIconPrivate::pixmapDevicePixelRatio(), QTipLabel::placeTip(), QMenuPrivate::popup(), QMenuBarPrivate::popupAction(), QD3D11Texture::prepareCreate(), QGles2Texture::prepareCreate(), QMetalTexture::prepareCreate(), QVkTexture::prepareCreate(), QRhiVulkan::prepareUploadSubres(), printRenderPassDetails(), probeImageData(), QCocoaWindow::propagateSizeHints(), QXcbWindow::propagateSizeHints(), QPixmapStyle::pushButtonSizeFromContents(), Q_TRACE_INSTRUMENT(), qDrawBorder(), qNormalizeRadii(), qrhi_toTopLeftRenderTargetRect(), qsgsimpletexturenode_update(), qSmartMinSize(), qt_aqua_get_known_size(), QQC2_NAMESPACE::qt_aqua_get_known_size(), qt_convert_to_capture_device_format(), QLinuxMediaDevice::CaptureSubDevice::queueBuffer(), QEglFSKmsScreen::rawGeometry(), QPkmHandler::read(), QTiffHandler::read(), QSvgIOHandler::read(), QPdfIOHandler::read(), read_image_scaled(), read_jpeg_image(), QOpenVGOffscreenSurface::readbackQImage(), readImage(), QSGImageNode::rebuildGeometry(), QSGNinePatchNode::rebuildGeometry(), QGraphicsViewPrivate::recalculateContentSize(), QComboBoxPrivate::recomputeSizeHint(), QRhiVulkan::recreateSwapChain(), QToolBarAreaLayout::rectHint(), QTextEditPrivate::relayoutDocument(), QSGOpenVGInternalImageNode::render(), QPdfDocument::render(), QSSGReflectionMapEntry::renderMips(), renderToKTXFileInternal(), QQuick3DSceneRenderer::renderToRhiTexture(), QQuickBorderImage::requestFinished(), ColorImageProvider::requestPixmap(), QListView::resizeEvent(), QtWaylandClient::QWaylandWindow::resizeFromApplyConfigure(), QSGRhiTextureGlyphCache::resizeTextureData(), QMdiAreaPrivate::resizeToMinimumTileSize(), DmaBufServerBuffer::resourceForClient(), DrmEglServerBuffer::resourceForClient(), LibHybrisEglServerBuffer::resourceForClient(), RenderHelpers::rhiRenderAoTexture(), QAlphaWidget::run(), QPixmapIconEngine::scaledPixmap(), QWaylandOutputPrivate::sendGeometry(), QSGAreaAllocator::serialize(), QBlittablePlatformPixmap::setBlittable(), QQnxWindow::setBufferSize(), QQnxPlatformCamera::setCameraFormat(), QQuickTableViewPrivate::setCurrentIndexFromKeyEvent(), QQnxCamera::setCustomFocusPoint(), setDisplayMetrics(), EvrVideoWindowControl::setDisplayRect(), QSplitterPrivate::setGeo(), QWidgetItem::setGeometry(), QtWaylandClient::QWaylandWindow::setGeometryFromApplyConfigure(), QWindowPrivate::setMinOrMaxSize(), QMdiSubWindowPrivate::setNewGeometry(), QQuickVideoOutput::setOrientation(), QAndroidStyle::AndroidDrawable::setPaddingLeftToSizeWidth(), QEglFSKmsGbmCursor::setPos(), QQnxScreen::setRotation(), QQuickTableViewPrivate::setSelectionEndPos(), QSGDefaultSpriteNode::setSheetSize(), QtWaylandClient::QWaylandXdgSurface::setSizeHints(), QSGDefaultSpriteNode::setSourceA(), QSGDefaultSpriteNode::setSourceB(), QSGDefaultSpriteNode::setSpriteSize(), setup_qt(), QGeoTiledMapScenePrivate::setupCamera(), QBoxLayoutPrivate::setupGeom(), QFormLayoutPrivate::setupHorizontalLayoutData(), QFormLayoutPrivate::setupVerticalLayoutData(), QWasmVideoOutput::setVideoSize(), QMdiSubWindowPrivate::setWindowFlags(), QWindowsSystemTrayIcon::showMessage(), QRhiNull::simulateTextureUpload(), QSvgTinyDocument::size(), QWindowsCursor::size(), QPageSizePrivate::size(), QRhi::sizeForMipLevel(), sizeForMipLevel(), QWaylandXdgToplevel::sizeForResize(), QWaylandWlShellSurface::sizeForResize(), QLabelPrivate::sizeForWidth(), QDockWidgetLayout::sizeFromContent(), QAndroidStyle::AndroidControl::sizeFromContents(), QAndroidStyle::AndroidProgressBarControl::sizeFromContents(), QQC2_NAMESPACE::QMacStyle::sizeFromContents(), QQC2::QCommonStyle::sizeFromContents(), QQC2::QWindowsStyle::sizeFromContents(), QAndroidStyle::sizeFromContents(), QMacStyle::sizeFromContents(), QCommonStyle::sizeFromContents(), QDockAreaLayoutInfo::sizeHint(), QFileDialogTreeView::sizeHint(), QProgressDialog::sizeHint(), QCheckBox::sizeHint(), QDockWidgetTitleButton::sizeHint(), QMainWindowLayout::sizeHint(), QMdiArea::sizeHint(), QMenuBar::sizeHint(), QPushButton::sizeHint(), QRadioButton::sizeHint(), QScrollArea::sizeHint(), QToolBoxButton::sizeHint(), QToolButton::sizeHint(), QToolBarAreaLayout::sizeHint(), QOpenGLTextureBlitter::sourceTransform(), sourceTransform(), QSSGRhiContextStats::stop(), QQC2::QCommonStyle::subControlRect(), QCommonStyle::subControlRect(), QAndroidStyle::subControlRect(), QAndroidStyle::AndroidSeekBarControl::subControlRect(), QQC2_NAMESPACE::QMacStyle::subElementRect(), QQC2::QCommonStyle::subElementRect(), QMacStyle::subElementRect(), QCommonStyle::subElementRect(), QSGRenderThread::sync(), QSGRenderThread::syncAndRender(), QQuick3DSceneRenderer::synchronize(), QQuickTableViewPrivate::syncSyncView(), QQC2::QMacStylePrivate::tabLayout(), QQC2::QCommonStylePrivate::tabLayout(), QTabBar::tabSizeHint(), SharedTextureFactory::textureByteCount(), QOpenGLTextureUploader::textureImage(), to_d2d_size_u(), toNativeSizeConstrained(), QtWaylandClient::DmaBufServerBuffer::toOpenGlTexture(), QtWaylandClient::DrmServerBuffer::toOpenGlTexture(), QtWaylandClient::LibHybrisServerBuffer::toOpenGlTexture(), QtWaylandClient::ShmServerBuffer::toOpenGlTexture(), VulkanServerBuffer::toOpenGlTexture(), LinuxDmabufClientBuffer::toOpenGlTexture(), WaylandEglClientBuffer::toOpenGlTexture(), QVideoTextureHelper::SubtitleLayout::update(), QMenuPrivate::updateActionRects(), QQuickTableViewPrivate::updateAverageColumnWidth(), QOpenGL2PaintEngineExPrivate::updateBrushTexture(), QQuickTableViewPrivate::updateContentWidth(), QWaylandQtShellChromePrivate::updateDecorationInteraction(), QQuickTableViewPrivate::updateExtents(), QQuickIconImagePrivate::updateFillMode(), QMenuBarPrivate::updateGeometries(), QTableView::updateGeometries(), QQuickGridMesh::updateGeometry(), QCommonListViewBase::updateHorizontalScrollBar(), QListModeViewBase::updateHorizontalScrollBar(), QWizardPrivate::updateMinMaxSizes(), QPrintPreviewDialogPrivate::updatePageNumLabel(), QQuickFramebufferObject::updatePaintNode(), QQuickShaderEffectSource::updatePaintNode(), QWaylandQuickItem::updatePaintNode(), AndroidCameraPrivate::updatePreviewSize(), QGeoMapMapboxGLPrivate::updateSceneGraph(), QTreeViewPrivate::updateScrollBars(), QMdiAreaPrivate::updateScrollBars(), QScrollAreaPrivate::updateScrollBars(), QMessageBoxPrivate::updateSize(), QTipLabel::updateSize(), QFormLayoutPrivate::updateSizes(), QQuick3DTexture::updateSpatialNode(), QtWaylandClient::QWaylandEglWindow::updateSurface(), QQuickTableViewPrivate::updateTableSize(), QVideoTextureHelper::updateTextureWithMap(), QGeoTiledMapRootNode::updateTiles(), QVideoTextureHelper::updateUniformData(), QSGDistanceFieldTextMaterialRhiShader::updateUniformData(), QCommonListViewBase::updateVerticalScrollBar(), useScrollBar(), QQC2::QCommonStylePrivate::viewItemLayout(), QListView::viewportSizeHint(), QEglFSKmsEglDeviceScreen::waitForFlip(), QQuickScreenInfo::width(), QSGRhiTextureGlyphCache::width(), QQuickPixmap::width(), QVideoFrame::width(), QQuick3DTextureDataFrontend::width(), QSvgTinyDocument::width(), QTableViewPrivate::widthHintForIndex(), QTreeViewPrivate::widthHintForIndex(), QSSGMesh::MeshInternal::writeMeshData(), QWaylandXdgToplevelPrivate::xdg_toplevel_set_max_size(), QWaylandXdgToplevelPrivate::xdg_toplevel_set_min_size(), and QWaylandXdgOutputV1Private::zxdg_output_v1_bind_resource().
|
friend |
Multiplies the given size by the given factor, and returns the result rounded to the nearest integer.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Multiplies the given size by the given factor, and returns the result rounded to the nearest integer.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Divides the given size by the given divisor, and returns the result rounded to the nearest integer.
|
related |
|
related |
|
friend |