Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Attribute Access

Attribute Access

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 538 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.
  • D Offline
    D Offline
    David King
    wrote on last edited by
    #1

    Hi,

    As mentioned in other posts, we're using Qt Script only, no fullblown Qt,
    due to restriction placed by our vendor tool, that launches our .js.
    Which then in turn, via vendor command, launches our .ui.

    As I understand from the vendor, from script, I can access widget properties,
    and public slot functions. But not other functions, for example setAttribute.

    However, I would quite like to use on a widget, setAttribute( TransparentForMouseEvents, true);
    Does anyone know, if there might be a way to do so, from script ?
    I just need that attribute true always.
    Is there a way to initialise a widget, with a certain attribute true ?

    Best regards,

    David

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      not without a bit of C++ to expose setAttribute as Q_INVOKABLE.

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      3
      • D Offline
        D Offline
        David King
        wrote on last edited by
        #3

        Hi VRonin,

        Thank you so much for your response. Ah, I feared as much.
        I've asked the vendor if they might consider adding the following 2 functions accessible by script:

        util.setAttribute( widgetName, attributeNumber, false or true );
        util.testAttribute( widgetName, attributeNumber );

        Best regards,

        David

        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