Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Drawing circles very fast

    4
    0 Votes
    4 Posts
    3k Views
    ?
    On my PC the good old quake 3 runs at 1200 FPS, which is less than 1ms per frame. However the display actually displaying that much is a whole different story, since it is limited at 120 FPS, so I only get one frame displayed for every 10 frames rendered. It is certainly doable in terms of rendering. Displaying all the rendered data - not so much, the majority of displays are stuck at 60 Hz or about 16.6 msec.
  • Crash in QNetworkManager when used in secondary thread [SOLVED]

    16
    0 Votes
    16 Posts
    8k Views
    A
    Anybody plz reply
  • Different font rendering between paint devices (QPicture, QPrinter)

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Choose between QRegExp or boost regular expressions?

    11
    0 Votes
    11 Posts
    7k Views
    G
    While being PCRE compliant is a good point in favor of boost or std::regexp, it is not the killer argument that kicks QRegExp out of the game. Experience taught me that one gets to the limits of QRegExp and need to switch implementations only seldom. I personally never reached it. So if your regular expressions are more or less "standard" (in the sense of "simple") one surely can profit from the integration of QRegExp with the rest of the Qt ecosystem (QString!)
  • 0 Votes
    2 Posts
    2k Views
    O
    Hi, again. I'm still struggling. I suspected that the processEvents didn't work properly, so I tested out another application I wrote for MSVC-10 Qt 4.8.0, which is a broadcast forwarder application. This application, qlink works perfectly both with Qt-4.8.0 on MinGW and MSVC-2010. But in qlink, starts the Qt event loop with QApplication::exec(), while it seems like it that Qt event loop on MinGW starts properly. If I could compile Octave on Windows with MSVC-2010, I would checked it out....But this is not possible. Ole
  • How to float QToolbar on creation?

    6
    0 Votes
    6 Posts
    9k Views
    R
    [quote author="Andre" date="1330432613"] [quote author="rutsky" date="1330432331"]In this thread http://developer.qt.nokia.com/forums/viewthread/401 author use @mainToolBar->setWindowFlags(Qt::Tool | Qt::FramelessWindowHint);@ with some notes. [/quote] While a helpful comment, I doubt the one dealing with the problem was still looking for a solution a year after posting... [/quote] I agree. I posted link to solution that worked for me for people who will search this question in future. Also here is my complete solution for PySide/PyQt: @ from PySide import QtCore, QtGui #from PyQt4 import QtCore, QtGui def main(): qapp = QtGui.QApplication([]) w = QtGui.QMainWindow() t = QtGui.QToolBar(u"Toolbar") t.addAction(QtGui.QAction(u"action", w)) w.addToolBar(QtCore.Qt.LeftToolBarArea, t) w.show() t.setAllowedAreas(QtCore.Qt.NoToolBarArea) t.setOrientation(QtCore.Qt.Vertical) p = t.mapToGlobal(QtCore.QPoint(0, 0)) t.setWindowFlags(QtCore.Qt.Tool | QtCore.Qt.FramelessWindowHint | QtCore.Qt.X11BypassWindowManagerHint) t.move(p.x() + 30, p.y() + 50) t.adjustSize() t.show() qapp.exec_() if name == "main": main() @
  • Qt class destructor question

    4
    0 Votes
    4 Posts
    11k Views
    P
    OOPs, a brain freeze I guess. I should have caught it myself. Thanks for the replies.
  • QListView inside QTreeWidget

    3
    0 Votes
    3 Posts
    2k Views
    P
    Thanks Andre for Your help. I will have a look at it, but at the moment I changed idea of solving this problem.
  • 0 Votes
    2 Posts
    3k Views
    A
    Hi, I was trying to do something similar ...drag from a QListWidget to a QTreeWidget. Adding @ setAcceptDrops() @ to 'true' (for QTreeWidget) worked for me. Hope this helps.
  • [Solved] How to track hierarchy of a QTreeWidget items ?

    4
    0 Votes
    4 Posts
    5k Views
    A
    Perfect :) Thank you p-himik and Volker.
  • [Solved]Crash When show full screen

    12
    0 Votes
    12 Posts
    7k Views
    V
    ok... sorry... i have see now that i not have set Widget parent in the "listaWidget" i have solved all problem setting in the class @explicit listaWidget(QWidget *parent = 0);@ and then simply write: @lista = new listaWidget(this);@ al run perfectly
  • 0 Votes
    5 Posts
    2k Views
    T
    Processes form a tree, axing away one does hurt its children. There is little you can do about that.
  • Icon in Qt

    4
    0 Votes
    4 Posts
    2k Views
    G
    ICON= icon.icns just sets the icon that is shown in the Finder and in the Dock (if you don't set a different icon in the code). It must be in the special Mac icon format. You can create it with Icon Composer from other formats. For setting the application icon in window title bars etc, call setWindowIcon() in your code. That icon's format needs to be recognized by Qt, I usually use PNG here. The plist-line is not necessary to just set the icon, the two steps above are sufficient for that. Just make sure that your icns
  • How to detect the drop target?

    4
    0 Votes
    4 Posts
    4k Views
    G
    In the widget that prepares the drag data, you create a [[Doc:QDrag]] object. You eventually call "exec()":/doc/qt-4.8/qdrag.html#exec-2 on that drag. This method has an overload that takes a second parameter, the default action. Set that to be appropriate for the external targets, your internal widgets always can ignore that. You might need to reimplement "QAbstractItemView::startDrag() ":/doc/qt-4.8/qabstractitemview.html#startDrag in order to manipulate the drag object. I didn't test that recently, but that would be the way I would try first.
  • Displaying a sequense of images

    4
    0 Votes
    4 Posts
    4k Views
    M
    I think i'll take a look at Qlabel + QImageReader, if its the easier one it might help me to understand the graphicsview better after. About the graphicsview, effects like fade would indeed be nice to have. But the animation framework, how am i supposed to use it in the way i described in my first post? This might be alot to ask, but how would i go about to create a list of images, rendered at an x time interval and then loaded onto the acctual scene? I see some interesting posibiltys, QTimeline, QSequentialAnimationGroup, looks like they could do it, but as i just said dont know how. I'm fairly new at programming, especially c++, done some C in on MCU:s in before. I'm running qt 4.63 on an embedded device, i dont think i have the support to run any QML with it.
  • (solved)Qt 4.8

    4
    0 Votes
    4 Posts
    2k Views
    A
    Perhaps you should be a bit more descriptive than "It didn't work". This is not helping us help you diagnose the problem. What are you doing exactly (show us your code perhaps), and what is the exact error that you get?
  • How to move a layout to a new parent?

    2
    0 Votes
    2 Posts
    2k Views
    A
    Nope, there is no such method. I would suggest you group the items as a widget instead of in just a layout. Just apply the layout to that new widget, and put the content-widgets in that layout. Now, you can reparent the whole widget in one go. on a side note: this is my 2^12 post on DevNet! I made it just before the move to qt-project.org :-)
  • Using a DSN to connect my QT application to MSSQL Server 2005

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Old code in Qt 3.3

    2
    0 Votes
    2 Posts
    2k Views
    G
    There is a porting tool, named qt3to4 that does a good job of converting Qt 3 sources to Qt 4 sources. You will have to do some handwork, though. If I remember correctly, Qt 3.3.x was released under GPL, so if your software is GPL too, this shouldn't be a problem.
  • [SOLVED] QDataStream operator >> read to an enum

    12
    0 Votes
    12 Posts
    15k Views
    I
    Thanks and duly noted. [quote author="koahnig" date="1330546759"]That was fine. However, most are putting it to the start of the line. I have changed for you.[/quote]