Re: [Interest] QML Menu

2018-02-28 Thread Jérôme Godbout
you probbaly can bind the width with the menu width. You could do so with

Component.onCompleted:

{
// Fix android bad layout
 if(Qt.application.platform == 'Android')
   width = Qt.binding(function(){ return menu.width; });
}

You could wrap this into MenuItem.qml that is import after the QtQuick MenuItem 
this fix would now be transparent and when Qt fix it you just need to remove 
the import 


From: Interest <interest-bounces+godboutj=amotus...@qt-project.org> on behalf 
of Igor Mironchik <igor.mironc...@gmail.com>
Sent: Wednesday, February 28, 2018 4:42 AM
To: Qt Project
Subject: [Interest] QML Menu


Hello,

Menu {
id: menu
x: menuButton.x - width + menuButton.width - 2
y: toolBar.y + toolBar.height

MenuItem {
text: qsTr( "Change Password" )
implicitHeight: minimumCtrlHeight
onTriggered: {
qmlCppSignals.disconnectRequest()
}
}
}

On Android the result is a shorten text of menu item whereas there is enough 
space to show full text. How can I fix it?

[Menu]

Thanks.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] QML Menu

2018-02-28 Thread Igor Mironchik

Hello,

    Menu {
    id: menu
    x: menuButton.x - width + menuButton.width - 2
    y: toolBar.y + toolBar.height

    MenuItem {
    text: qsTr( "Change Password" )
    implicitHeight: minimumCtrlHeight
    onTriggered: {
    qmlCppSignals.disconnectRequest()
    }
    }
    }

On Android the result is a shorten text of menu item whereas there is 
enough space to show full text. How can I fix it?


Menu

Thanks.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML Menu disappeared on latest Windows 10 updates

2017-09-19 Thread Yuri Alexandrov
Hi

You made my day, Alvin! Thank you so much!

Regards,
Yuri


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] QML Menu disappeared on latest Windows 10 updates

2017-09-19 Thread Alvin Wong
Ha! You can thank Intel for that. Intel graphics driver builds between
4636 and 4729 (exclusive) are to blame.

The workaround is probably either to use ANGLE instead of desktop
OpenGL or ask users to update their Intel graphics driver.

See: https://communities.intel.com/thread/116003

> From: Yuri Alexandrov <evilr...@gmail.com>
> To: "interest@qt-project.org" <interest@qt-project.org>
> Cc:
> Bcc:
> Date: Tue, 19 Sep 2017 21:26:06 +0300
> Subject: [Interest] QML Menu disappeared on latest Windows 10 updates
>
>
>
> Hi,
>
>
>
> I just noticed very weird thing started to happed on one of my laptop. After 
> last Windows 10 update all QML applications (5.7, 5.9, 5.10) got menu control 
> gone. That also affected QtCreator – QML Designer page. As soon as you return 
> back to any ‘widget-based’ page, menu is back again.
>
>
>
> Screenshots attached. I also opened support ticket (as I have Qt Commercial 
> license), but just wondering if anybody saw similar things.
>
>
>
> Only thing which still has menu working properly is ‘texteditor’ example 
> using QtQuickControls2 in Qt 5.10
>
>
>
> Regards,
>
> Yuri
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest