Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. qicon
    Log in to post

    • UNSOLVED "Icon theme * not found." message when the icon theme is found
      General and Desktop • icon qicon theme icon in ubuntu • • Glax  

      1
      0
      Votes
      1
      Posts
      37
      Views

      No one has replied

    • SOLVED Icon Size in QListView IconMode
      General and Desktop • qwidget qlistview qicon • • belst  

      2
      1
      Votes
      2
      Posts
      687
      Views

      No one has replied

    • UNSOLVED QLabel not loading image after changing computers
      General and Desktop • qwidget qlabel qicon • • SolaVitae  

      6
      0
      Votes
      6
      Posts
      1013
      Views

      Hi, What do you mean by regular string ? If it comes from the Windows API, you should then consider using QDir:: fromNativeSeparators.
    • SOLVED How to change QPushButton icon color
      General and Desktop • qpushbutton color qicon qstylesheet • • OlivierDuguay  

      13
      0
      Votes
      13
      Posts
      17444
      Views

      @OlivierDuguay Super ! So it was possible via the options. (variantmap) Seems like pretty nice library.
    • UNSOLVED How do I customize icon scaling behaviour in a QListView?
      General and Desktop • qlistview x11 qicon qitemdelegate icons • • ssokolow  

      9
      0
      Votes
      9
      Posts
      5076
      Views

      @hskoglund I already have an underlying data store and I'm using a subclass of QAbstractTableModel to bridge it into a Qt GUI. Making two in-memory copies of that data store and then jerry-rigging View-like synchronization between the actual data and two widget-specific data stores (plus all the requisite automated testing to make sure it works reliably) seems like the exact opposite of what I want.
    • UNSOLVED Icon margin in QListWidget
      General and Desktop • qlistwidget qicon margin • • alextekeuf  

      5
      0
      Votes
      5
      Posts
      3084
      Views

      @SGaist Thank you for your answer, I'm gonna try in this way. If it works, i'll post it here because I'm sure it could be helpfull for someones... I'm actually surprise to see that it's not implemented within the QListWidget class!
    • UNSOLVED How to add icon to multi button in simple way?
      General and Desktop • qpixmap qicon • • MhM93  

      5
      1
      Votes
      5
      Posts
      1253
      Views

      @Rohith : thanks.but your solution does not work for me. I have multi button. I for example want to set image (/pic/1.png) to btn1 and then set another image to another button. My question How to set image to them in my code behind?
    • SOLVED Setting QIcon with svg file as a QAction icon problem
      General and Desktop • qt5 macosx svg qaction qicon • • rzhurov  

      7
      0
      Votes
      7
      Posts
      10813
      Views

      I saw that this bug has been reported.
    • [Solved] QIcons are not shown in binary, while shown when compiled from source
      General and Desktop • cmake qpixmap qicon binary • • viruca  

      7
      0
      Votes
      7
      Posts
      1855
      Views

      @hskoglund You were right! Thank you.
    • SOLVED Creating round QIcon from string
      General and Desktop • qicon • • the_  

      5
      0
      Votes
      5
      Posts
      2482
      Views

      @raven-worx said: @the_ use QPainter::setBrush() before the drawEllipse() call Thanks, that draws a nice colored circle :)
    • SOLVED QComboBox with icons but no text - how?
      General and Desktop • qcombobox qicon align • • wavelike  

      6
      0
      Votes
      6
      Posts
      4625
      Views

      @wavelike said: don't they use QComboBox-like widgets to offer different colors, brush thickness etc? Hm, I guess that's true, but I'd say it has more to do with QMenus and QToolButtons than QComboBox. But then again they are indeed similar in some ways. Oh well, the important thing is it's doable and quite easy ;)
    • UNSOLVED QtTableWidgetItem Icon Text
      General and Desktop • qtablewidget qt4 qicon qtablewidgetite • • DougyDrumz  

      2
      0
      Votes
      2
      Posts
      921
      Views

      Hi, You can try implementing a QStyledDelegateItem and paint only the icon. Hope it helps
    • [SOLVED] Compare QIcons
      General and Desktop • qt5 qicon • • Jakob  

      5
      0
      Votes
      5
      Posts
      1900
      Views

      @mrjj @jsulm Thanks you for your replies. As it turns out, the crash I mentioned was actually caused by a subtle, yet important bug in our test infrastructure: we have a special fixture that will instantiate and destruct the QApplication instance before respectively after each test case. We initiated the argc and argv parameters with variables local to the constructor. For some reason creating a QIcon causes Qt to access argv, in other words: a crash. Short story: both your suggestion, but also my original approach work perfectly!
    • [SOLVED] Error while trying to add Icon to QPushButton
      General and Desktop • error desktop qpushbutton qicon • • Aram  

      3
      0
      Votes
      3
      Posts
      1360
      Views

      @Aram Its completely ok. Just mark it as SOLVED and all will be happy
    • QIcon set default size
      General and Desktop • qicon • • metaDom  

      2
      0
      Votes
      2
      Posts
      1462
      Views

      Hi, you can store the old values and restore them later class MyWindow: public MainWindow { .... private: QSize _originalSize; }; void MyWindow::changeIconSize() { _originalSize = iconSize(); setIconSize(...); } void MyWindow::restoreSize() { setIconSize(_originalSize); }