Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • Draw an arc with QPainter

    3
    0 Votes
    3 Posts
    6k Views
    M
    Thanks I'ill try this way.
  • QtHelp include not found

    8
    0 Votes
    8 Posts
    5k Views
    L
    No. By feature I mean qmake "configuration features":http://doc.qt.nokia.com/stable/qmake-advanced-usage.html#adding-new-configuration-features found in $QTDIR/mkspecs/features. I took a quick look at it and it looks like that the test feature is called testlib, not test. So it is either QT += testlib or CONFIG += test. However, do yourself a favor and do not use module wide includes like #include <QtTest>. It is a bad habit and it will strike back at you and you will end up in fixing it somewhen.
  • Can we set id for image or pixmap?

    9
    0 Votes
    9 Posts
    4k Views
    L
    This is a feature unique to QButtonGroup. See Vass' post for a solution. Depending on how you manage the lifetime of your objects you might use QHash<int, QImage*> instead.
  • [Closed] QStandardItem - parent-child with multiple columns

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    A
    You "already":http://developer.qt.nokia.com/forums/viewthread/10461/ asked that question. Please do not double post. I am closing this topic.
  • [SOLVED]switch columns in a QSqlRelationalTableModel

    5
    0 Votes
    5 Posts
    3k Views
    EddyE
    Great! Could you edit your title and add [solved] in front of it? Thanks.
  • 0 Votes
    2 Posts
    2k Views
    K
    solved. i needed the following code. @ tc.movePosition(QTextCursor::End); plainTextEdit->setTextCursor(tc);@
  • Problem with using .qml files in .cpp file

    9
    0 Votes
    9 Posts
    4k Views
    C
    you can use applicationviewer from qt qml.
  • QLineEdit with auto completion from middle of the text

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • How can i call a function with three arguments while a button is clicked?

    8
    0 Votes
    8 Posts
    4k Views
    P
    ok i will try.............
  • How can I catch Shift + Ctrl key?

    3
    0 Votes
    3 Posts
    3k Views
    M
    I think there is lucking code or may be there is something wrong with the system.
  • How can I hide cursor or set it unblinking in QTextEdit?

    4
    0 Votes
    4 Posts
    8k Views
    M
    For blink rate, you can try @ qApp->setCursorFlashTime(0); @
  • Not able to center text veritical using painter.

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • How to get and set QComboBox text

    10
    0 Votes
    10 Posts
    17k Views
    S
    Volker: Thank you for this info, I will certainly try to remember this from now on........ Thank you all for all of your responses.
  • Set delegate for one cell(item)

    2
    0 Votes
    2 Posts
    5k Views
    A
    No, not that I know off. But you could make your delegate just expose the default behaviour for all cells that do not match certain criteria.
  • [solved] List available drives

    7
    0 Votes
    7 Posts
    14k Views
    A
    KDE's Solid API (which is implemented on Linux, Windows and Mac) has the concept of a Device UID. That is basically what you seem to be looking for, and it is appearantly feasable to implement that on all the platforms. Note that if you want to list the storage media on the system, you can also use Qt Mobility SystemInfo API' s (also works on the desktop!) to list the devices, and get access to the URL's they reside on.
  • Meaning of waitForReadyRead(-1)

    3
    0 Votes
    3 Posts
    10k Views
    A
    The big question is: why do you do this? Why make your socket handling first asynchronic by putting it in a thread, and then use synchronic programming again within the thread? Why not use the asynchronic programming methods directly and get rid of both the thread and the waitFor* methods?
  • [solved] Copy all files in folder to another directory

    6
    0 Votes
    6 Posts
    26k Views
    T
    Now it works, thank you!
  • Implementing QAbstractTableModel

    23
    0 Votes
    23 Posts
    17k Views
    G
    In genereal, it works with beginResetModel / endResetModel if you change the whole model. If you update a value, use dataChanged signal. If you only insert a row or a column, use beginInsertRows() and endInsertRows, resp. Columns.
  • Enable/disable toolbar actions by tabpage change

    2
    0 Votes
    2 Posts
    4k Views
    V
    Just keep pointers to your Actions in MainWindow class and change Actions state on QTabWidget::currentChanged ( int index ) signal
  • Creating Dynamic Properties in a custom widget that shows in Qt Designer

    1
    0 Votes
    1 Posts
    4k Views
    No one has replied