Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Refresh QGraphicsView

    8
    0 Votes
    8 Posts
    8k Views
    A
    following Error Coming in my system..! QPixmap::operator=: Cannot assign to pixmap during painting. When i was trying to do this code with menubar actions. Please help me out.
  • Static build fails to include plugins, undefined symbols

    4
    0 Votes
    4 Posts
    4k Views
    H
    It's been some time since I have used a static Qt version (and only on Windows), but the problems seems to be that plugins/imageformats/*.lib are not included in your linker command (they should have been added by qmake with the QTPLUGIN command). Can you try manually add -L/usr/local/Trolltech/Qt-4.8.0/plugins/imagesformats and -lqjpeg4 etc. (or similar) to your LIBS specification?
  • VNC viewer connected notification

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Problem in accessing .ini file through QSetting in Mac?

    3
    0 Votes
    3 Posts
    2k Views
    P
    [quote author="leon.anavi" date="1331279805"]This seems strange. Make sure that your relative path is correct and that your user has proper permissions to open the file.[/quote] I have checked the path is correct but still the problem persists.
  • Drawing QPainterPath using Opengl

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Strange casting error for qgraphicsview?

    6
    0 Votes
    6 Posts
    2k Views
    C
    @template <class T> inline T qgraphicsitem_cast(QGraphicsItem *item) { return int(static_cast<T>(0)->Type) == int(QGraphicsItem::Type) || (item && int(static_cast<T>(0)->Type) == item->type()) ? static_cast<T>(item) : 0; } @ As you see item->type() is used in qgraphicsitem_cast function
  • Deleting frames in QTextEdit

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QSortFilterProxyModel: dynamicSortFilter vs. calling sort()

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Prevent Window Moving?

    2
    0 Votes
    2 Posts
    3k Views
    L
    I think that you can try to detect movement and then to move the window back to its original position by overriding "QWidget::moveEvent":http://qt-project.org/doc/qt-4.8/qwidget.html#moveEvent.
  • Problem about creating DLL in QtCreator

    2
    0 Votes
    2 Posts
    3k Views
    I
    Could anynone give me a help?
  • Where can I download Qt4.3.0 source code?

    3
    0 Votes
    3 Posts
    3k Views
    M
    What kind of troubles are you having? Also, the latest version is 4.8. You might try using the newest version to see if your troubles are resolved.
  • QGraphicsScene interferes with QNetworkManager

    3
    0 Votes
    3 Posts
    2k Views
    A
    Is there any alternative way of doing this, i.e. custom progress bar which won't interfere with QNetworkManager. QNetworkManager runs in a separate thread of its own, such things shouldn't occur.
  • Plan for QAbstractItemModel::span ?

    7
    0 Votes
    7 Posts
    6k Views
    J
    What about extending QTableView and then implement span(..)? I haven't extended any QtView class so far..
  • Can I use module of QMultimedia in my Desktop application?

    2
    0 Votes
    2 Posts
    2k Views
    H
    Which desktop platform and compiler do you use?
  • Lost Focus with QProcess

    4
    0 Votes
    4 Posts
    3k Views
    M
    You may want to look at activate() or raise() for the top level window. Focus is a concept within one window. Probably your child process does not loose focus, but discontinues to be the active window.
  • QPainterPath multi-thread access

    3
    0 Votes
    3 Posts
    2k Views
    M
    const methods can be called in a const context. They do not protect you from changes done from another thread while they are executed. So this approach will not work.
  • Non-Blocking DialogBox (NonModal?) required for Statusmessages

    4
    0 Votes
    4 Posts
    4k Views
    G
    You can make use of [[Doc:QInputDialog]] without the static convenience methods too. Just connect to the special signals. I would say "textValueSelected() ":/doc/qt-4.8/qinputdialog.html#textValueSelected is what you need here: bq. This signal is emitted whenever the user selects a text string by accepting the dialog; for example, by clicking the OK button. The selected string is specified by text. You will have to call the respective setters for that parameters of your input box, that go into the call of the static convenience methods.
  • Thread issue

    10
    0 Votes
    10 Posts
    3k Views
    L
    [quote author="Gerolf" date="1331201250"]you don't know, which clot will be called first, the quit from the thread or the deleteLater.[/quote] As far as I remember this has changed with 4.7. The execution of multiple slots is now guaranteed to be in the order of the connect statements. [quote]"Signals and Slots":http://qt-project.org/doc/qt-4.8/signalsandslots.html If several slots are connected to one signal, the slots will be executed one after the other, in the order they have been connected, when the signal is emitted.[/quote]
  • Deriving from QTextDocument

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • How Can I Connect To MySql from client Computer?(Connect to Remote MysqL)

    7
    0 Votes
    7 Posts
    8k Views
    G
    [quote author="alireza.shirazi" date="1331049139"]ok you right. i wrote code but give me under error: can't connect to Mysql server on 'Server ip address' (113) thanks a lot[/quote] Did you replace "Server ip address" with the actual address (hostname or IP address)?