#pyqt | Logs for 2018-10-22
Back
[01:49:49] -!- Belxjander has quit [Quit: AmigaOSv4.1.6+//PowerPC native]
[01:51:23] -!- Belxjander has joined #pyqt
[03:23:45] -!- anqxyr has joined #pyqt
[03:27:03] -!- kdas_ has joined #pyqt
[03:28:49] -!- kushal has quit [Ping timeout: 256 seconds]
[03:32:27] kdas_ is now known as kushal
[03:47:27] -!- anqxyr has quit [Ping timeout: 264 seconds]
[05:11:18] -!- Mrokii has joined #pyqt
[05:16:08] <Mrokii> Hello. Can someobdy explain how to select one item in a QTableView (not the complete column!), so that the user can change said item?
[05:17:01] <Mrokii> What I want to achieve is this: Currently, the user can add a row with two items to a QTableview. After that, one of the rows' items should be selected, so that the user can enter a string.
[06:07:43] -!- kallesbar has joined #pyqt
[06:30:35] -!- mintograde has joined #pyqt
[07:08:07] -!- mintograde has quit [Ping timeout: 240 seconds]
[08:01:17] -!- z1phr has joined #pyqt
[08:01:31] <z1phr> Do anyone know how i avoid hidden widgets taking up any space in a formlayout?
[08:01:39] <z1phr> vertical space that is
[08:02:23] <z1phr> sometimes i hide fields for example and the stuff below is still shifted too far below
[08:56:23] -!- Siecje has joined #pyqt
[09:10:59] <altendky> Mrokii: there are a few select options if you search here http://doc.qt.io
[09:17:05] <altendky> z1phr: can you share code? Have you tried a similar example with just a list view to see if it works properly?
[10:01:09] <altendky> z1phr: I suppose a screenshot would be good as well so we know we are looking at the same issue.
[10:08:53] <Siecje> Does Appveyor have Python 3.7.1? I can't seem to find a list of supported Python versions.
[10:31:23] <Mrokii> altendky: Thanks, I'll take a look.
[10:35:08] <altendky> Siecje: they changed when they added linux. follow the link at the bottom of https://www.appveyor.com to get https://www.appveyor.com
[10:35:22] <altendky> Siecje: where no, they say 3.7.0. i guess i missed the 3.7.1 release
[10:36:32] <Siecje> altendky: Thanks
[10:36:46] <Siecje> Today is the first business day.
[10:37:05] <Mrokii> Here's another riddle I'm currently trying to solve: If I have a qTableView containing dynamically created rows with checkboxes (qStandardItems), what would be the way to find out the actual, when the user clicks one of said checkboxes? "selectionChange" doesn't fire in that case (it only does if the surrounding cell is clicked on).
[10:37:12] -!- Mrokii has quit [Quit: WeeChat 2.2]
[10:37:33] -!- Mrokii has joined #pyqt
[10:37:39] <Mrokii> oops, sorry, used wrong command. :)
[10:37:53] <Mrokii> Anyhow, my question stands. :)
[10:39:18] <altendky> Mrokii: maybe http://doc.qt.io ?
[10:39:30] <altendky> Mrokii: iirc the check is just a different role
[10:39:46] <altendky> not sure if the standard stuff exposes that or not via signals
[10:49:45] <Mrokii> altendky: I'll see if I can do something with that. Thanks.
[11:06:02] <Mrokii> altendky: It seems to work via "indexFromItem".
[11:06:40] <altendky> Mrokii: are you using itemChanged() to be notified? or?
[11:07:21] <Mrokii> altendky: Yes, itemChanged.
[11:15:39] -!- z1phr has quit [Ping timeout: 264 seconds]
[12:38:21] -!- BPL has joined #pyqt
[13:33:47] -!- Belxjander has quit [Ping timeout: 240 seconds]
[13:38:43] -!- Belxjander has joined #pyqt
[16:23:14] -!- mintograde has joined #pyqt
[17:25:34] -!- Siecje has parted #pyqt
[19:05:02] -!- swalladge has quit [Ping timeout: 245 seconds]
[21:21:04] -!- BPL has quit [Quit: Leaving]
[21:58:15] -!- irseeyou has joined #pyqt
[21:58:49] <irseeyou> How do I embed pyqt widget in qt? Specifically what do I refer to to send it commands? I got it working by iteself but after its embeddeding I can't figure out how to address it.
[21:59:42] <altendky> irseeyou: you have a python qt widget you are using in a c++ qt application? i feel like the docs had something about this maybe
[22:00:18] <irseeyou> This is all python
[22:00:35] <irseeyou> I'm not very familiar with classes and inheritance
[22:01:07] <altendky> irseeyou: do you have code to share?
[22:01:30] <irseeyou> So I loaded the .uic, and I want to refer to the graphicsView widget i made in qtdesigner. When I did it with linEdit I would refer to it as dlg.lineEdit.setText() where dlg = uic.loadUI("uifile.ui")
[22:02:07] <irseeyou> altendky: https://pastebin.com
[22:02:08] <altendky> irseeyou: sure. the name you used in designer will still be there in the code (in the proper place as you mentioned)
[22:02:28] <irseeyou> "AttributeError: 'QMainWindow' object has no attribute 'GraphicsView'"
[22:02:58] <altendky> irseeyou: it's good to share the full traceback. i personally like gist.github.com in part because you can have multiple files
[22:03:11] <irseeyou> Sorry, changed it to the lowercase graphicsView > PlotWidget object is not callable
[22:03:37] <altendky> irseeyou: https://github.com most of my real code is an outdated mess, but that's my present personal preference for loading .ui files
[22:04:54] <irseeyou> altendky: the ui file loads fine and pops up a window. I'm trying to send it a command, for instance just start "Hello world" and make the background white in the plot.
[22:05:17] <altendky> irseeyou: i don't see code for that
[22:05:52] <altendky> irseeyou: i'll also note that threading is often not a great choice. sometimes you are stuck with it but i think pyqtgraph might have some special pieces related to this
[22:05:52] <irseeyou> dlg.graphicsView(background = 'w')
[22:06:29] <altendky> irseeyou: can you share the proper code, the full traceback, and the .ui file?
[22:24:15] -!- irseeyou has quit [Quit: Leaving.]
[23:08:17] -!- swalladge has joined #pyqt
[23:23:52] -!- mintograde has quit [Ping timeout: 244 seconds]