Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.9k Posts
  • QToolTip::show problem

    8
    0 Votes
    8 Posts
    4k Views
    C
    According to "QToolTip::showText":http://qt-project.org/doc/qt-4.8/qtooltip.html#showText docs, ... bq. Shows text as a tool tip, with the global position pos as the point of interest So you need to map widget coordinates to global : "QWidget::mapToGlobal":http://qt-project.org/doc/qt-4.8/qwidget.html#mapToGlobal
  • [Moved]Any way to reduce timeout interval for Network Access Manager?

    2
    0 Votes
    2 Posts
    2k Views
    L
    There is unfortunately no support for timeouts yet; but feel free to "vote for it":https://bugreports.qt-project.org/browse/QTBUG-3443.
  • Qt and gdb

    2
    0 Votes
    2 Posts
    1k Views
    D
    You can grab a usable build from http://builds.qt-project.org/
  • QSharedMemory handle issues (RHEL)

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • How to compare two QGraphicsItem objects?

    5
    0 Votes
    5 Posts
    3k Views
    X
    You are right. Due I was serializing the objects in some point of the process, even when the variables contain the same information, for the program they seem to be two different objects. I will have to refactor my code to deal with this. Thank you! :)
  • EventFilter does not updates a variable

    2
    0 Votes
    2 Posts
    1k Views
    G
    Can you please provide some code snippets? I don't get the problem...
  • QObject::disconnect() on a queued connection

    3
    0 Votes
    3 Posts
    5k Views
    S
    Pretty old posting. But I have the same question. Is he right? Doesn't a disconnect() prevent queued calls from being executed? Does the documentation describe this behaviour somewhere?
  • QThreadPool - wait for (at least one) free thread?

    7
    0 Votes
    7 Posts
    9k Views
    M
    Yup, if I could create all task objects at once and then add them all to the queue, this would be the easiest solution. But there are two reasons why I don't want to do it like that: First of all, the number of tasks can be quite large, so I want to create the task objects "on demand". Secondly, the result of some of the tasks may create additional tasks, so "main" has to collect the result when a task finishes and, in some cases, append new tasks. That's why I was looking for a QThreadPool::waitForOne() or QThreadPool::waitForN(x) method. I think "my" solution does emulate a waitForOne() and it works for my application. I haven't implemented the "semaphore" solution yet. I guess something like "N = 2 * maxThreadCount()" would be sufficient. But I doubt I would see a noteworthy speed-up in my application, because tasks run for 1-2 seconds and the overhead should be negligible. Doesn't need to be the "optimal" solution for everybody. Still I think QThreadPool::waitForOne() could be useful...
  • Link Problem with Kernel32.lib, Psapi.lib, etc.

    7
    0 Votes
    7 Posts
    11k Views
    Q
    Still gives the same errors. Looks like it is time to do this in MSVC...
  • How setting multimedia playback speed in Qt Phonon

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    K
    There is no need of "double posting":http://qt-project.org/forums/viewthread/17444/ Closing this thread
  • QtTreeWidget: issue with indicator display + drop target

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Low Battery

    5
    0 Votes
    5 Posts
    2k Views
    A
    I do @#include <QSystemDeviceInfo>@ twice - in header and in .cpp file. Be sure to have correct .pro file: @CONFIG += mobility MOBILITY += systeminfo @ Learn the basis!
  • [Closed]How to get the information from QTestLib/QTest on test failure.

    3
    0 Votes
    3 Posts
    3k Views
    S
    I did some initial search and found "qtestlog.cpp":http://qt.gitorious.org/qt/qt/blobs/HEAD/src/testlib/qtestlog.cpp that uses a messageHandler. Is the any way to access this messageHandler while running out QTest::qExec() function. I also found "this":https://bugreports.qt-project.org/browse/QTBUG-525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
  • How to disable the auto-enlarging of QSplitter when adding more widgets

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to connect MySQL with Qt 4.7.3?

    3
    0 Votes
    3 Posts
    3k Views
    C
    Thanks Lukas for the reply. However, I am not able to understand how to install it on my Qt Directory (/home/pkr/QtSDK/...). I have downloaded the "Qt sources from here":http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-4.8.2.zip. Can you please help me out how to do that. I am waiting for your reply. I am a novice please forgive me for stupid question :(
  • Application cannot exit

    5
    0 Votes
    5 Posts
    10k Views
    M
    Ah yes, my bad. I forgot that you were using message boxes, which do indeed require QApplication.
  • CloseEditor from QAbstractItemView

    3
    0 Votes
    3 Posts
    2k Views
    N
    Valid point. I've been an idiot and missed it out. Was looking just into edit. Cheers. Will give that a go and see if it solves the issue.
  • How to change QTreeView's expand/collapse column?

    3
    0 Votes
    3 Posts
    4k Views
    K
    I'm not sure how that method can help me. I ended up looking at the source code for QTreeView, and it appears that the logical column with the disclosure triangle is hard coded to 0. I am able to use moveSection() to swap the first and second columns, but on Windows it doesn't draw the highlight or mouseover effects properly, although I'm sure that can be changed with a stylesheet. However, for now I'm just going to put the checkbox into the disclosure column. Maybe later I'll separate it out again but this layout actually saves more space. Really all I want is an equivalent to NSOutlineView's setOutlineTableColumn method.
  • Ubuntu qt app gui style

    3
    0 Votes
    3 Posts
    2k Views
    P
    Thank you. I have applied the patch with quilt. But the make process isn't successful anymore. After 15 minutes it crashes.
  • Ignoring SSL errors

    3
    0 Votes
    3 Posts
    5k Views
    M
    No, it did not. I needed to edit and add include links. I added #include <QDeclarativeEngine> and #include <QDeclarativeNetworkAccessManagerFactory>. I edited network links (needed to add <QtNetwork/xxxx before).