Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Anchoring to Window

    4
    0 Votes
    4 Posts
    2k Views
    O
    Ah figured it out. With MainWindow.ui Right-click on the main window Select Layout I chose 'Lay out in Grid' This anchored my splitter to all 4 corners so when i resize the window, the QTextEdit and QLineEdit resize properly too!
  • Destruction in separate threads

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • CSS inheritance in QGraphicsView

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Clarification required in MainWindow Example

    3
    0 Votes
    3 Posts
    2k Views
    K
    Here is a link for "some explanation on this (see second code window)":http://www.flipcode.com/archives/Reducing_Dependencies_In_C.shtml
  • Best way to create a simple local database [SOLVED]

    6
    0 Votes
    6 Posts
    12k Views
    C
    Thanks guys, I already managed to create a DB with Qt. I am using the sql-functionality of Qt itself. I did not download SQLite seperately. Works fine and I could already create tables in the database.
  • Question about debug and release mode.

    2
    0 Votes
    2 Posts
    2k Views
    H
    Surely no came across this? Or am I really not competent?
  • Using QProcess[solved]

    5
    0 Votes
    5 Posts
    5k Views
    K
    i do everything mlong said, and it works fine for me now,and my problem solved ,thanks
  • Custom event

    14
    0 Votes
    14 Posts
    8k Views
    G
    Did you setup the ui? Have a look a the Designer docs on "how to use .ui files":/doc/qt-4.8/designer-using-a-ui-file.htm in your app.
  • Problem with QAudioInput::byteReady() and QIODevice::read()

    2
    0 Votes
    2 Posts
    2k Views
    S
    please reply...
  • GrabWidget - QLineEdit including input cursor

    2
    0 Votes
    2 Posts
    2k Views
    M
    Maybe void QWidget::setEditFocus ( bool enable ) ?
  • Idiomatic model/view binding for non-tabular data

    4
    0 Votes
    4 Posts
    4k Views
    A
    [quote author="sneftel" date="1331912182"] [quote]I see QAIM as a base for adaptor classes that can be used to create an interface for your own, domain specific data stores, so the data from your store can easily be represented in a list, a table, a tree, a column view or even in a QML context.[/quote]Ahh... so concrete models should be per-source, not per-schema. Thanks for that insight.[/quote] Just to be sure: when I use the term 'data strore', I don't nessecairily mean an (SQL) data base. I mean some piece of application internal API that manages the applications data. Views on (parts of) that data may be provided by QAIM's, but there may be many such views, perhaps provided by other QAIM's, or by other interfaces entirely. I made a store in the past that provided a view through a QAIM, but at the same time also through a graphics view. So, if you talk about providing a model per source instead of per scheme, I hope you don't think about building one huge model to visualize a single data source with many different schemes, each having its own tables & views, each having their own content? I mean: creating a QAIM to represent the structure of an SQL data source so you can make it navigable in a tree view is one thing (I did that), but trying to use a single model for your complete data access is not a good idea. [quote] [quote]In practice, only the cells in the 0-th column can have children, and these are expected to have the same columns as the parent items. [/quote]Got it. So if Qt's model/view framework is not the peg for this hole, is there a different peg I'm not aware of? Some simple way to attach a QObject* to a grouping QWidget, and property names to the QWidget's descendant widgets, and get bidirectional data synchronization?[/quote] Of what I understand of your requirements, I don't see why you think you need such a generic solution at all. I think it will only complicate your design. It sounds like you want to have a very generic mechanism to get & set values to forms, but I think you are overestimating how common the problem you're solving with that actually is. If you add in the business-logic topics of data validation, constraints, etc., then you will very soon come to the conclusion that you will need domain-specific code anyway, taking away any gain you could have had from the generic solution you devised with so much effort. Of course, for part of the issues you can create your own generic building blocks. Creating an object that provides bi-directional binding of widgets to an objects property value is certainly doable, for instance.
  • QNetworkAccessManager Failed to make connection with https server

    3
    0 Votes
    3 Posts
    4k Views
    K
    I have added "code wrappings,":http://qt-project.org/wiki/ForumHelp#e3f82045ad0f480d3fb9e0ac2d58fb01 please remember next time.
  • 0 Votes
    3 Posts
    2k Views
    D
    Of course it is. In Mac OS, one presses the CMD key and Qt normally delivers the Key_Control keypress and, on a following key, the ControlModifier mod. Exactly the same as pressing CONTROL and a key in Windows and Linux. I run this example (and the app it is derived from) on all three platforms and I am well aware of the key mappings. However perhaps I was not clear: when running the example in Mac OS, one presses CMD+C as one normally does. And then as I say, only the KeyControl keypress is delivered, and never the ControlModifier+C keypress. Note that for any Ctrl+X combination that is NOT defined as a shortCut to a menu, pressing CMD+X in mac delivers exactly the same as CTRL+X in the other platforms. The only difference is that in Mac, a shortcut such as Ctrl+C is not delivered.
  • QDialog whit FramelessWindowHint shakes when moving

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • How to animate expanding of QListWidgetItem?

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QTextStream and file.tar.gz

    2
    0 Votes
    2 Posts
    6k Views
    A
    You cannot use QTextStream directly. Instead, take a look at the "FAQ":http://qt-project.org/faq/answer/how_to_compress_data_with_qt here. There are also already quite a number of topics on the forum on using compression and decompression and/or archiving.
  • Using qxmlpatterns

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Regarding QTabWidget and QSignalMapper

    5
    0 Votes
    5 Posts
    2k Views
    U
    thanks Andre, it really helped me. sorry for not posting details previous only.
  • Qt, Linux/Unix PAM and cross-platform authentication systems

    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • Qt.conf like behaviour

    1
    0 Votes
    1 Posts
    942 Views
    No one has replied