Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How can i add big size image in my toolbar window.??
Forum Updated to NodeBB v4.3 + New Features

How can i add big size image in my toolbar window.??

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    M_31
    wrote on last edited by
    #1

    Hi All,

    I want to have big size image on my window tool bar (which is very small by default.).

    Is there any way to do that?.

    Actually the toolbar image size is (2424) by default
    but i want to have to image size of (64
    64) in my toolbar..

    Thanks in advance.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cincirin
      wrote on last edited by
      #2

      Try with "QToolBar::setIconSize":http://doc.qt.nokia.com/latest/qtoolbar.html#iconSize-prop

      1 Reply Last reply
      0
      • E Offline
        E Offline
        evergreen
        wrote on last edited by
        #3

        If you go with a pixmap, you can rescale it with
        @QPixmap QPixmap::scaled ( const QSize & size, Qt::AspectRatioMode aspectRatioMode = Qt::IgnoreAspectRatio, Qt::TransformationMode transformMode = Qt::FastTransformation ) const@

        1 Reply Last reply
        0
        • M Offline
          M Offline
          M_31
          wrote on last edited by
          #4

          Thanks a lot for your i/p..

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved