Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Italian
  4. PyQt begginer

PyQt begginer

Scheduled Pinned Locked Moved Unsolved Italian
2 Posts 2 Posters 774 Views
  • 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.
  • E Offline
    E Offline
    elpie89
    wrote on last edited by
    #1

    Buongiorno in pratica sto facendo i miei primi passi con PyQt.
    Come posso ottenere un widget con immagine in background
    che contenga al suo interno due scrollarea oridinate orizzontalmente?
    Grazie

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      Sono totalmente ignorante di Python quindi non provo nemmeno a darti esempi. I passi da fare sono

      • Crea un QWidget
      • crea un QHBoxLayout
      • chiama QWidget::setLayout per impostare il layout sul widget
      • crea le due QScrollArea
      • chama QHBoxLayout::addWidget per aggiungere le scroll areas al widget
      • chiama QWidget::setStyleSheet per impostare lo sfondond (la sintassi e' molto simile a CSS http://doc.qt.io/qt-5/stylesheet.html )

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      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