Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML Dynamic width rectangle from content webengine
Forum Updated to NodeBB v4.3 + New Features

QML Dynamic width rectangle from content webengine

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 202 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • elicatE Offline
    elicatE Offline
    elicat
    wrote on last edited by aha_1980
    #1

    Is it possible to dimension the width of a rectangle based on the html content connected to the WebEngine?
    Example:
    in the html content I have a tree menu that at start up is 300px wide then opening the branches of the tree (the items) the items are expanded and the width also reaches 800px .. there is no setting in the rect that is self-sized ?
    I've tried implitchWidth but it doesn't seem to work

    	Rectangle {
    		id: idRectVerticalMenu
    		implicitHeight: viewEngineVerticalMenu.implicitHeight 
    		implicitWidth: viewEngineVerticalMenu.implicitWidth
                    Layout.minimumWidth : 100
                    Layout.maximumWidth: 600
    		EngineIndexHtml {
    			id: registeredObjectsChannelVerticalMenu
    			WebChannel.id: "wiseMan"
    		}
    		WebEngineView {
    			id: viewEngineVerticalMenu
    			anchors.fill: parent
    			webChannel: channel
                    }
    	}
    . . . .
    
    

    Saluti, Gianfranco Elicat

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved