Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: PyQt5 drawing on scrollable area
Post: RE: PyQt5 drawing on scrollable area

(Mar-28-2023, 12:36 PM)Axel_Erfurt Wrote: What do you want to draw? You can load images in QLabel. No images/photos. I want to draw my own graphs.
HeinKurz GUI 3 1,352 Mar-28-2023, 12:46 PM
    Thread: PyQt5 drawing on scrollable area
Post: PyQt5 drawing on scrollable area

Some things are not so easy to understand for me as PyQt5 newbie. **huh** I have a QTabWidget with 3 Tabs. On Tab2 I have a scrollable area and now I want to draw some graphics on that area. How ca...
HeinKurz GUI 3 1,352 Mar-28-2023, 10:46 AM
    Thread: PyQt5 QTableView SQLite : edit cell
Post: RE: PyQt5 QTableView SQLite : edit cell

Thanks Axel, that's great. **clap**
HeinKurz GUI 2 2,423 Mar-27-2023, 10:41 AM
    Thread: PyQt5 QTableView SQLite : edit cell
Post: PyQt5 QTableView SQLite : edit cell

Hi! I'm newbie with PyQt5 and now I have an app for Windows with PyQt5 and a SQLite database. Showing the data in QTableView works fine, even with cell format like numbers right aligned with fixed dec...
HeinKurz GUI 2 2,423 Mar-27-2023, 09:45 AM
    Thread: QScrollArea does not work
Post: RE: QScrollArea does not work

Thanks deanhystad, that's great.
HeinKurz GUI 3 1,402 Jan-24-2023, 09:45 PM
    Thread: QScrollArea does not work
Post: QScrollArea does not work

Hi! What's wrong with my code? QScrollArea is shown but scrolling doesn't work. import sys import datetime import xml.etree.ElementTree as ET from PyQt5.QtWidgets import * #QApplication, QDialog, QM...
HeinKurz GUI 3 1,402 Jan-24-2023, 05:23 PM
    Thread: QTableView set header labels
Post: RE: QTableView set header labels

Problem solfed in table format class: # table format class class TableModel(QtCore.QAbstractTableModel): def __init__(self, data): super(TableModel, self).__init__() self._data = d...
HeinKurz GUI 2 6,868 Jan-23-2023, 08:46 AM
    Thread: QTableView set header labels
Post: QTableView set header labels

Hi! I have a PyQt5 window with a QTableView. The data comes from a XML file. So far everthing works fine. But now I want to set the header labels because in XML data there is no first line with the la...
HeinKurz GUI 2 6,868 Jan-21-2023, 11:10 AM
    Thread: PyQt5 graphics question
Post: RE: PyQt5 graphics question

(Jan-17-2023, 07:02 PM)Axel_Erfurt Wrote: You can set a background image with stylesheet self.setStyleSheet('background-image: url("/folder/image.png"); background-repeat: no-repeat; background-pos...
HeinKurz GUI 5 1,467 Jan-17-2023, 07:06 PM
    Thread: global variables
Post: RE: global variables

Thanks for all that solutions. In the meantime I also solfed the problem with a new class.
HeinKurz General Coding Help 3 1,162 Jan-17-2023, 06:58 PM
    Thread: PyQt5 graphics question
Post: RE: PyQt5 graphics question

Thanks Axel Erfurt, I found this article yesterday but it didn't really help because he didn't use a background image for the clock.
HeinKurz GUI 5 1,467 Jan-17-2023, 05:56 PM
    Thread: global variables
Post: global variables

I've read a view posts and articles about global variables so I don't understand why it doesn't work in my app. In the code below pos1, pos2 and pos2 create an error at keyPressEvent: "local variable ...
HeinKurz General Coding Help 3 1,162 Jan-17-2023, 04:51 PM
    Thread: PyQt5 graphics question
Post: PyQt5 graphics question

Hi! Below my first Python PyQt5 app. **cool** So far it works perfectly. But what I do in paintEvent is to load the background image every time the timer fires and I think that could be done better...
HeinKurz GUI 5 1,467 Jan-17-2023, 01:54 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020