You are not logged in.

Search results

Search results 1-20 of 1,000. There are even more results, please redefine your search.

Wednesday, November 19th 2014, 12:58pm

Author: Junior

Clickable QLabel example code build error.

Your file name is MyQlabel.h and your include is myQlabel.h Case sensitivity could be a problem for the moc to resolve.

Wednesday, October 16th 2013, 9:05pm

Author: Junior

setModel not working for QTreeView in designer

Not sure how your getting QTreeWidget when its inherited from void QAbstractItemView::setModel ( QAbstractItemModel * model ) [virtual] for QTreeView. Either your instanciation is private within your header file, or you have a miss match of classes your using (which is boggling).

Friday, August 9th 2013, 2:17pm

Author: Junior

Segmentation fault / better design

It could be that In func DBI::execute the return value is only instantiated within a function of the body and returned if everything goes well, since the function is designed to always return a type QSqlRecord. Might instantiate an empty QSqlRecord coming into the body so it always has something to return.

Tuesday, August 6th 2013, 9:56pm

Author: Junior

[SSL] Client authentication

Your hitting what seems to be an error with SSL Node where the server is hanging up on the client without bubbling up the correct diagnostic message. Hopefully you can glean something from this threadand it will lead you to a solution. Otherwise, I'm not sure myself.

Tuesday, August 6th 2013, 2:01pm

Author: Junior

Build a gui out of many other gui parts

You might want to check out the QUiLoader Class that does something like what your are wanting to do.

Tuesday, August 6th 2013, 1:57pm

Author: Junior

QLocalServer - Help to for beginner

QLocalServer ( QObject * parent = 0 ), what is (this)?

Tuesday, August 6th 2013, 1:54pm

Author: Junior

Communication between my QTApplication and another QTApplication wich i start as .exe via QProcess

You will need to look at interprocess communications like Dbus and others to perform communications between separate applications/processes.

Friday, March 22nd 2013, 2:30pm

Author: Junior

Want Expert advice from QT Genius

darshMan, Whenever you compile for a specific platform the execution/runtime is reduced, even for java. I think a bigger question for management would be development costs. I do not know what a Java license would entail but you would need to license Qt for each platform if releasing commercial. Plus the overhead of development to a different tool set (number of programmers, document editors, equipment, unit testing, etc....) it maybe that cost is a quick sway for managements decision to stay wit...

Wednesday, February 27th 2013, 4:21pm

Author: Junior

Group of QToolButtons in single QTooButton in QToolBar

You can set the QToolButton::MenuButtonPopup mode on a ToolButton and then add a QMenu loaded with the other QToolButton actions. ref: QToolButton Note: if you don't want the indicator like combo box you can check out appling a stylesheet setting to hide it.

Friday, January 11th 2013, 4:39pm

Author: Junior

MS SQL database smalldatetime field output

Since your mapping - did you try and map QDateTimeEdit so you don't have to change the type?

Friday, January 11th 2013, 1:50pm

Author: Junior

Need help in exact conversion from string to double

I'm not sure what is influencing this output because the percise was set to only 6 and not length provided in your output. The 0 on the end of 071110 isn't really needed as I can tell. Did you try with just 148366.07111 with precision 6; the output would be 148366.071110 as expected. Maybe a complier setting is causing this (just a thought).

Thursday, January 10th 2013, 3:23pm

Author: Junior

Need help in exact conversion from string to double

This worked ( Also maybe check your QLocale setting ). main.cpp Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #include <QtCore/QString> #include <QtCore/QDebug> int main() { QString str = "148366.071110"; double d = 0.0; bool ok; d = QString( str ).toDouble(&ok); if( ok ) { qDebug() << str; qDebug() << QString::number( d, 'f', 6); } else { qDebug() << "failed conversion."; } }

Friday, December 14th 2012, 1:38pm

Author: Junior

Using QWidget to display a list of images

You can use QListView and adjust the flow property from top/bottom to left/right. Guess an example of that would be helpful... example unzips into listviewflow dir cd into dir qmake -project qmake make ./listviewflow

Wednesday, November 21st 2012, 3:15pm

Author: Junior

ODBC query problem no extended characters read

I've ran across where the tick ['] can cause problems as well with some db's in the string entry, so my solution was to convert data to base64 before injection to the database and convert the data back upon retrieval. Not sure if that helps if your sharing this db with other applications. Just thought I would throw out something that worked for me. Plus it made the data unpresentable to prying eyes.

Wednesday, November 21st 2012, 2:44pm

Author: Junior

Failing to display .mp3 file inside QTreeView

For a test try this to check if the QStringList is containing the files you are wanting: Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 while (dirIt.hasNext()) { dirIt.next(); if (QFileInfo(dirIt.filePath()).isFile()) { if (QFileInfo(dirIt.filePath()).suffix() == "mp3") { m_list << dirIt.filePath(); } } // m_SystemListViewModel->setNameFilters(m_list); // in while loop? //m_SystemListViewModel->setNameFilterDisables(false); // in while loop? } qDebug() << m_list; // check contents, if good t...

Wednesday, November 21st 2012, 2:24pm

Author: Junior

changing data type parameter in qt signals

Since you are getting an int from the signal, best to do this type of casting within the function after you pass it.

Wednesday, November 21st 2012, 2:22pm

Author: Junior

custom context menu

This signal is emitted when the widget's contextMenuPolicy is Qt::CustomContextMenu, and the user has requested a context menu on the widget. I don't see where you set this policy on the QListWidget in your code presented.

Thursday, November 1st 2012, 5:51pm

Author: Junior

setupUi and using parent of an object

The first two problems are because your trying to change the central widget before the setupUi() is invoked. The statusBar is a scoping problem - I attached an example that hopefully will help you in this endeavor. The example will unzip into directory qlabel. cd into qlabel and do: qmake -project qmake make Hope it helps.

Wednesday, October 31st 2012, 1:15pm

Author: Junior

Subclassing QVector problems

QVector's value type must be an assignable data type. This covers most data types that are commonly used, but the compiler won't let you, for example, store a QWidget as a value; instead, store a QWidget *. QFile is not a assignable data type, but QFile * would be.

Wednesday, October 31st 2012, 12:35pm

Author: Junior

QProcess and Unicode Problem

Pat, I have not heard that before, but I do know using the QString class you can translate back and forth unicode, and QProcess takes QString as an arg. Example of that if it helps: main.cpp Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 #include <QtCore/QDebug> #include <QtCore/QChar> int main() { QString str = "Hello World!"; QString ustr; const QChar *char_ptr; qDebug() << " Original QString: " << str; char_ptr = str.unicode(); // unicode values of each foreach( QC...