#pyqt | Logs for 2018-10-24

Back
[04:24:24] -!- kallesbar has joined #pyqt
[04:38:53] -!- anqxyr has joined #pyqt
[06:29:54] -!- mintograde has joined #pyqt
[07:15:07] -!- mintograde has quit [Ping timeout: 240 seconds]
[07:52:35] <Mrokii> what function do I have to use to change the data in some cell of a qTableView in conjunction with a StandardModel? I have used something like self.mdl_folders_main.item(current_row, 2).setData(old_name + "_old_")
[07:52:58] <Mrokii> For testing purposes
[07:53:17] <Mrokii> But it doesn't seem to work.
[07:53:43] <altendky> Mrokii: sure, though setData() defaults to user role + 1 iirc. you'd have to specify QtCore.Qt.DisplayRole to get it to change the display text. or, setText().
[07:54:25] <altendky> http://doc.qt.io
[07:54:29] <Mrokii> altendky: I'll give setText a try, thanks.
[07:54:35] <altendky> http://doc.qt.io
[08:40:16] -!- GrandPa-G has joined #pyqt
[08:42:28] <GrandPa-G> I was just given a python script. I appears that when a button is pushed a smaller widget (with fields on it) is overlayed on part of the screen. It looks like they use a .raise_() call. Is that a good way for a pop up type window to be managed?
[08:46:40] <Mrokii> GrandPa-G: I'm no expert, but according to the description that function makes sure that the popup-window is raised to the top (in front of its parent widgets). Doesn't look as if there's anything wrong or problematic with it.
[08:54:29] <altendky> GrandPa-G: i can't say i've done this other than context menus that take care of themselves, but in some cases programs use separate windows entirely for popups. not with window decorations, but still. one functional difference is that then the popup isn't restricted to the area of the parent window.
[08:54:48] <altendky> GrandPa-G: i would have guessed qt would have had some abstraction for this, but i can't say i've looked.
[09:18:51] -!- Siecje has joined #pyqt
[09:22:07] <GrandPa-G> altendky:I was asked to update it to qt5 from 4. I think it was written by an Italian as all the names are greek to me. I think I also didn't get a few of the pieces so I have do some guesswork.
[09:24:07] <altendky> GrandPa-G: http://doc.qt.io apparently there is a 'popup widget' concept. it isn't it's own class but a top level (it's own 'window') widget with the WType_Popup flag
[09:24:24] <altendky> i don't know how much it handles for you. maybe closing it etc?
[10:38:06] -!- JanC has quit [Remote host closed the connection]
[10:38:23] -!- JanC has joined #pyqt
[11:12:27] -!- anqxyr has quit [Ping timeout: 240 seconds]
[11:22:58] -!- GrandPa-G has quit [Ping timeout: 245 seconds]
[13:03:12] -!- frispete has quit [Quit: Konversation terminated!]
[13:10:49] -!- frispete has joined #pyqt
[13:20:17] -!- frispete has quit [Quit: Konversation terminated!]
[13:28:14] -!- frispete has joined #pyqt
[13:39:38] -!- Siecje has quit [Read error: Connection reset by peer]
[13:51:33] -!- stochastix has quit [Quit: No Ping reply in 180 seconds.]
[13:52:29] -!- Siecje has joined #pyqt
[13:53:03] -!- stochastix has joined #pyqt
[14:44:22] -!- ilbelkyr_ has joined #pyqt
[14:48:52] -!- stochastix has quit [*.net *.split]
[14:48:59] -!- Mrokii has quit [*.net *.split]
[14:49:25] -!- ilbelkyr has quit [*.net *.split]
[14:50:02] -!- Mrokii has joined #pyqt
[15:29:12] -!- kallesbar has quit [Quit: Konversation terminated!]
[15:32:24] ilbelkyr_ is now known as ilbelkyr
[16:25:11] -!- GrandPa-G has joined #pyqt
[16:26:45] <GrandPa-G> This is my "let's be stupid day". I have tool button and want a click even. self.saleBtn.clicked.connect(self.saleClicked). Nothing happens. The saleClicked def does print first statement, never gets there. Seems too simple.
[16:31:08] <GrandPa-G> What an idiot. Found it
[16:32:03] <altendky> i've spent the past few hours just trying to get my deps right so my tests don't sigabrt... so anything you can fix like that seems good to me. :]
[16:43:46] -!- Siecje has quit [Read error: Connection reset by peer]
[17:06:50] -!- mintograde has joined #pyqt
[20:16:45] -!- GrandPa-G has quit [Quit: Leaving]
[22:05:22] -!- mintograde has quit [Ping timeout: 268 seconds]
[22:41:42] -!- Mrokii has quit [Ping timeout: 272 seconds]
[22:51:05] -!- mandeep has joined #pyqt
[22:54:09] -!- Mrokii has joined #pyqt
[23:53:19] -!- mandeep has quit [Quit: Leaving]