Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.0k Posts
  • Process stays in memory after application closes

    11
    0 Votes
    11 Posts
    8k Views
    G
    [quote author="umen242" date="1307707592"]Volker , your code doesn't work for me , only the thing with timer how can i debug signal/slot to see what is wrong ?[/quote] Then your last window isn't closed. Maybe you just hide() it...
  • [Moved] determing subclass of QGraphicsItem

    12
    0 Votes
    12 Posts
    5k Views
    D
    Hi, I have Holiday and found some time to try out your advice. It works fine with enum type. @ enum { ShieldType = QGraphicsItem::UserType + 1, BulletType }; @ thanks for your support. Kind regards, David DC
  • PNG compression method 0

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [SOLVED] QGraphicsBlurEffect messing up with performances

    6
    0 Votes
    6 Posts
    3k Views
    E
    That's right, I couldn't figure how to edit the title...! thanks
  • Is it feasable to copy a Qt class into my project and build it in there

    5
    0 Votes
    5 Posts
    2k Views
    Y
    Too many dependencies to do this.
  • Poppler for Windows using MSVC 2010

    4
    0 Votes
    4 Posts
    5k Views
    Z
    I resolved my problem with acrobat reader ActiveX control: added QAxWidget to window and with dynamicCall("LoadFile(const QString&)", pdfPath) I'm displaying pdfs; Thanks all
  • Drawing QWidget in QPixelBuffer

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Closing QMdiSubWindow From Within Widget

    4
    0 Votes
    4 Posts
    4k Views
    G
    It's in the docs of "QMdiArea::addSubWindow() ":http://doc.qt.nokia.com/4.7/qmdiarea.html#addSubWindow
  • 0 Votes
    3 Posts
    3k Views
    K
    Thank you. If this behavior is not wanted (as in my case) you can circumvent it by removing and reparenting the children. Example below @ QList<QGraphicsItem *> childItemList = itemToBeAdded->childItems(); foreach (QGraphicsItem *child, childItemList) child->setParent(0); someGroup->addToGroup(itemToBeAdded); foreach (QGraphicsItem *child, childItemList) child->setParent(itemToBeAdded); @
  • Async TCP server design

    6
    0 Votes
    6 Posts
    7k Views
    K
    What other chances do you have then? I am using pointers to sockets stored in the containers. you might implement different containers for different information/subscription types. You probably may have the socket pointers in different containers. However, the different containers would make only sense when your subscription checking very expensive. this should be handled by the socket. I would assume that there is some buffering going on. is no problem. As stated I am removing the socket from my container when the transmission has a problem.
  • QDateTimeEdit - setDateTime() doesn't work [Value from Database]

    11
    0 Votes
    11 Posts
    9k Views
    G
    I suggest storing the dates in SQLite in either ISO format or as integer (using seconds since epoch) and convert that back with the respective methods of QDateTime. Don't use local date formats as those vary from country to country and are hard to debug anyways. Storing the weekday in the database is redundant anyways.
  • [SOLVED] How to determine which OS is program runnig on?

    6
    0 Votes
    6 Posts
    5k Views
    D
    You can get more informations from QSysInfo if you have to distinguish further. Nevertheless you need the preprocessor symbols to use this class.
  • How to control TabBar width in MdiSubwindow

    4
    0 Votes
    4 Posts
    5k Views
    S
    When running the example I pasted above, do the tabs adjust to the length of the text? If so, can you modify the example so that it shows your problem? Which version of Qt are you using and on which platform?
  • How to read every nth row in Qt Sqlite?

    4
    0 Votes
    4 Posts
    8k Views
    A
    Thanks a lot guys, saved me lot of time.
  • [Solved] Password Delayed Echoing

    8
    0 Votes
    8 Posts
    3k Views
    L
    No problem. And if you consider you question solved, don't forget to add a [Solved] in front of your title (click edit on your first post).
  • Problem with QTextCursor selection

    5
    0 Votes
    5 Posts
    4k Views
    J
    Arg, of course! Thank you for the help, that seems to have fixed the problem.
  • QTableView - QPalette::Base

    2
    0 Votes
    2 Posts
    4k Views
    L
    I don't have Windows XP so I can't verify it, but you could try to call update() on the QTableView and/or its parent widget(s).
  • Why code doesnt work?

    5
    0 Votes
    5 Posts
    2k Views
    G
    The code cannot work, as you remov items from the beginning. After processing half of the items your counter exceeds the count of the remaining items. Call remove on item(0), then the code should work. clear() is the more elegant solution, though :-)
  • Plugin won't load [Solved]

    7
    0 Votes
    7 Posts
    7k Views
    G
    I read this all and remembered plugins are only for dynamic linking. But if only QPluginLoader told me error state "Plugins are not supported in static application" - then I'd solve problem much earlier. The bug is in error processing code in QPluginLoader. It returns wrong error state: "Unknown error".
  • Multiple inheritance in qt

    9
    0 Votes
    9 Posts
    4k Views
    G
    [quote author="Neha123" date="1307534413"]can anyone send an example of inheritance( full code ) pleaseeeeee[/quote] Moaning and crying for help is usually leading to no answers at all. Behave like a grown up and you will treated like a such, behave childish and you will be treated like a nasty child. Begging for code is childish. This is a support forum not a do-my-homework-site. If you have a question, write it down in a way such that others can understand it. And/or describe what you want to achieve, also in a way such that others can understand it. You cannot have multiple inheritance with more than one QObject based base class. Although possible, and valuable in some circumstances, multiple inheritance can be very dangerous and error prone.