Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: QTreeView, StyleSheet resizes last column
Post: RE: QTreeView, StyleSheet resizes last column

(Sep-15-2023, 12:48 PM)menator01 Wrote: Without code it will be hard for anyone to help. You could try setColumnStretch() I know for people to best help me I need to share code. But, I just don't f...
malonn GUI 2 924 Sep-15-2023, 03:50 PM
    Thread: QTreeView, StyleSheet resizes last column
Post: QTreeView, StyleSheet resizes last column

I am using a QTreeView with a StyleSheet set to it. This tree has checkboxes, and the style replaces the image for the empty, checked and partially checked boxes. My issue is, when I set the StyleSh...
malonn GUI 2 924 Sep-15-2023, 09:44 AM
    Thread: QStandardItemModel; columns, icons
Post: RE: QStandardItemModel; columns, icons

Much ado for nothing, @Axel_Erfurt. One function and no refactoring, and all works as intended. I just don't know what Qt does, so wasn't sure how this would work. My question stands, 'cause I don'...
malonn GUI 3 1,376 Aug-12-2023, 12:39 PM
    Thread: QStandardItemModel; columns, icons
Post: RE: QStandardItemModel; columns, icons

Something like that. I've worked with an QTreeWidget in the past and you may be right. But, the view has multiple columns, and maybe with that understanding view column 1 would have two columns per ...
malonn GUI 3 1,376 Aug-12-2023, 12:18 PM
    Thread: QStandardItemModel; columns, icons
Post: QStandardItemModel; columns, icons

I am struggling to figure out something. I have a QTreeView fed by a QStandardItemModel; tree populates; multiple columns; great! Works. But, I am trying to plan out how to make the actual tree hav...
malonn GUI 3 1,376 Aug-12-2023, 11:10 AM
    Thread: Hard disk structure like a file selection dialog
Post: RE: Hard disk structure like a file selection dial...

Well, I've used a QFileSystemModel before and I don't like a couple of things about its functionality, so I wanted to write my own. Originally, I tried a subclassed QAbstractItemModel, but couldn't f...
malonn General Coding Help 2 793 Aug-09-2023, 09:14 PM
    Thread: Hard disk structure like a file selection dialog
Post: Hard disk structure like a file selection dialog

I eventually want to build a tree of a drive contents structure just like a file/folder selection dialog (PyQt). I was thinking of building some sort of iterable first with the drive (and various thi...
malonn General Coding Help 2 793 Aug-09-2023, 12:15 PM
    Thread: QStyledItemDelegate and QTableView
Post: RE: QStyledItemDelegate and QTableView

Necro-post. Sorry for bad form, but I discovered that running a QStyledItemDelegate in a table is supposed to happen multiple times per view. It is expected behavior. I'm not sure why, but I would ...
malonn GUI 1 1,645 Feb-07-2023, 07:15 PM
    Thread: QGridLayout, QProgressBar bar fills widgets shrink
Post: RE: QGridLayout, QProgressBar bar fills widgets sh...

Odd. Must be the other parts of my app that I didn't extract for this board. It's a 13 module app, so, other stuff going on. It's laid out on a secondary (popup) QMainWindow, but it sure as piss sh...
malonn GUI 5 1,625 Nov-22-2022, 01:38 AM
    Thread: QGridLayout, QProgressBar bar fills widgets shrink
Post: RE: QGridLayout, QProgressBar bar fills widgets sh...

You're pretty helpful with with PyQt, @Axel_Erfurt. I haven't run your code, but I know it will not exhibit my problem. However, looking at it, nothing jumps out as to why. Thanks, but I'll just st...
malonn GUI 5 1,625 Nov-20-2022, 11:12 PM
    Thread: QGridLayout, QProgressBar bar fills widgets shrink
Post: QGridLayout, QProgressBar bar fills widgets shrink

I have a QGridLayout with some QLabels and QLineEdits and a QProgressBar. As the progress bar fills, the QLineEdits shrink. What's up with that. Code: wnd_grid, wnd_edit = QGridLayout(), QTextEdit(...
malonn GUI 5 1,625 Nov-18-2022, 07:54 PM
    Thread: email Library: properly send message as quoted-printable
Post: RE: email Library: properly send message as quoted...

All works as expected following your SO link, @deanhystad. Thanks a million! I spent two hours trying to figure that out last night. As a side question (I'm here, you know), I'm sending mail with q...
malonn General Coding Help 3 1,318 Nov-14-2022, 09:31 PM
    Thread: email Library: properly send message as quoted-printable
Post: RE: email Library: properly send message as quoted...

I will check things out in a bit and see how it goes. I didn't know of the "subtype=html" argument. The documentation is not that great.
malonn General Coding Help 3 1,318 Nov-14-2022, 07:20 PM
    Thread: email Library: properly send message as quoted-printable
Post: email Library: properly send message as quoted-pri...

I am struggling to get email clients to properly render HTML messages. I believe it is a result of the content transfer encoding. I've tried several different HTML code styles, using the net extensi...
malonn General Coding Help 3 1,318 Nov-14-2022, 11:13 AM
    Thread: QLineEdit Caret (Text Cursor) Transparency
Post: RE: QLineEdit Caret (Text Cursor) Transparency

That and a QTextEdit may be the ONLY widgets that can have their text cursor changed. Turns out I was wrong before. I have been searching all day, and the best I can do is change the rect that conta...
malonn GUI 5 2,824 Nov-04-2022, 09:04 PM
    Thread: QLineEdit Caret (Text Cursor) Transparency
Post: RE: QLineEdit Caret (Text Cursor) Transparency

Okaay... I've been reading (yesterday's troubleshooting involved glossing over) and it looks like in versions of Qt since at least 5.8 the text cursor is related to the background color (which my expe...
malonn GUI 5 2,824 Nov-03-2022, 01:29 PM
    Thread: QLineEdit Caret (Text Cursor) Transparency
Post: RE: QLineEdit Caret (Text Cursor) Transparency

Interesting, @Axel_Erfurt. That's all well and good (and no, I'm not married to the color), but why doesn't the cursor adhere to the foreground color? Black text shows up just fine with gray. So, ...
malonn GUI 5 2,824 Nov-03-2022, 12:47 PM
    Thread: QLineEdit Caret (Text Cursor) Transparency
Post: QLineEdit Caret (Text Cursor) Transparency

I noticed that if I set the background color of a QLineEdit, the caret (text cursor) becomes invisible. Setting the foreground color does nothing for the caret. So, this: setStyleSheet("QLineEdit{ba...
malonn GUI 5 2,824 Nov-02-2022, 07:02 PM
    Thread: QVBoxLayout default (minimum) size
Post: RE: QVBoxLayout default (minimum) size

In the app I'm working on, I set margins to 0. I was just doing some research; trying to see what's what. The window/application size tends to grow as you add layouts (and of course, widgets). You ...
malonn GUI 5 4,362 Oct-13-2022, 04:20 PM
    Thread: QVBoxLayout default (minimum) size
Post: RE: QVBoxLayout default (minimum) size

Odd, in my testing QGridLayout and QVBoxLayout had contents margins of 9 all around. Must be the style I'm using. It's the default style, I haven't changed it. Thanks though.
malonn GUI 5 4,362 Oct-10-2022, 10:56 AM

User Panel Messages

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