Results 1 to 2 of 2

Thread: how to align Qlabel with CHIbutton

  1. #1
    Join Date
    Nov 2008
    Posts
    1
    Qt products
    Qt3
    Platforms
    Windows

    Talking how to align Qlabel with CHIbutton

    hi everyone,im just new using QT and im not really familiar with the codes used. i just want to ask how can i align the label or text inside an image. Im using CHIButton for the image and Qlabel for the text inside. What i want to happen is that the label inside the image should not stepped out of the image.
    Thanks in advance

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to align Qlabel with CHIbutton

    for QLabel look at this description alignment content of QLabel.
    I don't know what is CHIButton, but for QPushButton you can use style sheets.
    Qt Code:
    1. text-align: left;
    2. }
    To copy to clipboard, switch view to plain text mode 
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

Similar Threads

  1. Trouble with QLabel
    By dany_MB in forum Newbie
    Replies: 3
    Last Post: 14th August 2009, 08:21
  2. Replies: 3
    Last Post: 17th July 2008, 07:43
  3. QLabel ScaledContents ignored by style sheet?
    By WinchellChung in forum Newbie
    Replies: 3
    Last Post: 27th February 2008, 14:50
  4. QLabel size policy
    By Caius Aérobus in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2007, 17:57

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.