Results 1 to 2 of 2

Thread: Changing the text of a button

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Changing the text of a button

    Maybe try moving the definition of your function change() to -after- the declaration of Button. I don't know much QML, but it may require that ids must be defined before they can be used. st_text isn't defined until after Button is declared.

    If that isn't it, then maybe st_text is ambiguous, and you need to qualify it as "b1.st_text".
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

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

    franky (4th January 2018)

Similar Threads

  1. QSS for changing the width of the drop-down button
    By lf460 in forum Qt Programming
    Replies: 0
    Last Post: 3rd August 2015, 04:10
  2. Changing text of button in no relation to button
    By Sabre Runner in forum Newbie
    Replies: 22
    Last Post: 23rd September 2010, 12:29
  3. Replies: 6
    Last Post: 21st August 2010, 21:09
  4. changing color of push button
    By babu198649 in forum Newbie
    Replies: 1
    Last Post: 2nd March 2008, 12:55

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.