QWidget *window = titleBar()->window();switch(t) {caseName:switch(child) {case1:returnQ3TitleBar::tr("System");case3:if(window && window->isMinimized())returnQ3TitleBar::tr("Restore up");returnQ3TitleBar::tr("Minimize");case4:if(window && window->isMaximized())returnQ3TitleBar::...
\internal Returns TRUE if the accel is in the current subwindow, else FALSE. */boolQAccelManager::correctSubWindow( QWidget* w, QAccelPrivate* d ) {#if!defined ( Q_OS_MACX )if( !d->watch || !d->watch->isVisible() || !d->watch->isEnabled() )#elseif( !d->watch || (!d...
; } void GridQuick::setStretchFactor( int, Qt::Orientation, int ) { qWarning() << "setStretchFactor is not supported by Quick Layouts."; } void GridQuick::setSizeHintAt( int index, Qt::Orientation orientation, Qt::SizeHint which, int hint ) { if ( auto props = attachedPropertiesAt(...
If the widget is visible when it is being resized, it receives a resize event (resizeEvent()) immediately. If the widget is not currently visible, it is guaranteed to receive an event before it is shown. The size is adjusted if it lies outside the range defined by minimumSize() and ma...
This project welcomes contributions and suggestions. Make sure to align your code style with the configuration defined by .clang-format file Making contributions is not a hard thing. Solving an issue(maybe just answering a question raised in issues list or gitter) ...
QWidget *parent = 0 is the parent of the new widget. If it is 0 (the default), the new widget will be a window. If not, it will be a child of parent, and be constrained by parent's geometry (unless you specify Qt::Window as window flag). Qt::WindowFlags f = 0 (where ...
// This file is not part of the Qt API. This header file may // change from version to version without notice, or even be // removed. // // We mean it. // #include "QtCore/qobject.h" #include "QtCore/qpoint.h" #ifndef QT_NO_RESIZEHANDLER ...
An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work ...
Make sure to align your code style with the configuration defined by .clang-format file Making contributions is not a hard thing. Solving an issue(maybe just answering a question raised in issues list or gitter) Fixing/Issuing a bug Improving the documents and even fixing a typo are important...
qDebug("- OpenGL not recommended on this system"); }#ifdefined(Q_WS_WIN)Colors::direct3dAwailable =false;// for now.#endif#ifdefined(Q_WS_X11)// check if X render is present:QPixmaptmp(1,1);if(!tmp.x11PictureHandle() && tmp.paintEngine()->type() == QPaintEngine::X11){ ...