How to embed Qt Quick controls



  • Hello,

    How can we embed a Qt Quick control with another one. Is there any example available.

    Best Regards
    Ansif



  • Hi,

    could you explain better what do you mean?
    Before ask about an example, can you provide an idea of what you want?



  • May be this is a stupid question. Please check this url, http://www.codeproject.com/Articles/4408/Creating-embedded-dialogs-in-MFC

    Its an embedded dialog in a property page.



  • WOW, the MFC Hell!! :D:D

    Anyway, the simplest way to gat what you want is to use a TabView.

    For example

    @
    Column {
    id: myColumn
    spacing: 6

        anchors.centerIn: parent
        Label {
            id: myLabel
            y: 47
            text: "My Label"
            anchors.left: parent.left
        }
    
        TabView {
            id: tabView
    
            Tab {
                id: tab1
                title: "Tab1"
            }
    
            Tab {
                id: tab2
                title: "Tab2"
            }
    
        }
    

    @



  • [quote author="mcosta" date="1386060436"]WOW, the MFC Hell!! :D:D

    Anyway, the simplest way to gat what you want is to use a TabView.

    For example

    @
    Column {
    id: myColumn
    spacing: 6

        anchors.centerIn: parent
        Label {
            id: myLabel
            y: 47
            text: "My Label"
            anchors.left: parent.left
        }
    
        TabView {
            id: tabView
    
            Tab {
                id: tab1
                title: "Tab1"
            }
    
            Tab {
                id: tab2
                title: "Tab2"
            }
    
        }
    

    @

    [/quote]

    Hi,

    yes its a simple way to do. Thanks for your help.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.