Results 1 to 4 of 4

Thread: Hi everyone

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Hi everyone

    Quote Originally Posted by Ahmad View Post
    my formating applies only to welcome but i dont know how i can apply the same formatting the strings contained in my two variables surname and name... cause if i put then between " " they will not be considered as variables..
    Qt Code:
    1. titreLabel = new QLabel(
    2. QString("<font color= 'green' size = "15"><b>Welcome %1 %2").arg(surname).arg(name),
    3. this);
    To copy to clipboard, switch view to plain text mode 

    the second question is that how can i put an image on the background of a widget
    Set the image as a brush for the background role of your widget's palette.

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

    Ahmad (31st May 2007)

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.