Re: [Interest] Dynamic translation

2015-07-27 Thread Graham Labdon
July 2015 07:49 To: interest@qt-project.org Subject: Re: [Interest] Dynamic translation Am 24.07.2015 um 16:38 schrieb Graham Labdon: > Hi My Qt application supports dynamic translation IE the user can > change languages whilst the application is running > > Now I have a need to find

Re: [Interest] Dynamic translation

2015-07-27 Thread Graham Labdon
[mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On Behalf Of André Somers Sent: 27 July 2015 07:38 To: interest@qt-project.org Subject: Re: [Interest] Dynamic translation Op 24-7-2015 om 16:38 schreef Graham Labdon: > Hi > My Qt application supports dynamic translation IE th

[Interest] Dynamic translation

2015-07-24 Thread Graham Labdon
Hi My Qt application supports dynamic translation IE the user can change languages whilst the application is running Now I have a need to find the English equivalent of a translated string and don't seem to be able to find a way For example Given QString s = tr("Hello"); I need to be able to

[Interest] QDir::EntryList

2015-07-24 Thread Graham Labdon
Hi If I want to get a list of all files and sub folders in a folder, but excluding dot and dotdot I thought that this should do the trick QDir myDir("somepath"); QStringList files = myDir.entryList(QDir::NoDotAndDotDot); However, this seems to return no strings Removing the filter returns the l

[Interest] List widget and drag and drop

2015-07-13 Thread Graham Labdon
Hi I have a QListWidget that I need to support drag and drop At the moment I have it so that I can drag an item from an different widget and have it added to the list But when I drag an item internal to the widget the target of the drop seems to be deleted from the list I need a list widget tha

[Interest] Simple sqlite database

2015-06-15 Thread Graham Labdon
Hi I am trying to open a sqlite database and display it in a QTableView but it is not working. Here is my code #include "SimpleDb.h" #include #include #include SimpleDb::SimpleDb(QWidget *parent) : QMainWindow(parent) { ui.setupUi(this); m_qsqlDatabase = QSqlDatabase::

Re: [Interest] SQLite

2015-05-28 Thread Graham Labdon
Hi Bo It would be really interesting to see your sources and I would be grateful if you could email them to me Thanks Graham -Original Message- From: Bo Thorsen [mailto:b...@vikingsoft.eu] Sent: 27 May 2015 21:56 To: interest@qt-project.org; Graham Labdon Subject: Re: [Interest

Re: [Interest] SQLite

2015-05-27 Thread Graham Labdon
Thanks -Original Message- From: interest-bounces+graham.labdon=avalonsciences@qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On Behalf Of André Somers Sent: 27 May 2015 09:52 To: interest@qt-project.org Subject: Re: [Interest] SQLite Graham

[Interest] SQLite

2015-05-27 Thread Graham Labdon
Hi I am planning to use a SQLite database in my application to store application data. The application is large and complex so we are taking a phased delivery approach. This will mean that the structure of the database will change over time and that we need to provide backwards compatibility. So

[Interest] sqlite

2015-04-17 Thread Graham Labdon
Hi My application makes use of an sqlite database that needs to be shared amongst multiple instantiations of the application. Can anyone please suggest how I can implement this such that if one instantiation of the application updates the database then any other instantiations that are running get

Re: [Interest] QLockFile

2015-02-23 Thread Graham Labdon
André Somers Sent: 23 February 2015 11:12 To: interest@qt-project.org Subject: Re: [Interest] QLockFile Graham Labdon schreef op 23-2-2015 om 12:06: > Hi > > It seems that I needed to do a removeStaleLockFile when I had previously > stopped my program via the debugger. > > I can

Re: [Interest] QLockFile

2015-02-23 Thread Graham Labdon
February 2015 10:44 To: interest@qt-project.org Subject: Re: [Interest] QLockFile Graham Labdon schreef op 23-2-2015 om 11:36: > Hi > > QString path = "C:\jobs\Test1\job.xcfg"; QFile file(path); > > bool res = file.open(QIODevice::WriteOnly); > > here res is true But, th

[Interest] QLockFile

2015-02-23 Thread Graham Labdon
Hi I am trying to use QLockFile in a function that receives a file path as a QString. When I pass the string directly to the constructor of QLockFile and the call tryLock it always fails. However, if I hard code the string the lock succeeds (although I get compiler warnings about unknown esca

Re: [Interest] QsqlTableModel

2015-02-18 Thread Graham Labdon
There are no other queries -Original Message- From: Jason H [mailto:jh...@gmx.com] Sent: 18 February 2015 14:07 To: Graham Labdon Cc: Interest@qt-project.org Subject: Re: [Interest] QsqlTableModel > From: "Graham Labdon" > > Hi > I am attempting to use QSqlTab

[Interest] QsqlTableModel

2015-02-18 Thread Graham Labdon
Hi I am attempting to use QSqlTableModel to delete rows from an Sqlite database. - model->select(); bool b = model->removeRows(0,200); model->submitAll(); The return value is false, so I thought I would get the last error using QSqlError e = model->lastError(); However,

[Interest] QSqlDatabase

2015-02-04 Thread Graham Labdon
Hi I am just starting to explore Qt support for databases and have this as a first attempt to open a data base QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE"); db.setHostName("bigblue"); db.setDatabaseName("flightdb"); db.setUserName("acarlson"); db.s

[Interest] QFileDialog

2015-01-14 Thread Graham Labdon
Hi In my application I want that all file dialogs set the DontUseNativeDialog flag. Is this possible by using style sheets or do I have to subclass file dialog and make sure that developers use this subclass? Is there a better way Thanks for your time _

Re: [Interest] how to debug a Qt Designer plugin

2014-12-11 Thread Graham Labdon
st-bounces+tony=rightsoft.com...@qt-project.org<mailto:interest-bounces+tony=rightsoft.com...@qt-project.org> [mailto:interest-bounces+tony=rightsoft.com...@qt-project.org] On Behalf Of Graham Labdon Sent: Thursday, 11 December 2014 3:28 AM To: Interest@qt-project.org<mailto:Interest@qt-p

[Interest] how to debug a Qt Designer plugin

2014-12-10 Thread Graham Labdon
Hi I have developed some designer plugins that are working nicely. Now I have created another but cannot get it to work. Within designer I see the following when I do Help->about Plugins - Failed Plugins C:\Qt\Qt5.3.0\5.3\msvc2012_opengl\plugins\designer\QtDesignerWidgets.dll Cannot lo

[Interest] Styled tabs

2014-09-02 Thread Graham Labdon
Hi I have a style sheet for QTabWidget and QTabBar that looks ok except that I cannot figure out how to make the tab width dependant on the text that it is displaying. Currently I have this as a fixed value but when I add a new tab with a wider label I have to adjust the style sheet. Is there a

[Interest] get english translation

2014-09-01 Thread Graham Labdon
Hi My application is internationalized, however, in some circumstances I need the English version of the string no matter what translator is being used. Anyone have any suggestions on how to achieve this? Thanks ___ Interest mailing list Interest@qt-pro

Re: [Interest] Qt Designer Plugin

2014-08-06 Thread Graham Labdon
DOH It seems that I forgot to close the xml tags correctly -Original Message- From: interest-bounces+graham.labdon=avalonsciences@qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On Behalf Of Graham Labdon Sent: 06 August 2014 08:47 To

[Interest] Qt Designer Plugin

2014-08-06 Thread Graham Labdon
Hi I have developed a Qt Designer plugin that works. However, as the plugin code lives in a namespace this is displayed in when Qt Designer is run. I read about the 'displayname' attribute that can be set in the domXml method. When I use it, however, my custom widget doe not show up in Qt Designe

[Interest] Main Window and tab bar - possible bug

2014-07-28 Thread Graham Labdon
Hi Can someone confirm that the following behavior is expected or whether it is a bug I create a main window and add some docked widgets At various points in the code I have something like QList tabBarList = findChildren(); QTabBar* tabBar = NULL; if (!tabBarList.isEmpty(

Re: [Interest] Tabbed Dock Widgets

2014-07-25 Thread Graham Labdon
s can be achieved? Thanks -Original Message- From: interest-bounces+graham.labdon=avalonsciences@qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On Behalf Of Paul Miller Sent: 24 July 2014 14:49 To: interest@qt-project.org Subject: Re: [Interest] Tabbe

Re: [Interest] Tabbed Dock Widgets

2014-07-24 Thread Graham Labdon
net...@qt-project.org] On > Behalf Of Graham Labdon > Sent: Thursday, July 24, 2014 12:29 > To: interest@qt-project.org > Subject: [Interest] Tabbed Dock Widgets > > Hi > In my application I have a set of docked widgets that are all tabbed. > I have a menu to which I have add

[Interest] Tabbed Dock Widgets

2014-07-24 Thread Graham Labdon
Hi In my application I have a set of docked widgets that are all tabbed. I have a menu to which I have added the action associated with the docked widget that enables me to toggle the viability of the widgets. This all works fine except for one niggle. Say I have 2 out of 3 of my widgets on displ

Re: [Interest] Application Plugins

2014-07-23 Thread Graham Labdon
:38 Cc: interest@qt-project.org Subject: Re: [Interest] Application Plugins Am Wed, 23 Jul 2014 09:05:45 + schrieb Graham Labdon : > Hi thanks for your reply > I have stepped through the code with the debugger and it reports that > the specified module could not be found This project

Re: [Interest] Application Plugins

2014-07-23 Thread Graham Labdon
-bounces+graham.labdon=avalonsciences@qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On Behalf Of Bo Thorsen Sent: 23 July 2014 09:22 To: interest@qt-project.org Subject: Re: [Interest] Application Plugins Den 22-07-2014 17:09, Graham Labdon skrev: >

[Interest] Application Plugins

2014-07-22 Thread Graham Labdon
Hi I am developing a set of plugins for my Qt application using VS 2012 When I created the project I selected Qt Library as the project type, but when I load the library with QPluginLoader the 'instance' method failed. I then created another VS project using the 'Qt Application' as the project ty

[Interest] Tabbed Dock Widgets

2014-06-25 Thread Graham Labdon
Hi I have an application with a couple of dock widgets and have used tabifyDockWidget to have them show up as tabbed dock widgets. I have set the allowed areas for both to be Qt:: BottomDockWidgetArea and both are floatable. Now when I float one of the dock widgets I am able to redock it to botto

[Interest] Dock WIdgets

2014-06-23 Thread Graham Labdon
Hi I am investigating the behaviour of dock widgets. I am trying to achieve the following - 1. Have a set of tabbed dock widgets positioned at the bottom of mainWindow 2. Have each of the tabbed dock widgets floatable but not moveable 3. Have the dock widgets always take up the entire space of the

Re: [Interest] Design of 'pluginable' application

2014-05-27 Thread Graham Labdon
:04 To: Graham Labdon; Interest@qt-project.org Subject: RE: Design of 'pluginable' application > -Original Message- > From: interest-bounces+kai.koehne=digia@qt-project.org > [mailto:interest-bounces+kai.koehne=digia@qt-project.org] On > Behalf Of Graham Labdo

[Interest] Design of 'pluginable' application

2014-05-27 Thread Graham Labdon
Hi I am designing an application built around plugins. I know how to create plugins and read them in at run time, but now I need a way of invoking the signal/slot mechanism between them. For example, in a simple scenario I have plugin1 that has a slot for processing a signal the plugin2 emits. Pl

[Interest] moc not moccing

2014-05-19 Thread Graham Labdon
Hi If I declare a class in a cpp file - #include class NewTest : public QObject { Q_OBJECT private slots: void s1(); }; void NewTest::s1() { } #include "NewTest.moc" The moc compiler is not invoked However, if I declare a constructor for NewTest it is Can an

[Interest] QTest documentation

2014-05-12 Thread Graham Labdon
Hi Is there any documentation concerning the xml file format produced by the QTest module? Thanks ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] QFileSystemWatcher

2014-04-01 Thread Graham Labdon
Thanks for the info -Original Message- From: interest-bounces+graham.labdon=avalonsciences@qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On Behalf Of Koehne Kai Sent: 01 April 2014 11:24 To: Koehne Kai; sarah jones; interest@qt-project.org S

[Interest] understanding QCompleter

2014-03-28 Thread Graham Labdon
Hi Please help to understand QCompleter Here is the code used to set up the completer m_completer = new QCompleter(this); m_fileSystemModel = new QFileSystemModel(m_completer); m_fileSystemModel->setRootPath(""); m_completer->setModel(m_fileSystemModel); m_

[Interest] QCompleter

2014-03-28 Thread Graham Labdon
Hi I am trying to get QCompleter to behave as follows - complete folder names but only show files with a given extension So for example C:\ - user sees all folders under C C:\my - user sees all folders that match C:\myFolder\a - user sees all folders that match + any files that match a*.myext I h

[Interest] efficient drawing advice

2014-03-26 Thread Graham Labdon
Hi My application needs to display a series of 'traces'. Each trace will consist of 5000+ points and there can be up to 50 traces. I would be grateful of some pointers on how to do this in the most efficient way - QPainter on a widget Use of OpenGL QGraphicsScene Which of these will be the most ef

Re: [Interest] QThread

2014-03-24 Thread Graham Labdon
william.croc...@analog.com schreef op 24-3-2014 13:34: > On 03/24/2014 08:10 AM, Graham Labdon wrote: >> Thanks for that - my ui is now responsive What is the correct way to >> stop my thread running? >> I tried m_thread->exit() but it still continues >> > Ha

Re: [Interest] QThread

2014-03-24 Thread Graham Labdon
don=avalonsciences@qt-project.org] On Behalf Of André Somers Sent: 24 March 2014 12:06 To: interest@qt-project.org Subject: Re: [Interest] QThread Graham Labdon schreef op 24-3-2014 12:38: > Hi > I am experimenting with QThreads > The basic idea is to have a thread performing some task a

[Interest] QThread

2014-03-24 Thread Graham Labdon
Hi I am experimenting with QThreads The basic idea is to have a thread performing some task and to have a button on the UI that can stop this operation So I have a class that will perform the operation called GeneratorThread that has a start slot In the main ui class I create an instance of the

Re: [Interest] QDialog + DialogCode

2014-03-07 Thread Graham Labdon
Hi My bad inclusion error -Original Message- From: interest-bounces+graham.labdon=avalonsciences@qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On Behalf Of Graham Labdon Sent: 07 March 2014 14:43 To: Interest@qt-project.org Subject

[Interest] QDialog + DialogCode

2014-03-07 Thread Graham Labdon
Hi I have just started to use Qt 5.2.1 and have run into a problem with this code - MyDialog d; if (d.exec() == QDialog::Accepted) { } This is because in QDialog the DialogCode enum has been made private Does anyone know if this was intentional or a bug? If it was intentional how is the return

Re: [Interest] QTreeView and context menu

2014-02-27 Thread Graham Labdon
Thanks for the hints From: Clément Geiger [mailto:clement.gei...@gmail.com] Sent: 27 February 2014 13:57 To: Graham Labdon Cc: Interest@qt-project.org Subject: Re: [Interest] QTreeView and context menu Hello Graham, You can use the contextMenuPolicy Qt::CustomContextMenu. In that case, when

[Interest] QTreeView and context menu

2014-02-27 Thread Graham Labdon
Hi I have developed a class derived from QAbstractItemModel and am using it to display data in a QTreeView. I want to display a context menu when the user right clicks on an item in the tree. The contents of this menu are dependent on which item in the tree has bee clicked and the result of the

Re: [Interest] Adding a QStyledDelegate to a tree view

2014-02-21 Thread Graham Labdon
: [Interest] Adding a QStyledDelegate to a tree view Graham Labdon schreef op 21-2-2014 12:51: > Hi > I have a tree view that renders data contained in a class derived from > QAbstractItemView, now I want to add a QStyledItemDelegate. > So I call > > m_treeView-&g

[Interest] Adding a QStyledDelegate to a tree view

2014-02-21 Thread Graham Labdon
Hi I have a tree view that renders data contained in a class derived from QAbstractItemView, now I want to add a QStyledItemDelegate. So I call m_treeView->setItemDelegate(new SessionStyledDelegate(this)); But none of the methods in my delegate get called. Is there anything else that I

Re: [Interest] QtProperty System

2014-02-21 Thread Graham Labdon
Ok Thanks -Original Message- From: Bo Thorsen [mailto:bthor...@ics.com] Sent: 21 February 2014 11:33 To: Graham Labdon; Interest@qt-project.org Subject: Re: [Interest] QtProperty System Den 21-02-2014 09:01, Graham Labdon skrev: > Hi > I have been reading about Qt's property

[Interest] QtProperty System

2014-02-21 Thread Graham Labdon
Hi I have been reading about Qt's property system, in particular the NOTIFY optional specifier. Can NOTIFY be used with non Qml/QtQuick applications? Thanks ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/i

Re: [Interest] QMetaType::metaObjectForType

2014-02-17 Thread Graham Labdon
Thanks! -Original Message- From: Stephen Kelly [mailto:stephen.ke...@kdab.com] Sent: 17 February 2014 10:06 To: Graham Labdon Cc: interest@qt-project.org Subject: Re: [Interest] QMetaType::metaObjectForType On Monday, February 17, 2014 09:47:20 you wrote: > Hi > Thanks for your

Re: [Interest] QMetaType::metaObjectForType

2014-02-17 Thread Graham Labdon
Of Stephen Kelly Sent: 17 February 2014 09:41 To: interest@qt-project.org Subject: Re: [Interest] QMetaType::metaObjectForType On Monday, February 17, 2014 09:37:00 Graham Labdon wrote: > Hi > > I am trying to use QMetaType::metaObjectForType but it is always > returning NULL > &g

[Interest] QMetaType::metaObjectForType

2014-02-17 Thread Graham Labdon
Hi I am trying to use QMetaType::metaObjectForType but it is always returning NULL I have attached my class declaration and would be grateful if anyone can explain why I am getting a NULL return value Many thanks Class.h - class Widget : public QWidget { Q_OBJECT public: Q_INVOKABLE Wi

Re: [Interest] metaObject from class name

2014-02-14 Thread Graham Labdon
Ok Thanks From: Keith Gardner [mailto:kreios4...@gmail.com] Sent: 14 February 2014 15:21 To: Jason H Cc: Graham Labdon; interest@qt-project.org Subject: Re: [Interest] metaObject from class name If you register the class with QMetaType with Q_DECLARE_METATYPE(Class*), you can then call

[Interest] metaObject from class name

2014-02-14 Thread Graham Labdon
Hi In my application I have a class name as a string This is the name of a class derived from QObject. Now what I would like to do is the get metaObject for this class from the string Is this at all possible? Many thanks ___ Interest mailing list Inte

[Interest] QAbstractItemModel

2014-02-10 Thread Graham Labdon
Hi I have just started with QAbstractItemModel and have some doubts as to whether I am doing things in the correct way. I have class that (amongst other things) is storing a set of data that I want to display in a QTreeView. So I made a model class derived from QAbstractItemModel and have the

[Interest] Translation of Q_PROPERTY

2014-02-10 Thread Graham Labdon
Hi I am trying to develop a property editor based on the Q_PROPERTY declarations in a class. I have managed to get most of this working using a class based on QAbstactItemModel, however, I need the property names to be translatable. Does anyone know whether this will be possible? Thanks

Re: [Interest] QtThread

2014-01-14 Thread Graham Labdon
Thanks everyone I am beginning to understand -Original Message- From: interest-bounces+graham.labdon=avalonsciences@qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On Behalf Of Sze Howe Koh Sent: 13 January 2014 15:27 To: interest@qt-project.o

[Interest] QtThread

2014-01-13 Thread Graham Labdon
Hi I have been reading about QtThread and there seems to be a lot of discussion about how to correctly use this class. i.e. should developers derive from QtThread or provide an QObject and move this object to a thread. The examples provided with Qt5 derive from QtThread whereas there is a lot of

[Interest] QFileSystemWatcher - possible bug

2013-12-12 Thread Graham Labdon
Hi I have added a path to a QFileSystemWatcher object to detect when a folder is added to an initial folder. I have connected the directoryChanged signal and indeed this gets called when a folder is added to the initial folder. now want to add a watch for the added folder so in my slot I get a li

Re: [Interest] cannot find entry point

2013-12-10 Thread Graham Labdon
Hi Just discovered it was a windows path issue!! DOH From: interest-bounces+graham.labdon=avalonsciences@qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On Behalf Of Graham Labdon Sent: 10 December 2013 14:19 To: interest@qt-project.org Subject

[Interest] cannot find entry point

2013-12-10 Thread Graham Labdon
Hi I am working in a development team of 4 engineers and we each have the same development environment- VS2012 Qt5.1.1 Windows 7 If one of us compiles an application and then copies the executable to another's machine it will not run. It complains about not being able to find entry points in th

Re: [Interest] using designer plugin in application

2013-12-03 Thread Graham Labdon
MyLabel.cpp and MyLabel.h as existing items and build Thanks for your input From: Harish Surana [mailto:suran...@gmail.com] Sent: 03 December 2013 11:42 To: Graham Labdon Cc: interest@qt-project.org Subject: Re: [Interest] using designer plugin in application I would say first try to run this

Re: [Interest] using designer plugin in application

2013-12-03 Thread Graham Labdon
tained on those platforms, and has no side effects on other platforms. For example, the World Time Clock Plugin example exports a custom widget class with the following declaration: class QDESIGNER_WIDGET_EXPORT WorldTimeClock : public QWidget { Q_OBJECT ... }; On Tue, Dec

Re: [Interest] using designer plugin in application

2013-12-03 Thread Graham Labdon
om: Harish Surana [mailto:suran...@gmail.com] Sent: 03 December 2013 10:20 To: Graham Labdon Cc: interest@qt-project.org Subject: Re: [Interest] using designer plugin in application Yes it is technically possible to make the widgets accessible to Qt Designer without linking widgets dll against QtDes

[Interest] using designer plugin in application

2013-12-03 Thread Graham Labdon
Hi I have developed a number of Qt Designer plugins and can use them in my applications. But obviously I need my apps to link against the plugin library which means when I deploy the application I need to deploy the plugin library as well. What I would like is for widget classes to be compiled in

Re: [Interest] Animation Framework

2013-12-02 Thread Graham Labdon
Framework On 02 Dec 2013, at 16:40, Graham Labdon wrote: > Hi > If I have a group of animations and have added them to a group - > QPropertyAnimation *Animation1 = new > QPropertyAnimation(widget1, "pos"); > QPropertyAn

[Interest] Animation Framework

2013-12-02 Thread Graham Labdon
Hi If I have a group of animations and have added them to a group - QPropertyAnimation *Animation1 = new QPropertyAnimation(widget1, "pos"); QPropertyAnimation *Animation2 = new QPropertyAnimation(widget2, "pos"); QParallelA

[Interest] Qt Designer plugins

2013-12-02 Thread Graham Labdon
Hi I am trying to make a library with several Qt Designer plugins following the instructions here http://qt-project.org/doc/qt-5.0/qtdesigner/qdesignercustomwidgetcollectioninterface.html When compiling I am getting this error - mycustomwidgets.cpp(17): error C2338: Old plugin system used 1>mycus

Re: [Interest] Designer plugins

2013-11-29 Thread Graham Labdon
I was aware of that I have other plugins that work well, but I cannot debug the one I am currently working on From: Joseph Crowell [mailto:joseph.w.crow...@gmail.com] Sent: 29 November 2013 11:05 To: Graham Labdon Subject: Re: [Interest] Designer plugins For a plugin to show up in Designer

[Interest] Designer plugins

2013-11-29 Thread Graham Labdon
Hi I am developing a plugin for Qt Designer and wonder if anyone has any tips for debugging it. For some reason my plugin does not appear in Qt Designer so there must be a problem in the dll but I don't know how to attempt the debug the problem Any help would be appreciated Thanks

[Interest] Desinger plugins

2013-11-27 Thread Graham Labdon
Hi I have developed 2 designer plugins 1 is a container based on stack widget and the other is based on a QLabel. I can use them both individually but if I place my label based widget on a stacked widget page I get errors of the this nature - QPainter::begin: A paint device can only be painted b

[Interest] Qt Designer container plugin

2013-11-27 Thread Graham Labdon
Hi If I add a QStackedWidget in designer I get a means to change pages (little black triangle) I have a developed a multi page designer plugin and when I use the extension I do not get the triangles to change pages. Is this expected behaviour or how can I get them to appear? Thanks ___

Re: [Interest] Help understanding style sheets

2013-11-26 Thread graham labdon
Hi Just found I need to implement paintEvent in my custom class From: graham.lab...@hotmail.co.uk To: interest@qt-project.org Date: Tue, 26 Nov 2013 13:43:06 + Subject: [Interest] Help understanding style sheets Hi In QDesigner I have a main form containing 1 widget. I am able to set the

[Interest] Help understanding style sheets

2013-11-26 Thread graham labdon
Hi In QDesigner I have a main form containing 1 widget. I am able to set the style sheet so that it has a border image – border-image: url(:/TestStackedWidget/EMU Index Background.png); This works and I get a border image displayed But I want this widget to be one of my custom widget

[Interest] Re using graphics effects

2013-11-26 Thread Graham Labdon
Hi I have applied a graphics effect to a widget - QGraphicsOpacityEffect* opacityEffect = new QGraphicsOpacityEffect(this); // make sure to create using new, since effect has to be alive as long as the target widget is using it. opacityEffect->setOpacity(0.0); // initially widget

Re: [Interest] animation problems

2013-11-26 Thread Graham Labdon
Subject: Re: [Interest] animation problems Mitch Curtis schreef op 26-11-2013 9:59: > On 11/25/2013 03:30 PM, Nurmi J-P wrote: >> On 25 Nov 2013, at 14:57, Graham Labdon >> wrote: >> >>> Hi >>> I am trying to animate the movement of one of my widgets I have

[Interest] Setting Widget opacity

2013-11-26 Thread Graham Labdon
Hi I want to set the window opacity of some widgets so I started with ui.buttonLabel_4->setWindowOpacity(0.0); which had no effect then I tried QGraphicsOpacityEffect* opacityEffect = new QGraphicsOpacityEffect(this); // make sure to create using new, since effect has to be alive as long as th

Re: [Interest] animation problems

2013-11-25 Thread Graham Labdon
] animation problems On 25 Nov 2013, at 14:57, Graham Labdon wrote: > Hi > I am trying to animate the movement of one of my widgets I have a > simple Qt app consists of a main window with a label (done in > QDesigner) The code to move the label is > QPropertyAnimation ani

[Interest] animation problems

2013-11-25 Thread Graham Labdon
Hi I am trying to animate the movement of one of my widgets I have a simple Qt app consists of a main window with a label (done in QDesigner) The code to move the label is QPropertyAnimation animation(ui.label,"geometry"); animation.setDuration(1); animation.setStartVal

Re: [Interest] change time delay of tool tips

2013-11-25 Thread Graham Labdon
+graham.labdon=avalonsciences@qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On Behalf Of André Somers Sent: 25 November 2013 10:33 To: interest@qt-project.org Subject: Re: [Interest] change time delay of tool tips Graham Labdon schreef op 25-11-2013 11:11

Re: [Interest] change time delay of tool tips

2013-11-25 Thread Graham Labdon
-bounces+graham.labdon=avalonsciences@qt-project.org] On Behalf Of Graham Labdon Sent: 25 November 2013 10:09 To: Nurmi J-P; Interest@qt-project.org Subject: Re: [Interest] change time delay of tool tips Thanks for the hints -Original Message- From: interest-bounces+graham.labdon

Re: [Interest] change time delay of tool tips

2013-11-25 Thread Graham Labdon
] change time delay of tool tips On 25 Nov 2013, at 10:17, Graham Labdon wrote: > Hi > Is it possible to change the delay for the display of tooltips I have > some widgets that I would like the display of the tool tip to be quicker? > Qt 5.2 adds a bunch of ways to cont

[Interest] change time delay of tool tips

2013-11-25 Thread Graham Labdon
Hi Is it possible to change the delay for the display of tooltips I have some widgets that I would like the display of the tool tip to be quicker? Thanks ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/int

Re: [Interest] Qt Quick on desktop applications

2013-11-22 Thread Graham Labdon
My application has some rather complicated graphical aspects such as displaying large data sets as a plotted graph. Would this be possible in qml? From: Frédéric Meurou [mailto:fmeu...@wapp6.com] Sent: 22 November 2013 10:51 To: Graham Labdon Cc: Interest@qt-project.org Subject: Re: [Interest

Re: [Interest] Qt Quick on desktop applications

2013-11-22 Thread Graham Labdon
Sounds like it's worth looking at Would it be difficult to convert an existing ui to Qml? From: Frédéric Meurou [mailto:fmeu...@wapp6.com] Sent: 22 November 2013 10:38 To: Graham Labdon Cc: Interest@qt-project.org Subject: Re: [Interest] Qt Quick on desktop applications Hi Graham, IMHO,

[Interest] Qt Quick on desktop applications

2013-11-22 Thread Graham Labdon
Hi Is it viable to develop a complex desktop application using QML for the user interface? Regards ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Custom QPushButton

2013-11-22 Thread Graham Labdon
Thanks for that - I will give it a try -Original Message- From: interest-bounces+graham.labdon=avalonsciences@qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On Behalf Of Rayner Pupo Sent: 22 November 2013 03:00 To: interest@qt-project.org Sub

[Interest] Custom QPushButton

2013-11-21 Thread Graham Labdon
Hi How can I stop the appearance of a QPushButton changing when it is hovered over or pressed. I know how to change the background colour for these events by setting the appropriate stylesheet, but cannot see how I can stop them changing at all. I would appreciate some help in getting this workin

Re: [Interest] Custom QPushButton

2013-11-21 Thread Graham Labdon
color. Any idea how I can stop this happening Thanks From: williamhall...@gmail.com [mailto:williamhall...@gmail.com] On Behalf Of William Hallatt Sent: 21 November 2013 17:00 To: Graham Labdon Cc: interest@qt-project.org Subject: Re: [Interest] Custom QPushButton Hi Graham, If I remember

[Interest] background images

2013-11-20 Thread Graham Labdon
Hi I have a widget to which I want to apply a background image I have done this by using a style sheet - background-image: url(:/TestLogo/ASL2014 EMU Landscape background.jpg); background-position: top left; background-repeat: no-repeat; This is fine as far as it goes- But when the window is re-

[Interest] Assistant is slow in my application

2013-11-19 Thread Graham Labdon
Hi My application uses QAssistant as the help viewer and works well on my development machine. However, when I install the application on a target machine Assistant takes 30s to appear. Has anyone else experienced this before? Anyone got any suggestions as to why it should be slow on the target m

[Interest] correct d_ptr implementation

2013-11-11 Thread Graham Labdon
Hi I am developing a library and in Qt Tradition I want to use the d_ptr pattern. I have no previous experience of using this pattern and have a simple example working but wanted to check that my implementation is correct. To that end I have set out my classes below and would be grateful if anyone

Re: [Interest] compilation error in qdatetime

2013-11-08 Thread Graham Labdon
-project.org Subject: Re: [Interest] compilation error in qdatetime On sexta-feira, 8 de novembro de 2013 16:36:14, Graham Labdon wrote: > Hi > I amusing Qt5 with Visual Studio and one of my projects is giving the > following error > > c:\qt\qt5.1.1\5.1.1\msvc2012\include\qtcore\

[Interest] compilation error in qdatetime

2013-11-08 Thread Graham Labdon
Hi I amusing Qt5 with Visual Studio and one of my projects is giving the following error c:\qt\qt5.1.1\5.1.1\msvc2012\include\qtcore\qdatetime.h(121): error C2589: '(' : illegal token on right side of '::' 1>c:\qt\qt5.1.1\5.1.1\msvc2012\include\qtcore\qdatetime.h(121): error C2059: syntax error

Re: [Interest] Visual Studio addin and lupdate

2013-11-05 Thread Graham Labdon
It seems that the option to update all ts files in the project does not work, I am able to update the files individually from within the addin -Original Message- From: Koehne Kai [mailto:kai.koe...@digia.com] Sent: 05 November 2013 08:59 To: Graham Labdon; Interest@qt-project.org

[Interest] Visual Studio addin and lupdate

2013-11-05 Thread Graham Labdon
Hi I am using the Qt Visual Studio and for some reason when I run the lupdate tool from withing the addin my .ts files are not updated. There is no output from running lupdate and I was wondering if there are ant settings I can use to get the output from the tool so I can investigate why the .ts

[Interest] Where have my images gone?

2013-11-01 Thread Graham Labdon
Hi My project has images stored as Qt resources and I have somehow broken my project so that they are no longer displayed in my application. If I open the Qt Resource editor I can see them, I can also see the in QDesigner. When I compile the project the qrc_***.cpp file gets generated I would be

[Interest] Styling QTabWidget

2013-10-30 Thread Graham Labdon
Hi I am trying to style QTabWidget so that the tabs have rounded corners and the background colour of the tab widgets is light blue. The stylesheet I am using is - @ QTabWidget QWidget { background-color: lightblue; } QTabWidget::pane { /* The tab widget frame */ border-top: 2px soli

  1   2   >