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]tableview set/get and other questions.

    6
    0 Votes
    6 Posts
    2k Views
    T
    Thanks but iI'm not sure how to do it. I try to do this also on row change @ connect(ui->testTable, SIGNAL(currentRowChanged(QModelIndex,QModelIndex)), this, SLOT(selectionChanged(QModelIndex, QModelIndex))); @ But nothing happens
  • MouseDoubleClick implementation in QRubberBand subclass

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Reading a binary file

    8
    0 Votes
    8 Posts
    5k Views
    G
    You're speaking of charactares, which makes me guess that you're on the wrong concept. You must not print arbitrary binary data with printf() or qDebug()! As cincirin already mentioned, this stops at the first null-byte (0x00) regardless how big your data is. You must check the byte array's size with x.size().
  • Time format in QTableView with QSqlTableModel

    5
    0 Votes
    5 Posts
    6k Views
    S
    @QString QTime::toString ( const QString & format ) const@ Format Result hh:mm:ss.zzz 14:13:09.042 h:m:s ap 2:13:9 pm H:m:s a 14:13:9 pm
  • MainWindow to new Dialog window connection/calling

    5
    0 Votes
    5 Posts
    5k Views
    G
    You can use "Qt Designer":http://developer.qt.nokia.com/doc/qt-4.7/designer-manual.html to design your user interface. The docs show you how to integrate the UI in your C++ class.
  • Resize QScrollArea to fit content

    2
    0 Votes
    2 Posts
    6k Views
    S
    Addition: Just tried to add a Layout to the Manager and added the widgets to the Layout which made the Scrollbar work like a charm. But i can't use a Layout bcs I'm using drag&drop to move the added Widgets and using a Layout would overwrite positions of the widgets when the Manager-Window is resized. This makes me even more confused :/ Someone help me fix this please!
  • 0 Votes
    5 Posts
    6k Views
    A
    @Andre : Yes of course, it is an evidence (to fix any crashes)! I completely agree with you. But the crash I was talking about was introduced on purpose in the application to test/verify the behavior of the xml trace writer in such harsh condition (I stated "for example" in my original post - Sorry, I should have been a lot more explicit on this point).
  • Auto adjust size (width) of QDockWidget

    8
    0 Votes
    8 Posts
    8k Views
    S
    So, the theory is this: As long as there is a horizontal scrollbar increase the width of dockwidget. Now how to implement it?
  • How to do for de aplication recognize the gamePAD USB???

    2
    0 Votes
    2 Posts
    3k Views
    jensen82J
    Hi! i would suggest you to try SDL-Library for C++. Maybe that fits your needs. "LibSDL":http://www.libsdl.org/ "JoyStick":http://wiki.libsdl.org/moin.cgi/CategoryJoystick Wish you much success!
  • How to check if the QTableWidget has similar rows

    7
    0 Votes
    7 Posts
    3k Views
    I
    Hi Gerolf Can you please show me with example of 3 rows & 3 columns. How to use model/view for finding rows with same data.
  • [Solved] Keep my app running...

    4
    0 Votes
    4 Posts
    2k Views
    D
    @Gerolf, thank you very much, it worked :)
  • How to handle arrow keys events?

    3
    0 Votes
    3 Posts
    2k Views
    I
    Thanks Lukas
  • Qtbrowserplugin fails in IE

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [Split] Sqlite database deploying

    2
    0 Votes
    2 Posts
    2k Views
    D
    I've moved this to another thread from "this one":http://developer.qt.nokia.com/forums/viewthread/4583/ Don't use old threads for new not really related questions, please. About your question. If you need read-only database, then you can add it to qrc (not good solution, really). Also you can simply copy it with your executable and other files (as I udnerstood you also have qmls there). The best way that I see is to populate it on first start. It is not hard. All you need is to check if there is file at needed plave and if not, create it and populate with sql queries.
  • <solved> Errors: C2143, C4430 but it is included

    5
    0 Votes
    5 Posts
    6k Views
    H
    That has solved it, thanks!
  • Can we implement mouse hover manually?

    2
    0 Votes
    2 Posts
    2k Views
    L
    "QMouseEvent":http://doc.qt.nokia.com/latest/qmouseevent.html
  • "powered by" icon/image

    3
    0 Votes
    3 Posts
    3k Views
    F
    That suffices!
  • [Solved] How to make static link app which compress qt resource data?

    6
    0 Votes
    6 Posts
    3k Views
    Z
    well, thanks for all advices. Actually, I would like to make for embedding font in application. Some text files to load from application to make single executable file .. Thanks
  • QPlainTextEdit syntax highlighting mouse selections

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Resizing and moving a QDockWidget when it is undocked

    5
    0 Votes
    5 Posts
    6k Views
    J
    Thanks for your help. However I'm not sure I understood everything. As I said, the adjustSize() call works: the widget is correctly resized. The problem is with the move() call. Do you suggest me to replace it with a setGeometry()?