Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.9k Posts
  • 0 Votes
    5 Posts
    3k Views
    A
    Oh, thanks a lot Andre, I can now understand better. Sorry for being a bit mulish :P All now work like a charm, the user can even press a button while the process is running :D Perfect :D
  • Error in qt(necessitas) from opencv

    2
    0 Votes
    2 Posts
    3k Views
    EddyE
    I suggest you ask this on "the necessitas forum":http://groups.google.com/group/android-qt. The necessitas developers answer questions there directly and know the latest / upcoming development targets.
  • QtOpenCLGL fails in Qt 4.8

    3
    0 Votes
    3 Posts
    3k Views
    M
    Yes, I'm familiar with openGL - this is specifically a QtOpenCL issue. This static signal proxy doesn't seem to be used anywhere else in Qt and in this code it has a note saying it's basically a hack. Since 4.8 includes a lot of specific openGL changes to allow multithreaded openGL I thought it might be breaking this code - and since it's a release candidate it might be breaking other more critical code. However you can't report a bug in QtopenCL because it's lab code and not in the main repository
  • How do you find string patterns in C++?

    4
    0 Votes
    4 Posts
    4k Views
    F
    bq. Do you speak of searching patterns or substrings in QString objects? Or something like regular expressions provided by QRegExp? bq. Sorry, I'm actually referring to regular expressions. I'll try visiting your link.
  • The visible part of a listView.

    4
    0 Votes
    4 Posts
    2k Views
    F
    No, because of that I am changing the way.
  • Qwidget, centering and scaling set of lines

    3
    0 Votes
    3 Posts
    2k Views
    P
    thanks.. i hoped for a not so destructive solution but ok, let's try this way.. [quote author="Andre" date="1323542595"]Sounds like you need to look into using QGraphicsView instead of QWidget. [/quote]
  • [SOLVED] QApplication not finishing after MainWindow closed

    10
    0 Votes
    10 Posts
    9k Views
    D
    Thanks! I will mark this as solved. For this application I will use QTimer::singleShot(0, this, SLOT(initialize())); because I want the MainWindow is visible before I show StartDialog, but I will take your suggestion for another application of my package that need to perform this tests before anything is shown. Thanks again!
  • Qt - How to load data/process data after QWidget has been shown ?

    5
    0 Votes
    5 Posts
    4k Views
    G
    Another option is to separate the model's code that gathers the data into a background process and to notify the model of the data dropping in. This it the way the [[Doc:QFileSystemModel]] works. Make sure to read the excellent article on "Threads, Events and QObjects":/wiki/Threads_Events_QObjects to avoid common problems and pitfalls.
  • [SOLVED] can't delete the dialog on dialog close

    7
    0 Votes
    7 Posts
    7k Views
    K
    thank you Volker. i will have a look into that.
  • Got QSqlError(-1, "No Fields to update", "") on model->submitAll()

    11
    0 Votes
    11 Posts
    8k Views
    J
    thanks for the heads up volker... apologies from a newbie here, please accept. Thank you.
  • [SOLVED] Expanding wildcards in directory paths

    4
    0 Votes
    4 Posts
    3k Views
    K
    Thanks guys. I've already begun code to manually walk the subdirs. It would be a nice feature to have in QDir of course ;)
  • Help showing an image as a background

    8
    0 Votes
    8 Posts
    4k Views
    R
    I forgot to write it here, I have it in my program but the result is the same :s
  • What may be the error in following syntax?

    8
    0 Votes
    8 Posts
    3k Views
    R
    Code is ok. As koahnig told, it will create the ini file, only when you set a value. If no values are there, you wouldn't need an empty file right ?
  • QHash implementation for QDate and QDateTime

    5
    0 Votes
    5 Posts
    4k Views
    napajejenunedk0N
    https://bugreports.qt.nokia.com/browse/QTBUG-23079
  • <SOLVED> Text editor found text is not visible.

    8
    0 Votes
    8 Posts
    4k Views
    EddyE
    You're welcome. Have fun.
  • How to hook system events with QAbstractEventDispatcher

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Itemviews: Performance with large selections

    2
    0 Votes
    2 Posts
    2k Views
    R
    What platform are you running on ? If you are on Linux/Mac OS X you should try to run a profiler such as Valgrind to figure out where your application is spending cycles and figure out what your bottleneck is.
  • Problem with a custom popup inside QCompleter

    3
    0 Votes
    3 Posts
    3k Views
    I
    Ok I found the problem...and it was a stupid one. In the last line of my MLAutoCompleterPopUp::event() I was calling the QWidget::event for all the events different from a tooltip request...but QListView reimplements his own event so I have to call it instead the one of QWidget.
  • Multiple Paint event calls Slowing down the application

    3
    0 Votes
    3 Posts
    7k Views
    W
    Thank you for the reply; Yes, I am calling update() rather than the PaintEvent directly. I tried a similar idea tot he one you suggested without success, but i think Ive just found the real problem with the program: it has a memory leak that only became apparent when the paintevent got called frequently enough. I have now identified the problem in the code half way through writing this reply: when I remove all the painter.save(); commands there is no longer a memory leak :D so just to detail what I done in the last half an hour: 1.) removed all the painter.save(); functions which dont appear to be necessary This gave continuous "QPainter::restore: Unbalanced save/restore" errors in Qt. (which is why I put the save() functions in to start with) 2.) remove all the painter.restore(); functions (these were only there because I copied the example, as with .save() I dont truly know what they do) 3.) enjoy a program that functions identically to before but without memory leaks and without warnings in Qt. For reference It would be nice to know how to stop this problem if it ever happens that you need the save/restore functions. Cheers, Woody
  • 0 Votes
    3 Posts
    2k Views
    N
    It's up to you what happens inside your implementation of QAbstractItemModel::dropMimeData.