Results 1 to 6 of 6

Thread: (qt4 & xp) qlabel as background in designer

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Grenoble, France
    Posts
    165
    Thanks
    106
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: (qt4 & xp) qlabel as background in designer

    As you say I can set the background in the constructor, but then I do not benefit from Designer to position my other controls.
    I then have to set their position by several iterations in the code rather than in designer.
    That's why i wonder how to do all in designer :
    - set the background
    - position the various controls over the background.

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

    Default Re: (qt4 & xp) qlabel as background in designer

    Quote Originally Posted by incapacitant
    As you say I can set the background in the constructor, but then I do not benefit from Designer to position my other controls.
    I then have to set their position by several iterations in the code rather than in designer.
    That's why i wonder how to do all in designer :
    - set the background
    - position the various controls over the background.
    You should do the other way round. First position all the widgets and then apply a background. Remember that you can apply a part of the background to each one of them, so it shouldn't be hard.

    Of course, it's a pitty we can't set non-colour palette items in designer.

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

    incapacitant (5th March 2006)

Similar Threads

  1. Replies: 3
    Last Post: 17th July 2008, 07:43
  2. QLabel ScaledContents ignored by style sheet?
    By WinchellChung in forum Newbie
    Replies: 3
    Last Post: 27th February 2008, 14:50
  3. Dynamically changing QLabel background colour
    By T4ng10r in forum Qt Programming
    Replies: 19
    Last Post: 19th April 2007, 12:47
  4. QLabel background color
    By munna in forum Newbie
    Replies: 3
    Last Post: 1st May 2006, 15:36
  5. Replies: 1
    Last Post: 5th April 2006, 16:44

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.