Re: [Interest] Update widget geometry BEFORE window shown

2024-05-24 Thread David M. Cotter
I’ve tried everything I can think of. The ONLY one that works the way I NEED is the first one, but that one flashes the window on the screen #if 1 qWidgetP->show(); qWidgetP->hide();

Re: [Interest] Is it safe to construct QBindable from QProperty* via QUntypedBindable?

2024-05-24 Thread Schimkowitsch Robert
Sorry, the code was incomplete, it should have been Q_PROPERTY(qreal x BINDABLE getBindableX READ default FINAL) //... QProperty m_X; //... QBindable CPropertyClass::getBindableX() const { return &m_X; } The purpose is to transmit data from the C++ backend to the QML front end. It’s a one-wa

[Interest] QTableView Column Width and Headers

2024-05-24 Thread Michael Jackson
I have a question about how the column widths of a QTableView are calculated? How can I have the QTableView set the column with “to contents” that includes the QHeader also? For example I have a QHeaderView with the first “section” that has text “This is a really really really long header”, but the

Re: [Interest] Exceptions

2024-05-24 Thread Thiago Macieira
On Friday 24 May 2024 13:25:37 GMT-3 Turtle Creek Software wrote: > >> Install a terminate handler instead. > > Is there some way to get from there back to the event loop? No and you don't want to. The moment you let the exception escape back to the Qt event loop, YOU MUST QUIT. So it doesn't

Re: [Interest] Exceptions

2024-05-24 Thread Turtle Creek Software
>> Install a terminate handler instead. Is there some way to get from there back to the event loop? If so, that would solve our problem. If not, there's nothing we can do safely in a handler. Doing a database commit would cause worse chaos if there are unfinished records. It needs GUI code to ch

Re: [Interest] Support for deployment on iOS 17 devices ?

2024-05-24 Thread ekke
Hi, sorry - have overlooked this sentence. All my physical IOS devices are still on 16.6.1 ;-) just googled and found out, that also Flutter apps start Xcode to deploy to physical ios 17 devices. seems these limitations from Apple hinder Flutter Apps just like Qt Apps, so there's no way yet o

Re: [Interest] Support for deployment on iOS 17 devices ?

2024-05-24 Thread worldwidestar
Hi, ekke, thank you for replying. According to the page, only iOS 17 simulators are supported, because there is another sentence "However, these features are not supported for physical devices with iOS 17 or later because of limitations of the Apple tool for accessing these devices." Currently I

Re: [Interest] Is it safe to construct QBindable from QProperty* via QUntypedBindable?

2024-05-24 Thread Axel Spoerl via Interest
Seas Robert, If memory serves well, there was a recent post about the same question on the Qt Forum. Haven't got around to answer, because I wanted to read some code upfront. The given implementation of getBindable() has no return type, but you say it's a bindable. I also assume that there's a

[Interest] Is it safe to construct QBindable from QProperty* via QUntypedBindable?

2024-05-24 Thread Schimkowitsch Robert
I use QBindable a lot in C++ classes that expose properties to QML. My typical property implementation looks as follows: Q_PROPERTY(qreal x BINDABLE getBindableX READ default FINAL) //... QProperty m_X; //... CPropertyClass::getBindableX() const { return &m_X; } I got the idea to use "&m_X" t

Re: [Interest] Scene Graph - Graph example background noise not appearing when OpenGL backend is used

2024-05-24 Thread Laszlo Agocs via Interest
Hello, It is not expected to happen, no. The example is expected to work identically with all the supported 3D APIs, but the noise texture is indeed sampled differently when running with OpenGL. There is a patch upcoming to remedy this. Best regards, Laszlo Fr

Re: [Interest] Support for deployment on iOS 17 devices ?

2024-05-24 Thread ekke
Am 24.05.24 um 11:37 schrieb worldwides...@sina.com: Hello. The lastest release of Qt creator does not support deploying apps on iOS 17 device. Currently I have to switch between Xcode and Creator, one for deployment and the other for development. Is it possible to support it in the future?

[Interest] Support for deployment on iOS 17 devices ?

2024-05-24 Thread worldwidestar
Hello. The lastest release of Qt creator does not support deploying apps on iOS 17 device. Currently I have to switch between Xcode and Creator, one for deployment and the other for development. Is it possible to support it in the future? Thanks.___ Int

Re: [Interest] Update widget geometry BEFORE window shown

2024-05-24 Thread coroberti
David, Try yourWidget->layout()->update(); yourWidget->layout()->activate(); If not, let the event loop to run, ie. arranging a short timer. Kind regards, Robert Iakobashvili On Fri, May 24, 2024 at 1:53 AM David M. Cotter wrote: > > I need to do something like this

Re: [Interest] Update widget geometry BEFORE window shown

2024-05-24 Thread Volker Hilsheimer via Interest
On 24 May 2024, at 00:52, David M. Cotter wrote: I need to do something like this: windowP->layout()->updateGeometry(); // causes all widget geometry to update DoSomethingImportant(windowP->GetWidget(“someWidget”).geometry()); // do something with the geometry of a widget (which must be up to