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. How to reference multiple variables in a selector?
Forum Updated to NodeBB v4.3 + New Features

How to reference multiple variables in a selector?

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

    Instead of

    QWidget[a="true"][b="true"]
    {
    }
    

    How to:

    Check if the widget contains a and b property independent of true or false?
    Non working EXAMPLE

    QWidget[ab]
    {
    }
    

    Check if the widget contains a and b and both are true

    QWidget[ab="true"]
    {
    }
    
    C 1 Reply Last reply
    0
    • CesarC Offline
      CesarC Offline
      Cesar
      wrote on last edited by
      #2

      Therea's string list option in qt designer, maybe possible to check for multiple strings at once?

      1 Reply Last reply
      0
      • CesarC Cesar

        Instead of

        QWidget[a="true"][b="true"]
        {
        }
        

        How to:

        Check if the widget contains a and b property independent of true or false?
        Non working EXAMPLE

        QWidget[ab]
        {
        }
        

        Check if the widget contains a and b and both are true

        QWidget[ab="true"]
        {
        }
        
        C Offline
        C Offline
        ChrisW67
        wrote on last edited by
        #3

        Check if the widget contains a and b property independent of true or false?

        No way I can see of doing this.

        Check if the widget contains a and b and both are true

        See your first example.

        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