Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Left sidebar like category
Qt 6.11 is out! See what's new in the release blog

Left sidebar like category

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 1 Posters 384 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.
  • EmrecpE Offline
    EmrecpE Offline
    Emrecp
    wrote on last edited by Emrecp
    #1

    Hi,
    How can I do samething like that picture in PyQt5?
    (it's will be like qlistwidget)
    picture
    same picture
    img: https://imgur.com/a/JmGGQXJ

    1 Reply Last reply
    0
    • EmrecpE Offline
      EmrecpE Offline
      Emrecp
      wrote on last edited by
      #2

      Solved with QListWidget
      self.listWidget = QtWidgets.QListWidget(self.tab_5)
      self.listWidget.setGeometry(QtCore.QRect(10, 90, 171, 211))
      self.listWidget.setStyleSheet("QListWidget {background-color: #363636}\n"
      "\n"
      "QListWidget::item {\n"
      "background-color: rgb(54, 54, 54);\n"
      "height: 40px;\n"
      "color: white;\n"
      "padding-left:15px;\n"
      "}\n"
      "\n"
      "QListWidget::item:hover {\n"
      "background-color: rgb(255, 255, 255);\n"
      "height: 40px;\n"
      "color: #363636;\n"
      "padding-left:15px;}")
      self.listWidget.setFrameShape(QtWidgets.QFrame.NoFrame)
      self.listWidget.setObjectName("listWidget")

      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