[Interest] Prevent widget visibility change from triggering parent re-layout

2025-04-07 Thread sivan nanthiran
Hi everyone, I am trying to show/hide child widgets from the resizeEvent of the parent widget, depending on the available size of the parent widget. However, this will/may cause another resize event on the parent widget since QWidgetPrivate::setVisible on the child widget will call parent->d_func(

[Interest] How to implement 3 level windows in Qt (Windows)

2024-04-24 Thread sivan nanthiran
Hi all, I am trying to create a dual screen application which should support 3 levels (z-order) of windows/dialogs. Each level of widgets should be preserved at any given time. At the base level, a main widget (MainWidget) and an aux dialog (AuxDialog) with MainWidget as its parent. These 2 widge

[Interest] Issue with qt_qpa_set_cursor with native widget

2023-04-13 Thread sivan nanthiran
Hi, I have a test app that has a native widget and a QLabel arranged in a horizontal layout side by side. The application's attribute of Qt::AA_DontCreateNativeWidgetSiblings is set to true. A cursor is set to QLabel as following, label->setCursor(QCursor(Qt::SizeHorCursor)); In the mousePressEve

Re: [Interest] How to filter redundant paint call for widget with WA_PaintOnScreen

2023-02-23 Thread sivan nanthiran
e OS as handleExposeEvent, so that the > two are coalesced, but the machinery for that Is not in place yet. > > Tor Arne > > On 22 Feb 2023, at 03:44, sivan nanthiran wrote: > > Hi, > > I noticed that when a native widget(Qt::WA_NativeWindow) with > WA_PaintOnScreen i

[Interest] How to filter redundant paint call for widget with WA_PaintOnScreen

2023-02-21 Thread sivan nanthiran
Hi, I noticed that when a native widget(Qt::WA_NativeWindow) with WA_PaintOnScreen is added into a vertical splitter, and when the splitter is moved, 2 paint events will be received for one mouse move. One paint event is scheduled through QWidgetRepaintManager::sendUpdateRequest which is from the

[Interest] How to disable multi touch for iOS

2022-11-23 Thread sivan nanthiran
Hi, I am using Qt (not QtQuick) to develop an iOS app. I have been trying to find a way to disable multitouch in the widget so that no 2 widgets can receive touchEvent/mousePressEvent at the same time. I have tried setting *UIView.multipleTouchEnabled = false * but I am no longer getting QGesture

[Interest] QMenu in IOS is hidden behind modal dialog

2022-06-16 Thread sivan nanthiran
Hi all, I am using Qt(C++) to develop an IOS app. When I use a QMenu without parent on a modal dialog, the menu gets hidden behind the dialog. This issue does not happen if I set the modal dialog as parent. Upon debugging in Qt, I noticed that the window level of a menu (Qt::Popup) is lower than o

[Interest] Qt's rendering performance drops when using QFont in Japanese language

2022-02-24 Thread sivan nanthiran
Hi, I have recently upgraded from Qt-5.4.1 to Qt-5.15.2. In my application, I noticed the rendering performance has dropped significantly when I am using Japanese locale and rendering fonts. Upon investigation, I noticed that in every frame rendering, I am hitting QFontCache::decreaseCache. This

Re: [Interest] QOpenGLWidget's performance drop

2022-02-16 Thread sivan nanthiran
van. Can you file an issue about in > https://bugreports.qt.io/ with the sample code, and a diff of the changes > you made to improve performance? Thanks! > > On 16 Feb 2022, at 11:53, sivan nanthiran wrote: > > Hi, > > Recently I have upgraded from Qt-5.4.1 to Qt-5.15.2. T

[Interest] QOpenGLWidget's performance drop

2022-02-16 Thread sivan nanthiran
Hi, Recently I have upgraded from Qt-5.4.1 to Qt-5.15.2. The following is my system configuration: - MacOS - External display connected to External GPU, and made as the primary screen, connected to a macbook In my simple testApp, I have 2 QOpenGLWidget and 1 QWidget. I just simply render a triang