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. Using attached ScrollBar from namespace
Forum Updated to NodeBB v4.3 + New Features

Using attached ScrollBar from namespace

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

    In my form I need both Controls 1.4 and Controls 2.0, so I put Controls 2.0 into namespace:
    import QtQuick.Controls 2.0 as Controls2

    But now I can't attach scrollbars to Flickable, both of the following lines are invalid:
    ScrollBar.horizontal: Controls2.ScrollBar { id: hbar } //Non-existent attached object
    Controls2.ScrollBar.horizontal: Controls2.ScrollBar { id: hbar} //Can not assign object to read only list

    Can I attach scrollbars when they are in namespace?

    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