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. Toggle button
Qt 6.11 is out! See what's new in the release blog

Toggle button

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 244 Views
  • 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.
  • LahearleL Offline
    LahearleL Offline
    Lahearle
    wrote on last edited by
    #1

    Hello I have ran into another problem, here is my code:

    RoundButton {
    id: browserB
    x: 7
    y: 144
    width: 66
    height: 66
    text: ""
    flat: true
    icon.height: 66
    icon.width: 66
    icon.source: "TestGUI/eyetemp.png"
    display: AbstractButton.IconOnly

        Rectangle {
            id: browserPullMenu
            anchors.left: parent.right
            width: 180
            height: 66
            visible: false
        }
    
        Connections {
            target: browserB
            onClicked: { 
                browserB.toggle() 
                integratedBrowser.visible
                console.log("clicked")
                   }   
        }
    }
    

    How do I make the browserB(button) toggle the integratedBrowser.visible?
    I can make it visible, can't seem to toggle the visibility off.

    :)

    1 Reply Last reply
    0
    • SGaistS SGaist moved this topic from General and Desktop on

    • Login

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