Re: [Interest] [Qt-interest] [Qt-Interest] Shut down Qt-Interest list (nokia) in favor of Interest (qt-project)?

2012-02-13 Thread André Somers
Op 2/13/2012 10:13 AM, Andrea Franceschini schreef: Wait, what ML is one supposed to follow now? interest@qt-project.org qt-inter...@nokia.com (and I think even qt-inter...@trolltech.com, which I think is (still) an alias for this one) have been superseded by interest@qt-project.org

Re: [Interest] Database in LINUX application in windows

2012-02-15 Thread André Somers
Op 2/15/2012 2:58 PM, BERAUD Alexandre schreef: No you can't. Just as an .exe program can't run on a Linux box, a Windows program can't communicate with another program running on Linux. For exemple, a Windows Firefox can't fetch web pages hosted by a Linux Apache server. Such a thing NEVER

Re: [Interest] StyleSheets in children QWidgets

2012-02-23 Thread André Somers
Op 23-2-2012 13:16, Николай Шатохин schreef: So, If I change StyleSheet of CentralWidget then I must change StyleSheets of all children Widgets? So, is it possible to see default stylesheets of widgets? What stylesheet do I must to set to create button with rounded corners and different

Re: [Interest] QTextEdit and Style sheets

2012-03-13 Thread André Somers
Op 13-3-2012 16:45, Graham Labdon schreef: Hi everyone Solved this! edit-setStyleSheet(background-image:url(:/images/bg.jpg)); QPalettepalette=edit-palette(); palette.setBrush(QPalette::Base,Qt::NoBrush); edit-setPalette(palette); Please report this as a bug. I think that setting a

Re: [Interest] QTextEdit and Style sheets

2012-03-14 Thread André Somers
Op 13-3-2012 17:26, Christoph Feck schreef: On Tuesday 13 March 2012 16:52:21 André Somers wrote: Op 13-3-2012 16:45, Graham Labdon schreef: Hi everyone Solved this! edit-setStyleSheet(background-image:url(:/images/bg.jpg)); QPalettepalette=edit-palette(); palette.setBrush(QPalette

Re: [Interest] Are videos and presentations from previous Qt Developer Days available online?

2012-03-14 Thread André Somers
Op 14-3-2012 12:08, Atlant Schmidt schreef: Folks: Are videos and presentations from previous Qt Developer Days available online? If so, where are they? Yes, here: http://qt-project.org/videos#t-devdays André ___ Interest mailing list

Re: [Interest] Changing link color of QLabel

2012-03-27 Thread André Somers
Op 27-3-2012 9:32, Nikos Chantziaras schreef: On 27/03/12 10:19, Nikos Chantziaras wrote: Links in QLabels do not obey their palette setting (QPalette::Link). How do I change the color of links? An HTML style tag, like: a {color: some_color;} doesn't help me, since what I need is set

Re: [Interest] Does it really worth it?

2012-03-27 Thread André Somers
Op 27-3-2012 12:40, josema...@gomezvergara.es schreef: I would like to dedicate all my energy to only one technology during the next 3 years. I was thinking to do a useful thing and to be honest I was thinking in doing some kind of a good chart library for Qt. The thing is that I dont really

Re: [Interest] Changing link color of QLabel

2012-03-27 Thread André Somers
Op 27-3-2012 12:42, Nikos Chantziaras schreef: On 27/03/12 11:45, André Somers wrote: Op 27-3-2012 9:32, Nikos Chantziaras schreef: On 27/03/12 10:19, Nikos Chantziaras wrote: Links in QLabels do not obey their palette setting (QPalette::Link). How do I change the color of links? An HTML

Re: [Interest] post event between threads

2012-04-03 Thread André Somers
Op 3-4-2012 11:29, Riccardo Roasio schreef: And so what i can do? Or i have to read all the documentation Yes, reading the documentation will help you gain the needed understanding. Threading is a complex topic with many pitfalls. You've been given the list of things to read to understand

Re: [Interest] query about QT textbooks

2012-04-12 Thread André Somers
Op 11-4-2012 13:55, Mark Griffith schreef: I'm not totally computer-illiterate - I have reasonable maths skills as an ex-economist, and have built several websites unaided in straight HTML without using an editing package or code editor. I have written simple programs. But I do have a life

Re: [Interest] my comparison with company reports

2012-04-12 Thread André Somers
Op 12-4-2012 15:00, R. Reucher schreef: On Thursday 12 April 2012 14:45:18 Mark Griffith wrote: Dear R. Reucher, Huh? I guess you're addressing the wrong person here... I didn't say anything about company reports. I did. I guess he meant me? @Mark: it would be easier to follow the

Re: [Interest] Getting QTreeView item click offset for DnD

2012-04-17 Thread André Somers
Op 17-4-2012 16:35, Jason H schreef: I need to repeat this. I'm still lost. here is my code (child is always NULL): voidDataPointTreeView::mousePressEvent(QMouseEvent*event) { QTreeView::mousePressEvent(event); QModelIndex mi = indexAt(event-pos()); QWidget *child =

Re: [Interest] Getting QTreeView item click offset for DnD

2012-04-17 Thread André Somers
reimplementing the mousePressEvent in this context at all? Did you study the Using Drag and Drop with Item Views topic from the Model/View Programming documentation page? André *From:* André Somers an...@familiesomers.nl

Re: [Interest] Contributor agreement rundown

2012-04-18 Thread André Somers
Op 18-4-2012 8:23, Donald Carr schreef: Any customer who buys their way out of the LGPL requirements of up streaming changes to Qt places a maintenance burden on themselves that they are fully entitled to and may well end up ruing. It is their baby, and the money they pay for said baby is one

Re: [Interest] Qt for Android iOS

2012-04-26 Thread André Somers
Op 23-4-2012 15:45, lucas.betsch...@crypto.ch schreef: Quoted from digia.com (digia.com/en/Qt/Digia-is-Committed-to-Qt/): Digia is comitted to: ... - Advancing the cross-platform Qt promise by supporting leading ( !! ) desktop and embedded platforms ... So we doubtless can expect an

Re: [Interest] Help, please !!!

2012-04-26 Thread André Somers
Op 23-4-2012 20:44, Nikos Chantziaras schreef: Then you're not doing what you think you're doing: QList QListintlistOfLists; QListint listOfInts; listOfInts.append(10); listOfLists.append(listOfInts); listOfLists[0][0] = 9; qDebug() listOfLists[0][0]

Re: [Interest] Issue with QSortFilterProxyModel and Delegate

2012-05-10 Thread André Somers
Op 10-5-2012 13:45, David Boosalis schreef: Hope someone can help me here. I have a QTableView for which I use my own QSortFilterProxyModel and own Delegate which is based on QStyledItemDelegate. My issue is in the Delegates::paintEvent() I get core dumps if I have the following (Not using

Re: [Interest] Issue with QSortFilterProxyModel and Delegate

2012-05-10 Thread André Somers
Op 10-5-2012 14:05, David Boosalis schreef: André, your a rock star !!! I did as you suggested and wahhla, bingo, bango - it all works. Thanks a lot for taking the time to answer my question. You're welcome, glad you managed to solve your issue using my suggestions. André

Re: [Interest] QProcess: child read from stdin - no data received?

2012-05-14 Thread André Somers
Op 13-5-2012 19:51, Till Oliver Knoll schreef: Am 13.05.2012 um 18:36 schrieb Till Oliver Knolltill.oliver.kn...@gmail.com: Hello, this seems to be an ever recurring topic: How does one get notified in a *child* process (started via QProcess) once there is data to be read on stdin (in a

Re: [Interest] Adding button groups to toolbars?

2012-05-29 Thread André Somers
Op 29-5-2012 12:09, Sensei schreef: Hi everyone, I have (another) problem. I am trying to mimick the layout of Xcode, making a simple custom widget with a toolbar on top and a widget on the bottom. I was able to create a vertical layout and add a series of actions, adding them to the

Re: [Interest] Changing QSpinEdit color

2012-06-07 Thread André Somers
Op 7-6-2012 8:45, Till Oliver Knoll schreef: Am 06.06.2012 um 13:20 schrieb André Somersan...@familiesomers.nl: ... setPalette cannot be relied on, and is thus effectively useless. Pitty is: style sheet support is incomplete (no API for custom widgets), so in some cases (mainly if you use

Re: [Interest] Dynamically Resizing the height of a Row in a QTableWidget or QTableView

2012-06-26 Thread André Somers
Op 25-6-2012 22:35, Michael Jackson schreef: Is it possible to dynamically set the row height based on the amount of text that needs to be displayed? We are trying to display some error messages in a table and some of the messages are very short (just a few words) and some of very long

Re: [Interest] Any idea why QAbstractItemView::selectedIndexes() is protected?

2012-07-03 Thread André Somers
Op 3-7-2012 1:17, K. Frank schreef: Hi List! I'm wondering why QAbstractItemView::selectedIndexes() is protected, rather than public. By way of comparison, QAbstractItemView::currentIndex() is public, and the two functions really don't seem so different. Would anyone have some thoughts on

Re: [Interest] Any idea why QAbstractItemView::selectedIndexes() is protected?

2012-07-04 Thread André Somers
Op 3-7-2012 17:02, K. Frank schreef: Hello André! Thanks for the further explanation. You're welcome. On Tue, Jul 3, 2012 at 10:10 AM, André Somers an...@familiesomers.nl wrote: Op 3-7-2012 15:48, K. Frank schreef: Hi André! Thank you for the reply and the pointer to QItemSelectionModel

Re: [Interest] QLIneEdit Bug still valid ?

2012-07-19 Thread André Somers
Op 17-7-2012 9:45, Tony Rietwyk schreef: Hi, A much easier solution to disconnecting the signals, is to set a flag before calling setText, then check that in the slot. Hope that helps, Tony Or use QObject::blockSignals(true) on the line edit before you set the text, and the same with

Re: [Interest] QLIneEdit Bug still valid ?

2012-07-19 Thread André Somers
Op 19-7-2012 11:54, Bo Thorsen schreef: Den 17-07-2012 10:22, André Somers skrev: Op 17-7-2012 9:45, Tony Rietwyk schreef: Hi, A much easier solution to disconnecting the signals, is to set a flag before calling setText, then check that in the slot. Hope that helps, Tony Or use

Re: [Interest] When is QDir::Drives useful?

2012-07-30 Thread André Somers
How about the root directory on windows, for instance? André Op 31 jul. 2012 om 07:21 heeft Nikos Chantziaras rea...@gmail.com het volgende geschreven: According to: http://qt-project.org/doc/qt-4.8/qdir.html#Filter-enum QDir::Drives lists drives. Which directory would you have to

Re: [Interest] When is QDir::Drives useful?

2012-07-31 Thread André Somers
:26, André Somers wrote: How about the root directory on windows, for instance? André Op 31 jul. 2012 om 07:21 heeft Nikos Chantziaras rea...@gmail.com het volgende geschreven: According to: http://qt-project.org/doc/qt-4.8/qdir.html#Filter-enum QDir::Drives lists drives. Which

Re: [Interest] When is QDir::Drives useful?

2012-07-31 Thread André Somers
Op 31-7-2012 8:30, André Somers schreef: Op 31-7-2012 8:20, Nikos Chantziaras schreef: Nope. I just tested it under Windows XP and 7. The contents of / are the contents of C:/. Which makes sense, since Windows completely lacks the concept of a single root directory. So I guess the question

[Interest] QMenu styling

2012-08-07 Thread André Somers
Hi, I am trying to style a QMenu and add an additional, menu-specific icon to the left of the actual items in the menu, like in the mockup here: https://dl.dropbox.com/u/16442531/menumockup.png I subclassed QMenu to overwrite its paintEvent to render the icon and the vertical line, which

Re: [Interest] [solved] Re: advice on debugging a qnetworkaccessmanager/qnetworkreply issue

2012-08-09 Thread André Somers
Op 9-8-2012 1:02, Justin Ferguson schreef: Is there a clean manner for using the QNAMs finished(qnetworkreply*) signal and then determining whose reply it is and calling its handler? Everything I can think of seems sorta clunky and error prone; or is there a synchronous QNAM-like class? Having

Re: [Interest] Digia to acquire Qt from Nokia

2012-08-09 Thread André Somers
Op 9-8-2012 10:42, Thiago Macieira schreef: On quinta-feira, 9 de agosto de 2012 11.24.37, Sivan Greenberg wrote: On Thu, Aug 9, 2012 at 11:00 AM, Thiago Macieira thiago.macie...@intel.com wrote: It's too bad that they couldn't take over the Brisbane operations too. I guess it's more of a

Re: [Interest] Digia to acquire Qt from Nokia

2012-08-09 Thread André Somers
Op 9-8-2012 13:39, gemfield schreef: Will Digia hold Qt Developer Days 2012 ? ICS and KDAB are already organizing this year. André ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Qt5 - my hopes for when the dust settles...

2012-08-16 Thread André Somers
Op 16-8-2012 15:02, Mark Summerfield schreef: On Thu, 16 Aug 2012 05:24:21 -0700 (PDT) Jason H scorp...@yahoo.com wrote: - A new model/view architecture that is a lot easier to use and which is designed from the ground up to work well with databases. I complain about it too, but I cannot

Re: [Interest] How to make a button dodge being clicked?

2012-08-16 Thread André Somers
Op 17 aug. 2012 om 02:13 heeft Lincoln Ramsay lincoln.ram...@nokia.com het volgende geschreven: On 08/17/2012 09:09 AM, ext K. Frank wrote: What would be a good strategy to make a button move to another location when approached by the mouse? Create your button as normal but don't put it

Re: [Interest] QString operator==

2012-08-22 Thread André Somers
Op 22-8-2012 13:40, Thiago Macieira schreef: On quarta-feira, 22 de agosto de 2012 13.35.19, André Somers wrote: Hmmm... Wouldn't it make sense to also check on the the d pointers actually being the same? Or is that in qMemEquals? Hint: please check before asking. Takes a couple of seconds

Re: [Interest] Proper way of updating a model?

2012-08-23 Thread André Somers
Op 22-8-2012 20:29, Stephen Chu schreef: Now I have a question on how to properly update the model. My model is a read-only representation of a database. I am using a QTreeView to hold the model. The data themselves are not tree-like but I like the visual of QTreeView better. So, you *do* have

Re: [Interest] Best way to invoke a slot after some time with QObject::sender

2012-08-28 Thread André Somers
Op 28-8-2012 8:36, Till Oliver Knoll schreef: Am 28.08.2012 um 04:10 schrieb Preet prismatic.proj...@gmail.com: Hiya, I have a project where I'm trying to asynchronously reply to a signal. So if ObjectA sends ObjectB a signal, ObjectB will send ObjectA a reply signal at some later point in

Re: [Interest] TCP ACK with QDataStream -- OR: disconnect race condition detection

2012-09-11 Thread André Somers
Op 11-9-2012 9:44, Till Oliver Knoll schreef: 2012/9/11 d3fault d3faultdot...@gmail.com: lol thanks for explaining to me what TCP is. Already knew that before making this thread... There still seem to be some mis-conceptions about what TCP *really* is (and network layers in general) on your

Re: [Interest] TCP ACK with QDataStream -- OR: disconnect race condition detection

2012-09-11 Thread André Somers
Op 11-9-2012 14:22, d3fault schreef: You haven't given any concrete reasons why I'm wrong, so I'll just assume you are until you prove otherwise (WHEEE). Repeating yourself doesn't count. Not every application protocol could use it... but a lot could. Also, responses and error codes

Re: [Interest] Access Violation using QFile and QTextStream

2012-09-14 Thread André Somers
Op 14-9-2012 14:42, Heidler, Kirstin (GE Oil Gas) schreef: Hi, thank you, I also found a different solution. I am not sure why it is working, but it does. I simply create the file object as a pointer to the file object like that: QFile *file; file = new QFile(fileName);

Re: [Interest] Problem about signals/slots in Qt 5

2012-09-18 Thread André Somers
Op 18-9-2012 14:21, Stephen Chu schreef: I like this new syntax much better since it finds signal/slot mismatches at compile time. I used to miss the connection mismatch messages in the sea of my REALLY chatty logs. And pulling my hairs wondering why something doesn't work. :) We have our own

Re: [Interest] how to run 21 threads concurrently

2012-10-04 Thread André Somers
Op 4-10-2012 15:21, Sujan Dasmahapatra schreef: I am not able to run my threads concurrently please help. How can I run 21 threads concurrently and get the job done by 8 cpus what I have in my machine. I am doing like this [code] std::vectorQFuturevoid Threads; QFuturevoid Th;

Re: [Interest] how to run 21 threads concurrently

2012-10-04 Thread André Somers
Op 4-10-2012 15:44, Sujan Dasmahapatra schreef: I want the job to be faster. if 8 cpus are executing 8 threads at a time then my processing will be fater right. I want my 8 cpus be always processing one thread each cpu simultaneously so that my process runs faster. Am i able to make you

Re: [Interest] Never ending thread: blocking GUI

2012-10-17 Thread André Somers
Op 17-10-2012 1:15, Lincoln Ramsay schreef: On 17/10/12 01:00, Sensei wrote: So, if in my main thread every time I need to search I will create a thread, a searcher, move the searcher to the new thread. You should probably just keep these objects around rather than recreating them all the

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two BackendsHi,

2012-10-24 Thread André Somers
Hi, First of all: thanks for all the insights that many of you'all here have shared in this interesting matter. I really learned something here. Op 24-10-2012 2:19, Thiago Macieira schreef: Also note that you should not implement a busy-wait loop like that, like a spinlock. At least on x86,

Re: [Interest] Model/View issue: omit model-entities in qml-view

2012-10-29 Thread André Somers
Op 29-10-2012 17:12, Tim Bienias schreef: Hey guys, let's say we have one QAbstractListModel consisting of animals in c++. There are water- and land-animals within the model. Now i want to create a view that does show (1)only the land-animals and a view with (2)only the water-animals.

Re: [Interest] How to force a repaint?

2012-11-08 Thread André Somers
Op 8-11-2012 20:59, Eric Clark schreef: Hello All, I am sorry if this sounds like a dumb question, but right now my company has locked us out of getting to the Qt documentation via our ridiculous proxy. I hate those companies, but did they even block hitting F1 in Creator? Usually, the

Re: [Interest] how to read data from a spreadsheet

2012-12-07 Thread André Somers
Op 5-12-2012 4:02, Carlos Oviedo Becerra schreef: hello friends, not like reading about QtCreator data from a spreadsheet, please who can help me I will thank you, Regards ... I need First: don't hijack somebody elses thread please. Create a new message from scratch, instead of just replying

Re: [Interest] A suggestion about replacing signals, actions and slots

2012-12-27 Thread André Somers
Op 27-12-2012 15:35, Oleg Yarigin schreef: Hello, I read http://byuu.org/articles/qt and got a question, why Qt uses slots and signals? That blog is outdated, incomplete and biased. I am not claiming Qt is without bugs, but... That stuff can be safe replaced with function pointers. I am

Re: [Interest] A suggestion about replacing signals, actions and slots

2012-12-28 Thread André Somers
Replying via the ML instead of directly as you did to me: Op 27-12-2012 17:20, Oleg Yarigin schreef: 3rd, Qt's signals and slots do a lot more than a vanilla function pointer will ever do. Or can that transparently handle threading? Queued connections, blocking if needed? Type safety? Provide

Re: [Interest] Qt 5 and filesystem

2013-01-04 Thread André Somers
Op 4-1-2013 16:17, Jason H schreef: I could be mistaken, but isn't the solution just as simple as using a QGraphicsWidgetProxy for a QFileDialog and exporting that to QML as a component. It should be like 10 lines of code, no? No, because QML 2 is not using a graphics view anymore. André

Re: [Interest] Qt 5 and filesystem

2013-01-08 Thread André Somers
Op 8-1-2013 11:59, Mark schreef: On Tue, Jan 8, 2013 at 11:14 AM, Иван Комиссаров abba...@gmail.com wrote: Sorry for the offtop, but Finder can move files since 10.7 or 10.8 - you copy files paths with Cmd+C and move (instead of copying) them with Cmd+Alt+V (in case you didn't know). My

Re: [Interest] Basic Qt Chart Widget

2013-01-15 Thread André Somers
Op 15-1-2013 16:42, Soroush Rabiei schreef: I would rather suggest contributing to an existing project instead of starting your own one (unless you have a completely new idea) (also @ Konstatin): Did either of you even read the message by William? He did this charting thing as a way to get

Re: [Interest] QThreads: There's no one way to do it right! :)

2013-01-23 Thread André Somers
Op 23-1-2013 13:08, Bo Thorsen schreef: Den 23-01-2013 08:42, Mandeep Sandhu skrev: First I thought I was doing it right Then they said you're doing it wrong (http://blog.qt.digia.com/blog/2010/06/17/youre-doing-it-wrong/) Then I thought I _finally_ got it right!! Now they say You were

Re: [Interest] Inline Searchable combbox

2013-01-30 Thread André Somers
Op 31-1-2013 6:02, Weng Xuetian schreef: Screenshot is from owncloud: http://wstaw.org/m/2013/01/31/plasma-desktopPP1246.png Owncloud provides a combobox, when it's expanded, it provides a edit field to filter the candidate result, can any one give a hint about how to implement something

Re: [Interest] ItemDelegate and word wrapping

2013-02-01 Thread André Somers
Op 1-2-2013 9:43, Bache-Wiig Jens schreef: On Feb 1, 2013, at 8:52 AM, Иван Комиссаров abba...@gmail.com wrote: Hello. I'm trying to implement a delegate with QTextOption::WrapAtWordBoundaryOrAnywhere. I copied QItemDelegate and replaced QTextOption::WordWrap where needed. Also i made small

Re: [Interest] ItemDelegate and word wrapping

2013-02-01 Thread André Somers
Op 1-2-2013 10:57, Bache-Wiig Jens schreef: On Feb 1, 2013, at 10:16 AM, André Somers an...@familiesomers.nl wrote: Op 1-2-2013 9:43, Bache-Wiig Jens schreef: On Feb 1, 2013, at 8:52 AM, Иван Комиссаров abba...@gmail.com wrote: Hello. I'm trying to implement a delegate with QTextOption

Re: [Interest] ItemDelegate and word wrapping

2013-02-04 Thread André Somers
Op 2-2-2013 9:42, Иван Комиссаров schreef: This hack has some disadvantages too. I made small investigation into a QCommonStyle and it's inherited styles to find solution for that particular feature in Qt. Is it possible to add new values to QStyleOptionViewItemV2::ViewItemFeature?

Re: [Interest] Best way to QObject-wrap simple objects

2013-02-19 Thread André Somers
Op 19-2-2013 14:19, K. Frank schreef: Hello List! Sometimes I have a simple class, maybe a POD, that I want to pump through a queued signal-slot connection. As I understand it, I need a QObject to do that. So I wrap my class in QObject. No, you don't. In fact, it is a Bad Idea(TM). In order

Re: [Interest] Styling a single QTreeWidgetItem

2013-03-06 Thread André Somers
Op 6-3-2013 16:19, Sensei schreef: Hi all, I don't know if this is possible, but how can I style a single QTreeWidgetItem? In particular, I'd like to make it look like Xcode's root project node, which is taller and with borders. (see http://i.stack.imgur.com/gc7ku.png) I've tried to use a

Re: [Interest] QActionGroup vs QButtonGroup

2013-03-12 Thread André Somers
Op 12-3-2013 15:58, Sensei schreef: On 3/11/13 3:37 PM, Bill Crocker wrote: On 03/11/2013 10:06 AM, Sensei wrote: On 3/11/13 12:47 PM, Bill Crocker wrote: Wow. A non QML posting. How refreshing. Did you remember to add /images/console.png etc. to your resources file? Ah yes. I use a

Re: [Interest] set QPushButton pixmap by stylesheet

2013-03-14 Thread André Somers
Op 14-3-2013 13:41, Hamish Moffatt schreef: Is it possible to set the name of the icon for a QPushButton (and also possibly the pixmap for a QLabel) via the stylesheet? I'm trying to centralise all the image filenames etc in the stylesheet so that I can easily choose between different

Re: [Interest] setting arbitrary properties via stylesheet (was Re: set QPushButton pixmap by stylesheet)

2013-03-15 Thread André Somers
Op 15-3-2013 2:05, Hamish Moffatt schreef: On 14/03/2013 11:52 PM, André Somers wrote: You can set any property using a style sheet, including the minimum size. Perhaps that helps already? Any property at all? How about properties of a font associated with a QLabel - for example the letter

Re: [Interest] how to block run function of QRunnable class

2013-03-19 Thread André Somers
Op 19-3-2013 14:57, K. Frank schreef: Hello Tony! I have something of a side question, below. On Tue, Mar 19, 2013 at 2:09 AM, Tony Rietwyk t...@rightsoft.com.au wrote: Hi Ken, ... // Hack to get around Qt strictness... class TSleepThread: public QThread { public: static void

Re: [Interest] QTableView

2013-03-27 Thread André Somers
Hi, First of all, please don't hijack somebody elses thread. Create a completely new message to the list instead of a reply in which you just edit the subject line. You're messing up threading. Op 27-3-2013 6:43, pengliang(??) schreef: Hi All QtableView display sql table. But I

Re: [Interest] Default delegate with QTableView and QSqlTableModel

2013-03-28 Thread André Somers
Op 27-3-2013 21:50, Tr3wory schreef: Yes I know that, but based on this: http://qt-project.org/doc/qt-4.8/qitemeditorfactory.html#standard-editing-widgets I think it should work out of the box... Why? LongLong is neither int nor unsigned int André tr3w On Wed, Mar 27, 2013 at 9:03 PM,

Re: [Interest] Default delegate with QTableView and QSqlTableModel

2013-03-28 Thread André Somers
Op 28-3-2013 11:13, Tr3wory schreef: Technically you are right, on the other hand it is really counter intuitive to not have a default editor for qlonglong if the qsqlite driver gives me that for every integer by default. It would be a perfect solution to me if I could change the default

Re: [Interest] Default delegate with QTableView and QSqlTableModel

2013-03-28 Thread André Somers
Op 28-3-2013 14:42, Tr3wory schreef: Thank you for the tip, the QIdentityProxyModel looks promising. And yes, the QSpinBox is not good enough for qlonglong in general. What about a QLineEdit with a proper input mask? Can be done. Note that you can supply your own editors to the model/views

Re: [Interest] Report designer for Qt

2013-04-04 Thread André Somers
Op 4-4-2013 12:07, Muhammad Bashir Al-Noimi schreef: Hi Guys, I opened a feature request for adding a report designer officially to Qt just like the other developing solutions but it seems that no one interested in my request in Qt bug tracker. So I'm asking you is there any one interested

Re: [Interest] QVariant cannot take custom type

2013-04-05 Thread André Somers
Op 5-4-2013 11:39, Sven Bergner schreef: Hello, you can use a custom type with QVariant by declaring it using Q_DECLARE_METATYPE ( Type ). Hope that helps. It does not. That was already in the code posted in the opening post. As noted by others, the issue lies with trying to use a QObject

Re: [Interest] Qt State Machine Framework C++

2013-05-06 Thread André Somers
Op 5-5-2013 15:52, Sean Harmer schreef: On 05/05/2013 13:54, Antonio wrote: Thanks for replying. I Will work on it. Please, if someday it is Going to Be deprecated, would be nice to know that. There is no reason at all to think it will be deprecated. It is a nice self-contained framework

Re: [Interest] Last selected row id QSqlQuery?

2013-05-22 Thread André Somers
Op 22-5-2013 10:25, Witold E Wolski schreef: How can I get efficiently the id of the last insterted row? A the moment I am using : SELECT MAX(id) from table. Which isn't efficient. How can i do it more efficiently but stay database agnostic. best Witold What's wrong with

Re: [Interest] Container members in abstract base class?

2013-05-22 Thread André Somers
Op 22-5-2013 14:25, Jonathan Greig schreef: I have an abstract base class that contains a private QHash member. There is a public function that sets the key/value in the QHash. When calling the function through a base class pointer, it segfaults when it comes to the line that sets the

Re: [Interest] Container members in abstract base class?

2013-05-22 Thread André Somers
Op 22-5-2013 16:03, Jonathan Greig schreef: BaseObject* base = (BaseObject*)item; if(base) { base-setObjectRubberPoint(key, point); } The above looks suspicious. The cast you're doing here is unsafe. Your check on base on the second line is useless, as the C-style cast you're

Re: [Interest] Container members in abstract base class?

2013-05-23 Thread André Somers
Op 22-5-2013 22:42, Jonathan Greig schreef: I did check the qobject_cast docs and noticed that, but I wasn't inheriting from QObject and haven't needed signals or slots in the items in my scene. I'm trying to keep the item classes as light as possible for speed and memory. The items are CAD

Re: [Interest] Long menus on Windows

2013-06-04 Thread André Somers
Op 31-5-2013 19:25, John Weeks schreef: We have a couple very long menus in our application (containing a list of functions in our internal programming language). On Macintosh, the menu simple runs from the top to the bottom of the screen and scrolls very quickly. On Windows, it shows as a

Re: [Interest] Apply shader effect from QtGraphicalEffects to QSGGeometryNode?

2013-06-13 Thread André Somers
Op 13-6-2013 8:46, Mark schreef: On Thu, Jun 13, 2013 at 7:56 AM, Sletta Gunnar gunnar.sle...@digia.com wrote: On Jun 12, 2013, at 9:58 PM, Mark mark...@gmail.com wrote: Hi Gunnar, I just tried your example out (from the new review link [1]) and you've truly done a amazing job! + you

Re: [Interest] QStackedWidget : hide user controls

2013-06-14 Thread André Somers
Op 14-6-2013 9:50, Etienne Sandré-Chardonnal schreef: Hi Dany, There are visible at least in preview mode. I thought the preview function was just creating the widget as it would be in its final use, but I will test in the app. If not, that's a strange behavior of the preview. It *is* for

Re: [Interest] QStackedWidget : hide user controls

2013-06-14 Thread André Somers
Hi, Please keep the discussion on the list. Op 14-6-2013 10:32, Etienne Sandré-Chardonnal schreef: OK, I'm still not convinced with the logic behind it though. There are two simple ways to preview all pages without typing a single line of code: - Change the page in designer, then start

Re: [Interest] style sheet woes

2013-06-14 Thread André Somers
Op 14-6-2013 12:33, Graham Labdon schreef: Hi I have a style sheet that sets the background colour for QDialog - QDialog { background-color: red; } My application has a QListWidget added from Designer and is created with its containing layout as the parent, Upon selecting an element

Re: [Interest] style sheet woes

2013-06-14 Thread André Somers
dialogs are still part of the application, so a style sheet set at that level *will* get applied to the dialog. André From: interest-bounces+graham.labdon=avalonsciences@qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On Behalf Of André Somers

Re: [Interest] QFileDialog is lovelier the second time around...

2013-06-18 Thread André Somers
Op 17-6-2013 19:07, Constantin Makshin schreef: 1) On Windows directories can have custom icons. Not 100% sure about other platforms. 2) Directories have at least last modification timestamp which is needed for the detailed view mode. What approach is better -- get all information at once

Re: [Interest] Terminating a QThread

2013-06-21 Thread André Somers
Op 21-6-2013 10:06, francois cellier schreef: Dear all, Even if I know that it can be dangerous to terminate a thread, I need to do it for my application. Are you really going to completely re-do the discussion you already had on the qt-project.org forums? André -- You like Qt? I am

Re: [Interest] QMap and thread-safe.

2013-07-24 Thread André Somers
Op 24-7-2013 9:29, Mandeep Sandhu schreef: On Wed, Jul 24, 2013 at 12:20 PM, André Somers an...@familiesomers.nl mailto:an...@familiesomers.nl wrote: Op 23-7-2013 13:34, Giuseppe D'Angelo schreef: On 23 July 2013 13:25, Bill Crocker william.croc...@analog.com mailto:william.croc

Re: [Interest] GUI help/opinion check boxes

2013-07-25 Thread André Somers
Op 25-7-2013 10:15, Graham Labdon schreef: Hi As part of my application the user needs to be able to select from a set of up to 64 options. Any combination is allowed and I need a method of selecting/de-selecting all of the options. As a starting point I am showing (up to) 64 check boxes

Re: [Interest] QWidget::render iincluding the frame?

2013-08-19 Thread André Somers
Op 15-8-2013 20:42, Scott Aron Bloom schreef: Is there any way to render the frame as well as the widget (assuming a QDialog) The frame is not managed or owned by Qt. It is the responsibility of the window manager. So, even though it might be possible to do on a per-platform basis, the

Re: [Interest] Hide icon in a QComboBox associated with a Model

2013-08-23 Thread André Somers
Op 23-8-2013 17:58, Scott Aron Bloom schreef: Create a proxy model (derive from QSortFilterProxyModel if you have never created one and don't have any sorting or filtering turned on) and override the data method, returning QVariant for the icon role. Then set the source model for the proxy

Re: [Interest] Hide icon in a QComboBox associated with a Model

2013-08-26 Thread André Somers
Op 24-8-2013 4:42, Scott Aron Bloom schreef: If you are on Qt 5 yes J It was introduced in 4.8 actually... André *From:*interest-bounces+scott.bloom=onshorecs@qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] *On Behalf Of *André Somers *Sent:* Friday

Re: [Interest] 64 bit capable QVector

2013-09-03 Thread André Somers
Op 3-9-2013 16:12, Michael Jackson schreef: I am curious as to what Qt class (if any) folks use for memory allocations larger then 2^31 elements? We write some software that analyzes large scientific data sets and I am trying to figure out if I should stick with std::vector in a few spots

Re: [Interest] Semi-OT: Was Nokia net good or bad for Qt?

2013-09-27 Thread André Somers
Op 26-9-2013 20:13, K. Frank schreef: Hello List! This whole Elop thing got me thinking about the history of Qt and Nokia. Nothing's perfect, of course, and everything's a mixed bag, but, all in all, do people think Nokia's involvement with Qt ended up helping Qt or not? I started using

Re: [Interest] Looking for third party Qt libraries

2013-10-08 Thread André Somers
Op 7-10-2013 11:43, Cornelius Schumacher schreef: Are you releasing a Qt-based library? Do you know of libraries, which aren't listed yet? Here is my own private list of useful Qt libraries: Reports *NCReport* Report engine designer module commercial http://www.nocisoft.com/ncreport.html

Re: [Interest] Looking for third party Qt libraries

2013-10-09 Thread André Somers
Op 9-10-2013 7:34, Cornelius Schumacher schreef: On Tuesday 08 October 2013 06:48:38 BRM wrote: Cool - I don't have any at this time, but it's good information to have and I'm sure others here do; and yes, listing the license is perhaps the one change that would be good to do - even for the

Re: [Interest] Long running application with database connection

2013-10-10 Thread André Somers
Op 10-10-2013 8:51, Marc Schmitzer schreef: On 10/09/2013 04:46 PM, S R wrote: In a similar situation, if I recall correctly, we elected to open the database connection each time we needed it. Through testing we found that connection pooling in the the underlying infrastructure (windows,

Re: [Interest] Looking for third party Qt libraries

2013-10-11 Thread André Somers
Op 10-10-2013 19:04, Konstantin Tokarev schreef: 09.10.2013, 10:21, André Somers an...@familiesomers.nl: Op 9-10-2013 7:34, Cornelius Schumacher schreef: On Tuesday 08 October 2013 06:48:38 BRM wrote: Cool - I don't have any at this time, but it's good information to have and I'm

Re: [Interest] Making a popup QLineEdit

2013-10-18 Thread André Somers
Op 18-10-2013 14:05, Etienne Sandré-Chardonnal schreef: Dear all, I want to do the following GUI element : a QLineEdit which popups when some control is clicked, allowing the user for text input, and which hides when enter is pressed, or when the user clicks outside the QLineEdit. How can

Re: [Interest] Qt based LRU container?

2013-10-20 Thread André Somers
Hi, I imagine this did not surface before, is because the need to get notified seems quite rare to me. Usually, a cache is store-and-forget. However, to solve your problem, I would create a thin wrapper object around the value to store for the notification part, and store that in your cache.

Re: [Interest] Making a popup QLineEdit

2013-10-22 Thread André Somers
with focus. Etienne Le vendredi 18 octobre 2013, André Somers a écrit : Try popping up a QLineEdit with parent set to 0, and call this on it: myLineEdit-setWindowFlags(Qt::ToolTip|Qt::Window); You can also play around with other window flags of course. Obviously, you will need

Re: [Interest] QTabBar events

2013-10-23 Thread André Somers
Op 23-10-2013 11:44, Clément Geiger schreef: Wild guess: install an event filter on it ? And use findChildQTabBar *() on the tab widget if you dont have direct access to it. Hope that helps Clément 2013/10/23 Graham Labdon graham.lab...@avalonsciences.com

  1   2   3   4   >