Results 1 to 4 of 4

Thread: Icon Text Alignment

  1. #1
    Join Date
    Mar 2006
    Posts
    172
    Thanks
    30
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation Icon Text Alignment

    I wish to display some icons in QlistView, but I should be able to orient the icon

    label either to the left/right/above/below the icon. How do I do this?

    Thanks

    Nupul

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Icon Text Alignment

    You'll need to provide a custom delegate.
    J-P Nurmi

  3. #3
    Join Date
    Mar 2006
    Posts
    172
    Thanks
    30
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation Re: Icon Text Alignment

    Thanks jpn - but it's an area of Qt I am not very well versed with. But do i need to do the same incase of displaying a pixmap on a button...i.e. icon on left and text on right?

    Nupul

  4. #4
    Join Date
    Mar 2006
    Posts
    172
    Thanks
    30
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation Re: Icon Text Alignment

    Quote Originally Posted by nupul
    Thanks jpn - but it's an area of Qt I am not very well versed with. But do i need to do the same incase of displaying a pixmap on a button...i.e. icon on left and text on right?

    Nupul

    err...sorry guys...wrong doubt....it actually works by default...the doubt actually is of the alignment...I wish the text, which is displayed to the right of the icon be aligned to the centre of the button and not the top...what should I do?

    Thanks

    Nupul

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49
  2. Differentiate the icon and text in a QTreeView column
    By gmat4321 in forum Qt Programming
    Replies: 0
    Last Post: 25th February 2009, 15:38
  3. Replies: 2
    Last Post: 30th December 2008, 21:35
  4. How to write some text next to the system tray icon?
    By alex chpenst in forum Qt Programming
    Replies: 3
    Last Post: 5th September 2008, 08:43
  5. Q3Table text alignment problem
    By batileon in forum Qt Programming
    Replies: 4
    Last Post: 28th August 2008, 18:04

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.