Re: [Interest] QML: Wrapping an item from outside

2018-09-28 Thread Jérôme Godbout
Like Furkan said, use the default property alias to chidlren: MyUI { default property alias childs: container_.childrens // you can also target .data to have non Item objects PrettyContainer { id: container_ } } On Fri, 28 Sep 2018 at 13:31, Furkan Üzümcü wrote: > I think you are looking

Re: [Interest] QML: Wrapping an item from outside

2018-09-28 Thread Furkan Üzümcü
I think you are looking for the `default` property. Check out this guide for more information: https://doc.qt.io/qt-5/qtqml-referenceexamples-default-example.html Regards, Furkan Üzümcü On Sep 28, 2018, 13:27 -0400, Jason H , wrote: > I have PrettyContainer.qml > > I have an item (Item) I want

[Interest] QML: Wrapping an item from outside

2018-09-28 Thread Jason H
I have PrettyContainer.qml I have an item (Item) I want to put into (on top of) PrettyContainer. My PrettyContainer visually wraps the pretty item, like parent of a child widget MyUI{ PrettyContainer { Item { // completely custom 1 } } PrettyContainer {

Re: [Interest] QTextEdit with QDockWidget

2018-09-28 Thread Igor Mironchik
Hi, I found a mistake: I shared the same QTextDocument between 2 QTextEdit. First was initialized and shown, had correct width, whereas second wasn't initialized yet and had small width. So text was wrapped to smaller width. Thank you. On 28.09.2018 17:26, Igor Mironchik wrote: Hello,

Re: [Interest] Can't receive released/clicked correctly from touch screen

2018-09-28 Thread Shawn Rutledge
> On 28 Sep 2018, at 11:10, nus1998 wrote: > > Hi All, > > I'm testing on a dialog with a touch screen, for mouse event, sometimes there > is only "pressed" event, or only "released" and "clicked" events. but when > checking the touch event, each timeTouchBegin and TouchEnd events are >

Re: [Interest] QTextEdit with QDockWidget

2018-09-28 Thread Igor Mironchik
And this happens only when I use text edit in QDockWidget... On 28.09.2018 17:34, william.croc...@analog.com wrote: On 09/28/2018 10:26 AM, Igor Mironchik wrote: Hello, I have a dock widget with text edit field. When I set document to QTextEdit document layouts with smaller width than

Re: [Interest] QTextEdit with QDockWidget

2018-09-28 Thread Igor Mironchik
Hi, Background filling as desired, whole QTextEdit. I used:     QPalette p = palette();     p.setColor(QPalette::Base, Qt::red);     setPalette(p); On 28.09.2018 17:34, william.croc...@analog.com wrote: On 09/28/2018 10:26 AM, Igor Mironchik wrote: Hello, I have a dock widget with text

Re: [Interest] QTextEdit with QDockWidget

2018-09-28 Thread william.croc...@analog.com
On 09/28/2018 10:26 AM, Igor Mironchik wrote: Hello, I have a dock widget with text edit field. When I set document to QTextEdit document layouts with smaller width than width of QTextEdit. Look. Small width I can't do so to enlarge the width of the text. But when I put enough text to fit all

[Interest] QTextEdit with QDockWidget

2018-09-28 Thread Igor Mironchik
Hello, I have a dock widget with text edit field. When I set document to QTextEdit document layouts with smaller width than width of QTextEdit. Look. Small width I can't do so to enlarge the width of the text. But when I put enough text to fit all height then width of the text begin regards

Re: [Interest] Can't receive released/clicked correctly from touch screen

2018-09-28 Thread Jason H
Yes, I remember this being a thing in one of my projects.   You just have to trivially map the touch events to mouse events. Unfortuneately, I cannot find my code.     Sent: Friday, September 28, 2018 at 11:10 AM From: nus1998 To: interest@qt-project.org Subject: [Interest] Can't receive

[Interest] Stylized popup menu with caption triangle?

2018-09-28 Thread Murphy, Sean
I'm wondering if anyone knows of a Qt widget that already does this, similar to this javascript example I found: https://stackoverflow.com/questions/19089841/extjs-4-2-1-add-a-top-arrow-to-any-popup-menu I've got a widget that has some buttons on it. When I click on one of those buttons, I

[Interest] Can't catch mouse event properly from touch screen

2018-09-28 Thread nus1998
Hi All, I'm running a Qt dialog which handles pressed/released/clicked events, when I press the touch screen and release immediatelly, sometimes there is only a pressed event, or only released and clicked events. however, if I handle the touch events by setting Qt::WA_AcceptTouchEvents, every

[Interest] Can't receive released/clicked correctly from touch screen

2018-09-28 Thread nus1998
Hi All, I'm testing on a dialog with a touch screen, for mouse event, sometimes there is only "pressed" event, or only "released" and "clicked" events. but when checking the touch event, each timeTouchBegin and TouchEnd events are received. I have tried set

Re: [Interest] Porting Qt to our RTOS

2018-09-28 Thread Uwe Rathmann
On Thu, 27 Sep 2018 18:03:55 +0200, Giuseppe D'Angelo via Interest wrote: > This is another blatant false statement, because you can port just the > parts of Qt that you need, and even those can be further trimmed down > using the feature system. (That's actually how you would do a port in > the

Re: [Interest] Porting Qt to our RTOS

2018-09-28 Thread Allan Sandfeld Jensen
On Freitag, 28. September 2018 00:20:37 CEST Kim Hartman wrote: > Thanks Tuuka (and others), > > We've ported much of the BOOST libraries, so pthreads are most possible. > I've started an internal audit of the rest of POSIX services we would need > in order to create an INtime QPA. Is there a

Re: [Interest] Porting Qt to our RTOS

2018-09-28 Thread Thiago Macieira
On Thursday, 27 September 2018 15:20:37 PDT Kim Hartman wrote: > We've ported much of the BOOST libraries, so pthreads are most possible. > I've started an internal audit of the rest of POSIX services we would need > in order to create an INtime QPA. Is there a more comprehensive list of > POSIX