Questions tagged [qstyle]

QStyle is an abstract base class that is responsible for the look and feel of the GUI.

Qt has a set of classes subclassed from QStyle that represent native GUI styles for platforms that Qt supports.

Qt's widgets use QStyle to perform their drawing. Note that when subclassing, a developer should use QCommonStyle rather than QStyle as a base class.

The official documentation can be found here for Qt 4 and here for Qt 5.

64 questions
0
votes
2 answers

QTreeWidget (Applying Styles for items)

I have a tree widget and there are three levels in the tree as follows Example Tree ============================ LEVEL1 LEVEL2 LEVEL2 LEVEL3 LEVEL3 LEVEL2 LEVEL2 LEVEL1 I want to apply different styles for items,…
warunanc
  • 2,221
  • 1
  • 23
  • 40
0
votes
1 answer

How to flush the QWidget Painting-Cache?

I'm working on a custom styled QMessageBox. In my custom QStyle class in method polish() I call: if( (pDialog = qobject_cast( pWidget )) != NULL ) { pDialog->setWindowFlags( pDialog->windowFlags() | Qt::FramelessWindowHint ); //…
Charly
  • 1,270
  • 19
  • 42
-1
votes
1 answer

QStyle:: StandardPixmap does have an add/delete icon. Or plus/minus?

I want to add an icon for add/delete from a list. Using like plus/minus icons I just want to make sure that the built in icons in Qt. Found in StandardPixmap does not include this one for plus minus so I can add one myself using resources. Anyone…
rwkkxsfn
  • 11
  • 3
-1
votes
1 answer

How to get identation width of QTreeView from QStyle

I have pre-existing code which has a tree view like appearance but doesn't actually use QTreeView (uses QListWidget with custom paint). I am tasked to add the indentation between the parent and child objects, but I can't able to find how to…
unknown.prince
  • 710
  • 6
  • 19
1 2 3 4
5