Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • [Moved] new to Qt development

    11
    0 Votes
    11 Posts
    4k Views
    G
    [quote author="Andre" date="1317547623"]I'm not so sure about that. I think you can just spin a QEventLoop from any thread, QThread or not. Sure, QThread has it build in, but I don't think there is much magic involved there. Once you have a running eventloop, you can use slots in the thread, right?[/quote] Yes, it should be that way. If a QObject class is created inside a thread that is not a QThread (like the main thread) a pseudo QZhread object is created and it works.
  • [Solved] How can i call two slot using timer alternately?

    5
    0 Votes
    5 Posts
    3k Views
    AlicemirrorA
    I think that a faster way maybe a single function with a flag. You should only set the negation of the flag inside the slot and fire it every timer trigger. Then the flag indicate the way the slot function should follow.
  • How to build simple filmstrip component in Qt for viewing picture slides?

    5
    0 Votes
    5 Posts
    3k Views
    A
    Sure, it can be done using pure c++. Or you can use all the work already done by the Quick team and create a widget that is internally using QML to do the same with less work. Really, Quick is made for this kind of graphic UI stuff, and Quick 1 can be easily mixed with classic C++.
  • Connection between multiple widget in designer

    3
    0 Votes
    3 Posts
    2k Views
    A
    Personally, I think that you need to re-think that UI. Sounds like hell to use a UI like that. Why don't you put the 200 items in a list view themselves? You do realize that list views can also display checkboxes, don't you. That way, you can at least provide sorting and filtering on the list, so your users can actually find the items they need from it. If you use a model-view approach to begin with, then displaying a list that only contains the items checked in the other list is trivial. You only need a QSortFilterProxyModel to filter on the checkstate role.
  • Circumventing QTextDocument restriction to single-line regex search

    2
    0 Votes
    2 Posts
    3k Views
    A
    This reads like a nice howto. Would you considder putting the above in a page on the wiki?
  • Quazip functions

    17
    0 Votes
    17 Posts
    9k Views
    G
    Sorry, I misread your post. A "cell in the table" usually triggers the concept of something like a [[Doc:QTableWidget]] in Qt world (and not only there). You were referring to a BLOB column of a database table, which make much more sense. In that case: Read the BLOB data into a [[Doc:QByteArray]], feed that as that data storage to a [[Doc:QBuffer]] and feed that to the QuaZip constructor mentioned by Vass.
  • [Solved] Qt SDK 1.1.3 with Qt Libs 4.7.4 -- 64 bit only?

    9
    0 Votes
    9 Posts
    5k Views
    G
    There is no separate 32bit/64bit toolchain on the Mac. The toolchains differ only in compiler versions (gcc 4.0, 4.2, clang). All of them support 32bit/64bit and PowerPC/Intel object code simultaneously. You will have to set the appropriate combination by command line switches to gcc or in the .pro file for qmake: To build only 32bit targets use: @ CONFIG += x86 ppc CONFIG -= x86_64 ppc64 @ You can link your application against every lib that includes object code for the same architectures. It does not harm if you libs contain more architectures than you need.
  • Find QRegExp in the text

    13
    0 Votes
    13 Posts
    7k Views
    D
    The answers above explain a problem I came to ask about, so thank you. However, in the general case of a user-entered pattern I do not see any way of getting around this bad restriction. Suppose the pattern (example from QRegExp documentation) is <b>.*</b>, this cannot succeed when the document is: @ some text or <b>bold text</b> other etc. @ You could examine the user's pattern and change it into: @ <b>.$ ^.</b> @ But that would fail for the case of <b>on one line</b> and also would fail for the case of a target spanning three or more lines. In short I see no work-around for the general case of patterns matching across multiple lines. Comment?
  • How can we pass arguments while implementing slots?

    3
    0 Votes
    3 Posts
    3k Views
    F
    If you don't want to use the checkable property of the button, your only way to achieve this is to keep the status of the animation (e.g., started = true|false) somewhere else, and each time you handle the clicked() signal you manually toggle the animation status. Another way is to provide two different slots, let say animation_start and animation_stop. In each slot you disconnect the slot itself from the signal handling and connect the other one, so each time the button is clicked one of the two slots handles the signal alternatively.
  • [SOLVED] build error with QT SDK 1.1.3 on Linux

    3
    0 Votes
    3 Posts
    2k Views
    U
    "Qt Bug Tracker":http://bugreports.qt.nokia.com/ has a section dedicated to Qt Creator. Check it out.
  • Qgraphicsscene selecteditems boundingrect returns -nan?

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • User class for QtVariantPropertyBrowser

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to move QGraphicsTextItem's text along with cursor.

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Looking for image processing library

    18
    0 Votes
    18 Posts
    11k Views
    G
    I believe the IM/GM guys and the other graphics library folks do know what they are doing. And in doubt, the surely are of more wisdom in that topic than we all together. This discussion is becoming too academic for my taste and I'm out now. Happy bit squeezing to everyone who wants to save some three bytes on his 8 GB workstation...
  • How to get QHelpIndexModel from QHelpEngine?

    10
    0 Votes
    10 Posts
    4k Views
    G
    You can check whether your help collection is prepared correctly by loading it into Qt Assistant. This way you make sure the data you try to load is sane.
  • Detect input for Inplace editor

    4
    0 Votes
    4 Posts
    3k Views
    P
    no, but you can install the event filter on all childs of a widget; e.g subclass QWidget overrinding method eventFilter() (see "there":http://doc.qt.nokia.com/4.2/eventsandfilters.html;) Create a widget of this new type (in qtdesigner create a qwidget and then use promote to... to change is type) put all widget you want inside it; get the list of widgets with "findChildren()":http://doc.qt.nokia.com/4.2/qobject.html#findChildren iterate over the list and use installEventFilter on each widget. You should be fine.
  • [Solved] Tooltip display problem?

    8
    0 Votes
    8 Posts
    6k Views
    P
    In Qt namespace documentation see Qt::WidgetAttribute type
  • SetTabOrder problem

    2
    0 Votes
    2 Posts
    3k Views
    EddyE
    you mention a label. Could be the edit has this label as a proxy. from the docs : bq. If first or second has a focus proxy, setTabOrder() correctly substitutes the proxy. also have a look at "setFocusProxy":http://doc.qt.nokia.com/4.7/qwidget.html#setFocusProxy
  • QSqlRelationalTableModel and setFilter difficulties - possible bug?

    6
    0 Votes
    6 Posts
    10k Views
    Z
    Any progress? I find it incredible that this bug - which makes the documentation on QSqlRelationalTableModel erroneous - has been marked as being fixed for a "future release" for 7 months!
  • Input from text file error !!!

    5
    0 Votes
    5 Posts
    2k Views
    A
    now i know where is the problem...thx vass :D:D