Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.7k Topics 458.0k Posts
  • 0 Votes
    3 Posts
    4k Views
    O
    I'm troubleshooting a similarly strange issue. QT seems uses the KDE native File Chooser when I include the svg, network, and dbus modules (QT += network dbus svg) But if I remove ANY single one of those, it goes back to the QT File chooser. Its very bizarre that the svg module has any impact on that! I could see where network and dbus might have some affect, but svg? Not only that, apparently when using the KDE4 native chooser, QT receives a language change message ( "http://bugreports.qt.nokia.com/browse/QTBUG-14438":http://bugreports.qt.nokia.com/browse/QTBUG-14438 ) from the native dialog that causes it to reset the UI to the defaults initially set for the interface! This all seems horribly inconsistent and broken. Whether QT is to blame or KDE, the two need to get together and figure it out. This behavior occurs with the Kubuntu 10.04 LTS distribution and will be around for some time. Its definitely in QT's interest for KDE to continue to work properly since they are so integrated. Many people choose KDE/Kubuntu because of that fact.
  • Binary-coded decimal for Qt

    2
    0 Votes
    2 Posts
    6k Views
    K
    No library, but here are some hints: "http://www.codeguru.com/forum/showthread.php?t=296052":http://www.codeguru.com/forum/showthread.php?t=296052 . [edit: Mark up link, Tobias Hunger]
  • [Solved] Big performance issue with TreeView

    6
    0 Votes
    6 Posts
    7k Views
    F
    Good to know :)
  • QT and MySQL

    4
    0 Votes
    4 Posts
    4k Views
    S
    example? There are only for a examples, no control, no efficent, is only for understand how can you set a simple query... //Open mysqlite db @void sql::connect() { bool ok; //Connect db db = QSqlDatabase::addDatabase("QSQLITE"); db.setDatabaseName("test.sqlite"); ok = db.open(); if(!ok) { qDebug() << db.lastError(); exit(1); } } @ //Create a table and insert some value @void sql::test() { QSqlQuery query; QString str = QString("CREATE TABLE t(x INTEGER, y, z, t,PRIMARY KEY(x ASC))"); query.prepare(str); query.exec(); str = QString("INSERT INTO t VALUES(10, 5, 7, 'test'&#41;"&#41;; query.prepare(str); query.exec&#40;&#41;; }@ //Simple get some values separate from a ; in a QStringList @QStringList sql::getActionUser(qint32 iduser) { QSqlQuery query; QString str = QString("SELECT A.id,A.name,A.data FROM Action AS A WHERE A.iduser= '%1' ORDER BY A.data DESC").arg(iduser); QStringList result; result.clear(); query.setForwardOnly(1); query.prepare(str); if(query.exec&#40;&#41;&#41; { while(query.next(&#41;) { if(query.isValid()) result << query.value(0).toString() + ";" + query.value(1).toString() + ";" + query.value(2).toString(); } } query.clear(); return result; }@
  • Disable svg debug message

    8
    0 Votes
    8 Posts
    7k Views
    ?
    then I think you have to comment out that line in qsvghandler.cpp and build your own Qt svg dll :) I'd rather recommend to modify the svg (use some script if too many svgs are there) and use the Qt SVG module to render them
  • [Moved] QdateTime

    7
    0 Votes
    7 Posts
    5k Views
    Y
    [quote author="chetankjain" date="1287026068"]also isn't 0.001 micro = 1 nano ?[/quote] Silly me, yes, they are an order of magnitude different, but the question stands: Do you REALLY need that much accuracy ?
  • [Solved] double setAlphaChannel

    4
    0 Votes
    4 Posts
    3k Views
    D
    Remember that setAlphaChannel is deprecated in 4.6
  • Selecting data from mysql using qt?

    150
    0 Votes
    150 Posts
    183k Views
    L
    Yep, I will probably agree with you here. I hope this doesn't look like we are offending doforumda, because we don't.
  • [Solved] unresolved external errors: QX11Info

    9
    0 Votes
    9 Posts
    6k Views
    P
    Oh, i fixed it, LOL i just used the win32 version of it, also......io can't get the GL widget to re-size, lol, fix one thing......Oh well, might just have to use another widget
  • Manipulating Images

    4
    0 Votes
    4 Posts
    4k Views
    ?
    you can do a whole bunch of stuff on images as others have already replied. you can apply effects, you can do custom painting on top of it, or you can run through individual pixels in the image and modify them how ever you want, see one example I just created in this "wiki page":http://developer.qt.nokia.com/wiki/Manipulate_image_and_apply_RGB_mask
  • Adding a QAction to a QMenu on a certain position

    5
    0 Votes
    5 Posts
    8k Views
    S
    @QToolButton* button = new QToolButton( parent ); QMenu* menu = new QMenu( button ); menu->setMinimumHeight( 140 ); menu->setMinimumWidth( 152 ); button->setMenu( menu); QWidget* widget = new QWidget( menu ); widget->setGeometry( 0, 0, 152, 113 );@ now I would like to add a QAction to my menu under the widget but all I can do is: @QAction* action = new QAction( "Action",menu ); menu->addAction( action ) @ my action here it's not visible because the widget overlapped it, so to became visible I was needed to do: @QAction* fakeAction = new QAction( QString() ,menu ); /* add fake actions till the wanted action is visible*/ menu->addAction( fakeAction ); /* add the wanted action at the end*/ menu->addAction( action );@ I would like to have : @action->setGeometry( 0,113,152,140 ); //or menu->addAction( action, indexPositionInMenu );//if we can't have different heights for more actions@
  • Problem building Qt 4.7 with QMySql driver.

    2
    0 Votes
    2 Posts
    3k Views
    T
    Well, it seems related to your MinGW installation. Have you tried starting from scratch, downloading latest MinGW packages, and then build Qt from sources? Tony.
  • [SOLVED]Qt 4.7 udpsocket and encoding issue

    3
    0 Votes
    3 Posts
    3k Views
    T
    Btw, if UTF-8 is fine for you, you can avoid transform data in Windows-1253. T.
  • 0 Votes
    9 Posts
    16k Views
    D
    Bradley: any plans on getting that documented? :-)
  • [Solved] Problem with including QtSql

    16
    0 Votes
    16 Posts
    30k Views
    S
    Yes, but maybe you have to read some qt doc :P
  • [Solved] overloading dropEvent

    7
    0 Votes
    7 Posts
    6k Views
    ?
    glad it worked
  • [solved] QTcpServer pause listening

    4
    0 Votes
    4 Posts
    5k Views
    S
    After thinking more about what I really want to do, I came to the conclusion that I do not want to pause listening anymore :-) Reading the HTTP specification, I found out that the HTTP server shall never ignore or reject connections. In case of overload, it shall send a HTTP 503 response, which is pretty small and does not costs much resources.
  • QScrollArea limiting layout geometry?

    4
    0 Votes
    4 Posts
    6k Views
    D
    OK, it appears that this is in some way related to running on OS X. I've been debugging through the source and found out that qwidget_mac.mm is clipping view frames to 16bit coords. In fact, these two defines at the top of the file map almost exactly to values I see my sizes being changed to: @ #define XCOORD_MAX 16383 #define WRECT_MAX 8191 @ So, the question is how do I get around this? What options do I have in Qt to get this working so that I can display and scroll widgets that have sizes/positions > 16 bits?
  • Exchanging QObject based classes with QThreads via signals

    6
    0 Votes
    6 Posts
    4k Views
    S
    I have an example now. I am currently writing a HTTP web server - just to learn it. It executes a QTcpServer in the main thread and processes incoming requests in 10 worker threads. When a new connection comes in, I get the connection via QTcpServer::nextPendingConnection() which returns a QTcpSocket which is derived from QObject. Now after getting that QTcpSocket in the main thread, I need to pass it to one of the 10 worker threads. The easiest way would be to send them as a signal, but this does not work, als the documentation of QTcpServer specially highlights. The documentation of QTcpServer also provides a solution: Passing the integer socket descriptor ID instead of a QSocket object. SO in this case, it was easy to workaround the limitation.
  • QT Microsoft Speech API version 5.1 (SAPI 5.1).

    2
    0 Votes
    2 Posts
    4k Views
    ?
    hi mcrahr, can you markup the code with @ tag and convert the url text to link