Skip to content

Instantly share code, notes, and snippets.

@espdev
espdev / qtabwidget.css
Last active June 13, 2024 07:57
A QTabWidget Custom Stylesheet Example
QTabWidget::pane {
border: 1px solid black;
background: white;
}
QTabWidget::tab-bar:top {
top: 1px;
}
QTabWidget::tab-bar:bottom {
@jmk
jmk / example.cpp
Created October 17, 2012 15:48
Example of showing different context menu for items in a QTreeWidget
#include "main.h"
int main(int argc, char** argv)
{
QApplication app(argc, argv);
MyTreeWidget w;
w.show();