Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • [Solved] treeWidget with mutiple windows/dialogs -Thanks

    6
    0 Votes
    6 Posts
    3k Views
    M
    Be sure and edit the thread title to add [Solved] if it's resolved. Thanks!
  • Use QLineEdit with mask AND validator for money OUTPUT

    3
    0 Votes
    3 Posts
    5k Views
    L
    [quote author="peppe" date="1313510909"]I'm not sure what do you mean. Which format the data you're trying to set has? An integer / a double you need to format in a specific way? ( Qt 4.8 will introduce QLocale support for currencies (f.i. QLocale::toCurrencyString). )[/quote] It is a double. But someone suggested to me subclass QValidator to validate what is introduced in the lineedit. I did this and it worked. Thank you!
  • How to disable a button after clicking it?

    14
    0 Votes
    14 Posts
    24k Views
    D
    See http://developer.qt.nokia.com/wiki/Threads_Events_QObjects , especially the last examples. If your job is not splittable and/or you can't insert calls to QCoreApplication::processEvents, use a separate thread.
  • How to get the relationship between two QDockWidget?

    16
    0 Votes
    16 Posts
    5k Views
    A
    Please use the edit option next to your post to make spelling corrections or additions instead of making new posts.
  • [SOLVED] Why my Qt app does not find Qt plugins?

    9
    0 Votes
    9 Posts
    7k Views
    V
    Ahh, I can't believe it... The qsqlite4.dll requires msvcr90.dll, which is next to the exe. But when it tries to load the dll I suppose it changes the working-directory to qsqlite4.dll 's folder, which does not contains msvcr90.dll. If I copy msvcr90.dll next to qsqlite4.dll it can find it and the app can load the sqlite plugin. If only the exe directory contains msvcr90.dll then it can not... Is this a common problem? Are there any solution no to have multiple msvcr90.dll s in every plugin folder? This is important, because the app does not require any installation, and I don't want to install MSVC redistributable installer.
  • Event handling

    3
    0 Votes
    3 Posts
    3k Views
    G
    You should show us at least the connect statements. How should we know what's going on without that?
  • How to resize the QDockWidget?

    10
    0 Votes
    10 Posts
    9k Views
    Y
    yes,you side it. I knew this method before,but saveState() cant get more details. i need more details,such as toolbar name, detail of every action in toolbar and so on. so i must realize by myself. my application is framework-plugin.
  • QNetworkAccessManager asynchronous API

    3
    0 Votes
    3 Posts
    5k Views
    L
    You answer is pretty clear, thanks. So, it's based on select(2) sys call. I just want to make sure. The link is very informative.
  • A widget to display text

    7
    0 Votes
    7 Posts
    20k Views
    sierdzioS
    I'm looking through Qt textbook right now, it seems that - as I've mentioned - it is possible through QSS. Try this: @ // use your QTextEdit, of course: QTextEdit test; test.setStyleSheet("border: rgb(255, 0, 0); "); @ You can use common colour names, too. For more info, look into documentation: "Qt Style Sheet":http://developer.qt.nokia.com/doc/qt-4.7/stylesheet.html#id-7e8519ff-eddd-442c-ad11-e4519ccf273a
  • Problem with X-Windows System.

    2
    0 Votes
    2 Posts
    2k Views
    D
    I don't see any reason for that to fail. Can you paste a small, complete, compilable example?
  • 0 Votes
    5 Posts
    5k Views
    S
    I do not find installable for Qgui4 and Qtcore4 in the log. How do I go about them? I have installed Qt Quick 4.7
  • Is There a way to get Mouse Position in a sceneEventFilter?[Solved]

    4
    0 Votes
    4 Posts
    4k Views
    R
    Please mark the post title as [Solved]. Thanks
  • Library Requirment for Running OpenGL Applications.

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [SOLVED] Name mangling when building qt applications

    5
    0 Votes
    5 Posts
    3k Views
    T
    Note that nm can demangle the symbols for you (--demangle) and you also use the c++filt utility to demangle a single symbol (e.g. one the linker is complaining about).
  • [Solved] Displaying an image in a QTableView

    4
    0 Votes
    4 Posts
    5k Views
    G
    No problem, I just read through a huge backlog of postings :-) I'm setting this to solved.
  • 0 Votes
    12 Posts
    8k Views
    G
    For Qt itself that's configured at compile time with the -rtti switch. For your projects, you can add rtti do CONFIG: @ CONFIG += rtti @
  • SQLite database with Qt

    2
    0 Votes
    2 Posts
    3k Views
    G
    To cite "QSqlQuery::size() ":http://doc.qt.nokia.com/4.7/qsqlquery.html#size: bq. Returns the size of the result (number of rows returned), or -1 if the size cannot be determined or if the database does not support reporting information about query sizes. [Emphasis by me] SQLite does not support reporting the number of rows in the result set.
  • Understanding QComboBox signals

    10
    0 Votes
    10 Posts
    21k Views
    G
    I'm not sure if an editable combobox is the right approach for this... It usually is for selecting preexisting entities (a read-only combobox) or for giving some reasonable default values to choose of for a free text field. If you type on the text of an existing entry, that entry is not changed, but a new entry for the combobox is created. I'm not sure if it's possible at all to make the combo box work as you want.
  • Exact page layout with rich text

    2
    0 Votes
    2 Posts
    3k Views
    G
    HTML (on which the [[Doc:QTextDocument]] based classes rely on) are very hard to make pixel precise - if not impossible. In that case I personally would go with a QPainter and draw the contents directly. That way you have exact control over where your data is printed.
  • [Solved] QFileSystemModel root path

    5
    0 Votes
    5 Posts
    10k Views
    A
    As stated above and in the docs: [quote]QFileSystemModel will not fetch any files or directories until setRootPath is called. This will prevent any unnecessary querying on the file system until that point such as listing the drives on Windows.[/quote] As for starting off at a certain node, would setRootIndex do the trick? You can retreive the index to use as root by using QFileSystemModels methods to get a QModelIndex for a path.