Results 1 to 7 of 7

Thread: Creating dynamic tab in Qml TabView

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Creating dynamic tab in Qml TabView

    Quote Originally Posted by volcano View Post
    I understand that's it's better to keep it in the direction from C++ to QML and not make it bidirectional

    However, the app has been designed with the requirement to be bidirectional to set certain properties.
    Ok, but it is often better to invest time in improving the design than to make the implementation of a bad design work.

    Quote Originally Posted by volcano View Post
    Can you suggest what am I missing?
    Maybe the tab isn't part of the QObject tree, QQuickItems don't necessarily have a QObject parent.

    You could try manuyll recursing over the childItems() or calling a C++ function from QML when you have created the tab.

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    volcano (15th March 2016)

  3. #2
    Join Date
    Jan 2010
    Posts
    95
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Creating dynamic tab in Qml TabView

    Thanks anda_skoa

    Will try the suggestion.

Similar Threads

  1. Creating draggable dynamic items
    By Annihilator in forum Qt Quick
    Replies: 0
    Last Post: 8th July 2015, 17:27
  2. Creating a dynamic QML component from a non Qt thread
    By Valerian in forum Qt Programming
    Replies: 3
    Last Post: 5th July 2015, 13:30
  3. How to arrange tabs of TabView in multiple rows?
    By TheIndependentAquarius in forum Qt Quick
    Replies: 2
    Last Post: 20th March 2015, 09:08
  4. TabView issue
    By MattieB in forum Qt Quick
    Replies: 1
    Last Post: 7th April 2014, 08:52
  5. Replies: 3
    Last Post: 25th September 2011, 14:44

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.